drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h
Extension
.h
Size
1789 bytes
Lines
61
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct xe_gt_sriov_config {
	/** @ggtt_region: GGTT region assigned to the VF. */
	struct xe_ggtt_node *ggtt_region;
	/** @lmem_obj: LMEM allocation for use by the VF. */
	struct xe_bo *lmem_obj;
	/** @num_ctxs: number of GuC contexts IDs.  */
	u16 num_ctxs;
	/** @begin_ctx: start index of GuC context ID range. */
	u16 begin_ctx;
	/** @num_dbs: number of GuC doorbells IDs. */
	u16 num_dbs;
	/** @begin_db: start index of GuC doorbell ID range. */
	u16 begin_db;
	/** @exec_quantum: execution-quantum in milliseconds. */
	u32 exec_quantum[GUC_MAX_SCHED_GROUPS];
	/** @preempt_timeout: preemption timeout in microseconds. */
	u32 preempt_timeout[GUC_MAX_SCHED_GROUPS];
	/** @sched_priority: scheduling priority. */
	u32 sched_priority;
	/** @thresholds: GuC thresholds for adverse events notifications. */
	u32 thresholds[XE_GUC_KLV_NUM_THRESHOLDS];
};

/**
 * struct xe_gt_sriov_spare_config - GT-level PF spare configuration data.
 *
 * Used by the PF driver to maintain it's own reserved (spare) provisioning
 * data that is not applicable to be tracked in struct xe_gt_sriov_config.
 */
struct xe_gt_sriov_spare_config {
	/** @ggtt_size: GGTT size. */
	u64 ggtt_size;
	/** @lmem_size: LMEM size. */
	u64 lmem_size;
	/** @num_ctxs: number of GuC submission contexts. */
	u16 num_ctxs;
	/** @num_dbs: number of GuC doorbells. */
	u16 num_dbs;
};

#endif

Annotation

Implementation Notes