msm: kgsl: Write the retired timestamp on resume
Write the retired timestamp into the expected location. This fixes userspace crashes after resume when the retired timestamp is read as 0 instead of the expected last timestamp.
This commit is contained in:
parent
148ebef127
commit
ee339b2bcb
@ -309,6 +309,11 @@ int adreno_ringbuffer_start(struct adreno_ringbuffer *rb, unsigned int init_ram)
|
||||
adreno_regwrite(device, REG_SCRATCH_UMSK,
|
||||
GSL_RB_MEMPTRS_SCRATCH_MASK);
|
||||
|
||||
/* update the eoptimestamp field with the last retired timestamp */
|
||||
kgsl_sharedmem_writel(&device->memstore,
|
||||
KGSL_DEVICE_MEMSTORE_OFFSET(eoptimestamp),
|
||||
rb->timestamp);
|
||||
|
||||
/* load the CP ucode */
|
||||
|
||||
status = adreno_ringbuffer_load_pm4_ucode(device);
|
||||
|
Loading…
x
Reference in New Issue
Block a user