drm/i915/pmu: Only use exclusive mmio access for gen7
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2019 10:35:11 +0000 (10:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2019 11:37:03 +0000 (11:37 +0000)
commitd79e1bd676f090f359a30e9fff4b992dcc071347
treea89ccb93043e3f269f5ace84da74c18d6e913820
parentc1c82d267ae8b42de0802c31fabeb843189adb9d
drm/i915/pmu: Only use exclusive mmio access for gen7

On gen7, we have to avoid concurrent access to the same mmio cacheline,
and so coordinate all mmio access with the uncore->lock. However, for
pmu, we want to avoid perturbing the system and disabling interrupts
unnecessarily, so restrict the w/a to gen7 where it is requied to
prevent machine hangs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191108103511.20951-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pmu.c