[PATCH 2/2] tgl-idle-maps
Chris Wilson
chris at chris-wilson.co.uk
Tue Dec 8 22:37:22 UTC 2020
---
drivers/gpu/drm/i915/gt/intel_ggtt.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt.c b/drivers/gpu/drm/i915/gt/intel_ggtt.c
index cf94525be2c1..8a54e606c44c 100644
--- a/drivers/gpu/drm/i915/gt/intel_ggtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_ggtt.c
@@ -101,7 +101,16 @@ static bool needs_idle_maps(struct drm_i915_private *i915)
* Query intel_iommu to see if we need the workaround. Presumably that
* was loaded first.
*/
- return IS_GEN(i915, 5) && IS_MOBILE(i915) && intel_vtd_active();
+ if (!intel_vtd_active())
+ return false;
+
+ if (IS_GEN(i915, 5) && IS_MOBILE(i915))
+ return true;
+
+ if (IS_GEN(i915, 12))
+ return true;
+
+ return false;
}
void i915_ggtt_suspend(struct i915_ggtt *ggtt)
--
2.20.1
More information about the Intel-gfx-trybot
mailing list