]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm: Expand UBWC config setting
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 7 Aug 2024 13:04:57 +0000 (14:04 +0100)
committerRob Clark <robdclark@chromium.org>
Fri, 30 Aug 2024 17:41:19 +0000 (10:41 -0700)
commitb874638be1d251fa2d543f0350acb36a65d9c7b0
treeb8ea8c95a1a9f29368e953435bade2a354798588
parentd53b8e36925256097a08d7cb749198d85cbf9b2b
drm/msm: Expand UBWC config setting

According to downstream we should be setting RBBM_NC_MODE_CNTL to a
non-default value on a663 and a680, we don't support a663 and on a680
we're leaving it at the wrong (suboptimal) value. Just set it on all
GPUs. Similarly, plumb through level2_swizzling_dis which will be
necessary on a663.

ubwc_mode is expanded and renamed to ubwc_swizzle to match the name on
the display side. Similarly macrotile_mode should match the display
side.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/607397/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h