xe_pcode_request(9)
β¨ NAME β¨
okay so this is the Kernel API Manual entry for xe_pcode_request(9) β it's literally the βsend PCODE request until acknowledgmentβ bestie π
β¨ SYNOPSIS β¨
int xe_pcode_request (struct xe_tile *tile , u32 mbox , u32 request ,
u32 reply_mask , u32 reply , int timeout_base_ms );
β¨ ARGUMENTS β¨
tileβ tile π§mboxβ the PCODE mailbox ID that the request is targeted for π¬requestβ request ID πreply_maskβ mask used to check for request acknowledgment π΅οΈββοΈreplyβ value used to check for request acknowledgment βtimeout_base_msβ timeout for polling with preemption enabled β³
β¨ DESCRIPTION β¨
bestie, the vibe is simple: keep resending the request to mbox until PCODE acknowledges it, PCODE reports an error, or an overall timeout of timeout_base_ms+50 ms expires. no cap, that's the whole loop π
The request is acknowledged once the PCODE reply dword equals reply after applying reply_mask. Polling is first attempted with preemption enabled for timeout_base_ms, and if this times out, it goes for another 50 ms with preemption disabled. the way that switch-up is so real π
Returns 0 on success, -ETIMEDOUT in case of a timeout, and <0 in case of some other error as reported by PCODE. periodt π
β¨ SEE ALSO β¨
- Kernel file
./drivers/gpu/drm/xe/xe_pcode.c PCODE(9)xe_pcode_init_min_freq_table(9)xe_pcode_ready(9)xe_pcode_init_early(9)xe_pcode_probe_early(9)xe_get_pcode_version(9)
π«Ά cute little sign-off: this icon was serving ./drivers/gpu/drm/xe energy in the October 2026 edition. slay, and happy polling β¨π
π¦ 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