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 2F8A3C7EE30 for ; Tue, 28 Feb 2023 15:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjB1Pu5 (ORCPT ); Tue, 28 Feb 2023 10:50:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjB1Pux (ORCPT ); Tue, 28 Feb 2023 10:50:53 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE29F32523 for ; Tue, 28 Feb 2023 07:50:46 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id g3so1380407wri.6 for ; Tue, 28 Feb 2023 07:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677599445; 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=uP+9At6GRqRbV5g3WePvbaYZr3DR0X3+cVJk1OqsfkU=; b=TCxUrd/8wEEghTc4H6dMhsbfLyjeuKs5LSuGK3uhWTZC1DHXHKLrLGZABVNK0HczGQ hDdQPbnllfrd27TvZuUTmxTPUchSQgLn+XY20BMjtB636bBiHZ3u7txzQsauQUrmV4vw iKbYFc5G2w9TTB/7a3aHLsd4DMfIUma7Ih1KY57aCl6MOVQtPlixgRV9EBwfn6nedxwH Bp4AnFLoo20TP7ahrtw2Lu+CSspoo+jYHi8sSIJ4sAtLunn/+Ge6kZbGNMgtPFmqgtdf BdU1c7C6NMOjWkmXH5swz6wfAnZAIUzmlyZvf6A0wBpMZV9jCI2C535UYf0TtGBTOZeQ 34zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677599445; 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=uP+9At6GRqRbV5g3WePvbaYZr3DR0X3+cVJk1OqsfkU=; b=msqk+fgWo7l8SxAP4HIj4bB8pPerPX8rq9VU3iy5cbRMlPyAO/APtGihU7TCvSSUy2 h/T4JDMWF5CXigYZ7WB11hwgA3Plr3nOeRlvhgBXozGUruASX4GIdhW/ZqAKgit2cbhW biw3T0guHssZJ8Xhomrgp1Ao8AIDSKAx5nSUxS+xbg6YRr0DDfxc7PsRAdFksRJbkM3k 2y9aAsRc5cBRPl3W72eSMjM4I+3DbY49Hd9aIjT2m6DCihKqVQ6RCctpnNLuXzf1Vzcd 1W1B+A4QQnXLYYKp8rf1ESpQlbslqkqlQPwQXaLMY6REjoRYmrBIKsaGO6SP36CeJcZz yl7w== X-Gm-Message-State: AO0yUKX2T/g2jxW6I0kR2O86TRuHh++5uw4D7+MPMk1hyfhb6PSPyxTd QBC1Hs02gXJ0VSMTQGZfR03oBQ== X-Google-Smtp-Source: AK7set88A2avuov2X0L8NoZ6Yip/SKWznsJzO+pwK41MFJy/SKhO7qb2+lZmlP61JyFfi5b6SE9DnA== X-Received: by 2002:a05:6000:789:b0:2c5:3fce:423b with SMTP id bu9-20020a056000078900b002c53fce423bmr2453124wrb.4.1677599445445; Tue, 28 Feb 2023 07:50:45 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id e9-20020a5d5309000000b002c70d269b4esm10033439wrv.91.2023.02.28.07.50.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 07:50:45 -0800 (PST) Message-ID: <4e0f94cd-c076-4fda-f2c9-19294664a7e5@linaro.org> Date: Tue, 28 Feb 2023 15:50:44 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 14/18] media: venus: vdec: Fix version check in vdec_set_work_route() Content-Language: en-US To: Konrad Dybcio , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal , Dikshita Agarwal , Mansur Alisha Shaik , Jonathan Marek Cc: Mauro Carvalho Chehab , Stanimir Varbanov , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Vikash Garodia References: <20230228-topic-venus-v1-0-58c2c88384e9@linaro.org> <20230228-topic-venus-v1-14-58c2c88384e9@linaro.org> From: Bryan O'Donoghue In-Reply-To: <20230228-topic-venus-v1-14-58c2c88384e9@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/2023 15:24, Konrad Dybcio wrote: > This is not so much V6-dependent as it's IRIS(1|2|2_1). Fix it. > > Fixes: 6483a8cbea54 ("media: venus: vdec: set work route to fw") > 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 4ceaba37e2e5..f55d6cce163c 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -688,7 +688,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))) > return 0; > > wr.video_work_route = inst->core->res->num_vpp_pipes; > Assuming you make it possible and explicit to bring in the macros's that enable the cherry-picking. Reviewed-by: Bryan O'Donoghue