Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8289989rwr; Wed, 10 May 2023 22:08:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NwDaH8LQhJyX3rK/XAGgM827DqH6C89MDTnutTptsI53kQ6Jl2cjomm4AhXNjtpXMjjpI X-Received: by 2002:a17:90a:b007:b0:24d:f880:5192 with SMTP id x7-20020a17090ab00700b0024df8805192mr18730529pjq.19.1683781729137; Wed, 10 May 2023 22:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683781729; cv=none; d=google.com; s=arc-20160816; b=qQgWjSFf0YLN4sij5LQLoS1mjoW2C2DXhr+vPOuUeDerWBVRYbvLINfhkKS1TPybgm Wt2qYXEPQ7tIWcw2yV2537CIy9rjD488BhKyGxl02/rXqMj3X9rtrgfNnXOsP0ThYxIL D85QZNi2HKpHZzS/OaKmwwmMZqkzZXT2oPXdR91wRu3sMF3fuHjIFyJklni9jjSHGrm2 UuUjaYvw+GZjzxbGkEoZoXLLoZL7Z3Ith/i9XCbsMF+AN2H77BWYT0nD4Sz7ZN+q2a+h FxtWzZMsdug1pbwQSmMuTPwv4HdKuCFI2s0kTl0N5Ro/3XQrXDyuQyWjYNqXjfTjS5IV ad3w== 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=/fZFm+JnD3HFWQBsOX43ZNxNVH7brnnd/ur7Hm3Pkxg=; b=0B8KdMYkoAWQEj/fVCtWBOoRK4dUHTLwcZ/TKusQILYS6d5SLUMrLwhhZxwXLwzbdn b6hoNfve02qTajrb3tS1WuzOcoczWV78alC2+kfY/iHVp3KcQRuMypn7LfgSdlW873Cl g7w2Ed9BYkA2XRLi6gPYy9xcgSs0G/j3JrCFNKN8wXWpdDvfNWgGpLqIp20VfR9ctAhR eUqOKwfSqMsAfIrAKwYqrM5KNID+29fnGPw4n4u/Yn/cxl5mk9NTdZ8vHHgD0JpX183H PdqbKRC4UnSBgJBjtARfinSbwzTSNtJFpjn22WhTGSXH1Br74kXHQwJsVIiQWQK7Tdk9 rOSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CXZF7Z20; 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 j128-20020a636e86000000b00527d158ec69si5415521pgc.33.2023.05.10.22.08.36; Wed, 10 May 2023 22:08:49 -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=CXZF7Z20; 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 S236497AbjEKEc2 (ORCPT + 99 others); Thu, 11 May 2023 00:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjEKEcY (ORCPT ); Thu, 11 May 2023 00:32:24 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F134ED5 for ; Wed, 10 May 2023 21:32:22 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2acb6571922so63173701fa.0 for ; Wed, 10 May 2023 21:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683779540; x=1686371540; 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=/fZFm+JnD3HFWQBsOX43ZNxNVH7brnnd/ur7Hm3Pkxg=; b=CXZF7Z20QEgTREai8N9LOpTty5Bke8VUoaSb4+5TPg7hT50ChZJe5n7yWLr5AYkzcJ NxzoVOV0qfE4O0If5SsIqh2q1xAnlUXPcfnS9a7TLy3FOdXdeUT2yBkV3UgFl18fyJ3E bfgDZwzrzwmh5caYfpbSBmgk+BEcWl2atgdmoOAaKv76cazSNpOQBPj+nvfZtFfrVZz3 tW+Y1hMjtMpvYmN3UuiI6cAiDCk0VEepY4O71h37FY09xOXJrttRsC6MjSelRSwiuCJL wJhoz5yvsRSVFpn4PNIAicxgELINAdXwFLRAQHjxvM8AIgG9BCQk5YYzOHxQT6LwLcVY vGAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683779540; x=1686371540; 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=/fZFm+JnD3HFWQBsOX43ZNxNVH7brnnd/ur7Hm3Pkxg=; b=iVtRoDx4i867CBjWAtiDpQBfkWJculiGpFZkEVhw5S76G5IuYjOdXiRPT+JGGHO6W4 HJcH/kNmhErZQ2gqU3d4kTLaJqz7l4BgdqXPRp8+UQF4DSM/HBwKJZIgpbmcIHHOlaCi CGYykOe2pArFjiMk6DIAAi9xZIo9BK8XD3jYf6tn1Pgfi8iMpd3qiF1fez5otyJqXbBC erE2ehTq6oI0vtnMc9t4nmEYQU4p70lmp6rOku6iC70G78GnSQ9CxUetMQ3iWNgOU2VS Q1MmuQWQXS+WBFo+iF94x+gUX753+JYQ2c1f0HJ5ftDF1wmcTa6ycTtRYSnvjk7k0kUA JFjg== X-Gm-Message-State: AC+VfDzswXdl9sRxBffSuaLZf6mE4DMbXY79H8OED6qWzPbSid2v9CWU BPUFbebHVWiuvqXm2owM6kFp1A== X-Received: by 2002:a2e:884e:0:b0:2ac:7304:c94d with SMTP id z14-20020a2e884e000000b002ac7304c94dmr2976098ljj.41.1683779540595; Wed, 10 May 2023 21:32:20 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id a6-20020a19f806000000b004db1a7e6decsm966447lff.205.2023.05.10.21.32.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 21:32:20 -0700 (PDT) Message-ID: Date: Thu, 11 May 2023 07:32:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v6 3/8] drm/msm/dpu: test DPU_PINGPONG_DSC bit before assign DSC ops to PINGPONG Content-Language: en-GB To: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org Cc: quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1683756453-22050-1-git-send-email-quic_khsieh@quicinc.com> <1683756453-22050-4-git-send-email-quic_khsieh@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1683756453-22050-4-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.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 11/05/2023 01:07, Kuogee Hsieh wrote: > DPU < 7.0.0 has DPU_PINGPONG_DSC feature bit set to indicate it requires > both dpu_hw_pp_setup_dsc() and dpu_hw_pp_dsc_{enable,disable}() to be > executed to complete DSC configuration if DSC hardware block is present. > Hence test DPU_PINGPONG_DSC feature bit and assign DSC related functions > to the ops of PINGPONG block accordingly if DPU_PINGPONG_DSC bit is set. > > changes in v6: > -- split patches and keep the function file handles DPU_PINGPONG_DSC bit at this patch > > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 6 ++++++ > 1 file changed, 6 insertions(+) For the patch itself: Reviewed-by: Dmitry Baryshkov > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c > index 79e4576..e7f47a4 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c > @@ -295,6 +295,12 @@ static void _setup_pingpong_ops(struct dpu_hw_pingpong *c, > c->ops.enable_dsc = dpu_hw_pp_dsc_enable; > c->ops.disable_dsc = dpu_hw_pp_dsc_disable; > > + if (test_bit(DPU_PINGPONG_DSC, &features)) { > + c->ops.setup_dsc = dpu_hw_pp_setup_dsc; > + c->ops.enable_dsc = dpu_hw_pp_dsc_enable; > + c->ops.disable_dsc = dpu_hw_pp_dsc_disable; > + } > + > if (test_bit(DPU_PINGPONG_DITHER, &features)) > c->ops.setup_dither = dpu_hw_pp_setup_dither; > }; -- With best wishes Dmitry