xe_rtp_process_to_sr(9)
π xe_rtp_process_to_sr β the kernel API manual, bestie edition π
okay so this is xe_rtp_process_to_sr(9) from the Kernel API Manual, and honestly? it's giving "little function, big job." it walks a table, checks the rules, and files the matching stuff into your save-restore struct. slay. let's get into it β¨
β¨ NAME β¨
xe_rtp_process_to_sr β processes all the rtp @entries, and adds the ones that match into the save-restore argument. that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
void xe_rtp_process_to_sr (struct xe_rtp_process_ctx *ctx , const struct
xe_rtp_table_sr *table , struct xe_reg_sr *sr , bool process_in_vf );
like, look at her. four params, one void, zero drama. periodt π
π¦ ARGUMENTS π¦
okay bestie, here's who's who in the group chat:
ctxβ the context for processing the table, and it comes with exactly one of: device, gt, or hwe. pick your main character πtableβ the table with the RTP definitions. the source material, the lore, iykyk.srβ the save-restore struct where matching rules execute the action. think of it as the "coalesced view" of multiple of the tables. β οΈ heads up: the bits for each register set are expected not to collide with previously added entries β no cap, that's a real expectation, don't be messy.process_in_vfβ whether this RTP table should get processed for SR-IOV VF devices. should generally only be'true'for LRC tables. so like, don't just set it true for fun π
π₯ DESCRIPTION π₯
so what does she actually do? walk the table pointed by entries (with an empty sentinel β yes, the sentinel is iconic and necessary), and add all entries with matching rules to sr. π
and if hwe is not NULL, its mmio_base is used to calculate the right register offset. the way that offset math justβ¦ works. obsessed. β
π SEE ALSO π
go be nosy, bestie:
- Kernel file
./drivers/gpu/drm/xe/xe_rtp.c Register Table Processing(9)xe_rtp_process_ctx_enable_active_tracking(9)xe_rtp_process(9)
and that's the whole page, no notes π
cute little sign-off: this masterpiece lives under ./drivers/gpu/drm/xe, dated October 2026, and it's literally called xe_rtp_process_to_sr(9). go forth and process those entries π§ββοΈπ
π¦ 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