mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 15:24:02 -04:00
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>
72 lines
2.8 KiB
C
72 lines
2.8 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_DISPLAY_H_
|
|
#define _XE_DISPLAY_H_
|
|
|
|
#include "xe_device.h"
|
|
|
|
struct drm_driver;
|
|
|
|
#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
|
|
|
|
bool xe_display_driver_probe_defer(struct pci_dev *pdev);
|
|
void xe_display_driver_set_hooks(struct drm_driver *driver);
|
|
|
|
int xe_display_probe(struct xe_device *xe);
|
|
|
|
int xe_display_init_early(struct xe_device *xe);
|
|
int xe_display_init(struct xe_device *xe);
|
|
|
|
void xe_display_register(struct xe_device *xe);
|
|
void xe_display_unregister(struct xe_device *xe);
|
|
|
|
void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl);
|
|
void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir);
|
|
void xe_display_irq_reset(struct xe_device *xe);
|
|
void xe_display_irq_postinstall(struct xe_device *xe);
|
|
|
|
void xe_display_pm_suspend(struct xe_device *xe);
|
|
void xe_display_pm_shutdown(struct xe_device *xe);
|
|
void xe_display_pm_suspend_late(struct xe_device *xe);
|
|
void xe_display_pm_shutdown_late(struct xe_device *xe);
|
|
void xe_display_pm_resume_early(struct xe_device *xe);
|
|
void xe_display_pm_resume(struct xe_device *xe);
|
|
void xe_display_pm_runtime_suspend(struct xe_device *xe);
|
|
void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
|
|
void xe_display_pm_runtime_resume(struct xe_device *xe);
|
|
|
|
#else
|
|
|
|
static inline int xe_display_driver_probe_defer(struct pci_dev *pdev) { return 0; }
|
|
static inline void xe_display_driver_set_hooks(struct drm_driver *driver) { }
|
|
static inline void xe_display_driver_remove(struct xe_device *xe) {}
|
|
|
|
static inline int xe_display_probe(struct xe_device *xe) { return 0; }
|
|
|
|
static inline int xe_display_init_early(struct xe_device *xe) { return 0; }
|
|
static inline int xe_display_init(struct xe_device *xe) { return 0; }
|
|
|
|
static inline void xe_display_register(struct xe_device *xe) {}
|
|
static inline void xe_display_unregister(struct xe_device *xe) {}
|
|
|
|
static inline void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) {}
|
|
static inline void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) {}
|
|
static inline void xe_display_irq_reset(struct xe_device *xe) {}
|
|
static inline void xe_display_irq_postinstall(struct xe_device *xe) {}
|
|
|
|
static inline void xe_display_pm_suspend(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_shutdown(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_suspend_late(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_shutdown_late(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_resume_early(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_resume(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_runtime_suspend(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_runtime_suspend_late(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_runtime_resume(struct xe_device *xe) {}
|
|
|
|
#endif /* CONFIG_DRM_XE_DISPLAY */
|
|
#endif /* _XE_DISPLAY_H_ */
|