Message ID | 20221207142833.204193-4-dmitry.baryshkov@linaro.org |
---|---|
State | New |
Headers | show |
Series | drm/msm/dpu: several fixes for UBWC setup | expand |
On 12/7/2022 6:28 AM, Dmitry Baryshkov wrote: > Use the values from the vendor DTs to set ubwc_swizzle in the catalog. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> I have already acked https://patchwork.freedesktop.org/patch/519662/ So this can be dropped from this series. > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > index a1b52b9b16f1..b80cc11a9a83 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > @@ -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] = {
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index a1b52b9b16f1..b80cc11a9a83 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -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] = {
Use the values from the vendor DTs to set ubwc_swizzle in the catalog. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +++ 1 file changed, 3 insertions(+)