Re: [PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-10 Thread Peter Rosin
On 2019-01-09 11:12, Daniel Vetter wrote: > On Tue, Jan 08, 2019 at 12:31:36PM +, Peter Rosin wrote: >> While trying to temporarily hide a plane, one thing that was attempted >> was to call (from libdrm) >> >> drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, >> 0, 0, 0

Re: [PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-09 Thread Boris Brezillon
On Wed, 9 Jan 2019 11:37:19 + Peter Rosin wrote: > On 2019-01-09 11:12, Daniel Vetter wrote: > > On Tue, Jan 08, 2019 at 12:31:36PM +, Peter Rosin wrote: > >> While trying to temporarily hide a plane, one thing that was attempted > >> was to call (from libdrm) > >> > >>drmModeSetPla

Re: [PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-09 Thread Boris Brezillon
On Wed, 9 Jan 2019 11:12:24 +0100 Daniel Vetter wrote: > On Tue, Jan 08, 2019 at 12:31:36PM +, Peter Rosin wrote: > > While trying to temporarily hide a plane, one thing that was attempted > > was to call (from libdrm) > > > > drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, > >

Re: [PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-09 Thread Daniel Vetter
On Tue, Jan 08, 2019 at 12:31:36PM +, Peter Rosin wrote: > While trying to temporarily hide a plane, one thing that was attempted > was to call (from libdrm) > > drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, > 0, 0, 0, 0, 0, 0, 0, 0); > > This call causes a pair

[PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-09 Thread Peter Rosin
While trying to temporarily hide a plane, one thing that was attempted was to call (from libdrm) drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, 0, 0, 0, 0, 0, 0, 0, 0); This call causes a pair of "Division by zero in kernel." messages. Kill those messages, but pr