Re: [Freedreno] [PATCH 1/2] drm/msm/a6xx: Clear shadow on suspend

2020-11-10 Thread Jordan Crouse
On Tue, Nov 10, 2020 at 10:43:59AM -0800, Rob Clark wrote: > From: Rob Clark > > Clear the shadow rptr on suspend. Otherwise, when we resume, we can > have a stale value until CP_WHERE_AM_I executes. If we suspend near > the ringbuffer wraparound point, this can lead to a chicken/egg >

[Freedreno] [PATCH 1/2] drm/msm/a6xx: Clear shadow on suspend

2020-11-10 Thread Rob Clark
From: Rob Clark Clear the shadow rptr on suspend. Otherwise, when we resume, we can have a stale value until CP_WHERE_AM_I executes. If we suspend near the ringbuffer wraparound point, this can lead to a chicken/egg situation where we are waiting for ringbuffer space to write the CP_WHERE_AM_I