drivers/gpu/drm/xe/xe_guc_log_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_guc_log_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_guc_log_types.h- Extension
.h- Size
- 1341 bytes
- Lines
- 58
- 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_log_abi.hxe_uc_fw_types.h
Detected Declarations
struct xe_bostruct xe_guc_log_snapshotstruct xe_guc_log
Annotated Snippet
struct xe_guc_log_snapshot {
/** @size: Size in bytes of the @copy allocation */
size_t size;
/** @copy: Host memory copy of the log buffer for later dumping, split into chunks */
void **copy;
/** @num_chunks: Number of chunks within @copy */
int num_chunks;
/** @ktime: Kernel time the snapshot was taken */
u64 ktime;
/** @stamp: GuC timestamp at which the snapshot was taken */
u64 stamp;
/** @level: GuC log verbosity level */
u32 level;
/** @ver_found: GuC firmware version */
struct xe_uc_fw_version ver_found;
/** @ver_want: GuC firmware version that driver expected */
struct xe_uc_fw_version ver_want;
/** @path: Path of GuC firmware blob */
const char *path;
};
/**
* struct xe_guc_log - GuC log
*/
struct xe_guc_log {
/** @level: GuC log level */
u32 level;
/** @bo: Xe BO for GuC log */
struct xe_bo *bo;
/** @stats: logging related stats */
struct {
u32 sampled_overflow;
u32 overflow;
u32 flush;
} stats[GUC_LOG_BUFFER_TYPE_MAX];
};
#endif
Annotation
- Immediate include surface: `linux/types.h`, `abi/guc_log_abi.h`, `xe_uc_fw_types.h`.
- Detected declarations: `struct xe_bo`, `struct xe_guc_log_snapshot`, `struct xe_guc_log`.
- 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.