[PATCH 6/7] drm/xe/display: add notes about how early a few functions can be called
Matthew Auld
matthew.auld at intel.com
Fri May 16 14:25:53 UTC 2025
On 16/05/2025 13:16, Jani Nikula wrote:
> xe_display_driver_probe_defer() and xe_display_driver_set_hooks() get
> called before either struct xe_device or struct intel_display
> exist. Make a note of that.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_display.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index c35444637620..8b2aa7dc6e07 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -48,6 +48,8 @@ static bool has_display(struct xe_device *xe)
> * early on
> * @pdev: PCI device
> *
> + * Note: This is called before xe or display device creation.
> + *
> * Returns: true if probe needs to be deferred, false otherwise
> */
> bool xe_display_driver_probe_defer(struct pci_dev *pdev)
> @@ -65,6 +67,8 @@ bool xe_display_driver_probe_defer(struct pci_dev *pdev)
> * Set features and function hooks in @driver that are needed for driving the
> * display IP. This sets the driver's capability of driving display, regardless
> * if the device has it enabled
> + *
> + * Note: This is called before xe or display device creation.
> */
> void xe_display_driver_set_hooks(struct drm_driver *driver)
> {
More information about the Intel-gfx
mailing list