Re: [PATCH v2] drm/msm/a8xx: Add missing preempt_record_size

From: Akhil P Oommen

Date: Mon Nov 23 2026 - 15:02:08 EST




On 11/23/2026 11:43 PM, Rob Clark wrote:
> Somehow this got overlooked, and Glymur/Mahua were falling back to the
> default 4MB. Which is way too small for the amount of GMEM on these
> devices, causing faults in cases where preemption needs to save GMEM
> contents.
>
> Reported-by: Connor Abbott <cwabbott0@xxxxxxxxx>
> Fixes: 7fad33097e67 ("drm/msm/a6xx: Enable Preemption on X2-85")
> Signed-off-by: Rob Clark <robin.clark@xxxxxxxxxxxxxxxx>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Reviewed-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>

I think it is a good idea to add a WARN_ONCE when the default size is used.

-Akhil.

> ---
> v2: Fix typo in commit msg
>
> drivers/gpu/drm/msm/adreno/a8xx_catalog.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/msm/adreno/a8xx_catalog.c b/drivers/gpu/drm/msm/adreno/a8xx_catalog.c
> index 0c6dde3cbea9..20fe93b83c0b 100644
> --- a/drivers/gpu/drm/msm/adreno/a8xx_catalog.c
> +++ b/drivers/gpu/drm/msm/adreno/a8xx_catalog.c
> @@ -1337,6 +1337,7 @@ static const struct adreno_info a8xx_gpus[] = {
> { /* sentinel */ },
> },
> },
> + .preempt_record_size = 23088 * SZ_1K,
> .speedbins = ADRENO_SPEEDBINS(
> { 0, 0 },
> { 388, 1 },
> @@ -1469,6 +1470,7 @@ static const struct adreno_info a8xx_gpus[] = {
> { /* sentinel */ },
> },
> },
> + .preempt_record_size = 17712 * SZ_1K,
> .speedbins = ADRENO_SPEEDBINS(
> { 0, 0 },
> { 388, 1 },