Re: [PATCH] drm/etnaviv: correct timeout calculation

2018-03-10 Thread Russell King - ARM Linux
On Fri, Mar 09, 2018 at 12:52:40PM +0100, Lucas Stach wrote: > Hi Russell, > > Am Freitag, den 09.03.2018, 11:44 + schrieb Russell King - ARM Linux: > > Hi Lucas, > > > > Please retain my authorship of my patch, which was sent on 23 Oct 2017. > > The patch you have below is 100% identical to

Re: [PATCH] drm/etnaviv: correct timeout calculation

2018-03-10 Thread Russell King - ARM Linux
Hi Lucas, Please retain my authorship of my patch, which was sent on 23 Oct 2017. The patch you have below is 100% identical to that which I sent. You should also point out, as per the follow-on discussion, that using clock_gettime() on 32-bit systems will not work once the time it reports wraps

Re: [PATCH] drm/etnaviv: correct timeout calculation

2018-03-09 Thread Lucas Stach
Hi Russell, Am Freitag, den 09.03.2018, 11:44 + schrieb Russell King - ARM Linux: > Hi Lucas, > > Please retain my authorship of my patch, which was sent on 23 Oct 2017. > The patch you have below is 100% identical to that which I sent. I'll gladly do so if you provide me a proper

[PATCH] drm/etnaviv: correct timeout calculation

2018-03-09 Thread Lucas Stach
The old way did clamp the jiffy conversion and thus caused the timeouts to become negative after some time. Also it didn't work with userspace which actually fills the upper 32bits of the 64bit timestamp value. Fix this by using the solution developed and tested by Russell. Suggested-by: Russell