drivers/gpu/drm/xe/xe_gt_sriov_pf_policy_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_gt_sriov_pf_policy_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy_types.h- Extension
.h- Size
- 2287 bytes
- Lines
- 71
- 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/types.habi/guc_scheduler_abi.h
Detected Declarations
struct xe_gt_sriov_scheduler_groupsstruct xe_gt_sriov_guc_policiesstruct xe_gt_sriov_pf_policyenum xe_sriov_sched_group_modes
Annotated Snippet
struct xe_gt_sriov_scheduler_groups {
u8 max_groups;
u32 supported_modes;
enum xe_sriov_sched_group_modes current_mode;
struct {
struct guc_sched_group *groups;
u32 num_groups;
} modes[XE_SRIOV_SCHED_GROUPS_MODES_COUNT];
};
/**
* struct xe_gt_sriov_guc_policies - GuC SR-IOV policies.
* @sched_if_idle: controls strict scheduling policy.
* @reset_engine: controls engines reset on VF switch policy.
* @sample_period: adverse events sampling period (in milliseconds).
* @sched_groups: available scheduling group configurations.
*/
struct xe_gt_sriov_guc_policies {
bool sched_if_idle;
bool reset_engine;
u32 sample_period;
struct xe_gt_sriov_scheduler_groups sched_groups;
};
/**
* struct xe_gt_sriov_pf_policy - PF policy data.
* @guc: GuC scheduling policies.
*/
struct xe_gt_sriov_pf_policy {
struct xe_gt_sriov_guc_policies guc;
};
#endif
Annotation
- Immediate include surface: `linux/types.h`, `abi/guc_scheduler_abi.h`.
- Detected declarations: `struct xe_gt_sriov_scheduler_groups`, `struct xe_gt_sriov_guc_policies`, `struct xe_gt_sriov_pf_policy`, `enum xe_sriov_sched_group_modes`.
- 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.