drivers/gpu/drm/xe/display/xe_display.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/display/xe_display.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/display/xe_display.c- Extension
.c- Size
- 13021 bytes
- Lines
- 580
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
xe_display.hregs/xe_irq_regs.hlinux/fb.hdrm/drm_client.hdrm/drm_client_event.hdrm/drm_drv.hdrm/drm_managed.hdrm/drm_probe_helper.hdrm/intel/display_member.hdrm/intel/display_parent_interface.huapi/drm/xe_drm.hintel_acpi.hintel_audio.hintel_bw.hintel_display.hintel_display_core.hintel_display_device.hintel_display_driver.hintel_display_irq.hintel_display_types.hintel_dmc.hintel_dmc_wl.hintel_dp.hintel_dram.hintel_encoder.hintel_fbdev.hintel_hdcp.hintel_hotplug.hintel_opregion.hskl_watermark.hxe_device.hxe_display_bo.h
Detected Declarations
function xe_display_driver_probe_deferfunction unset_display_featuresfunction xe_display_fini_earlyfunction xe_display_init_earlyfunction xe_display_finifunction xe_display_initfunction xe_display_registerfunction xe_display_unregisterfunction xe_display_irq_handlerfunction xe_display_irq_enablefunction xe_display_irq_resetfunction xe_display_irq_postinstallfunction suspend_to_idlefunction xe_display_enable_d3coldfunction xe_display_disable_d3coldfunction xe_display_pm_suspendfunction xe_display_pm_shutdownfunction xe_display_pm_runtime_suspendfunction xe_display_pm_suspend_latefunction xe_display_pm_runtime_suspend_latefunction xe_display_pm_shutdown_latefunction xe_display_pm_resume_earlyfunction xe_display_pm_resumefunction xe_display_pm_runtime_resumefunction display_device_removefunction irq_enabledfunction irq_synchronizefunction has_auxccsfunction xe_display_probefunction xe_display_driver_fbdev_probe
Annotated Snippet
// SPDX-License-Identifier: MIT
/*
* Copyright © 2023 Intel Corporation
*/
#include "xe_display.h"
#include "regs/xe_irq_regs.h"
#include <linux/fb.h>
#include <drm/drm_client.h>
#include <drm/drm_client_event.h>
#include <drm/drm_drv.h>
#include <drm/drm_managed.h>
#include <drm/drm_probe_helper.h>
#include <drm/intel/display_member.h>
#include <drm/intel/display_parent_interface.h>
#include <uapi/drm/xe_drm.h>
#include "intel_acpi.h"
#include "intel_audio.h"
#include "intel_bw.h"
#include "intel_display.h"
#include "intel_display_core.h"
#include "intel_display_device.h"
#include "intel_display_driver.h"
#include "intel_display_irq.h"
#include "intel_display_types.h"
#include "intel_dmc.h"
#include "intel_dmc_wl.h"
#include "intel_dp.h"
#include "intel_dram.h"
#include "intel_encoder.h"
#include "intel_fbdev.h"
#include "intel_hdcp.h"
#include "intel_hotplug.h"
#include "intel_opregion.h"
#include "skl_watermark.h"
#include "xe_device.h"
#include "xe_display_bo.h"
#include "xe_display_pcode.h"
#include "xe_display_rpm.h"
#include "xe_dsb_buffer.h"
#include "xe_fb_pin.h"
#include "xe_frontbuffer.h"
#include "xe_hdcp_gsc.h"
#include "xe_initial_plane.h"
#include "xe_module.h"
#include "xe_panic.h"
#include "xe_stolen.h"
/* Ensure drm and display members are placed properly. */
INTEL_DISPLAY_MEMBER_STATIC_ASSERT(struct xe_device, drm, display);
/* Xe device functions */
/**
* xe_display_driver_probe_defer - Detect if we need to wait for other drivers
* 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)
{
if (!xe_modparam.probe_display)
return 0;
return intel_display_driver_probe_defer(pdev);
}
static void unset_display_features(struct xe_device *xe)
{
xe->drm.driver_features &= ~XE_DISPLAY_DRIVER_FEATURES;
}
static void xe_display_fini_early(void *arg)
{
struct xe_device *xe = arg;
struct intel_display *display = xe->display;
if (!xe->info.probe_display)
return;
intel_hpd_cancel_work(display);
intel_display_driver_remove_nogem(display);
intel_display_driver_remove_noirq(display);
intel_opregion_cleanup(display);
Annotation
- Immediate include surface: `xe_display.h`, `regs/xe_irq_regs.h`, `linux/fb.h`, `drm/drm_client.h`, `drm/drm_client_event.h`, `drm/drm_drv.h`, `drm/drm_managed.h`, `drm/drm_probe_helper.h`.
- Detected declarations: `function xe_display_driver_probe_defer`, `function unset_display_features`, `function xe_display_fini_early`, `function xe_display_init_early`, `function xe_display_fini`, `function xe_display_init`, `function xe_display_register`, `function xe_display_unregister`, `function xe_display_irq_handler`, `function xe_display_irq_enable`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.