Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe: Drop GT parameter to xe_display_irq_postinstall()

Display interrupt handling has no relation to GT(s) on the platforms
supported by the Xe driver. We only call xe_display_irq_postinstall
with the first tile's primary GT, so the single condition that uses the
GT pointer within the function always evaluates to true. Drop the
unnecessary parameter and the condition.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20251013200944.2499947-27-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>

+5 -6
+2 -3
drivers/gpu/drm/xe/display/xe_display.c
··· 223 223 gen11_display_irq_reset(display); 224 224 } 225 225 226 - void xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt) 226 + void xe_display_irq_postinstall(struct xe_device *xe) 227 227 { 228 228 struct intel_display *display = xe->display; 229 229 230 230 if (!xe->info.probe_display) 231 231 return; 232 232 233 - if (gt->info.id == XE_GT0) 234 - gen11_de_irq_postinstall(display); 233 + gen11_de_irq_postinstall(display); 235 234 } 236 235 237 236 static bool suspend_to_idle(void)
+2 -2
drivers/gpu/drm/xe/display/xe_display.h
··· 26 26 void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl); 27 27 void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir); 28 28 void xe_display_irq_reset(struct xe_device *xe); 29 - void xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt); 29 + void xe_display_irq_postinstall(struct xe_device *xe); 30 30 31 31 void xe_display_pm_suspend(struct xe_device *xe); 32 32 void xe_display_pm_shutdown(struct xe_device *xe); ··· 55 55 static inline void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) {} 56 56 static inline void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) {} 57 57 static inline void xe_display_irq_reset(struct xe_device *xe) {} 58 - static inline void xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt) {} 58 + static inline void xe_display_irq_postinstall(struct xe_device *xe) {} 59 59 60 60 static inline void xe_display_pm_suspend(struct xe_device *xe) {} 61 61 static inline void xe_display_pm_shutdown(struct xe_device *xe) {}
+1 -1
drivers/gpu/drm/xe/xe_irq.c
··· 657 657 xe_memirq_postinstall(&tile->memirq); 658 658 } 659 659 660 - xe_display_irq_postinstall(xe, xe_root_mmio_gt(xe)); 660 + xe_display_irq_postinstall(xe); 661 661 xe_i2c_irq_postinstall(xe); 662 662 663 663 /*