xe_device_wmb(9)
π xe_device_wmb(9) β like, the whole kernel API manual moment, bestie
okay so real talk, this is xe_device_wmb(9) from the Kernel API Manual, and it's short but it's important, so let's get into it π«Ά
β¨ NAME β¨
xe_device_wmb β the device-specific write memory barrier. that's it, that's the vibe π«
πΈ SYNOPSIS πΈ
void xe_device_wmb (struct xe_device *xe );
π ARGUMENTS π
xeβ thexe_device. that's your girl. hand her over and she does the thing π
π¦ DESCRIPTION π¦
okay so here's the tea β β wmb is sufficient for a barrier if we use system memory. like, it's literally enough. iconic behavior honestly.
BUT. and this is the big but π₯ β on discrete platforms with device memory, that is not enough, and we additionally need to issue a register write. no cap.
and then the cute part: since it doesn't matter which register we write to, we use the read-only VF_CAP register β which is also marked as accessible by the VFs. efficiency queen πβ¨
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/xe/xe_device.c xe_file_get(9)xe_file_put(9)xe_is_xe_file(9)xe_device_is_admin_only(9)xe_device_create(9)xe_device_init_early(9)xe_device_probe_early(9)xe_device_is_l2_flush_optimized(9)xe_device_td_flush(9)xe_device_assert_mem_access(9)- Xe Device Wedging(9)
xe_device_set_wedged_method(9)xe_device_declare_wedged(9)xe_device_validate_wedged_mode(9)xe_wedged_mode_to_string(9)xe_device_asid_to_vm(9)
ok bestie that's the whole page, go forth and barrier your writes properly π
mwah π this lil masterpiece lives in ./drivers/gpu/drm/xe and it's dated October 2026 β periodt, that's a wrap πβ¨
π¦ 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