Re: [Intel-gfx] [PATCH] drm/i915: Avoid PPS HW/SW state mismatch due to rounding

2017-11-29 Thread Imre Deak
On Wed, Nov 29, 2017 at 08:04:31PM +0200, Ville Syrjälä wrote: > On Wed, Nov 29, 2017 at 07:51:37PM +0200, Imre Deak wrote: > > We store a SW state of the t11_t12 timing in 100usec units but have to > > program it in 100msec as required by HW. The rounding used during > > programming means there

Re: [Intel-gfx] [PATCH] drm/i915: Avoid PPS HW/SW state mismatch due to rounding

2017-11-29 Thread Ville Syrjälä
On Wed, Nov 29, 2017 at 07:51:37PM +0200, Imre Deak wrote: > We store a SW state of the t11_t12 timing in 100usec units but have to > program it in 100msec as required by HW. The rounding used during > programming means there will be a mismatch between the SW and HW states > of this value

[Intel-gfx] [PATCH] drm/i915: Avoid PPS HW/SW state mismatch due to rounding

2017-11-29 Thread Imre Deak
We store a SW state of the t11_t12 timing in 100usec units but have to program it in 100msec as required by HW. The rounding used during programming means there will be a mismatch between the SW and HW states of this value triggering a "PPS state mismatch" error. Avoid this by storing the already