amdgpu_fence...aled_time_us(9)
π amdgpu_fence...aled_time_us(9) β like, the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the Kernel API Manual, flipping through pages, and you land on amdgpu_fence_last_unsignaled_time_us(9). Iconic. Sit down, grab a strawberry π, and let me tell you everything about it. No cap, we're getting into the fence lore.
β¨ NAME β¨
amdgpu_fence_last_unsignaled_time_us β literally the time the fence was emitted up until now ππ«
π SYNOPSIS π
u64 amdgpu_fence_last_unsignaled_time_us (struct amdgpu_ring *ring );
That's it. That's the whole vibe. It hands you back a u64. Slay.
πΈ ARGUMENTS πΈ
ringβ the ring that the fence is associated with π like, the fence's main character context, y'know?
π¦ DESCRIPTION π¦
So here's what it does, and I need you to pay attention because it's lowkey cute:
It finds the earliest fence that's still unsignaled until now β the oldest one still waiting, essentially β and then it calculates the time delta between the moment that fence was emitted and now. β±οΈβ¨
That's the whole thing. Find the earliest unsignaled fence, measure emitted-time β now. Periodt. π
π SEE ALSO π
The kernel file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c β go read it, iykyk π
And honestly the whole friend group is here, so let me introduce the squad:
amdgpu_fence_write(9)amdgpu_fence_read(9)amdgpu_fence_emit(9)amdgpu_fence_emit_polling(9)amdgpu_fence_schedule_fallback(9)amdgpu_fence_process(9)amdgpu_fence_fallback(9)amdgpu_fence_wait_empty(9)amdgpu_fence_wait_polling(9)amdgpu_fence_count_emitted(9)amdgpu_fence_update_start_timestamp(9)amdgpu_fence_driver_start_ring(9)amdgpu_fence_driver_init_ring(9)amdgpu_fence_driver_sw_init(9)amdgpu_fence_need_ring_interrupt_restore(9)amdgpu_fence_driver_hw_fini(9)amdgpu_fence_driver_hw_init(9)amdgpu_fence_driver_set_error(9)amdgpu_fence_driver_force_completion(9)amdgpu_ring_set_fence_errors_and_reemit(9)amdgpu_fence_enable_signaling(9)amdgpu_fence_free(9)amdgpu_fence_release(9)
Not me listing the entire group chat π but fr fr, they're all worth a read π«Ά
π§ and that's the page!! go forth and measure your fences, bestie π
Okay bye, love you, this came from ./drivers/gpu/drm/amd/amdgpu, October 2026 edition βπ₯π
π¦ 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