aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-09-19 14:01:40 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 14:41:00 -0400
commit040d2baa6229d50c406340035766c4e99725bf3d (patch)
treeb89913b763b2fa552a737da48508381344931fba /drivers/gpu/drm/i915/i915_drv.h
parent3ccfd19dea7c5c85aa4b1f929a97a02b026ab356 (diff)
drm/i915: s/HAS_L3_GPU_CACHE/HAS_L3_DPF
We'd only ever used this define to denote whether or not we have the dynamic parity feature (DPF) and never to determine whether or not L3 exists. Baytrail is a good example of where L3 exists, and not DPF. This patch provides clarify in the code for future use cases which might want to actually query whether or not L3 exists. v2: Add /* DPF == dynamic parity feature */ Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 015df5264dcc..09a5c829168c 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1691,8 +1691,9 @@ struct drm_i915_file_private {
1691 1691
1692#define HAS_FORCE_WAKE(dev) (INTEL_INFO(dev)->has_force_wake) 1692#define HAS_FORCE_WAKE(dev) (INTEL_INFO(dev)->has_force_wake)
1693 1693
1694#define HAS_L3_GPU_CACHE(dev) (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) 1694/* DPF == dynamic parity feature */
1695#define NUM_L3_SLICES(dev) (IS_HSW_GT3(dev) ? 2 : HAS_L3_GPU_CACHE(dev)) 1695#define HAS_L3_DPF(dev) (IS_IVYBRIDGE(dev) || IS_HASWELL(dev))
1696#define NUM_L3_SLICES(dev) (IS_HSW_GT3(dev) ? 2 : HAS_L3_DPF(dev))
1696 1697
1697#define GT_FREQUENCY_MULTIPLIER 50 1698#define GT_FREQUENCY_MULTIPLIER 50
1698 1699