]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915: Disable scanout VT-d workaround for TGL+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Oct 2024 18:22:04 +0000 (21:22 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2025 20:00:30 +0000 (22:00 +0200)
TGL+ should no longer need any VT-d scanout workarounds.
Don't apply any.

Not 100% sure whether pre-SNB might also suffer from this. The
workaround did originate on SNB but who knows if it was just
never caught before that. Not that I ever managed to enable
VT-d any older hardware. Last time I tried on my ILK it ate
the disk!

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009182207.22900-7-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index 5ae0dea7b245c572097ffd09dd312af0cb3d17ed..15f298d0424aeeec8ee0accd92e49c11848e0f7d 100644 (file)
@@ -8743,5 +8743,5 @@ void intel_hpd_poll_fini(struct drm_i915_private *i915)
 
 bool intel_scanout_needs_vtd_wa(struct drm_i915_private *i915)
 {
-       return DISPLAY_VER(i915) >= 6 && i915_vtd_active(i915);
+       return IS_DISPLAY_VER(i915, 6, 11) && i915_vtd_active(i915);
 }