Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4451499rwd; Tue, 30 May 2023 05:46:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68r44pXl3LyWlO+/Cl3Psg9JZfarwVmAx44bSIA3E5PB5zK7yHn2JLZ8ceTauS6gnNlLny X-Received: by 2002:a17:90a:4b4c:b0:255:8802:937a with SMTP id o12-20020a17090a4b4c00b002558802937amr2391999pjl.11.1685450765493; Tue, 30 May 2023 05:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685450765; cv=none; d=google.com; s=arc-20160816; b=LP6Qj9Ay3oV5ufw0RMWMSYc+ziuowRx1sKEHUq+pC35je5k2zy+QURhTQnV6MoiVSE 5yFUUI/0GleZneQ50CQyDORG8TC0ZxQpMcWEYhkmZ3MGLyIn00XPQh0+xzOJumL7vOls w4e1X5vC2wB128d9sRHiOghj86uiQBg4jaN1ZgyHzX6GTecODNLcoNeoo2zTFKjZdGow kiZLCSG0Af9/RLRzQ3HfnBkkaTlUoTNunfPd7LYEdVk1CznXeFqkmVReFpkGKNmhRvh8 vdS0waLYozI7z9qx7x8YXF1BW6xUXkKFB3IV36FtE7HocqA7R3eagPyxaR2ZYxZZeITT XkdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=eyFXYw29tyYHnh7jUZGsXGdVkCfkSlUBmlV0J/bqh7E=; b=PXAabRdPGA045e/KLUIq7ayG0VpmbN6cbnGjokRddHfwsk1UKvQfMuokMxpeRrTVSN 2wV2FzplifwQp6dwbfYydnR31ahZvjMc2Ggei3V+jCBNFFqHp2/iExhcoUavijWVDgKw CdVwVs1esAoXJKIOwIISZ3mQQdR4n3BzVnuzWaxKMfgAcICDUOaPimVUVkbV5v2QNdeM Crh7Z8Cao3D/4bb+j8OdoxVRai4PF5ZS/r+WUEEbEMGcrLG0DGI1bC7a7uDpR5480Vzs EWmdEpFr+a5sU4bnvKNiVGCsA5wFzpuJNdZ4KLVK3aRRCJ7qM6OxpJwj5x83We11gAuH wV1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l29c14kS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a17090a65cb00b0024e184e5a53si5173157pjs.117.2023.05.30.05.45.51; Tue, 30 May 2023 05:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l29c14kS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231939AbjE3McD (ORCPT + 99 others); Tue, 30 May 2023 08:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbjE3Mbd (ORCPT ); Tue, 30 May 2023 08:31:33 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 277CA10A for ; Tue, 30 May 2023 05:31:12 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f3b4ed6fdeso4616556e87.3 for ; Tue, 30 May 2023 05:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685449849; x=1688041849; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=eyFXYw29tyYHnh7jUZGsXGdVkCfkSlUBmlV0J/bqh7E=; b=l29c14kS+E/k9kDpvUSsaoSoMSoOGaa7uEtNOCc+pvtVMZilXyTwYxL5NTdY6zWZGD a3++h1FVa8I4pmXyD5vJ/F70mJDQod7U1OafHsF3nDYxXUDEyQ4fTGUVhcsmc4VDti+p kHi14Enek42nmcHLBjqtIB//pkcSBxOq6mxj+Z9z+xi+UxpPucYbZ7NndkqKhkuCvWUr 60u1xBd81TW/eaugYEDzz7Hb1lIWXCgaoSGzufyP0B9Bkol8NRq6hGzaWNCuHIo5u3p4 ct1QRaR6STzNw/IU2XwUghEQ/FWOI0rxrS1GGqNSGwpwLXnpcdTc8tkDenE5kk1KsMKx xZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685449849; x=1688041849; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eyFXYw29tyYHnh7jUZGsXGdVkCfkSlUBmlV0J/bqh7E=; b=MC3UkYspxTlIa7RmDhVCa9Y3Ca/Md2Cs8VOIuGi8oAeCBHTnXqV0cZK0wfyjX8g1iJ dj8+yZncElIf6lqNkJ2UzWqL42oJ5NAD0YJb0AOr0P09uAKjD74PIayG0kcz7QhckR2e /tecrTArRx5OZaWBX+wRCglpmfju4RPzpKmZe4HVDUeiEoXO59AaOu4n8A5NBNmyrrXp a6yABaaBZRiD+CLt2yxGxJ0Y6l4zTBLLI10THHwhaaet1YxLr2Ejh5+MwSyKL+h4f3Wr HbQhb/vTm0il6Jvy+nDX8upINxM+OBRzwprtOC7s6cn/xclhwaiJi31bcMQrifd/OQRD rdfg== X-Gm-Message-State: AC+VfDzk7gApOMxEXaTwPGLex/2jYxGq5nuk+cq0fXsn/WDRqnAZWNcA 6JbDei5q5R2FTncwPtwvl5iYHQ== X-Received: by 2002:a2e:740e:0:b0:2ae:df5a:9637 with SMTP id p14-20020a2e740e000000b002aedf5a9637mr674229ljc.21.1685449848871; Tue, 30 May 2023 05:30:48 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id u18-20020a2e91d2000000b002a8b8baf542sm2854814ljg.126.2023.05.30.05.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 05:30:48 -0700 (PDT) From: Konrad Dybcio Date: Tue, 30 May 2023 14:30:41 +0200 Subject: [PATCH v4 07/17] media: venus: core: Assign registers based on VPU version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230228-topic-venus-v4-7-feebb2f6e9b8@linaro.org> References: <20230228-topic-venus-v4-0-feebb2f6e9b8@linaro.org> In-Reply-To: <20230228-topic-venus-v4-0-feebb2f6e9b8@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal , Bryan O'Donoghue , Mansur Alisha Shaik , Jonathan Marek , Hans Verkuil , Dikshita Agarwal Cc: Mauro Carvalho Chehab , Stanimir Varbanov , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten , Konrad Dybcio , Vikash Garodia X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685449837; l=911; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=jLkMwNqqG57kt4LLfCZOGle80CsutpLNKoM94v0Cd64=; b=ZadOsG66UgcLTo3X0cHb8UNZN5x0jCBfFaACQBzQpgsBcyGqvCeZtjHcxSxETIaI+Lhv5p3CH vQu9zy0kwbxBgxO1KQD0iLji/JjndvQ/N3nj87i+3d3AMHD4I1T6NlN X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current assumption of IS_V6 is overgeneralized. Adjust the logic to take the VPU hardware version into account. Signed-off-by: Konrad Dybcio --- drivers/media/platform/qcom/venus/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 01671dd23888..69c77b2137cc 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -246,7 +246,7 @@ static int venus_enumerate_codecs(struct venus_core *core, u32 type) static void venus_assign_register_offsets(struct venus_core *core) { - if (IS_V6(core)) { + if (IS_IRIS2(core) || IS_IRIS2_1(core)) { core->vbif_base = core->base + VBIF_BASE; core->cpu_base = core->base + CPU_BASE_V6; core->cpu_cs_base = core->base + CPU_CS_BASE_V6; -- 2.40.1