]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Hook up display fault interrupts for VLV/CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 17 Feb 2025 07:00:47 +0000 (09:00 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 17 Feb 2025 23:25:42 +0000 (01:25 +0200)
commitc19f5a0341e0a54e61469218fd9419633db5c937
tree372e3c1023d31438bbc8a17e6ed8958dd0aaefac
parentb6cfae8d9c71b6caed505de4f987862cf2f18c6d
drm/i915: Hook up display fault interrupts for VLV/CHV

Hook up the display fault irq handlers for VLV/CHV.

Unfortunately the actual hardware doesn't agree with the
spec on how DPINVGTT should behave. The docs claim that
the status bits can be cleared by writing '1' to them,
but in reality there doesn't seem to be any way to clear
them. So we must disable and ignore any fault we've already
seen in the past. The entire register does reset when
the display power well goes down, so we can just always
re-enable all the bits in irq postinstall without having
to track the state beyond that.

v2: Use intel_display instead of dev_priv
    Move xe gen2_error_{init,reset}() out

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250217070047.953-9-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display_irq.c
drivers/gpu/drm/i915/display/intel_display_irq.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h