From patchwork Fri Apr 2 10:06:31 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: 414334 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1284361jai; Fri, 2 Apr 2021 03:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxflQ1MhAzA97AZRsBmXg6kGy8b6zzMndRj8LBUTwezKWyJs2Iicr8qBOHtBaBTLfIft67L X-Received: by 2002:a05:6e02:1a2d:: with SMTP id g13mr10290179ile.222.1617357999828; Fri, 02 Apr 2021 03:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617357999; cv=none; d=google.com; s=arc-20160816; b=fbhrhJWY1IESy/UG6ZOgnWQRdwRDO7nMCYLbjv08a8dQpya4GOYLtddgd02o3IlnJa EbCRPNf9CWAAt4KopyCy96oQ7y+bmxF6zzA1HFtayqPHJxASZjefI4+8KOzkAzvmPRVw f6KPerpaxyyfyc55du31GL5xaBBtFghI9IMISwYeQh8ZEkFWyy8zx33Dv6gDfZrqgMTu p5or1X9E7Zaj1vZ3+kr/RhsTY93uHpqUsndbtHMLOaQPlBYkYbQa0gLZk9Z61jjbtcx/ ItdRWAmMi4UXOwTj4IdnAiYkSNv70uZ22/2Xc2dEbfGQPSvLAeBS+IBgEtFIrl8kp12C r81A== 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=8FFDLZB/vHm0pWu0rgOmQ3F7+I8O6+iIXPof9tEB6Pw=; b=JOyxzV0nsoemR0Og0HXaiY9n6RmgM04aRcdmmOJ/xI8GXvGBoGzi8mvQhL+hFxYg5B 7FeAWhGHvjgbGeOPlfbAq6FgqeCPRj2wME5ubwk+sUaS5hgSIz/ZF66DzmQ5lEXhcJar ZycxCUPZfyCRV6zNSxcJqKQMbOVq3cN06FjQR+tLRjxGHoBO1MH7wOjEx69GoMUd/tGT 8iHFuRoon11s7Xhxo3HpmbO4vdcSBlu3yQFVQe18YH7sQNlcr4Dsyvk77URmEkRia9in GCBTy8HjihE1OQKjQmTx1JYMlJzBz5WRInojHOWwMb9XlsGHqdacK903COGulR+m+W+Y Npyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F83GTV9O; 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 g2si6942838ile.30.2021.04.02.03.06.27; Fri, 02 Apr 2021 03:06:39 -0700 (PDT) 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=F83GTV9O; 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 S234389AbhDBKFb (ORCPT + 17 others); Fri, 2 Apr 2021 06:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234563AbhDBKFa (ORCPT ); Fri, 2 Apr 2021 06:05:30 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60613C0613AB for ; Fri, 2 Apr 2021 03:05:26 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id e18so4303781wrt.6 for ; Fri, 02 Apr 2021 03:05:26 -0700 (PDT) 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=8FFDLZB/vHm0pWu0rgOmQ3F7+I8O6+iIXPof9tEB6Pw=; b=F83GTV9ORyhd5EWryfWuRGx3v7/9FByVfUDvcXjbSTYuCsqLL0ZAiHw+9Ermx9hGDh wPLUTfN1LQtC7XPQ7JrM75svfALU7yudwhGtcg/FKA+Me39aJ3MXDosjBOMuMN6JXhud 9A7nNpV1+7ouoaTYJr8FhPW38S1a+1XS3e2xsgX7JaOiSo2S+rh6JOTbzbntTCoTWEEK /kPyiH56HBFTzUIrPENUvTZEdyjT1XFZ4ZDNAdlrt2QS+SqX6XoWnNa7RAl6hRcIaFQo 8Aym4rFXzlcohdQfqW5hSRzRgJhOZjs4NIs2zyVCCj+TMPiQD6iYBS2C3WPlq/+KMpVN Bk0w== 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=8FFDLZB/vHm0pWu0rgOmQ3F7+I8O6+iIXPof9tEB6Pw=; b=IPM2PAsHPOwwQgxAWgu9fzoDQR46fbz+myvunVjPUbpVTwHvJLn/Dlu/5V4ERB8doj jcC+obzXvRZEMvfAdUuvO6YWeA9QfbeXZfe+dFAaR29bb0UY73Ul+ssj7Et44kBLBnTF ZHCTCPvSnwD2SVbwk2Z1B67/YXf++F6j5o2t8iUnVv9LhAab9BMSHxBAykUsm8i+T/5K i4tiUsu+jrm5f4zklx6fIjf2pLLhXOfr7itm88FLfxxORQfa5pP4RInAhSOSJ/X/PiFf tp4/W0cOntIUUOjhz6tCri1Rvr+lPqu50rEH1yPxzuQwgqqeqrNROoUTQK16xSZnNovk 1IeQ== X-Gm-Message-State: AOAM532ylqGfq7FtEzwt+hlgf60Fjm0siADynSp1WtxagGtzS2q1qCVH S0XL4aLM/55eUPEQWcwYEJzccQ== X-Received: by 2002:a5d:5256:: with SMTP id k22mr14726134wrc.162.1617357925162; Fri, 02 Apr 2021 03:05:25 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id v18sm15466618wrf.41.2021.04.02.03.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 03:05:24 -0700 (PDT) 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 v3 08/25] media: venus: core: Add differentiator IS_V6(core) Date: Fri, 2 Apr 2021 11:06:31 +0100 Message-Id: <20210402100648.1815854-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210402100648.1815854-1-bryan.odonoghue@linaro.org> References: <20210402100648.1815854-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 Acked-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 1 + 1 file changed, 1 insertion(+) -- 2.30.1 diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index 110287279f05..85047806142f 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -420,6 +420,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)