Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1332496rwr; Fri, 5 May 2023 12:24:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dzV/7fhNiBCgGsVypNsnfybkxQpJ4OJi5vUUScqCsa+k+1Upg9xXL7WBmsQXwrqijVju/ X-Received: by 2002:a05:6a21:6705:b0:ee:e922:6747 with SMTP id wh5-20020a056a21670500b000eee9226747mr2721148pzb.56.1683314665048; Fri, 05 May 2023 12:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683314665; cv=none; d=google.com; s=arc-20160816; b=AOz386O6pW5xabczafkUgXWAfCt1/RBhrq/O2YMyn2bp5G0gqqfKxA8gYQPe/t9hQW 6vQhgtjBLhtkBx7gWgaUJhYs97DMfKOBvhVRwFnj2vVo3shoXkFE5XX2Ixvd3SMybXgx H4yOky6+iFmkFvirko1aIeL7I6R2vzG2Eohhc9/6awYMhKrhbdIGx+JF22JfMa4b5PLM xgw3QsUdv0DN69htkBm/3ChF3KpgCw61PwkcrG/xSF7qnjREY1W9ThqtBD6KKicLW1Vg V/+tEFuObZp4HwYMqPipRBrYgCicXAG8JcQqGMoYWMpU6xjaRwUt0Xbp+XSMzkmO2QjH wcGw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=xceCA2XEX2XYZr2wVtYbFEfoG8eDOlxoBa/XP0RVFQY=; b=dKTEeNlO0mzxqVKOVmr7uYwQWyNIya8vNhB47U1bbZWVzQxllW7rdPn0gDiPyRnVD1 d4haMzY8612AhQvJScV6V22NGVpN6HprniquEVHZRupoO4xavRZ1TcmxUa9m1r0G674b xb9EGOiyYMBsJiu2pCUL2Uhq16PbZSihclT5lq+heIts/gLXktCXPixbDJEekl0Utt5g TpamtPzzCYTPDK7hIc+zl3lrxkaFBfa8NFl+xfwzzktdWGgbF38/L+AlN+eXYlJMq1r5 j5GWoZu/5VwaKGa/Obb9vqKLljRq5f6sdk0aN6y+vEv7ohs/x11Gh3xj4gifpRs5VvUV 1Mog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UhPl2UMU; 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 l186-20020a6388c3000000b00528c2cf454asi672045pgd.666.2023.05.05.12.24.10; Fri, 05 May 2023 12:24:25 -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=UhPl2UMU; 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 S233424AbjEETMy (ORCPT + 99 others); Fri, 5 May 2023 15:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233570AbjEETMl (ORCPT ); Fri, 5 May 2023 15:12:41 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E29AD2273E for ; Fri, 5 May 2023 12:12:25 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f11d267d8bso2423607e87.2 for ; Fri, 05 May 2023 12:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683313944; x=1685905944; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=xceCA2XEX2XYZr2wVtYbFEfoG8eDOlxoBa/XP0RVFQY=; b=UhPl2UMUAS7synMssm2Xa7YoI0m0FvxnYT3MEZAmEV9W/N3OoIQL2HogKqaceAiUut 46eNYLbhA44jQmzgucA6ZDSzzS3HAIiOrLwVa1loVhY+rfpHmBHSE/wecQv1zHMgL4Am gGJ5Th7rG4ymTi5aBKdZUedFq/bHcoQA4q6Al1Ez4btsoRrxopxe+pDA3IYhBqPgs98Z 1RmJM7JuMW1KyNIjVXdbI95sqNrNRdIjEffp07ZMmquvHmzVy2Pavgd61hXtSKMZjwTl vqx6ksmQ6KmNlyvR8oS7iomKC3uLdFSi1YWBCEUnzGKI2CD/YMnpGpjFZPSOBcgsisA3 mdXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683313944; x=1685905944; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xceCA2XEX2XYZr2wVtYbFEfoG8eDOlxoBa/XP0RVFQY=; b=NIeQAdvOi8RVQ6WFtJak30zajkPsohu/sPWyXHyX5A0UOWeMea4k1ZuYHXizuJlYJk D6KXwPqXapRuMiytQukMHz0xHLXVpQHe+44dVdgxhzC2U6Ps+pjRLDyoFOv++bZgY6SG fLybcLNJlEeE36ZlL8mOGL/at5prtEq/ldXyqREUny9izkMIv6+2JAeKX6gds9qS5E60 wb98/TK8TmHEcMisJIhZCqGEz5IGb6l4TLmHXZpqgsN2QUNVezclRbQvs6iMMFSgGEZn bxIVBr1kaT2j+YDfrZSIkL2PZO8k/T7iBoSxbJ4FvMmzW7PtXJ8jerbaOh2LhyrBmuf0 9Kfg== X-Gm-Message-State: AC+VfDzbszscCKzWh1Elv9rtk+QmxU7QO9GXGrmWO36WFUMCb2kq9TKZ wbYr97xNGBITQ9dYsIqmC7y3TQ== X-Received: by 2002:a19:f80c:0:b0:4d5:ae35:b221 with SMTP id a12-20020a19f80c000000b004d5ae35b221mr671427lff.34.1683313944137; Fri, 05 May 2023 12:12:24 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id 10-20020ac2568a000000b004e9b307d2c8sm385026lfr.238.2023.05.05.12.12.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 12:12:23 -0700 (PDT) Message-ID: <2ccb46b8-db1c-5f4e-681c-7b1fe9fa8402@linaro.org> Date: Fri, 5 May 2023 21:12:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 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-9-d95d14949c79@linaro.org> <4a95547d-916a-3875-7752-f815429182e5@quicinc.com> From: Konrad Dybcio Subject: Re: [PATCH v2 09/18] media: venus: hfi_venus: Fix version checks in venus_halt_axi() In-Reply-To: <4a95547d-916a-3875-7752-f815429182e5@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=unavailable 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 15:21, Vikash Garodia wrote: > > On 5/4/2023 1:31 PM, Konrad Dybcio wrote: >> Only IRIS2(_1) should enter the until-now-IS_V6() path and the >> condition for skipping part of it should be IS_IRIS2_1 and not the >> number of VPP pipes. Fix that. > > Do not see any issue with existing code. IRIS2 with single pipe is IRIS2_1. This does not > > quality as a fix to earlier implementation. Since this series introduces VPU versions, > > IRIS2 with 1 pipe is being replaced with IRIS2_1. > > -Vikash Right, I'll drop the fixes tags. Also, your email client seems to be inserting 2 newlines instead of 1. If you're using thunderbird, you may want to edit: mail.identity.(default or your mail identity idx).default.compose_html to `false` or you can use shift+enter as a half-measure Konrad > >> >> Fixes: 4b0b6e147dc9 ("media: venus: hfi: Add 6xx AXI halt logic") >> Fixes: 78d434ba8659 ("media: venus: hfi: Skip AON register programming for V6 1pipe") >> 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 9b840440a115..ca56b1a8eb71 100644 >> --- a/drivers/media/platform/qcom/venus/hfi_venus.c >> +++ b/drivers/media/platform/qcom/venus/hfi_venus.c >> @@ -549,10 +549,10 @@ static int venus_halt_axi(struct venus_hfi_device *hdev) >>       u32 mask_val; >>       int ret; >>   -    if (IS_V6(hdev->core)) { >> +    if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { >>           writel(0x3, cpu_cs_base + CPU_CS_X2RPMH_V6); >>   -        if (hdev->core->res->num_vpp_pipes == 1) >> +        if (IS_IRIS2_1(hdev->core)) >>               goto skip_aon_mvp_noc; >>             writel(0x1, aon_base + AON_WRAPPER_MVP_NOC_LPI_CONTROL); >>