STRUCT XE_MMIO(9)
π struct xe_mmio(9) β like, the register MMIO structure bestie
okay so this is a page from the Kernel API Manual (section 9, the kernel-API girlies know) and honestly? it's giving "here's how the CPU actually talks to the registers." let's get into it π
β¨ NAME β¨
struct xe_mmio β the register mmio structure. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
struct xe_mmio {
struct xe_tile *tile;
void __iomem *regs;
struct xe_gt *sriov_vf_gt;
size_t regs_size;
u32 adj_limit;
u32 adj_offset;
};
like, look at her. six fields. absolutely iconic π«Ά
π¦ Members π¦
tileβ backpointer to the tile, and it's literally only there for tracing. lowkey just a "remember where you came from" girly π«regsβ the map you use to access registers. that's the whole assignment.sriov_vf_gtβ backpointer to the GT (the graphics tile, bestie).
ok important caveat: this pointer is only set for GT MMIO regions, and only when running as an SRIOV VF structure. so like, don't count on it being there π
regs_sizeβ the length of the register region within the map. important distinction!!
so the size of the iomap set in *regs is generally larger than the register mmio space, because it includes unused regions and/or non-register regions such as the GGTT PTEs. she's roomy π
adj_limitβ adjust the MMIO address if the address is below this value.adj_offsetβ the offset you add to the MMIO address when you're adjusting. the little + that could β¨
π₯ Description π₯
so what is this thing? it represents an MMIO region that the CPU may use to access registers. main character energy for real π
and here's the tea: a region may share its IO map with other regions. for example β all GTs within a tile share the same map with their parent tile, but they represent different subregions of the overall IO space. it's giving "same friend group, different subgenres" π§ no cap.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_mmio_types.h struct xe_mmio_range(9)β go read her too, iykyk π
and that's the page, bestie!! this one's from ./drivers/gpu/drm/xe, version date October 2026 β so like, technically from the future, which honestly tracks for this girlie. mwah, slay, periodt π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms