Skip to contentSkip to conversation

drm/msm/a8xx: Add missing preempt_record_size

PATCH Superseded Rob Clark 3 participants 3 messages Nov 23

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Rob Clark

author maintainer
#0 lore raw

PATCH 1/1 drm/msm/a8xx: Add missing preempt_record_size

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 same GMEM contents.

Fixes 7fad33097e67 ("drm/msm/a6xx: Enable Preemption on X2-85")
---
 drivers/gpu/drm/msm/adreno/a8xx_catalog.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/adreno/a8xx_catalog.c +2 -0
index 0c6dde3cbea9..20fe93b83c0b 100644
@@ -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 },
Signature · 1 line
2.56.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Rob Clark

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 same GMEM

s/same/save?

Quoted 6 lines

contents.

Fixes 7fad33097e67 ("drm/msm/a6xx: Enable Preemption on X2-85")

---

Konrad

#2 lore raw
Quoted 7 lines · Konrad Dybcio
Quoted 3 lines · Rob Clark

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 same GMEM

s/same/save?

oops, yes.. fixing in v2

Quoted 10 lines
Quoted 6 lines

contents.

Fixes 7fad33097e67 ("drm/msm/a6xx: Enable Preemption on X2-85")

---

Konrad