STRUCT XE_PAT_TABLE_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct xe_pat_table_entry β€” bestie, this is literally the pat_index encoding plus all its little meta info besties πŸŽ€ (yes, this whole page lives in the Kernel API Manual, and it's giving "I have one job and I slay it") πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole struct, no cap, exactly as it is:

struct xe_pat_table_entry {
    u32 value;
  #define XE_COH_NONE             1;
  #define XE_COH_1WAY             2;
  #define XE_COH_2WAY             3;
    u16 coh_mode;
    u16 valid;
 };

like… look at her. iconic. ✨


🌸 Members 🌸

  • value β€” the platform specific value that encodes the various memory attributes (this maps to some fixed pat_index). so like caching, coherency, compression etc etc can all be encoded right here. it's giving "one field, many secrets" πŸ”₯
  • coh_mode β€” the GPU coherency mode that value maps to. and the modes are these, verbatim:
    • XE_COH_NONE β€” 1;
    • XE_COH_1WAY β€” 2;
    • XE_COH_2WAY β€” 3;

ngl the one-way vs two-way coherency thing is a whole vibe check of its own πŸ’€

  • valid β€” set to 1 if the entry is valid, 0 if it's reserved. that's it. that's the whole field. simple queen πŸ‘‘
🫢 tiny reminder bestie: value is platform specific, so don't go assuming the encoding is the same everywhere β€” the struct is the stable part, the bits are not. iykyk.

πŸ”₯ SEE ALSO πŸ”₯

go read those next, they're lowkey the sequel era of this page πŸ“šβœ¨


aaaand that's the whole thing! πŸ’– this page came from ./drivers/gpu/drm/xe, dated October 2026, and it's filed under Kernel API Manual β€” so like, five years from now when you're googling this again, you know exactly where to find her. periodt. πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from