Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Dmitry Baryshkov
On Fri, 24 Mar 2023 15:00:13 -0700, Rob Clark wrote: > If userspace asked for a timeout greater than zero, but less than a > jiffy, they clearly weren't planning on spinning. So it is better > to round up to one. > > This fixes an issue with supertuxkart that was (for some reason) > spinning on

Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Rob Clark
On Tue, Mar 28, 2023 at 8:28 AM Dmitry Baryshkov wrote: > > On 25/03/2023 00:00, Rob Clark wrote: > > From: Rob Clark > > > > If userspace asked for a timeout greater than zero, but less than a > > jiffy, they clearly weren't planning on spinning. So it is better > > to round up to one. > > > >

Re: [PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-28 Thread Dmitry Baryshkov
On 25/03/2023 00:00, Rob Clark wrote: From: Rob Clark If userspace asked for a timeout greater than zero, but less than a jiffy, they clearly weren't planning on spinning. So it is better to round up to one. This fixes an issue with supertuxkart that was (for some reason) spinning on a gl syn

[PATCH] drm/msm: Avoid rounding down to zero jiffies

2023-03-24 Thread Rob Clark
From: Rob Clark If userspace asked for a timeout greater than zero, but less than a jiffy, they clearly weren't planning on spinning. So it is better to round up to one. This fixes an issue with supertuxkart that was (for some reason) spinning on a gl sync with 1ms timeout. CPU time for a demo