Re: [PATCH v2 1/2] drm/msm/dsi: remove extra call to dsi_get_pclk_rate()

2023-05-22 Thread Jessica Zhang
wed-by: Jessica Zhang Thanks, Jessica Zhang Reviewed-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Changes since v1: - Fix typos in commit message (Marijn) --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

Re: [PATCH v4 2/5] drm/msm/dsi: Adjust pclk rate for compression

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:31 PM, Marijn Suijten wrote: On 2023-05-22 13:30:21, Jessica Zhang wrote: Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is enabled. Signed-off-by: Jessica Zhang As discussed previously, this patch would apply a lot more cleanly on top of: https

Re: [Freedreno] [PATCH v4 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:45 PM, Jessica Zhang wrote: On 5/22/2023 1:44 PM, Marijn Suijten wrote: On 2023-05-22 13:30:20, Jessica Zhang wrote: Currently, when compression is enabled, hdisplay is reduced via integer division. This causes issues for modes where the original hdisplay is not a multiple

Re: [Freedreno] [PATCH v4 3/5] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag

2023-05-22 Thread Jessica Zhang
On 5/22/2023 1:47 PM, Marijn Suijten wrote: Can you fit DPU >= 7.0 in the title? Hi Marijn, Sure. On 2023-05-22 13:30:22, Jessica Zhang wrote: Add DATA_COMPRESS feature flag to DPU INTF block. Nit: repeating the title, perhaps you can reflow this with the second paragraph? Ac

Re: [PATCH v4 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-22 Thread Jessica Zhang
On 5/22/2023 1:44 PM, Marijn Suijten wrote: On 2023-05-22 13:30:20, Jessica Zhang wrote: Currently, when compression is enabled, hdisplay is reduced via integer division. This causes issues for modes where the original hdisplay is not a multiple of 3. To fix this, use DIV_ROUND_UP to divide

Re: [PATCH v4 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:01 PM, Marijn Suijten wrote: On 2023-05-22 13:30:24, Jessica Zhang wrote: Currently, slice_count is being used to calculate word count and pkt_per_line. Instead, these values should be calculated using slice per packet, which is not the same as slice_count. Slice count

Re: [PATCH v4 4/5] drm/msm/dpu: Set DATA_COMPRESS for command mode

2023-05-22 Thread Jessica Zhang
On 5/22/2023 1:54 PM, Marijn Suijten wrote: How about: Enable INTF DATA_COMPRESS bit (on cmdmode) for DCE/DSC 1.2? Hi Marijn, Acked. Drop parenthesis at your convenience. On 2023-05-22 13:30:23, Jessica Zhang wrote: Add a DPU INTF op to set DATA_COMPRESS register

Re: [PATCH v12 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:35 AM, Jani Nikula wrote: On Wed, 17 May 2023, Jessica Zhang wrote: Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7

Re: [PATCH v12 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:37 AM, Jani Nikula wrote: On Wed, 17 May 2023, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm

[PATCH v4 4/5] drm/msm/dpu: Set DATA_COMPRESS for command mode

2023-05-22 Thread Jessica Zhang
with DSC v1.2 support for DP. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 +++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 13 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 2 ++ 3 files changed, 18 insertions(+) diff

[PATCH v4 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-22 Thread Jessica Zhang
t;drm/msm/dsi: Add support for DSC configuration") Fixes: bc6b6ff8135c ("drm/msm/dsi: Use DSC slice(s) packet size to compute word count") Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 26 -- 1 file changed, 16 insertions(+), 10 dele

[PATCH v4 3/5] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag

2023-05-22 Thread Jessica Zhang
Add DATA_COMPRESS feature flag to DPU INTF block. In DPU 7.x and later, DSC/DCE enablement registers have been moved from PINGPONG to INTF. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 ++- drivers/gpu/drm/msm/disp/dpu1

[PATCH v4 2/5] drm/msm/dsi: Adjust pclk rate for compression

2023-05-22 Thread Jessica Zhang
Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is enabled. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers

[PATCH v4 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-22 Thread Jessica Zhang
("drm/msm/dsi: Add support for DSC configuration") Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 9223d7ec5a73..18d38b90e

[PATCH v4 0/5] Add DSC v1.2 Support for DSI

2023-05-22 Thread Jessica Zhang
fic DSC helpers" [2] [1] https://patchwork.freedesktop.org/series/116789/ [2] https://patchwork.freedesktop.org/series/115833/ Signed-off-by: Jessica Zhang --- Changes in v4: - Clarified slice_per_pkt comment regarding pkt_per_line calculations - Reworded commit message for "drm/

Re: [PATCH v3 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-22 Thread Jessica Zhang
On 5/20/2023 5:32 PM, Dmitry Baryshkov wrote: On 20/05/2023 00:17, Jessica Zhang wrote: Currently, slice_count is being used to calculate word count and pkt_per_line. In downstream, these values are calculated using slice per packet, which is not the same as slice_count. I'd say

Re: [PATCH v3 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-22 Thread Jessica Zhang
On 5/20/2023 1:07 AM, Marijn Suijten wrote: On 2023-05-19 14:17:26, Jessica Zhang wrote: Currently, when compression is enabled, hdisplay is reduced via integer division. This causes issues for modes where the original hdisplay is not a multiple of 3. To fix this, use DIV_ROUND_UP to divide

Re: [PATCH v3 3/5] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag

2023-05-22 Thread Jessica Zhang
On 5/19/2023 2:34 PM, Marijn Suijten wrote: On 2023-05-19 14:17:28, Jessica Zhang wrote: Add DATA_COMPRESS feature flag to DPU INTF block. In DPU 7.x and later, DSC/DCE enablement registers have been moved from PINGPONG to INTF. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-22 Thread Jessica Zhang
On 5/22/2023 2:09 AM, Neil Armstrong wrote: On 16/05/2023 22:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off

Re: [PATCH v3 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-19 Thread Jessica Zhang
On 5/19/2023 2:24 PM, Marijn Suijten wrote: On 2023-05-19 14:17:30, Jessica Zhang wrote: Currently, slice_count is being used to calculate word count and pkt_per_line. In downstream, these values are calculated using slice per packet, which is not the same as slice_count. Slice count

[PATCH v3 5/5] drm/msm/dsi: Remove incorrect references to slice_count

2023-05-19 Thread Jessica Zhang
t;drm/msm/dsi: Add support for DSC configuration") Fixes: bc6b6ff8135c ("drm/msm/dsi: Use DSC slice(s) packet size to compute word count") Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 24 ++-- 1 file changed, 14 insertions(+), 10 dele

[PATCH v3 4/5] drm/msm/dpu: Set DATA_COMPRESS for command mode

2023-05-19 Thread Jessica Zhang
with DSC v1.2 support for DP. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 +++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 13 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 2 ++ 3 files changed, 18 insertions(+) diff

[PATCH v3 1/5] msm/drm/dsi: Round up DSC hdisplay calculation

2023-05-19 Thread Jessica Zhang
splay calculation for dsi_timing_setup") Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 9223d7ec5a73..18d38b90eb28 100644 ---

[PATCH v3 3/5] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag

2023-05-19 Thread Jessica Zhang
Add DATA_COMPRESS feature flag to DPU INTF block. In DPU 7.x and later, DSC/DCE enablement registers have been moved from PINGPONG to INTF. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1

[PATCH v3 0/5] Add DSC v1.2 Support for DSI

2023-05-19 Thread Jessica Zhang
fic DSC helpers" [2] [1] https://patchwork.freedesktop.org/series/116789/ [2] https://patchwork.freedesktop.org/series/115833/ Signed-off-by: Jessica Zhang --- Changes in v3: - Added fix to round up hdisplay DSC adjustment - Fixed inconsistent whitespace in dpu_hw_intf_ops comment d

[PATCH v3 2/5] drm/msm/dsi: Adjust pclk rate for compression

2023-05-19 Thread Jessica Zhang
Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is enabled. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers

Re: [PATCH v2 1/4] drm/msm/dsi: Adjust pclk rate for compression

2023-05-19 Thread Jessica Zhang
On 5/8/2023 2:56 PM, Marijn Suijten wrote: On 2023-05-05 14:49:08, Jessica Zhang wrote: On 5/5/2023 2:23 PM, Jessica Zhang wrote: Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is enabled. Changes in v2: - Adjusted pclk_rate math to divide only the hdisplay value

Re: [Freedreno] [PATCH] drm/msm/dsi: simplify pixel clk rate handling

2023-05-19 Thread Jessica Zhang
e, it will only calculate and assign the escape clk rate. I agree with Abhinav that this change renders the calc_clk_rate() op misleading as it will not calculate all of the clock rates anymore. Thanks, Jessica Zhang   if (ret) {   pr_err("%s: unable to calc clk rate, %d\n", __func__, ret);   return; -- With best wishes Dmitry

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-18 Thread Jessica Zhang
On 5/18/2023 3:37 PM, Dmitry Baryshkov wrote: On Fri, 19 May 2023 at 01:17, Jessica Zhang wrote: On 5/17/2023 5:19 PM, Dmitry Baryshkov wrote: On 16/05/2023 23:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-18 Thread Jessica Zhang
On 5/17/2023 5:19 PM, Dmitry Baryshkov wrote: On 16/05/2023 23:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off

[PATCH v13 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v13 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v13 9/9] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-17 Thread Jessica Zhang
Currently, hdisplay is being divided by 3 for DSC. However, this calculation only works for cases where BPP = 8. Update hdisplay calculation to be bytes_per_line / 3, so that it accounts for cases where BPP != 8. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v13 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v13 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h b

[PATCH v13 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Jessica Zhang
Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h

[PATCH v13 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v13 6/9] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-17 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v13 0/9] Introduce MSM-specific DSC helpers

2023-05-17 Thread Jessica Zhang
e --> *_set_initial_scale_value - Picked up Fixes tags for patches 3/5 and 4/5 - Picked up Reviewed-by for patch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to set semi-const parameters

[PATCH v13 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10

Re: [PATCH v12 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 4:01 PM, Marijn Suijten wrote: On 2023-05-17 15:27:18, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38

[PATCH v12 6/9] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-17 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v12 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v12 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h b

[PATCH v12 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Jessica Zhang
Add helper to get the integer value of drm_dsc_config.bits_per_pixel Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h b/include/drm/display

[PATCH v12 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v12 9/9] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-17 Thread Jessica Zhang
Currently, hdisplay is being divided by 3 for DSC. However, this calculation only works for cases where BPP = 8. Update hdisplay calculation to be bytes_per_line / 3, so that it accounts for cases where BPP != 8. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v12 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v12 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v12 0/9] Introduce MSM-specific DSC helpers

2023-05-17 Thread Jessica Zhang
te_initial_scale_value --> *_set_initial_scale_value - Picked up Fixes tags for patches 3/5 and 4/5 - Picked up Reviewed-by for patch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to

[PATCH v12 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include

Re: [PATCH v11 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:15 PM, Marijn Suijten wrote: On 2023-05-17 11:51:11, Jessica Zhang wrote: From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2

Re: [PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:13 PM, Marijn Suijten wrote: On 2023-05-17 11:51:10, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Signed-off-by: Jessica Zhang Was this r-b dropped because of changing

Re: [PATCH v11 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 2:26 PM, Marijn Suijten wrote: On 2023-05-17 11:51:14, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38

Re: [PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
On 5/17/2023 12:25 PM, Marijn Suijten wrote: On 2023-05-17 21:13:36, Marijn Suijten wrote: On 2023-05-17 11:51:17, Jessica Zhang wrote: Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v11 8/9] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-17 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v11 7/9] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-17 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v11 4/9] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- drivers/gpu/drm

[PATCH v11 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-17 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h

[PATCH v11 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-17 Thread Jessica Zhang
Add helper to get the integer value of drm_dsc_config.bits_per_pixel Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/display/drm_dsc_helper.h b/include/drm/display/drm_dsc_helper.h index ea99b0b90674

[PATCH v11 5/9] drm/msm: Add MSM-specific DSC helper methods

2023-05-17 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 38 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h b

[PATCH v11 2/9] drm/display/dsc: add helper to set semi-const parameters

2023-05-17 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v11 6/9] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-17 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v11 9/9] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-17 Thread Jessica Zhang
Currently, hdisplay is being divided by 3 for DSC. However, this calculation only works for cases where BPP = 8. Update hdisplay calculation to be bytes_per_line / 3, so that it accounts for cases where BPP != 8. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica

[PATCH v11 0/9] Introduce MSM-specific DSC helpers

2023-05-17 Thread Jessica Zhang
4/5 - Picked up Reviewed-by for patch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to set semi-const parameters drm/msm/dsi: use DRM DSC helpers for DSC setup Jessica Zha

Re: [PATCH v10 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-16 Thread Jessica Zhang
On 5/16/2023 3:49 PM, Marijn Suijten wrote: On 2023-05-16 01:07:05, Dmitry Baryshkov wrote: On 16/05/2023 01:01, Marijn Suijten wrote: On 2023-05-15 13:29:21, Jessica Zhang wrote: Const, as requested elsewhere. But this function is not used anywhere in any of the series (because we

Re: [Freedreno] [PATCH v10 8/8] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-16 Thread Jessica Zhang
On 5/16/2023 3:45 PM, Marijn Suijten wrote: On 2023-05-16 11:18:17, Jessica Zhang wrote: On 5/14/2023 2:29 PM, Marijn Suijten wrote: On 2023-05-12 14:32:18, Jessica Zhang wrote: hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper

[PATCH 1/2] dt-bindings: display: panel: Add Visionox R66451 AMOLED DSI panel bindings

2023-05-16 Thread Jessica Zhang
Document the 1080x2340 Visionox R66451 AMOLED DSI panel bindings Signed-off-by: Jessica Zhang --- .../bindings/display/panel/visionox,r66451.yaml| 59 ++ 1 file changed, 59 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/visionox,r66451.yaml

[PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-16 Thread Jessica Zhang
Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel

[PATCH 0/2] Add support for Visionox R66451 AMOLED DSI panel

2023-05-16 Thread Jessica Zhang
Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The driver will come with display compression (DSC v1.2) enabled by default. Signed-off-by: Jessica Zhang --- Jessica Zhang (2): dt-bindings: display: panel: Add

Re: [Freedreno] [PATCH v10 8/8] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-16 Thread Jessica Zhang
On 5/14/2023 2:29 PM, Marijn Suijten wrote: On 2023-05-12 14:32:18, Jessica Zhang wrote: hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper to calculate hdisplay for dsi_timing_setup instead of directly using mode->hdisp

Re: [PATCH v10 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-15 Thread Jessica Zhang
On 5/15/2023 3:07 PM, Dmitry Baryshkov wrote: On 16/05/2023 01:01, Marijn Suijten wrote: On 2023-05-15 13:29:21, Jessica Zhang wrote: Const, as requested elsewhere.  But this function is not used anywhere in any of the series (because we replaced the usages with more sensible member

Re: [PATCH v10 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-15 Thread Jessica Zhang
On 5/15/2023 3:01 PM, Marijn Suijten wrote: On 2023-05-15 13:29:21, Jessica Zhang wrote: Const, as requested elsewhere. But this function is not used anywhere in any of the series (because we replaced the usages with more sensible member accesses like slice_chunk_size). Acked. I would

Re: [PATCH v10 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-15 Thread Jessica Zhang
On 5/14/2023 2:25 PM, Marijn Suijten wrote: On 2023-05-12 14:32:14, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 65

Re: [PATCH v10 1/8] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-15 Thread Jessica Zhang
On 5/13/2023 1:28 PM, Marijn Suijten wrote: On 2023-05-12 14:32:11, Jessica Zhang wrote: Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm

[PATCH v10 5/8] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-12 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v10 6/8] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-12 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v10 7/8] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-12 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v10 8/8] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-12 Thread Jessica Zhang
hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper to calculate hdisplay for dsi_timing_setup instead of directly using mode->hdisplay. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zh

[PATCH v10 3/8] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-12 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- drivers/gpu/drm

[PATCH v10 0/8] Introduce MSM-specific DSC helpers

2023-05-12 Thread Jessica Zhang
Picked up Fixes tags for patches 3/5 and 4/5 - Picked up Reviewed-by for patch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to set semi-const parameters drm/msm/dsi: use DRM DS

[PATCH v10 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-12 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/msm_dsc_helper.h | 65 1 file changed, 65 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_dsc_helper.h b

[PATCH v10 2/8] drm/display/dsc: add helper to set semi-const parameters

2023-05-12 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v10 1/8] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-12 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include

[PATCH v9 6/8] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-10 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v9 8/8] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-10 Thread Jessica Zhang
hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper to calculate hdisplay for dsi_timing_setup instead of directly using mode->hdisplay. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zh

[PATCH v9 0/8] Introduce MSM-specific DSC helpers

2023-05-10 Thread Jessica Zhang
tch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to set semi-const parameters drm/msm/dsi: use DRM DSC helpers for DSC setup Jessica Zhang (6): drm/display/dsc: Add flatnes

[PATCH v9 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-10 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/msm_dsc_helper.c | 26 ++ drivers/gpu/drm/msm/msm_dsc_helper.h | 69

[PATCH v9 3/8] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-10 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- drivers/gpu/drm

[PATCH v9 7/8] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-10 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v9 5/8] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-10 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v9 2/8] drm/display/dsc: add helper to set semi-const parameters

2023-05-10 Thread Jessica Zhang
From: Dmitry Baryshkov Add a helper setting config values which are typically constant across operating modes (table E-4 of the standard) and mux_word_size (which is a const according to 3.5.2). Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang

[PATCH v9 1/8] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-10 Thread Jessica Zhang
Add helpers to calculate det_thresh_flatness and initial_scale_value as these calculations are defined within the DSC spec. Signed-off-by: Jessica Zhang Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- include/drm/display/drm_dsc_helper.h | 11

[PATCH v8 5/8] drm/msm/dpu: Use fixed DRM DSC helper for det_thresh_flatness

2023-05-10 Thread Jessica Zhang
) Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- 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_d

[PATCH v8 8/8] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-05-10 Thread Jessica Zhang
hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper to calculate hdisplay for dsi_timing_setup instead of directly using mode->hdisplay. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zh

[PATCH v8 4/8] drm/msm: Add MSM-specific DSC helper methods

2023-05-10 Thread Jessica Zhang
Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Reviewed-by: Dmitry Baryshkov Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/msm_dsc_helper.c | 26 ++ drivers/gpu/drm/msm

[PATCH v8 6/8] drm/msm/dpu: Fix slice_last_group_size calculation

2023-05-10 Thread Jessica Zhang
Correct the math for slice_last_group_size so that it matches the calculations downstream. Fixes: c110cfd1753e ("drm/msm/disp/dpu1: Add support for DSC") Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH v8 3/8] drm/msm/dsi: use DRM DSC helpers for DSC setup

2023-05-10 Thread Jessica Zhang
From: Dmitry Baryshkov Use new DRM DSC helpers to setup DSI DSC configuration. The initial_scale_value needs to be adjusted according to the standard, but this is a separate change. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Jessica Zhang --- drivers/gpu/drm

[PATCH v8 0/8] Introduce MSM-specific DSC helpers

2023-05-10 Thread Jessica Zhang
alculate_initial_scale_value --> *_set_initial_scale_value - Picked up Fixes tags for patches 3/5 and 4/5 - Picked up Reviewed-by for patch 4/5 - Link to v1: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v1-0-f3e479f59...@quicinc.com --- Dmitry Baryshkov (2): drm/display/dsc: add helper to set

[PATCH v8 7/8] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-05-10 Thread Jessica Zhang
Use MSM and DRM DSC helper methods to configure DSC for DSI. Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

<    1   2   3   4   5   6   7   >