Re: [PATCH 1/2] drm/msm: Handle ringbuffer overflow

2021-11-25 Thread Rob Clark
On Wed, Nov 24, 2021 at 11:36 PM Dmitry Baryshkov wrote: > > On 28/04/2021 22:36, Rob Clark wrote: > > From: Rob Clark > > > > Currently if userspace manages to fill up the ring faster than the GPU > > can consume we (a) spin for up to 1sec, and then (b) overwrite the > > ringbuffer contents from

Re: [PATCH 1/2] drm/msm: Handle ringbuffer overflow

2021-11-24 Thread Dmitry Baryshkov
On 28/04/2021 22:36, Rob Clark wrote: From: Rob Clark Currently if userspace manages to fill up the ring faster than the GPU can consume we (a) spin for up to 1sec, and then (b) overwrite the ringbuffer contents from previous submits that the GPU is still busy executing. Which predictably goes

[PATCH 1/2] drm/msm: Handle ringbuffer overflow

2021-04-28 Thread Rob Clark
From: Rob Clark Currently if userspace manages to fill up the ring faster than the GPU can consume we (a) spin for up to 1sec, and then (b) overwrite the ringbuffer contents from previous submits that the GPU is still busy executing. Which predictably goes rather badly. Instead, just skip flush