Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp448993rwd; Thu, 1 Jun 2023 02:30:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HXibw8p4spjDpHsBvyPrjIOe+EpwiDExa1tki6+FbABWHJxDE97YSkQZBbPfZWj7x4/M2 X-Received: by 2002:a05:6a21:100f:b0:10e:a8e6:35c5 with SMTP id nk15-20020a056a21100f00b0010ea8e635c5mr5017688pzb.59.1685611800182; Thu, 01 Jun 2023 02:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685611800; cv=none; d=google.com; s=arc-20160816; b=Zb8BRP2PBlV+h5x/K8KAhK2XYVhxBUMvGwLrE1JjR10E33zVEex8oXy8FQV7/B7wrc oZ/CdxZJ6f2k7gJHlHHvbSos5LozMuJECRt8GuSIQk2nm9t10LJ7tACBDci7JLeHvGJH Zi4RYl9TrSNbyMdNo9t9YB3KcVBwhBGoO/OQdnnhqlGqTYufF6sV7dF9zj2cqyD4UHU/ c0LWySMVFCRTGbQ5yh8YCEXcOwleN+wnbZH5beLt1YfT43xuu81Q+/+1ddik42lBVHh7 /98KduPFzU12t+g527wKW+Qymlk34zG5M696zDFuMEawpC8/93mZKF9JjjcE7N+cC5/p ke8g== 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=qwYM9ZOjHsnnIVkLvQ0gxOuhXbFzUQNaaXSZSZhq8Js=; b=e3pIRNtMC/sARR9bn908HDv06YxpeILvS+hN/5ZXRr6/8WjGBuTzprlUnil45nH42g mJYW2p5DjaTdbdaEbwAv3Gr48acDkeVAVD0NOSU/f3oetUuFWg4iLlDlpi9h9q/IHQWB +wfhzRFSG4eeiViOr/mpfXgD+Ngq2NT1HVz/Aac7Dh39LQs7wkXQFE6+ANnYaMK2WqTJ 0VWZxHh1Xu0Pe0StwF6HhFhBUdFl0GPruplwjk0lGtuguP1HTmwstUMrAvINgjRT0km3 RpQnL73T4WR9vWDNYWZ2Pdpya/ZePjOi7Xo393Sk356pEajLGOJ/Oq8m/wQxTh/IJXDd 8e8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QCHZeblN; 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 g1-20020a170902934100b001ae5e755a12si2377161plp.186.2023.06.01.02.29.46; Thu, 01 Jun 2023 02:30:00 -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=QCHZeblN; 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 S232434AbjFAJPl (ORCPT + 99 others); Thu, 1 Jun 2023 05:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232331AbjFAJPj (ORCPT ); Thu, 1 Jun 2023 05:15:39 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F7D12F; Thu, 1 Jun 2023 02:15:37 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3516or0h028005; Thu, 1 Jun 2023 09:15:09 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=qwYM9ZOjHsnnIVkLvQ0gxOuhXbFzUQNaaXSZSZhq8Js=; b=QCHZeblN/QvjXp7OkR4STnhBPqSu9XCokTTQOxfdj5IFMvQ5euh54JAtRCiyCOIZO+Mo yvL4ec6lfM2Yn4MLQyS4vgvqgXTN465Iayqf3n4MCLXpdXyE9YI5X5dGMkBvvwf/H8n3 N0KlZsOKST4U8pHLuBIu3x2s2WoRwBTr0WKrm5FQW1/IGHH611zF+k4Dsz2ZZ0wMc+T9 i9qZ/Np53WsIt8UAXpmRbVwP4taHPM6HPnxaNFYUeA4oTmcGeKhig4/F6HycTqEijbEe EYUCKW0S6vg8nbdv++HMn9Rt2Z6hDNQoTmmseFO4ofaotsM/+ZKkwzFq7hyjEVdnlbYm sw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qxnwv0b4c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 09:15:09 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3519F77O016108 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 09:15:07 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:15:02 -0700 Message-ID: <2b34bdf2-1748-f19f-b735-aae663ce1668@quicinc.com> Date: Thu, 1 Jun 2023 14:45:00 +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 10/17] media: venus: hfi_venus: Sanitize venus_cpu_and_video_core_idle() per-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-10-feebb2f6e9b8@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v4-10-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: d66y8MkOdLHzmpZ2KBl-OKid9ufzKARq X-Proofpoint-ORIG-GUID: d66y8MkOdLHzmpZ2KBl-OKid9ufzKARq 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 spamscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 suspectscore=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 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: > Replace the general IS_V6 checks with more specific VPU version checks. > > Signed-off-by: Konrad Dybcio Reviewed-by: Vikash Garodia > --- > drivers/media/platform/qcom/venus/hfi_venus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c > index 5e4b97b0a4ae..b5d7aab03bca 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -1516,7 +1516,7 @@ static bool venus_cpu_and_video_core_idle(struct venus_hfi_device *hdev) > void __iomem *cpu_cs_base = hdev->core->cpu_cs_base; > u32 ctrl_status, cpu_status; > > - if (IS_V6(hdev->core)) > + if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) > cpu_status = readl(wrapper_tz_base + WRAPPER_TZ_CPU_STATUS_V6); > else > cpu_status = readl(wrapper_base + WRAPPER_CPU_STATUS); >