drm/i915: Use HAS_PCH_SPLIT to determine correct devices
authorWayne Boyer <[email protected]>
Mon, 7 Dec 2015 18:51:07 +0000 (10:51 -0800)
committerDaniel Vetter <[email protected]>
Thu, 10 Dec 2015 10:07:29 +0000 (11:07 +0100)
Do some further clean up based on the initial review of
drm/i915: Separate cherryview from valleyview.

In this case check for '(GEN7 || GEN8) && HAS_PCH_SPLIT' since we're
reading FUSE_STRAP and SFUSE_STRAP which live in the PCH.

Cc: Ville Syrjälä <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Signed-off-by: Wayne Boyer <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Ville Syrjälä <[email protected]>
drivers/gpu/drm/i915/i915_dma.c

index 8ba4c7bbcd9bd241c3e010ae037906e28ba9f632..84e2b202ecb535c2eace65fc52d948cf4975f5a0 100644 (file)
@@ -794,7 +794,7 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
                info->num_pipes = 0;
        } else if (info->num_pipes > 0 &&
                   (INTEL_INFO(dev)->gen == 7 || INTEL_INFO(dev)->gen == 8) &&
-                  !(IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev))) {
+                  HAS_PCH_SPLIT(dev)) {
                u32 fuse_strap = I915_READ(FUSE_STRAP);
                u32 sfuse_strap = I915_READ(SFUSE_STRAP);