Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp453175rwd; Thu, 1 Jun 2023 02:33:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7VEPXPNNDIpyV3WDtP2MOR1P0leNtXvSvHKDNBzR5nmMPA+7He/RBIhNR1wXsiRaj5HGgp X-Received: by 2002:a17:90b:1d07:b0:24d:e296:659b with SMTP id on7-20020a17090b1d0700b0024de296659bmr1304323pjb.22.1685612038915; Thu, 01 Jun 2023 02:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685612038; cv=none; d=google.com; s=arc-20160816; b=a77vg5UKNqGA7LYYccHLWdJ08Y49rU0G1tOzTs9eZCs0yNoda6l8YpELA36lQJwGOB GljAxtjePqhD8AX0iPqUSnCA4yzTIRIFYC/v0aYtlrJpkb+1xPPZ+gjPQMFEhT0Al8Fv gTfW+wLyRVR2y11P7piunJ2FkEUhof3F3ll0zofzzMWatCVtKtgGItDIhIsxjAYQlB8A n9TXs+vHO4NRL1e4kk8X0oHL5IV4Xdi+1Q4iWmO3vEgrgMAwYusAPDNC4AwOGTFYjTtq M/lUKPmr0dNVCMrNSOFVOgwtX97GJZhZYgEH7L/AWvcMq50PwWjmUqCvUqxcN9KDkOQP XA4w== 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=jFYHVPGS5VvLCqWYStVI+e3uJqG89SgiZlTcMid9CG8=; b=v8FhUtgYZylDOY0qPGtItA/ZEWCrb8YPDugziiOOcyrqDWA9uBExZFiiluK+4JvUml OmxptRV0LgJhNqfcy0v2mkYuTeuRZK+t62F0ULtI/do7hyb1n9cudxAqqAzIF+JDqs6n HL3Q7zCpSBVuKxno0s17LzYkO98mnmusb1kPx5ffa6+W1BR0m6C1zWff3N2d3oydgV/e 5zuSDhXZaJFKrDmhUDUyigBImHoOdnrcrkgSWu1I/GOjRgJaErMKUuPRwqXagQ7bxcwT KkMnCmPbJHK0+RLI3cjYPiAl+hbhyb3qPYhkg07ciqXMl69dc8h6YZRgExC806IaJpt7 0f/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aqOXDIrw; 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 gb13-20020a17090b060d00b0025677f1197asi859769pjb.12.2023.06.01.02.33.44; Thu, 01 Jun 2023 02:33:58 -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=aqOXDIrw; 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 S232488AbjFAJPG (ORCPT + 99 others); Thu, 1 Jun 2023 05:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232798AbjFAJPC (ORCPT ); Thu, 1 Jun 2023 05:15:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF75188; Thu, 1 Jun 2023 02:14:52 -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 3517be1x013673; Thu, 1 Jun 2023 09:14:23 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=jFYHVPGS5VvLCqWYStVI+e3uJqG89SgiZlTcMid9CG8=; b=aqOXDIrw+Knz8c7nzFVjc3uN817QIRkiyCyJOeFowrvTa4GZuY0YpBQAXdT745GPpFBb pDKJe7aMwGlUq3Au7hz6nLSQLnc2TPFuRtR6ixwfxEtzHXuwwiWaTsHjO9HfxGFj9MmJ RfSSR/1oOzlMH1kUfCcDyciOgKZ+JKvNTnd9EwqYr17w+63ivKlsh/IVkt91cBrvWf1o fqqvDLbebSlicSUEiFYz3OgP088xjMY+FDCm04sWmzJ9ZMLfSM6ByIcDcN9aHS5x5NAf zj3DddP/F07aTStKG2wWllp2PvKo9O6/vvqApkTbMK+bZW2UGhU31bneGBwjpCDLrcTD AA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx81xa4w2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 09:14:23 +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 3519EMjD031596 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 09:14:22 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:14:17 -0700 Message-ID: <2e013f2e-cf2b-94fa-16a5-1e9487a568e3@quicinc.com> Date: Thu, 1 Jun 2023 14:44:14 +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 09/17] media: venus: hfi_venus: Sanitize venus_isr() 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-9-feebb2f6e9b8@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v4-9-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: RtBB9SqLA_FdZJ9dczMg-Hv3Cm61n7cv X-Proofpoint-ORIG-GUID: RtBB9SqLA_FdZJ9dczMg-Hv3Cm61n7cv 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: > Replace the general IS_V6 checks with more specific VPU version checks. > > Reviewed-by: Dikshita Agarwal > Signed-off-by: Konrad Dybcio Reviewed-by: Vikash Garodia > --- > drivers/media/platform/qcom/venus/hfi_venus.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c > index 60252d05781e..5e4b97b0a4ae 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -1109,7 +1109,7 @@ static irqreturn_t venus_isr(struct venus_core *core) > wrapper_base = hdev->core->wrapper_base; > > status = readl(wrapper_base + WRAPPER_INTR_STATUS); > - if (IS_V6(core)) { > + if (IS_IRIS2(core) || IS_IRIS2_1(core)) { > if (status & WRAPPER_INTR_STATUS_A2H_MASK || > status & WRAPPER_INTR_STATUS_A2HWD_MASK_V6 || > status & CPU_CS_SCIACMDARG0_INIT_IDLE_MSG_MASK) > @@ -1121,7 +1121,7 @@ static irqreturn_t venus_isr(struct venus_core *core) > hdev->irq_status = status; > } > writel(1, cpu_cs_base + CPU_CS_A2HSOFTINTCLR); > - if (!IS_V6(core)) > + if (!(IS_IRIS2(core) || IS_IRIS2_1(core))) > writel(status, wrapper_base + WRAPPER_INTR_CLEAR); > > return IRQ_WAKE_THREAD; >