msm: kgsl: enlarge the preemption counters buffer

The buffer is also used for KMD postamble after commit 27c8851a,
so make it as big as what it would have been (PAGE_SIZE) if we
had the priviledged scratch buffer to prevent override or overflow.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
Chenyang Zhong 2022-04-04 08:46:59 -04:00 • committed by Sorayukii
commit 4c74203b85

View file

@ -775,8 +775,7 @@ int a6xx_preemption_init(struct adreno_device *adreno_dev)
/* Allocate mem for storing preemption counters */
ret = kgsl_allocate_global(device, &preempt->counters,
adreno_dev->num_ringbuffers *
A6XX_CP_CTXRECORD_PREEMPTION_COUNTER_SIZE, 0, 0,
PAGE_SIZE, 0, 0,
"preemption_counters");
if (ret)
goto err;