Message ID | 1442033276-2191-2-git-send-email-sagar.a.kamble@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Looks good to me. Reviewed-by: Alex Dai <yu.dai@intel.com> On 09/11/2015 09:47 PM, Sagar Arun Kamble wrote: > It will be usefull to specify w/a that affects only SKL GT3 and GT4. > > Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> > --- > drivers/gpu/drm/i915/i915_drv.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index b5db246..1e48c86 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -2491,6 +2491,11 @@ struct drm_i915_cmd_table { > #define IS_SKL_ULX(dev) (INTEL_DEVID(dev) == 0x190E || \ > INTEL_DEVID(dev) == 0x1915 || \ > INTEL_DEVID(dev) == 0x191E) > +#define IS_SKL_GT3(dev) (IS_SKYLAKE(dev) && \ > + (INTEL_DEVID(dev) & 0x00F0) == 0x0020) > +#define IS_SKL_GT4(dev) (IS_SKYLAKE(dev) && \ > + (INTEL_DEVID(dev) & 0x00F0) == 0x0030) > + > #define IS_PRELIMINARY_HW(intel_info) ((intel_info)->is_preliminary) > > #define SKL_REVID_A0 (0x0)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index b5db246..1e48c86 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2491,6 +2491,11 @@ struct drm_i915_cmd_table { #define IS_SKL_ULX(dev) (INTEL_DEVID(dev) == 0x190E || \ INTEL_DEVID(dev) == 0x1915 || \ INTEL_DEVID(dev) == 0x191E) +#define IS_SKL_GT3(dev) (IS_SKYLAKE(dev) && \ + (INTEL_DEVID(dev) & 0x00F0) == 0x0020) +#define IS_SKL_GT4(dev) (IS_SKYLAKE(dev) && \ + (INTEL_DEVID(dev) & 0x00F0) == 0x0030) + #define IS_PRELIMINARY_HW(intel_info) ((intel_info)->is_preliminary) #define SKL_REVID_A0 (0x0)
It will be usefull to specify w/a that affects only SKL GT3 and GT4. Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 5 +++++ 1 file changed, 5 insertions(+)