Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp447257rwd; Thu, 1 Jun 2023 02:28:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Rc6Awx1NdTszC06ogVGy+CXJ6Gq1XJxoRvmNi/OWYYxdaynIafGFRTlb+7s3p3yD06NFN X-Received: by 2002:a05:6a21:3944:b0:110:2064:edc with SMTP id ac4-20020a056a21394400b0011020640edcmr7901676pzc.13.1685611685051; Thu, 01 Jun 2023 02:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685611685; cv=none; d=google.com; s=arc-20160816; b=U3TaE99WjP0AwnEkhDV2svEX4EZPh2eQaT6cpu0DJTxRjneJ+AOyGrEUh6FFmwUtAm zsKvTDaQA8BfgffXmViOTKBfENFeyQMhpsVM95/fjkNp+0W5IjKTY1PzjoWTcI58vCJN JfnysKFjpfYNzQehFl27N6OTgFFKo/uB6FUk6KiSMWVixGnisnG6lxWSD2PCc9SH4Hv+ 78rv8PaVpklcn4H13n31h2ZryReHWOy8PvjTeHLCqQ0bbwh1n/lI5OSje9KxdEzLf1sy ujx8NxnpkqJ/dDiEV7xoRy8+4SLcvPlDgDwk+HiQB3B0onbA2/TS9az1snME03VPfDUt 8IDw== 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=eh3fY8dTLSFhqGcth5A1jnDkdQi3s/rGooOGwAHfdzg=; b=LWiL4t7BGCYcz3pDRt642ZGmegvP1dZlB4vRwlAyo1LTumd2nsLm0eB/lbpDll5f0L bN+r/skkOU6hbTKCgn/efTgPTCRc18o8MeClFpcEW1TJaZcUhU+wh2k+JUFyA0vM6Xzf mpNGy9wmVeZ7YnCuXCf8woyT2c74X9zPTgIoBWP5wbVxtvglRKT86ZXldpuHzsTZx5yc FXDaRWzwIr3r+4E7vvBnEec5f1JmokIo4YD1MfC+kikmKTw3O5LwMjAMsfnLvkL8J1x5 kJeGkBTkH4ir4itqjZ8/+f9vmqfy5OLiaj9fQzWW34z81qLAlrrjUqVT7hSYHUWQwgiS qdbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="MAa7pC/8"; 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 s7-20020a637707000000b0053fc68bc1b6si2585229pgc.42.2023.06.01.02.27.51; Thu, 01 Jun 2023 02:28:05 -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="MAa7pC/8"; 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 S232231AbjFAJRt (ORCPT + 99 others); Thu, 1 Jun 2023 05:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231952AbjFAJRr (ORCPT ); Thu, 1 Jun 2023 05:17:47 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB619D; Thu, 1 Jun 2023 02:17:46 -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 35157fmK009494; Thu, 1 Jun 2023 09:17:18 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=eh3fY8dTLSFhqGcth5A1jnDkdQi3s/rGooOGwAHfdzg=; b=MAa7pC/8t6GIjNINrd043rqTDDgGNWSEKv7u552QqswIVVJFG6DZEiwig12UyWBheHYo CvvC6vWMU8JrbQbJA8psfNj9WgUm7C2zlqEfAUaYbeAjEckcThQUon/+/9FU802NN/yn V7wgrotoO4L8I42xXaa2I6uE0w5Qz0siDIpeimF0cHHVH3SS9LkoMvnXblGpBlGxIqyk yaHGCtAmmBDInJzOXg6dQBiTwvtzafShdb2d/simb7PtLEeUABb1RDohK0hqm8xUIbq0 ed5DjD/zQlJIfJHsqHjwCameWQ64YrJbRlLW1SqDDPH4Yc2Wr+2id1PfOV/cl0K+m7Eu 3w== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx81xa59t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 09:17:18 +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 3519HHRL024888 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 09:17:17 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:12 -0700 Message-ID: <6fada572-26ab-b85a-06da-f0ab0f607aa7@quicinc.com> Date: Thu, 1 Jun 2023 14:47:10 +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 14/17] media: venus: vdec: Sanitize vdec_set_work_route() 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-14-feebb2f6e9b8@linaro.org> From: Vikash Garodia In-Reply-To: <20230228-topic-venus-v4-14-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: BjCQPi5EFPp3jEv2TjQNWcQ_DYKw-NMU X-Proofpoint-ORIG-GUID: BjCQPi5EFPp3jEv2TjQNWcQ_DYKw-NMU 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: Bryan O'Donoghue > Signed-off-by: Konrad Dybcio Reviewed-by: Vikash Garodia > --- > drivers/media/platform/qcom/venus/vdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 12a2e99508f5..063a8b0d357b 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -727,7 +727,7 @@ static int vdec_set_work_route(struct venus_inst *inst) > u32 ptype = HFI_PROPERTY_PARAM_WORK_ROUTE; > struct hfi_video_work_route wr; > > - if (!IS_V6(inst->core)) > + if (!(IS_IRIS2(inst->core) || IS_IRIS2_1(inst->core))) > return 0; > > wr.video_work_route = inst->core->res->num_vpp_pipes; >