summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gpu_error.c
diff options
context:
space:
mode:
authorCarlos Santa2016-08-17 21:30:56 +0200
committerRodrigo Vivi2016-09-08 01:07:09 +0200
commit3177659a41cc4362cb740c24a982c2097962eb1b (patch)
tree4d0acdecae340933fe729ba4466af0b988c2dc67 /drivers/gpu/drm/i915/i915_gpu_error.c
parentdrm/i915: Move HAS_GMCH_DISPLAY definition to platform (diff)
downloadkernel-qcow2-linux-3177659a41cc4362cb740c24a982c2097962eb1b.tar.gz
kernel-qcow2-linux-3177659a41cc4362cb740c24a982c2097962eb1b.tar.xz
kernel-qcow2-linux-3177659a41cc4362cb740c24a982c2097962eb1b.zip
drm/i915: Make HWS_NEEDS_PHYSICAL the exception
Make the .hws_needs_physical the exception by switching the flag on earlier platforms since they are fewer to support. Remove the flag on later GPUs hardware since they all use GTT hws by default. Switch the logic as well in the driver to reflect this change Signed-off-by: Carlos Santa <carlos.santa@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gpu_error.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gpu_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index d45a959b7c53..334f15df7c8d 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -1025,7 +1025,7 @@ static void error_record_engine_registers(struct drm_i915_error_state *error,
if (INTEL_GEN(dev_priv) > 2)
ee->mode = I915_READ_MODE(engine);
- if (I915_NEED_GFX_HWS(dev_priv)) {
+ if (!HWS_NEEDS_PHYSICAL(dev_priv)) {
i915_reg_t mmio;
if (IS_GEN7(dev_priv)) {