All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jessica Zhang <quic_jesszhan@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	<freedreno@lists.freedesktop.org>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Daniel Vetter <daniel@ffwll.ch>, Rob Clark <robdclark@gmail.com>,
	Abhinav Kumar <quic_abhinavk@quicinc.com>,
	Sean Paul <sean@poorly.run>, <dri-devel@lists.freedesktop.org>,
	<linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH RFC 3/5] drm/msm/dpu: Use DRM DSC helper for det_thresh_flatness
Date: Wed, 29 Mar 2023 16:45:07 -0700	[thread overview]
Message-ID: <9ba94f43-845f-886f-a87e-ec46613b74b6@quicinc.com> (raw)
In-Reply-To: <4e12cc50-cd34-e1a1-3a91-0da369b785c1@linaro.org>



On 3/29/2023 4:31 PM, Dmitry Baryshkov wrote:
> On 30/03/2023 02:18, Jessica Zhang wrote:
>> Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
>> ---
>>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c 
>> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> index 619926da1441..648c530b5d05 100644
>> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> @@ -3,6 +3,8 @@
>>    * Copyright (c) 2020-2022, Linaro Limited
>>    */
>> +#include <drm/display/drm_dsc_helper.h>
>> +
>>   #include "dpu_kms.h"
>>   #include "dpu_hw_catalog.h"
>>   #include "dpu_hwio.h"
>> @@ -102,7 +104,7 @@ static void dpu_hw_dsc_config(struct dpu_hw_dsc 
>> *hw_dsc,
>>       data |= dsc->final_offset;
>>       DPU_REG_WRITE(c, DSC_DSC_OFFSET, data);
>> -    det_thresh_flatness = 7 + 2 * (dsc->bits_per_component - 8);
>> +    det_thresh_flatness = drm_dsc_calculate_det_thresh_flatness(dsc);
> 
> But this changes the value! Compare:
> 
> bpc | old | new
> 8   | 7   | 2
> 10  | 11  | 8
> 12  | 15  | 256
> 
> If this is intentional, please state so and maybe add a Fixes tag.

Hi Dmitry,

Yep this was intentional to match downstream and the spec. Will add a 
fixes tag for this.

Thanks,

Jessica Zhang

> 
> 
>>       data = det_thresh_flatness << 10;
>>       data |= dsc->flatness_max_qp << 5;
>>       data |= dsc->flatness_min_qp;
>>
> 
> -- 
> With best wishes
> Dmitry
> 

WARNING: multiple messages have this Message-ID (diff)
From: Jessica Zhang <quic_jesszhan@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	<freedreno@lists.freedesktop.org>
Cc: linux-arm-msm@vger.kernel.org,
	Abhinav Kumar <quic_abhinavk@quicinc.com>,
	dri-devel@lists.freedesktop.org,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Marijn Suijten <marijn.suijten@somainline.org>,
	Sean Paul <sean@poorly.run>
Subject: Re: [PATCH RFC 3/5] drm/msm/dpu: Use DRM DSC helper for det_thresh_flatness
Date: Wed, 29 Mar 2023 16:45:07 -0700	[thread overview]
Message-ID: <9ba94f43-845f-886f-a87e-ec46613b74b6@quicinc.com> (raw)
In-Reply-To: <4e12cc50-cd34-e1a1-3a91-0da369b785c1@linaro.org>



On 3/29/2023 4:31 PM, Dmitry Baryshkov wrote:
> On 30/03/2023 02:18, Jessica Zhang wrote:
>> Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
>> ---
>>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c 
>> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> index 619926da1441..648c530b5d05 100644
>> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c
>> @@ -3,6 +3,8 @@
>>    * Copyright (c) 2020-2022, Linaro Limited
>>    */
>> +#include <drm/display/drm_dsc_helper.h>
>> +
>>   #include "dpu_kms.h"
>>   #include "dpu_hw_catalog.h"
>>   #include "dpu_hwio.h"
>> @@ -102,7 +104,7 @@ static void dpu_hw_dsc_config(struct dpu_hw_dsc 
>> *hw_dsc,
>>       data |= dsc->final_offset;
>>       DPU_REG_WRITE(c, DSC_DSC_OFFSET, data);
>> -    det_thresh_flatness = 7 + 2 * (dsc->bits_per_component - 8);
>> +    det_thresh_flatness = drm_dsc_calculate_det_thresh_flatness(dsc);
> 
> But this changes the value! Compare:
> 
> bpc | old | new
> 8   | 7   | 2
> 10  | 11  | 8
> 12  | 15  | 256
> 
> If this is intentional, please state so and maybe add a Fixes tag.

Hi Dmitry,

Yep this was intentional to match downstream and the spec. Will add a 
fixes tag for this.

Thanks,

Jessica Zhang

> 
> 
>>       data = det_thresh_flatness << 10;
>>       data |= dsc->flatness_max_qp << 5;
>>       data |= dsc->flatness_min_qp;
>>
> 
> -- 
> With best wishes
> Dmitry
> 

  reply	other threads:[~2023-03-29 23:45 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 23:18 [PATCH RFC 0/5] Introduce MSM-specific DSC helpers Jessica Zhang
2023-03-29 23:18 ` Jessica Zhang
2023-03-29 23:18 ` [PATCH RFC 1/5] drm/display/dsc: Add flatness and initial scale value calculations Jessica Zhang
2023-03-29 23:18   ` Jessica Zhang
2023-03-29 23:25   ` Dmitry Baryshkov
2023-03-29 23:25     ` Dmitry Baryshkov
2023-03-29 23:47     ` Jessica Zhang
2023-03-29 23:47       ` Jessica Zhang
2023-03-29 23:18 ` [PATCH RFC 2/5] drm/msm: Add MSM-specific DSC helper methods Jessica Zhang
2023-03-29 23:18   ` Jessica Zhang
2023-03-30  0:40   ` Dmitry Baryshkov
2023-03-30  0:40     ` Dmitry Baryshkov
2023-03-30 23:06     ` [Freedreno] " Jessica Zhang
2023-03-30 23:06       ` Jessica Zhang
2023-03-30  0:49   ` Dmitry Baryshkov
2023-03-30  0:49     ` Dmitry Baryshkov
2023-03-29 23:18 ` [PATCH RFC 3/5] drm/msm/dpu: Use DRM DSC helper for det_thresh_flatness Jessica Zhang
2023-03-29 23:18   ` Jessica Zhang
2023-03-29 23:31   ` Dmitry Baryshkov
2023-03-29 23:31     ` Dmitry Baryshkov
2023-03-29 23:45     ` Jessica Zhang [this message]
2023-03-29 23:45       ` Jessica Zhang
2023-03-29 23:51       ` Dmitry Baryshkov
2023-03-29 23:51         ` Dmitry Baryshkov
2023-03-29 23:18 ` [PATCH RFC 4/5] drm/msm/dpu: Fix slice_last_group_size calculation Jessica Zhang
2023-03-29 23:18   ` Jessica Zhang
2023-03-29 23:33   ` Dmitry Baryshkov
2023-03-29 23:33     ` Dmitry Baryshkov
2023-03-29 23:18 ` [PATCH RFC 5/5] drm/msm/dsi: Use MSM and DRM DSC helper methods Jessica Zhang
2023-03-29 23:18   ` Jessica Zhang
2023-03-29 23:48   ` Dmitry Baryshkov
2023-03-29 23:48     ` Dmitry Baryshkov
2023-03-30 22:49     ` Jessica Zhang
2023-03-30 22:49       ` Jessica Zhang
2023-03-30 23:14       ` Dmitry Baryshkov
2023-03-30 23:14         ` Dmitry Baryshkov
2023-03-31  0:07         ` Jessica Zhang
2023-03-31  0:07           ` Jessica Zhang
2023-03-31  0:16           ` Dmitry Baryshkov
2023-03-31  0:16             ` Dmitry Baryshkov
2023-03-31  1:12             ` Jessica Zhang
2023-03-31  1:12               ` Jessica Zhang
2023-03-31  1:18               ` Konrad Dybcio
2023-03-31  1:18                 ` Konrad Dybcio
2023-03-31  1:25               ` Dmitry Baryshkov
2023-03-31  1:25                 ` Dmitry Baryshkov
2023-03-31  1:31                 ` Abhinav Kumar
2023-03-31  1:31                   ` Abhinav Kumar
2023-03-31  1:33             ` [Freedreno] " Abhinav Kumar
2023-03-31  1:33               ` Abhinav Kumar
2023-03-31  2:47               ` Dmitry Baryshkov
2023-03-31  2:47                 ` Dmitry Baryshkov
2023-03-31  4:57                 ` Abhinav Kumar
2023-03-31  4:57                   ` Abhinav Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ba94f43-845f-886f-a87e-ec46613b74b6@quicinc.com \
    --to=quic_jesszhan@quicinc.com \
    --cc=daniel@ffwll.ch \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=quic_abhinavk@quicinc.com \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.