Re: [PATCH] drm/panfrost: Add sanity checks to submit IOCTL

2019-04-24 Thread Tomeu Vizoso
On Wed, 24 Apr 2019 at 15:20, Daniel Vetter wrote: > > On Wed, Apr 24, 2019 at 03:13:53PM +0200, Tomeu Vizoso wrote: > > So userspace can get feedback on any error conditions, instead of going > > ahead and things breaking later. > > > > Signed-off-by: Tomeu Vizoso > > Bonus: some igts to exercis

Re: [PATCH] drm/panfrost: Add sanity checks to submit IOCTL

2019-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2019 at 03:13:53PM +0200, Tomeu Vizoso wrote: > So userspace can get feedback on any error conditions, instead of going > ahead and things breaking later. > > Signed-off-by: Tomeu Vizoso Bonus: some igts to exercise these corner cases. It helps a lot with uapi review and testing.

[PATCH] drm/panfrost: Add sanity checks to submit IOCTL

2019-04-24 Thread Tomeu Vizoso
So userspace can get feedback on any error conditions, instead of going ahead and things breaking later. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/panfrost/panfrost_drv.c | 35 + 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/panfros