drm/msm/dpu: several fixes for UBWC setup
cover drm/msm/dpu: several fixes for UBWC setup
Several small corrections for the UBWC setup and related data.
Dmitry Baryshkov (3):
drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format drm/msm/dpu: correct the UBWC version on sm6115 drm/msm/dpu: add missing ubwc_swizzle setting to catalog
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.35.1
PATCH 1/3 drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format
Extend dpu_hw_sspp_setup_format() to also handle the UBWC 1.0 case.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c +5 -1
@@ -310,7 +310,11 @@ static void dpu_hw_sspp_setup_format(struct dpu_hw_pipe *ctx, ctx->mdp->highest_bank_bit << 18);switch (ctx->catalog->caps->ubwc_version) {case DPU_HW_UBWC_VER_10 : -/* TODO: UBWC v1 case */ + fast_clear = fmt->alpha_enable ?BIT (31 ) :0 ; +DPU_REG_WRITE (c,SSPP_UBWC_STATIC_CTRL , + fast_clear | (ctx->mdp->ubwc_swizzle &0x1 ) | +BIT (8 ) | + (ctx->mdp->highest_bank_bit <<4 ));break ;case DPU_HW_UBWC_VER_20 : fast_clear = fmt->alpha_enable ?BIT (31 ) :0 ;
Signature · 1 line
2.35.1
Re: [PATCH 1/3] drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format
Quoted 3 lines · Dmitry Baryshkov
Extend
dpu_hw_sspp_setup_format()to also handle the UBWC 1.0 case.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 21 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c +5
-1@@ -310,7 +310,11 @@ static void dpu_hw_sspp_setup_format(struct dpu_hw_pipe *ctx, ctx->mdp->highest_bank_bit << 18);switch (ctx->catalog->caps->ubwc_version) {case DPU_HW_UBWC_VER_10 : -/* TODO: UBWC v1 case */ + fast_clear = fmt->alpha_enable ?BIT (31 ) :0 ; +DPU_REG_WRITE (c,SSPP_UBWC_STATIC_CTRL , + fast_clear | (ctx->mdp->ubwc_swizzle &0x1 ) | +BIT (8 ) | + (ctx->mdp->highest_bank_bit <<4 ));break ;case DPU_HW_UBWC_VER_20 : fast_clear = fmt->alpha_enable ?BIT (31 ) :0 ;
PATCH 2/3 drm/msm/dpu: correct the UBWC version on sm6115
In reply to Dmitry BaryshkovAccording to downstream (bengal-sde.dtsi), the sm6115 uses UBWC 1.0. Change the catalog entry accordingly.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
@@ -335,7 +335,7 @@ static const struct dpu_caps sm6115_dpu_caps = { .max_mixer_blendstages = 0x4, .qseed_type = DPU_SSPP_SCALER_QSEED3LITE, .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */ - .ubwc_version = DPU_HW_UBWC_VER_20, + .ubwc_version = DPU_HW_UBWC_VER_10, .has_dim_layer = true, .has_idle_pc = true, .max_linewidth = 2160,
Signature · 1 line
2.35.1
Re: [PATCH 2/3] drm/msm/dpu: correct the UBWC version on sm6115
Quoted 4 lines · Dmitry Baryshkov
According to downstream (
bengal-sde.dtsi), the sm6115 uses UBWC 1.0. Change the catalog entry accordingly.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1
-1@@ -335,7 +335,7 @@ static const struct dpu_caps sm6115_dpu_caps = { .max_mixer_blendstages = 0x4, .qseed_type = DPU_SSPP_SCALER_QSEED3LITE, .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */ - .ubwc_version = DPU_HW_UBWC_VER_20, + .ubwc_version = DPU_HW_UBWC_VER_10, .has_dim_layer = true, .has_idle_pc = true, .max_linewidth = 2160,
PATCH 3/3 drm/msm/dpu: add missing ubwc_swizzle setting to catalog
In reply to Dmitry BaryshkovUse the values from the vendor DTs to set ubwc_swizzle in the catalog.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +3 -0
@@ -516,6 +516,7 @@ static const struct dpu_mdp_cfg sm6115_mdp[] = { .base = 0x0, .len = 0x494, .features = 0, .highest_bank_bit = 0x1, + .ubwc_swizzle = 0x7, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_DMA0] = {
@@ -529,6 +530,7 @@ static const struct dpu_mdp_cfg sm8250_mdp[] = { .base = 0x0, .len = 0x494, .features = 0, .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ + .ubwc_swizzle = 0x6, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2AC, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_VIG1] = {
@@ -558,6 +560,7 @@ static const struct dpu_mdp_cfg sm8450_mdp[] = { .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ + .ubwc_swizzle = 0x6, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2AC, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_VIG1] = {
Signature · 1 line
2.35.1
Re: [PATCH 3/3] drm/msm/dpu: add missing ubwc_swizzle setting to catalog
Quoted 3 lines · Dmitry Baryshkov
Use the values from the vendor DTs to set
ubwc_swizzlein the catalog.Signed-off-by Dmitry Baryshkov <[email protected]>
I have already acked https://patchwork.freedesktop.org/patch/519662/
So this can be dropped from this series.
Quoted 32 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +3
-0@@ -516,6 +516,7 @@ static const struct dpu_mdp_cfg sm6115_mdp[] = { .base = 0x0, .len = 0x494, .features = 0, .highest_bank_bit = 0x1, + .ubwc_swizzle = 0x7, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_DMA0] = {@@ -529,6 +530,7 @@ static const struct dpu_mdp_cfg sm8250_mdp[] = { .base = 0x0, .len = 0x494, .features = 0, .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ + .ubwc_swizzle = 0x6, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2AC, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_VIG1] = {@@ -558,6 +560,7 @@ static const struct dpu_mdp_cfg sm8450_mdp[] = { .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ + .ubwc_swizzle = 0x6, .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2AC, .bit_off = 0}, .clk_ctrls[DPU_CLK_CTRL_VIG1] = {
Quoted 2 lines · Dmitry Baryshkov
Several small corrections for the UBWC setup and related data.
I am assuming this series will be dropped in favor of the RFC:
https://patchwork.freedesktop.org/series/111751/
Right?
Quoted 9 lines
Dmitry Baryshkov (3):
drm/msm/dpu: handle UBWC 1.0 indpu_hw_sspp_setup_formatdrm/msm/dpu: correct the UBWC version on sm6115 drm/msm/dpu: add missingubwc_swizzlesetting to catalogdrivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-)
Quoted 11 lines · Abhinav Kumar
Quoted 2 lines · Dmitry Baryshkov
Several small corrections for the UBWC setup and related data.
I am assuming this series will be dropped in favor of the RFC:
https://patchwork.freedesktop.org/series/111751/
Right?
No, they cover different topics. One covers the way the DPU handles UBWC setup, another one reworks MDSS.
Quoted 10 lines
Quoted 10 lines
Dmitry Baryshkov (3):
drm/msm/dpu: handle UBWC 1.0 indpu_hw_sspp_setup_formatdrm/msm/dpu: correct the UBWC version on sm6115 drm/msm/dpu: add missingubwc_swizzlesetting to catalog
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +++++-2 files changed, 9 insertions(+), 2 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Dmitry Baryshkov
AppliedQuoted 8 lines · Dmitry Baryshkov
Several small corrections for the UBWC setup and related data.
Dmitry Baryshkov (3):
drm/msm/dpu: handle UBWC 1.0 indpu_hw_sspp_setup_formatdrm/msm/dpu: correct the UBWC version on sm6115 drm/msm/dpu: add missingubwc_swizzlesetting to catalog[...]
Applied, thanks!
[1/3] drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format
https://gitlab.freedesktop.org/lumag/msm/-/commit/975b86f8c2a8 [2/3] drm/msm/dpu: correct the UBWC version on sm6115 https://gitlab.freedesktop.org/lumag/msm/-/commit/7a9898ec3018
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>