Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp985808rwr; Fri, 5 May 2023 07:40:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ67rH3PoYIxC8a8tmRLAzgTPePYcj0TMBccAvAl9kmjPkKZsem/AyCEYUrJrR50sPsr13Kv X-Received: by 2002:a17:90a:1bcd:b0:23d:bbcb:c97f with SMTP id r13-20020a17090a1bcd00b0023dbbcbc97fmr1730362pjr.1.1683297627743; Fri, 05 May 2023 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297627; cv=none; d=google.com; s=arc-20160816; b=cg6GO+sSM/ga8UncNgHaFYQl4bkt5qa2Vj4/+vXe85qgQJAKEFXLzLaoKzwIRqvody XpTe97nmzQ+CXuCv2juq+ofZO9rZL0+/GPwdEGEWxyhi1eXr6BU7qgMfIn1u0jrhZDtH aI6Ndznwsnhg5zvTLtyh3+U5K040K4C7e98u0iBfmgV2xwu2/8FaCKOz8JP5gSLQjUd1 QE2bkaAxEqFYMkbZ5jVUnMd+Pfh50prm5/Th9cIeCRB84LVhyk5DVpQjc6AMjgKJh8LN MCoX9vjVBrwFokMD1rx+jh40RqmIYnz0ZQmdWnixk+BNhS47naWV4MfbOuegBLLKtGrJ /4Rw== 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=YNlyM89W/zkSuXFFTAN8cbCHDZKQiuPuQUEG7gnXKBg=; b=Ws+G2igWP8ZcCgFwm1JMDTDB0La60pK+ml9CKQpRu/g1OfYdCePTCFHHVboJxLWuS/ WQi3S6o+YiaXU9Yiq92aXcGFefAackKf3bThLV8Bc8CXTfD8yiZKq8K2t7RP5xTUa5fc 0E9iy3dMwMhPRrY/YLRvhhumUmaOshoUUsvCod5mipnVhXhkpShG3dgkRuMXHTh3N+Jx nDsSLfP5sfQn5oZp3osktoSyIM9H9DayVvMzoFUM4UHIn8fx/tzQ87F8uDTxneOAoPIP N4AGkZ/HPob1zqaVegQy3i6usoePQSxvbYMOtC/3Ch0E34TKfH+XcL4C4GVnDFRyVDtq M2Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=V54II73N; 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 b3-20020a17090a990300b00246799bf0c2si18185179pjp.187.2023.05.05.07.40.15; Fri, 05 May 2023 07:40:27 -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=V54II73N; 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 S232654AbjEENgx (ORCPT + 99 others); Fri, 5 May 2023 09:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjEENgw (ORCPT ); Fri, 5 May 2023 09:36:52 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7CD7ECF; Fri, 5 May 2023 06:36:51 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 345BRDuS021002; Fri, 5 May 2023 13:36:22 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=YNlyM89W/zkSuXFFTAN8cbCHDZKQiuPuQUEG7gnXKBg=; b=V54II73NEvA551aKh8JsU3VFRo+WPQn8LSPz+wIoi3AsxbJGQaaOS/e7YifuFd5FcsIl c1vzWa6xtbUsScfPXVRYhQTd2g4PTefL/CsoHIJuh4/4U/zkdQbnA1u9WXk/5uCvZ2SC UwX+MDEi9WBAwrdSrI1qiB3LbmgDKQGMZJqo3/Yu6nXbl1xPnJkLZQ+v+4TcTgtjYj9j PNf5PsEhkLOWNHChyrqegBLggZcd9gPwghlVSDKCAksfSqJaJ59l4tx1gshJN1HiAulu a3uDDINACHTwNi+KikYQbQzWwPJfhaM7Sxsse82KQmguEpgUiaDQgVOYNtwE/0/Uq7Av 6Q== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qcwdegn27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 May 2023 13:36:22 +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 345DaLOZ025555 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 May 2023 13:36:21 GMT Received: from [10.216.37.178] (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; Fri, 5 May 2023 06:36:16 -0700 Message-ID: Date: Fri, 5 May 2023 19:06:13 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 11/18] media: venus: hfi_venus: Fix version check in venus_cpu_and_video_core_idle() 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-v2-0-d95d14949c79@linaro.org> <20230228-topic-venus-v2-11-d95d14949c79@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v2-11-d95d14949c79@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed 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-ORIG-GUID: oQqwVdrEoc-NLzlwahRGaG4wNmw0sK5W X-Proofpoint-GUID: oQqwVdrEoc-NLzlwahRGaG4wNmw0sK5W X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-05_20,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 mlxlogscore=999 malwarescore=0 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 phishscore=0 bulkscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305050111 X-Spam-Status: No, score=-6.4 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/4/2023 1:31 PM, Konrad Dybcio wrote: > IS_V6() should have instead checked for specific VPU versions. Fix it. This is again not a fix. The patch just adds a video hardware AR50_LITE, which is not supported on existing driver yet. With existing code, IS_V6 covers the video hardwares which are enabled by the driver. -Vikash > > Fixes: e396e75fc254 ("media: venus: hfi: Read WRAPPER_TZ_CPU_STATUS_V6 on 6xx") > Signed-off-by: Konrad Dybcio > --- > 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 6d5906fab800..82aa7deeafa1 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -1537,7 +1537,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_AR50_LITE(hdev->core) || 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); >