From: Ville Syrjälä Date: Wed, 9 Oct 2024 18:22:04 +0000 (+0300) Subject: drm/i915: Disable scanout VT-d workaround for TGL+ X-Git-Tag: block-6.15-20250403~41^2~16^2~228 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8e1096fd03b6c0e3e668cc2e4f0edbdc7de8fa01;p=linux-block.git drm/i915: Disable scanout VT-d workaround for TGL+ 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ä Link: https://patchwork.freedesktop.org/patch/msgid/20241009182207.22900-7-ville.syrjala@linux.intel.com Reviewed-by: Jouni Högander --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 5ae0dea7b245..15f298d0424a 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -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); }