Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp458773rwd; Thu, 1 Jun 2023 02:39:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WxGS+PCnGsCnA1qj8g6MuA+SAEY8QNfF7Ke8CCfAUdWE8pTcrd+WL3PgP4kLss/5bi2dU X-Received: by 2002:a05:6808:1525:b0:398:850:6206 with SMTP id u37-20020a056808152500b0039808506206mr7755404oiw.27.1685612390808; Thu, 01 Jun 2023 02:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685612390; cv=none; d=google.com; s=arc-20160816; b=O3Jesc9E63wbRKkhxU1rEZEH93nYYD8ApN4RXGpyf4jE+C8zu5B2ToYh2WY5KXVfC9 oaipH2s2QXFfdeORIDhjpF/7BXKtVgi20g2a1tZn/MsyVcNXfwLts+F5B7PCzqd4nMxf WEdUeyCx/cdVojXLbRmFUm0/obV5fVIZd71NIj5HqjrIflHxdsoe+kRGnUQE8ldBDSfx 9OKBv7d7uh3WawjHm9cKsgwXg6F8EG4GzXA4jNgzH4nCYK5QC99t6Jp1j3QAxAgBQ7Ks WvNIuGGp/D2qM+8mSmppjWT11y/QTcHtb/iSEXZOm6lZlNYwkqd2DZlEVHBADQvqJ9Hh IXLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eebjh+nioO3YAowt30gKvJXNhssHgW/qtipH0mEvw0w=; b=K8+HmMm+RY1k7IxoaQ039Q1BWdz0q+j7pfDTfFSmsDeKW8/xMNiwHgjEpRtZItfiCG t8t4fT8c/viyf6CRZl17JZfiz4IZSyVkaga4Hy5hXkt94XNAyr5z5KeUPGYYf9dIyIId 5JWsjeEf0sMg7GxPvNF5MwCfPIhoy+OW1n/JmVgVx6QbTNVQGNMMleRd8p+lA4LixUfk SaE1i+iir4jqCm8j/Lq5B/LLOTVAIszMGMivs4oI9vbPhB/cDByTIxWRLl88uRt8dCTf 5fisPwsOmGhtkZk1bM+ECWg561T/U1B0hUITRDycwZ24DisNdocvHCVB9smEPzchRtio dPvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JXFY+arP; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a17090332c900b001ac59bc1c20si1919741plr.47.2023.06.01.02.39.36; Thu, 01 Jun 2023 02:39:50 -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=@quicinc.com header.s=qcppdkim1 header.b=JXFY+arP; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbjFAJL4 (ORCPT + 99 others); Thu, 1 Jun 2023 05:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232082AbjFAJLx (ORCPT ); Thu, 1 Jun 2023 05:11:53 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8843DB3; Thu, 1 Jun 2023 02:11:49 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 351842qu000914; Thu, 1 Jun 2023 09:11:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=eebjh+nioO3YAowt30gKvJXNhssHgW/qtipH0mEvw0w=; b=JXFY+arPae2jjdz1/BdMsKrl6AlDgr49Atdh24tM+jZkJmWJ0VS1yeY1mexsGIwxTmEJ glUDLJZrxZAUm0iPo7V/nP6d217kwEIVY578DPFOsqm3FkmXcwahe5Xf0i/wxlDk3z/W 8wxK0gdRZ8hF2moJDDw2fvU75ocTF4vrzoKTP5hOc68tfSZVn9hQeX8cE5rWocS8Gu5A MKVGv+tAQfmeoxRkUU+kGJ/vLdnmOz0XBKSP3zre3QZmX3Gtec92IDw+zeEHN9zAS359 +aWnNVAcLXlxWemzn3lXuAVp/3UpsXuhdFw5COY5JY4AGdELJAxc0AqEH468N+ahBtMW Aw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx81xa4ky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 09:11:20 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3519BJnN026151 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 09:11:19 GMT Received: from [10.216.48.115] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 1 Jun 2023 02:11:14 -0700 Message-ID: Date: Thu, 1 Jun 2023 14:41:10 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4 07/17] media: venus: core: Assign registers based on VPU version Content-Language: en-US To: Konrad Dybcio , Stanimir Varbanov , 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 , , , , "Marijn Suijten" References: <20230228-topic-venus-v4-0-feebb2f6e9b8@linaro.org> <20230228-topic-venus-v4-7-feebb2f6e9b8@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v4-7-feebb2f6e9b8@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: VeoofaC6xhFudLbtI2FG2zHEXY8aaLE8 X-Proofpoint-ORIG-GUID: VeoofaC6xhFudLbtI2FG2zHEXY8aaLE8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-01_06,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 bulkscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306010082 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 5/30/2023 6:00 PM, Konrad Dybcio wrote: > The current assumption of IS_V6 is overgeneralized. Adjust the logic > to take the VPU hardware version into account. > > Signed-off-by: Konrad Dybcio Reviewed-by: Vikash Garodia > --- > 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; >