diff options
| author | Rahul Pon <theflyingrahul@gmail.com> | 2026-10-01 00:08:39 +0530 |
|---|---|---|
| committer | Rob Clark <robin.clark@oss.qualcomm.com> | 2026-10-10 14:58:12 -0700 |
| commit | efbda69d92e6a4822c5f2d09910f547872a9498d (patch) | |
| tree | 3b2961c67b25385bd1227cf872cf03ee88bcc99c /scripts/Makefile.thinlto | |
| parent | 2cc21a66c0c8673f18064cd9896aeb0fda880fa0 (diff) | |
| download | linux-efbda69d92e6a4822c5f2d09910f547872a9498d.tar.gz linux-efbda69d92e6a4822c5f2d09910f547872a9498d.zip | |
drm/msm/a8xx: report the GMEM size of the active slices
A8xx GPUs split GMEM evenly between their slices, and parts can have
slices fused off: a8xx_gpu_get_slice_info() reads the active slice mask
and folds the slice count into the chip ID. The GMEM size reported to
userspace (MSM_PARAM_GMEM_SIZE) is still the catalog value for all
slices, so on a part with fused-off slices userspace would size its
tiles and place its CCU caches past the end of the GMEM that exists.
Qualcomm's downstream driver reports GMEM for the active slices:
gen8_get_gmem_size() in KGSL divides the GMEM size by the number of
physical slices and multiplies it by the number of active ones. Do the
same when reading the slice mask. The GMEM protection and UCHE setup
still cover the full range, as in KGSL.
Fixes: 288a93200892 ("drm/msm/adreno: Introduce A8x GPU Support")
Signed-off-by: Rahul Pon <theflyingrahul@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/757560/
Message-ID: <20260930183840.1171-1-theflyingrahul@gmail.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
