amdgpu_fenc...rt_timestamp(9)
π amdgpu_fence_update_start_timestamp(9) β the kernel API manual, but make it friendly
okay so bestie, welcome to the amdgpu_fence_update_start_timestamp(9) page π this is from the Kernel API Manual (that's the manual name, iykyk) and it's literally one function, but she's an icon.
β¨ NAME β¨
amdgpu_fence_update_start_timestamp β update the timestamp of the fence π
like. the whole job. she stamps the fence. periodt.
πΈ SYNOPSIS πΈ
void amdgpu_fence_update_start_timestamp (struct amdgpu_ring *ring ,
uint32_t seq , ktime_t timestamp );
returns void, so no take-backs, no return value to obsess over π
π¦ ARGUMENTS π¦
ringβ the ring the fence is associated with π (yes that ring, the amdgpu one)seqβ the fence seq number to update. the specific one. no cap.timestampβ the start timestamp to update. this is the whole point of the function, slay β
π DESCRIPTION π
so here's the tea π: this function gets called at the time the fence and the related ib is about to be resubmitted to the gpu β specifically in the MCBP scenario. main character energy, honestly.
and because of when it's called, we do not consider race conditions with amdgpu_fence_process to modify the same fence. like, that's just not a thing we're worried about here π the timing means it's not an issue, fr fr.
lowkey important: that "we do not consider race condition" line is doing real work. don't go adding your own locking adventure, bestie π
π₯ SEE ALSO π₯
the kernel file, in all her glory:
./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
and the whole fence friend group π«Ά β every single one, no skips:
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_last_unsignaled_time_us(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)
and that's the page, bestie ππ she lives in ./drivers/gpu/drm/amd/amdgpu, she's dated October 2026, and honestly? iconic. go update some timestamps responsibly πβ¨ </output>
π¦ 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