Re: [Intel-gfx] [PATCH] drm/i915: Avoid div by zero when pixel clock is large

2014-03-06 Thread Daniel Vetter
On Fri, Feb 14, 2014 at 02:40:39PM +0200, Ville Syrjälä wrote: > On Fri, Feb 14, 2014 at 12:28:29PM +, Chris Wilson wrote: > > On Fri, Feb 14, 2014 at 02:18:57PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > Make sure the line_time_us isn't zero in the

Re: [Intel-gfx] [PATCH] drm/i915: Avoid div by zero when pixel clock is large

2014-02-14 Thread Ville Syrjälä
On Fri, Feb 14, 2014 at 12:28:29PM +, Chris Wilson wrote: > On Fri, Feb 14, 2014 at 02:18:57PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Make sure the line_time_us isn't zero in the gmch watermarks code as > > that would cause a div by zero. This can be trigg

Re: [Intel-gfx] [PATCH] drm/i915: Avoid div by zero when pixel clock is large

2014-02-14 Thread Chris Wilson
On Fri, Feb 14, 2014 at 02:18:57PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Make sure the line_time_us isn't zero in the gmch watermarks code as > that would cause a div by zero. This can be triggered by specifying > a very fast pixel clock for the mode. Very fast bu

[Intel-gfx] [PATCH] drm/i915: Avoid div by zero when pixel clock is large

2014-02-14 Thread ville . syrjala
From: Ville Syrjälä Make sure the line_time_us isn't zero in the gmch watermarks code as that would cause a div by zero. This can be triggered by specifying a very fast pixel clock for the mode. At some point we should probably just switch over to using the same math we use on PCH platforms whic