Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF649C6FD1A for ; Tue, 7 Mar 2023 06:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjCGGOg (ORCPT ); Tue, 7 Mar 2023 01:14:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbjCGGOd (ORCPT ); Tue, 7 Mar 2023 01:14:33 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E906334F74; Mon, 6 Mar 2023 22:14:32 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3276ESYa002852; Tue, 7 Mar 2023 06:14:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=XPtOjJJVgPI+EeU8uR7QYRTzFL+7AyV/NbnvxMaU520=; b=eYFgPaz2Vr0qUDDorV84LJQTOpw80Bgkvet6H8ZRo4HmzJJyxP6cXLbio9AnBk+t2U70 0xHXJFIZalaMDROtEoKxGLVBD92HUy+ACityWGwmbXG2vfE3+6HVWvi2oLPCLq4q+7Wj k/vQ6r7vO9+VAX2SQZW7UEGocBX7/D2LVhCskWhi4tA8Bsrn2NTZnWHhMoFrUYtBpm/Q vMPcP5pngWXBn8sJxQRl5wsf5hi0atj3bQjNOY/f7RgD2UnTsxmlpfk2cYMOTxtph4SQ uDQXK0ipfGhQFFxX8/IyexrS0v6t+rU05mZ4jg0MoXQca8MbWCkPV57SxNRo1DgXPgi3 ug== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p5nkw9b0g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Mar 2023 06:14:27 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3276ERqY027145 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Mar 2023 06:14:27 GMT Received: from [10.50.8.76] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 6 Mar 2023 22:14:22 -0800 Message-ID: <7b6de23f-bccd-6461-a7f4-8299fb9617d4@quicinc.com> Date: Tue, 7 Mar 2023 11:44:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 09/18] media: venus: hfi_venus: Fix version checks in venus_isr() Content-Language: en-US From: Dikshita Agarwal To: Konrad Dybcio , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , "Mauro Carvalho Chehab" , Bryan O'Donoghue , Jonathan Marek CC: Mauro Carvalho Chehab , Stanimir Varbanov , , , References: <20230228-topic-venus-v1-0-58c2c88384e9@linaro.org> <20230228-topic-venus-v1-9-58c2c88384e9@linaro.org> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6Pyinx6AtYFINCMpZw1LzXYgQ6kgygaZ X-Proofpoint-ORIG-GUID: 6Pyinx6AtYFINCMpZw1LzXYgQ6kgygaZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-06_14,2023-03-06_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 adultscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 mlxscore=0 phishscore=0 impostorscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303070056 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/7/2023 11:42 AM, Dikshita Agarwal wrote: > > On 2/28/2023 8:54 PM, Konrad Dybcio wrote: >> IS_V6 was used there IS_IRIS2(_1) should have been and the !IS_V6 >> condition was only correct by luck and for now. Replace them both >> with VPU version checks. >> >> Fixes: 24fcc0522d87 ("media: venus: hfi: Add 6xx interrupt support") >> Signed-off-by: Konrad Dybcio >> --- >>   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 0d137e070407..ecfbac36de20 100644 >> --- a/drivers/media/platform/qcom/venus/hfi_venus.c >> +++ b/drivers/media/platform/qcom/venus/hfi_venus.c >> @@ -1136,7 +1136,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) >> @@ -1148,7 +1148,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_AR50_LITE(core) || IS_IRIS2(core) || IS_IRIS2_1(core))) >>           writel(status, wrapper_base + WRAPPER_INTR_CLEAR); >>         return IRQ_WAKE_THREAD; this change looks good to me , once base register values are fixed in other patch. reviewed-by: Dikshita Agarwal