amdgpu_ring_init(9)
πΈ NAME πΈ
amdgpu_ring_init(9) β okay bestie, this is from the Kernel API Manual, and the function is amdgpu_ring_init: init driver ring struct. β¨
β¨ SYNOPSIS β¨
int amdgpu_ring_init (struct amdgpu_device *adev , struct amdgpu_ring
*ring , unsigned int max_dw , struct amdgpu_irq_src *irq_src , unsigned
int irq_type , unsigned int hw_prio , atomic_t *sched_score );
π«Ά ARGUMENTS π«Ά
adevβ theamdgpu_devicepointer, aka the GPU situation you're working with πringβ theamdgpu_ringstructure holding ring information πmax_dwβ maximum number of dw for the ring alloc, so set that limit bestie β¨irq_srcβ interrupt source to use for this ring π¦irq_typeβ interrupt type to use for this ring πΈhw_prioβ ring priority, and it's givingNORMAL/HIGHπsched_scoreβ optional score atomic shared with other schedulers, no cap π
π DESCRIPTION π
So what this does is initialize the driver information for the selected ring, for all asics. That's the whole vibe. β¨
It returns 0 on success, and an error on failure. Periodt. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
amdgpu_ring_max_ibs(9)amdgpu_ring_alloc(9)amdgpu_ring_insert_nop(9)amdgpu_ring_generic_pad_ib(9)amdgpu_ring_commit(9)amdgpu_ring_undo(9)amdgpu_ring_fini(9)amdgpu_ring_emit_reg_write_reg_wait_helper(9)amdgpu_ring_soft_recovery(9)amdgpu_ring_test_helper(9)amdgpu_multi_ring_reset_helper_begin(9)amdgpu_multi_ring_reset_helper_end(9)
This iconic little page is from the Kernel API Manual, source/version vibes at ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and that's the whole amdgpu_ring_init(9) moment. Bye bestie, slay your rings! π
πβ¨
π¦ 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