[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Imre Deak
On Thu, 2016-05-12 at 16:52 +0300, Ville Syrjälä wrote: > On Thu, May 12, 2016 at 04:43:05PM +0300, Imre Deak wrote: > > On Thu, 2016-05-12 at 16:10 +0300, Ville Syrjälä wrote: > > > On Thu, May 12, 2016 at 04:00:38PM +0300, Imre Deak wrote: > > > > Returning a 0 bpp/cpp value from these functi

[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Ville Syrjälä
On Thu, May 12, 2016 at 04:43:05PM +0300, Imre Deak wrote: > On Thu, 2016-05-12 at 16:10 +0300, Ville Syrjälä wrote: > > On Thu, May 12, 2016 at 04:00:38PM +0300, Imre Deak wrote: > > > Returning a 0 bpp/cpp value from these functions isn't ever valid. > > > In > > > many cases it can also lead t

[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Imre Deak
On Thu, 2016-05-12 at 16:10 +0300, Ville Syrjälä wrote: > On Thu, May 12, 2016 at 04:00:38PM +0300, Imre Deak wrote: > > Returning a 0 bpp/cpp value from these functions isn't ever valid. > > In > > many cases it can also lead to a div-by-zero possibly at some later > > point in time, so make sur

[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Ville Syrjälä
On Thu, May 12, 2016 at 04:00:38PM +0300, Imre Deak wrote: > Returning a 0 bpp/cpp value from these functions isn't ever valid. In > many cases it can also lead to a div-by-zero possibly at some later > point in time, so make sure we catch such errors as soon as possible via > louder error reportin

[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Daniel Vetter
On Thu, May 12, 2016 at 05:00:06PM +0300, Imre Deak wrote: > On Thu, 2016-05-12 at 16:52 +0300, Ville Syrjälä wrote: > > On Thu, May 12, 2016 at 04:43:05PM +0300, Imre Deak wrote: > > > On Thu, 2016-05-12 at 16:10 +0300, Ville Syrjälä wrote: > > > > On Thu, May 12, 2016 at 04:00:38PM +0300, Imr

[PATCH 1/3] drm: Tune up error message during format->bpp/cpp conversion

2016-05-12 Thread Imre Deak
Returning a 0 bpp/cpp value from these functions isn't ever valid. In many cases it can also lead to a div-by-zero possibly at some later point in time, so make sure we catch such errors as soon as possible via louder error reporting. CC: Dave Airlie Signed-off-by: Imre Deak --- drivers/gpu/drm