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:
parent
2b984f46a0
commit
4c74203b85
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue