On Wed, May 14, 2025 at 05:10:23PM +0200, Konrad Dybcio wrote: > From: Konrad Dybcio <konrad.dyb...@oss.qualcomm.com> > > As discussed a lot in the past, the UBWC config must be coherent across > a number of IP blocks (currently display and GPU, but it also may/will > concern camera/video as the drivers evolve). > > So far, we've been trying to keep the values reasonable in each of the > two drivers separately, but it really make sense to do so centrally, > especially given certain fields (e.g. HBB) may need to be gathered > dynamically. > > To reduce room for error, move to fetching the config from a central > source, so that the data programmed into the hardware is consistent > across all multimedia blocks that request it. > > Signed-off-by: Konrad Dybcio <konrad.dyb...@oss.qualcomm.com> > --- > drivers/gpu/drm/msm/Kconfig | 1 + > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 6 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 4 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 7 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 3 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 2 +- > drivers/gpu/drm/msm/msm_mdss.c | 327 > +++++----------------------- > drivers/gpu/drm/msm/msm_mdss.h | 28 --- > 10 files changed, 73 insertions(+), 309 deletions(-) >
Reviewed-by: Dmitry Baryshkov <dmitry.barysh...@oss.qualcomm.com> -- With best wishes Dmitry