Message ID | 1391032648-19227-1-git-send-email-bradley.d.volkin@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Jan 29, 2014 at 01:57:28PM -0800, bradley.d.volkin@intel.com wrote: > From: Brad Volkin <bradley.d.volkin@intel.com> > > Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> > --- > include/drm/i915_drm.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h > index 2f4eb8c..ba863c4 100644 > --- a/include/drm/i915_drm.h > +++ b/include/drm/i915_drm.h > @@ -27,7 +27,7 @@ > #ifndef _I915_DRM_H_ > #define _I915_DRM_H_ > > -#include <drm.h> > +#include <drm/drm.h> Something about this patch smells very fishy.... > > /* Please note that modifications to all structs defined here are > * subject to backwards-compatibility constraints. > @@ -337,6 +337,7 @@ typedef struct drm_i915_irq_wait { > #define I915_PARAM_HAS_EXEC_NO_RELOC 25 > #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26 > #define I915_PARAM_HAS_WT 27 > +#define I915_PARAM_CMD_PARSER_VERSION 28 > > typedef struct drm_i915_getparam { > int param; > @@ -721,7 +722,7 @@ struct drm_i915_gem_execbuffer2 { > */ > #define I915_EXEC_IS_PINNED (1<<10) > > -/** Provide a hint to the kernel that the command stream and auxilliary > +/** Provide a hint to the kernel that the command stream and auxiliary > * state buffers already holds the correct presumed addresses and so the > * relocation process may be skipped if no buffers need to be moved in > * preparation for the execbuffer.
On Wed, Jan 29, 2014 at 02:13:21PM -0800, Chris Wilson wrote: > On Wed, Jan 29, 2014 at 01:57:28PM -0800, bradley.d.volkin@intel.com wrote: > > From: Brad Volkin <bradley.d.volkin@intel.com> > > > > Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> > > --- > > include/drm/i915_drm.h | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h > > index 2f4eb8c..ba863c4 100644 > > --- a/include/drm/i915_drm.h > > +++ b/include/drm/i915_drm.h > > @@ -27,7 +27,7 @@ > > #ifndef _I915_DRM_H_ > > #define _I915_DRM_H_ > > > > -#include <drm.h> > > +#include <drm/drm.h> > > Something about this patch smells very fishy.... Yeah, I wasn't completely sure about this one. I followed what I thought was the procedure for updating the header (i.e. make headers_install in kernel, copy to libdrm) and this is what I got. -Brad > > > > > /* Please note that modifications to all structs defined here are > > * subject to backwards-compatibility constraints. > > @@ -337,6 +337,7 @@ typedef struct drm_i915_irq_wait { > > #define I915_PARAM_HAS_EXEC_NO_RELOC 25 > > #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26 > > #define I915_PARAM_HAS_WT 27 > > +#define I915_PARAM_CMD_PARSER_VERSION 28 > > > > typedef struct drm_i915_getparam { > > int param; > > @@ -721,7 +722,7 @@ struct drm_i915_gem_execbuffer2 { > > */ > > #define I915_EXEC_IS_PINNED (1<<10) > > > > -/** Provide a hint to the kernel that the command stream and auxilliary > > +/** Provide a hint to the kernel that the command stream and auxiliary > > * state buffers already holds the correct presumed addresses and so the > > * relocation process may be skipped if no buffers need to be moved in > > * preparation for the execbuffer. > > -- > Chris Wilson, Intel Open Source Technology Centre
On Wed, Jan 29, 2014 at 02:26:12PM -0800, Volkin, Bradley D wrote: > On Wed, Jan 29, 2014 at 02:13:21PM -0800, Chris Wilson wrote: > > On Wed, Jan 29, 2014 at 01:57:28PM -0800, bradley.d.volkin@intel.com wrote: > > > From: Brad Volkin <bradley.d.volkin@intel.com> > > > > > > Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> > > > --- > > > include/drm/i915_drm.h | 5 +++-- > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h > > > index 2f4eb8c..ba863c4 100644 > > > --- a/include/drm/i915_drm.h > > > +++ b/include/drm/i915_drm.h > > > @@ -27,7 +27,7 @@ > > > #ifndef _I915_DRM_H_ > > > #define _I915_DRM_H_ > > > > > > -#include <drm.h> > > > +#include <drm/drm.h> > > > > Something about this patch smells very fishy.... > > Yeah, I wasn't completely sure about this one. I followed what I thought was > the procedure for updating the header (i.e. make headers_install in kernel, > copy to libdrm) and this is what I got. I guess either works, so maybe just add a note to the commit message about the little change. Imo it's better to have a 1:1 copy of the header generated by the kernel. -Daniel
On Thu, Jan 30, 2014 at 01:20:57AM -0800, Daniel Vetter wrote: > On Wed, Jan 29, 2014 at 02:26:12PM -0800, Volkin, Bradley D wrote: > > On Wed, Jan 29, 2014 at 02:13:21PM -0800, Chris Wilson wrote: > > > On Wed, Jan 29, 2014 at 01:57:28PM -0800, bradley.d.volkin@intel.com wrote: > > > > From: Brad Volkin <bradley.d.volkin@intel.com> > > > > > > > > Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> > > > > --- > > > > include/drm/i915_drm.h | 5 +++-- > > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h > > > > index 2f4eb8c..ba863c4 100644 > > > > --- a/include/drm/i915_drm.h > > > > +++ b/include/drm/i915_drm.h > > > > @@ -27,7 +27,7 @@ > > > > #ifndef _I915_DRM_H_ > > > > #define _I915_DRM_H_ > > > > > > > > -#include <drm.h> > > > > +#include <drm/drm.h> > > > > > > Something about this patch smells very fishy.... > > > > Yeah, I wasn't completely sure about this one. I followed what I thought was > > the procedure for updating the header (i.e. make headers_install in kernel, > > copy to libdrm) and this is what I got. > > I guess either works, so maybe just add a note to the commit message about > the little change. Imo it's better to have a 1:1 copy of the header > generated by the kernel. Sorry, I'm a bit confused. Did I follow the right procedure for updating the header? > -Daniel > -- > Daniel Vetter > Software Engineer, Intel Corporation > +41 (0) 79 365 57 48 - http://blog.ffwll.ch
On Thu, Jan 30, 2014 at 09:28:25AM -0800, Volkin, Bradley D wrote: > On Thu, Jan 30, 2014 at 01:20:57AM -0800, Daniel Vetter wrote: > > On Wed, Jan 29, 2014 at 02:26:12PM -0800, Volkin, Bradley D wrote: > > > On Wed, Jan 29, 2014 at 02:13:21PM -0800, Chris Wilson wrote: > > > > On Wed, Jan 29, 2014 at 01:57:28PM -0800, bradley.d.volkin@intel.com wrote: > > > > > From: Brad Volkin <bradley.d.volkin@intel.com> > > > > > > > > > > Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> > > > > > --- > > > > > include/drm/i915_drm.h | 5 +++-- > > > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > > > > > diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h > > > > > index 2f4eb8c..ba863c4 100644 > > > > > --- a/include/drm/i915_drm.h > > > > > +++ b/include/drm/i915_drm.h > > > > > @@ -27,7 +27,7 @@ > > > > > #ifndef _I915_DRM_H_ > > > > > #define _I915_DRM_H_ > > > > > > > > > > -#include <drm.h> > > > > > +#include <drm/drm.h> > > > > > > > > Something about this patch smells very fishy.... > > > > > > Yeah, I wasn't completely sure about this one. I followed what I thought was > > > the procedure for updating the header (i.e. make headers_install in kernel, > > > copy to libdrm) and this is what I got. > > > > I guess either works, so maybe just add a note to the commit message about > > the little change. Imo it's better to have a 1:1 copy of the header > > generated by the kernel. > > Sorry, I'm a bit confused. Did I follow the right procedure for updating > the header? Yes, the procedure is $ cd $KERNEL_REPO $ make headers_install $ cp usr/include/drm/i915_drm.h $DRM_REPO/drm/include/drm/ Cheers, Daniel
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 2f4eb8c..ba863c4 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h @@ -27,7 +27,7 @@ #ifndef _I915_DRM_H_ #define _I915_DRM_H_ -#include <drm.h> +#include <drm/drm.h> /* Please note that modifications to all structs defined here are * subject to backwards-compatibility constraints. @@ -337,6 +337,7 @@ typedef struct drm_i915_irq_wait { #define I915_PARAM_HAS_EXEC_NO_RELOC 25 #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26 #define I915_PARAM_HAS_WT 27 +#define I915_PARAM_CMD_PARSER_VERSION 28 typedef struct drm_i915_getparam { int param; @@ -721,7 +722,7 @@ struct drm_i915_gem_execbuffer2 { */ #define I915_EXEC_IS_PINNED (1<<10) -/** Provide a hint to the kernel that the command stream and auxilliary +/** Provide a hint to the kernel that the command stream and auxiliary * state buffers already holds the correct presumed addresses and so the * relocation process may be skipped if no buffers need to be moved in * preparation for the execbuffer.