Re: [Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-09-11 Thread Dmitry V. Levin
On Fri, Sep 11, 2015 at 01:31:02PM +0200, Patrik Jakobsson wrote: > On Tue, Sep 08, 2015 at 04:18:11AM +0300, Dmitry V. Levin wrote: > > On Mon, Aug 24, 2015 at 02:42:49PM +0200, Patrik Jakobsson wrote: > > > +static int i915_getparam(struct tcb *tcp, const unsigned int code, long > > > arg) > >

Re: [Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-09-11 Thread Patrik Jakobsson
On Tue, Sep 08, 2015 at 04:18:11AM +0300, Dmitry V. Levin wrote: > On Mon, Aug 24, 2015 at 02:42:49PM +0200, Patrik Jakobsson wrote: > > +static int i915_getparam(struct tcb *tcp, const unsigned int code, long > > arg) > > +{ > > + struct drm_i915_getparam param; > > + int value; > > + > > +

Re: [Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-09-09 Thread Dmitry V. Levin
On Tue, Sep 08, 2015 at 04:30:52AM +0300, Dmitry V. Levin wrote: > On Tue, Sep 08, 2015 at 04:18:11AM +0300, Dmitry V. Levin wrote: > [...] > > So the whole function should look smth like this: > > > > static int i915_getparam(struct tcb *tcp, const unsigned int code, long arg) > > { > >

Re: [Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-09-07 Thread Dmitry V. Levin
On Mon, Aug 24, 2015 at 02:42:49PM +0200, Patrik Jakobsson wrote: > +static int i915_getparam(struct tcb *tcp, const unsigned int code, long arg) > +{ > + struct drm_i915_getparam param; > + int value; > + > + if (umove(tcp, arg, )) > + return RVAL_DECODED; > + > + if

Re: [Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-09-07 Thread Dmitry V. Levin
On Tue, Sep 08, 2015 at 04:18:11AM +0300, Dmitry V. Levin wrote: [...] > So the whole function should look smth like this: > > static int i915_getparam(struct tcb *tcp, const unsigned int code, long arg) > { > struct drm_i915_getparam param; > > if (entering(tcp)) { >

[Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-08-24 Thread Patrik Jakobsson
First batch of i915 drm ioctls * Makefile.am: Add compilation of drm_i915.c. * defs.h: Add extern i915 declarations * drm.c (drm_ioctl): Dispatch i915 ioctls. * drm_i915.c: New file. * xlat/drm_i915_getparams.in: New file. * xlat/drm_i915_setparams.in: New file. * xlat/drm_i915_ioctls.in: New