Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp457094rwd; Thu, 1 Jun 2023 02:38:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fHi0Ol11sgnO+Y06epbBTAQQJWwTg6R30+unurDPxPeB2h8EghoclnwZ8ORfszX9a97v0 X-Received: by 2002:a17:902:e5c9:b0:1ad:bccc:af77 with SMTP id u9-20020a170902e5c900b001adbcccaf77mr1397785plf.18.1685612288104; Thu, 01 Jun 2023 02:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685612288; cv=none; d=google.com; s=arc-20160816; b=FNn74E4qV/o9wRvZ7RnCKZnE6HfyxX9P3USlz+IEAD3/O52FMc8dVmKhAiOToJl6P4 ZL6Oq2VJrfTH0uCB8PmRjPoNyPz+3tzPM3H0R/UkxmfqcwFtWJ/cbTEwoH+8x73zIQp/ UjaSwuQkL8teZssAfihzGXysPfFioiIf/UqTN2o5MdLIhmKgH2ZrAVDZPx4Yv4SSyKy4 MWa11U4n0vQ8InQu48f3jut+5BmOH6sbVTdBhNOCGTKkhzqY3bEamsQt6nlSeDZIGgUx Y+I2PxtseTBLj6WdED6oXIwRyYKdBjDoIq3HThyjjxjPKzSxXX0q9V7wWCrI6QiSo5cG kl/w== 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=ZflnZWUugyCTyeCS1MGFaHT/e+4I3L2qxMYyY1Tid3o=; b=NQNK/x+tsJyAlMDCi7lzCKGB7p2q1CuTBWd0dHP5+bPRoK0pyF3NcDVnLU3s92s1CK LQZBTcF2Zu4Oj00kK4p84090M1WVim6imI2DxyRU6p4fJW1mJFNz2wDVKGnbLLotPYqU 7OjiuFYYR3Q4a7wtj11TdDece+jGhfinwTjeQKMlBzmyXPEATPdcBRXP4jTHdpUJI9KW PE6fhcMaF3pSc8Yq7zRiNBNpVoMihnNgaFCLERudKzT/Z2IL/EM8Gea1Q2QIsJWk3cut FmJGo+jwhxV7AOsz44P0rf5t0RbcwcBJc+KAfppaaCdJGsYjPzDOtAJx4MR8VRn++MFg nyTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UXhfOb0L; 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 jc2-20020a17090325c200b001a6dfb34f89si1391893plb.386.2023.06.01.02.37.54; Thu, 01 Jun 2023 02:38:08 -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=UXhfOb0L; 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 S232558AbjFAJSg (ORCPT + 99 others); Thu, 1 Jun 2023 05:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbjFAJSd (ORCPT ); Thu, 1 Jun 2023 05:18:33 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CCCE9D; Thu, 1 Jun 2023 02:18:31 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3517eDl6030180; Thu, 1 Jun 2023 09:18:00 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=ZflnZWUugyCTyeCS1MGFaHT/e+4I3L2qxMYyY1Tid3o=; b=UXhfOb0LquqOM8mbQha0pJUQdujSKQGX5J3QXRFuuhxZb+JluSaPx6w2hnJ6EQSPcUtD 4GcFKQgYZf+aj4KJP5PsJ7MdoYtVBIBmSsfCZ+Eu5dfYWoybGrItMbBNzn08M7rLV1pG NgJ5gUsVXRU0zy6WVPZbYgqYxCDUWPj/I/f9J2IEJcEqchKBHUk0ovsfpfZXWqPAQv+x O7srlJ1GOxamc0VlPtvH3iSwM8XeT0Kes1kYx3xtyNLVQvIWEFzcBBUO/mHqcKmfwiJT 7MVG1N68eiB9smcFF9GGITp3P9Y5wvoIRi0pnRphePGqREU316kYr8bou5Vcz6dVgA94 0A== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qxbt8hh4f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 09:18:00 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3519HxFX010792 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 09:17:59 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:17:54 -0700 Message-ID: <07c697e7-a33b-7e3e-4ef8-9e1453aa1b05@quicinc.com> Date: Thu, 1 Jun 2023 14:47:51 +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 17/17] media: venus: hfi_venus: Restrict writing SCIACMDARG3 to Venus V1/V2 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-17-feebb2f6e9b8@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v4-17-feebb2f6e9b8@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: RI3Ry9vssXIq0NoCAWht4VmvAvlODqhD X-Proofpoint-ORIG-GUID: RI3Ry9vssXIq0NoCAWht4VmvAvlODqhD 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 impostorscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 adultscore=0 clxscore=1015 spamscore=0 malwarescore=0 phishscore=0 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: > This write was last present on msm-3.10, which means before HFI3XX > platforms were introduced. Guard it with an appropriate if condition. > > Does not seem to have any adverse effects on at least SM8250. > > Signed-off-by: Konrad Dybcio Reviewed-by: Vikash Garodia > --- > drivers/media/platform/qcom/venus/hfi_venus.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c > index 82854553f99e..19fc6575a489 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -462,7 +462,8 @@ static int venus_boot_core(struct venus_hfi_device *hdev) > } > > writel(mask_val, wrapper_base + WRAPPER_INTR_MASK); > - writel(1, cpu_cs_base + CPU_CS_SCIACMDARG3); > + if (IS_V1(hdev->core)) > + writel(1, cpu_cs_base + CPU_CS_SCIACMDARG3); > > writel(BIT(VIDC_CTRL_INIT_CTRL_SHIFT), cpu_cs_base + VIDC_CTRL_INIT); > while (!ctrl_status && count < max_tries) { >