drivers/gpu/drm/xe/xe_force_wake_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_force_wake_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_force_wake_types.h- Extension
.h- Size
- 3899 bytes
- Lines
- 111
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/mutex.hlinux/types.hregs/xe_reg_defs.h
Detected Declarations
struct xe_force_wake_domainstruct xe_force_wakeenum xe_force_wake_domain_idenum xe_force_wake_domains
Annotated Snippet
struct xe_force_wake_domain {
/** @id: domain force wake id */
enum xe_force_wake_domain_id id;
/** @reg_ctl: domain wake control register address */
struct xe_reg reg_ctl;
/** @reg_ack: domain ack register address */
struct xe_reg reg_ack;
/** @val: domain wake write value */
u32 val;
/** @mask: domain mask */
u32 mask;
/** @ref: domain reference */
u32 ref;
};
/**
* struct xe_force_wake - Xe force wake collection
*
* Represents a collection of related power domains (struct
* xe_force_wake_domain) associated with a subunit of the device.
*
* Currently only used for GT power domains (where the term "forcewake" is used
* in the hardware documentation), although the interface could be extended to
* power wells in other parts of the hardware in the future.
*/
struct xe_force_wake {
/** @gt: back pointers to GT */
struct xe_gt *gt;
/** @lock: protects everything force wake struct */
spinlock_t lock;
/** @awake_domains: mask of all domains awake */
unsigned int awake_domains;
/** @initialized_domains: mask of all initialized domains */
unsigned int initialized_domains;
/** @domains: force wake domains */
struct xe_force_wake_domain domains[XE_FW_DOMAIN_ID_COUNT];
};
#endif
Annotation
- Immediate include surface: `linux/mutex.h`, `linux/types.h`, `regs/xe_reg_defs.h`.
- Detected declarations: `struct xe_force_wake_domain`, `struct xe_force_wake`, `enum xe_force_wake_domain_id`, `enum xe_force_wake_domains`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
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.