From patchwork Mon Feb 22 16:02:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 385790 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1395258jap; Mon, 22 Feb 2021 08:03:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZor7CGwjo+JnGbnbat4YKSaKvPTkJCze/jk/YWrL8FlbGHy2LULI52zfTuDPwSAuVpBHJ X-Received: by 2002:a50:fd90:: with SMTP id o16mr1772981edt.292.1614009808093; Mon, 22 Feb 2021 08:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614009808; cv=none; d=google.com; s=arc-20160816; b=xr98EBbNjZLWWycL9yygGzBvCbxQ3yhTXF7uclIP9CSc16yrT66fkXF/R+ho9u3eSt cMYUZr22xD/URB9aN9SPGuv9t8uYC7iPrW5EKJB6o7kuqDF3SOwmvAR2NMbP9OJDlWbC 4JQHJPrtFeVW8vQyyJkJ7Xw3nqWEPC5zPdwdi+GdwLVBAE4wVMMVFBBDFsNQGwc+S28f x23aD4mpAostQcIY9Vt2CDR6xMgPDrPPTWdSZpEnyeBtZnH0z2oP1zILYlGNDwa9MtW/ RwHwNxrH38Ug5hkxKU3fvdce7RWCKte4+hZEmsK1EIx32CaO8/RpoVZIwT0X+EystibU mYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1+CgN0nh2JSnbM9Feox54p0kdgx4CZZNK6cQ0ib5plk=; b=aMIdfOdHf9Euci7zJ//JaJo1k9qqVmSMHbKw7DE1irY0onbY6FCiSLJhGpxdvYq+G6 3wH0Xgg0R7yz6Rar4/GKI2jHSn+mUXCkxTLQKOoiqLPUxioqb8jVF7P7F6/HPIXLIXD+ YlcAYhfEircERJ/cxms5b5qOX02FpElA62XPZUo8KuDi3FJHdg5MfvQY590nc6VvtYEs 37BEqg6W/DTseibjs4OR87blmYxMHJbQbHogocOBgwhffW2W1xYbFBeJy0db8OOi3AVR OMpX7ehTPoMa7lWDJuq2p9R28R5p2ok0Du24Mp47TF8P8yoNBj7Cp2IcojyLo9/ICqVq +4sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WXL5BQlO; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si13128571edm.477.2021.02.22.08.03.27; Mon, 22 Feb 2021 08:03:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WXL5BQlO; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbhBVQDX (ORCPT + 16 others); Mon, 22 Feb 2021 11:03:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbhBVQDU (ORCPT ); Mon, 22 Feb 2021 11:03:20 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68F72C061223 for ; Mon, 22 Feb 2021 08:01:47 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id 7so19654023wrz.0 for ; Mon, 22 Feb 2021 08:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1+CgN0nh2JSnbM9Feox54p0kdgx4CZZNK6cQ0ib5plk=; b=WXL5BQlO+UjH/ToUwcMHmiCSQ3gGzRjFdRuhHLrbIIB+Cxy3OpsGsH5MvT94ufvxnc rgmkbaMk5qtNE6YJ61Ia8ZXKuIX8O4tJAekMq4NGaVChowIlTzdeTd0uoxq08KC1QSj3 X8+ZPjIUEJFC58iwoD7nAJFGf/l3J1z1tm5FlZFmR0KjdLehMKyprt4XtOkjxF6unB4G EIKrDKnt0DRPMcAYq3ni+61xow8bM1t9JYBYoOmkV+uXX+/809b0PicEP+AP2Lk8TOBs fNZ25z9Itgmn7HCovq3arFEMANjr5SXiilp4jMlLPvDjuFy8TqKSo8POzBVcRmMuJpVd denQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1+CgN0nh2JSnbM9Feox54p0kdgx4CZZNK6cQ0ib5plk=; b=ebpAe84NOAP/WJnPr9ObnKSdXxTO1rpyhd1N8h3pl836OrO4PGjCxRpQlzEZx69C8K a+qckr0Zxsg/0zJwtRUcWM5x7DAe5XxdUpnj2UgGYlsGPHF8QrVU7udIOg/waCqVfsNN c8TzLKPGNvcxfk4y8FzrKVdJKpxdpw+e5kw3s5UxQEE+aU9FWS/SxKDLygo6p9LYR/JQ MGzaRGrZEKH6LBjcCNEnqAzBFbcDtxRJGv1Vn20PVrsbhIjVBRV8dR0Do3SXUZL2Kpe/ 2yv7e5GIvbUEslQoDP2siIaPCB6CazQ7tReOljVuNWvzCsHVwER1vJnkTJLSzaPaLq+D 3Tqg== X-Gm-Message-State: AOAM532WxkalYNjVSCJ+fEgXQ44fRBU3eag4fhDlqyYtfI56i5LJ3A2W pFPx8BUX7W0d0kI6onAOvu0lzA== X-Received: by 2002:a5d:540d:: with SMTP id g13mr22185325wrv.143.1614009706184; Mon, 22 Feb 2021 08:01:46 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id c3sm7373697wrw.80.2021.02.22.08.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 08:01:45 -0800 (PST) From: Bryan O'Donoghue To: stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: bryan.odonoghue@linaro.org, dikshita@codeaurora.org, jonathan@marek.ca, vgarodia@codeaurora.org Subject: [PATCH 09/25] media: venus: core: Add differentiator IS_V6(core) Date: Mon, 22 Feb 2021 16:02:44 +0000 Message-Id: <20210222160300.1811121-10-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210222160300.1811121-1-bryan.odonoghue@linaro.org> References: <20210222160300.1811121-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This commit adds the macro helper IS_V6() which will be used to differentiate iris2/v6 silicon from previous versions. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.h | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index 1be73c707d21..0c90f48323f2 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -417,6 +417,7 @@ struct venus_inst { #define IS_V1(core) ((core)->res->hfi_version == HFI_VERSION_1XX) #define IS_V3(core) ((core)->res->hfi_version == HFI_VERSION_3XX) #define IS_V4(core) ((core)->res->hfi_version == HFI_VERSION_4XX) +#define IS_V6(core) ((core)->res->hfi_version == HFI_VERSION_6XX) #define ctrl_to_inst(ctrl) \ container_of((ctrl)->handler, struct venus_inst, ctrl_handler)