Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1339827rwr; Fri, 5 May 2023 12:31:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wpiSqOrkyScIDglmxyh93l+snq1h3OF4WQIWQeQ7CDcY7xvvGnx6GLq+TGGq7iZ0sn5Q0 X-Received: by 2002:a05:6a20:7d8d:b0:ed:1355:f88b with SMTP id v13-20020a056a207d8d00b000ed1355f88bmr3381160pzj.26.1683315117708; Fri, 05 May 2023 12:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683315117; cv=none; d=google.com; s=arc-20160816; b=g59Q1hlfUP19UAl/Bb+Di4WsBD1Thx5RqGaUBCplmu0qkbwoICAldeGmnBmlfRfmWY 4qtxVnx3ZrtnddERA/vG1slSLdThSYTcNm56rR5OHUANsXc69hjSynzgnxCwUAe/fJ13 dOHVRbEtwOoSCmbbkenfxYHA9hd0u/02HVj8YHc6Z92XU/wDsXKZ5B4aoiJxmNKjHLOr H4OdAxo5NUwFB9ZIUoLu1EAA95+JI+q8Q8wxJ6r1iGrFhfNJxrWkFN7i1jstKphb4/fQ eRNsmbIKYG7cH3dj4nLGK9Bvw7j15hhAe+xAqGljROmN0IWES0Wp0ZhaKC03YMkniS4G 5r4w== 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=wiVwRTZ+QB0butBciUvZ61eG+cEutYbIrZIhBCvhP3o=; b=IQR8cDistqSO47NHWwpQ+AVC13WlRgDU8v63QS18dbW9DTV43zZM50pTqO1cxwmYE+ b851ujg7+7pUr+b3LqJR93bKx4Hx7pYvzCB0/3wkgabLPFy73jj7jyTxXETJuie1RwRe DlqJKKg0l+sFZJan45rZxf3w11QttRzseJIoDVTls2dsZAoNPoqoJeVpv4rgCHmEDu4f z85bS3ELteYRQb6yqK1P0mdPlm9qiorskik5kr9CFN9njK7mcHTMBQTyBUeX5q1Om+A2 jUo+sAODlXp67SQ5PWPRdUFpkCC+co03Rlc+cEjUAvPdmQfSQ6YFQPyQ9mzXdbCb1S3M uXXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1zUZVp7; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a631a46000000b00528d0d8b7bbsi2455528pgm.595.2023.05.05.12.31.42; Fri, 05 May 2023 12:31:57 -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=@linaro.org header.s=google header.b=a1zUZVp7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233232AbjEETPw (ORCPT + 99 others); Fri, 5 May 2023 15:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233303AbjEETPt (ORCPT ); Fri, 5 May 2023 15:15:49 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65D98226BA for ; Fri, 5 May 2023 12:15:48 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4effb818c37so2499473e87.3 for ; Fri, 05 May 2023 12:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683314146; x=1685906146; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wiVwRTZ+QB0butBciUvZ61eG+cEutYbIrZIhBCvhP3o=; b=a1zUZVp7P+Bh2nA8KmCkZNONcnTB4MHeOE46Lo5mSrQI7toRazkTUA/yoQshat7VO+ VYhXS2FVhwq4dCXLY7FoPSN4NUQql0J8rOGYLunllmhQINLPecUim+rBM984BeTvyy8P D163wkf4ur+WUeZ+Ed8kkDv4Lv0BjdjLdxgkdLKdKyHgvl/KJjyDIU0gSKLJMd1nVcJO F8yRGaUESmmvlx6cJwB39T+UhQNqJo0NvkrGIllPrtwhYo1dV5HMd6guXUPAE8o+HnPU woDk8YjWyuQxMgG45Cgj+veypYdjUeVuW2unFsFLnIHhVSdF3ifPc9OKTosUsUAADO7B qQGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683314146; x=1685906146; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wiVwRTZ+QB0butBciUvZ61eG+cEutYbIrZIhBCvhP3o=; b=CJzIsaDgoUIbGsZjQK9JUrpnrHGp5lv8xRCipGjymbWEcuN8YhPWgcRKn7NVtQt5d1 i384fPd24DHThR3yRcP4/ZHz6EKUQN7jqGBBhzTCHVYkN5Z/LmNEoK4Q8CItEkVrREiE D7w6pJYF6BjjJuecgh6babEMiXpQogh5lr4LbM3FeOJ8tV673qPgMl0z8999c68hl1iS ZrRK/d2N5CgZmJLZkRp3hgLzgqrusX7HCyRIxKnAomjHbmf3RWHfTkxPrtz7m8J0PGY+ yCst8759OdHC5tFhZ2zqLnI7uNW+FFyggGBMmsqylVAZMB60vDSOEPRGnhQYgVOUzeFS nRyw== X-Gm-Message-State: AC+VfDymCNn+Tn/tUURajnhrRsPnTD4VyyzVryejCqbDVpx43hO2ZZX7 JJp3iXeT4KS7a/W7S+fVYvf+MA== X-Received: by 2002:ac2:47ea:0:b0:4e0:fe29:9313 with SMTP id b10-20020ac247ea000000b004e0fe299313mr715981lfp.15.1683314146638; Fri, 05 May 2023 12:15:46 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id x20-20020ac24894000000b004db0d26adb4sm383136lfc.182.2023.05.05.12.15.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 12:15:46 -0700 (PDT) Message-ID: <0cfbb9ed-1bb0-ea9e-9896-9d3896ae18ff@linaro.org> Date: Fri, 5 May 2023 21:15:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 15/18] media: venus: vdec: Fix version check in vdec_set_work_route() Content-Language: en-US To: Vikash Garodia , 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 , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten References: <20230228-topic-venus-v2-0-d95d14949c79@linaro.org> <20230228-topic-venus-v2-15-d95d14949c79@linaro.org> <2d1f85f2-42c5-1d88-7f0f-f464babfabbc@quicinc.com> From: Konrad Dybcio In-Reply-To: <2d1f85f2-42c5-1d88-7f0f-f464babfabbc@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,RCVD_IN_DNSWL_NONE, 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.05.2023 16:02, Vikash Garodia wrote: > > On 5/4/2023 1:31 PM, Konrad Dybcio wrote: >> This is not so much V6-dependent as it's IRIS(1|2|2_1). Fix it. > Again, why is it marked as fix ? It corrects the logic but does not manifest on currently supported hardware. I'll reword it and drop the fixes tag. >> >> Fixes: 6483a8cbea54 ("media: venus: vdec: set work route to fw") >> Reviewed-by: Bryan O'Donoghue >> Signed-off-by: Konrad Dybcio >> --- >>   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 51a53bf82bd3..33e3f7208b1a 100644 >> --- a/drivers/media/platform/qcom/venus/vdec.c >> +++ b/drivers/media/platform/qcom/venus/vdec.c >> @@ -701,7 +701,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_IRIS1(inst->core) || IS_IRIS2(inst->core) || IS_IRIS2_1(inst->core))) > > Not a good idea to add IRIS1 just for deciding work route and not at other places in driver. Add IRIS1 relevant > > code in other aspects as well, if the patch needs to handle anything w.r.t IRIS1. I'd say that correcting this condition is fair regardless. I can however delay this patch until IRIS1 enablement if you'd prefer that. Konrad > >>           return 0; >>         wr.video_work_route = inst->core->res->num_vpp_pipes; >>