amdgpu_debug...sidency_read(9)
π amdgpu_debugfs_gfxoff_residency_read β read GFXOFF residency (yes bestie, the whole thing)
okay so this little cutie lives in the Kernel API Manual and its full government name is amdgpu_debug...sidency_read(9) β but the actual function is amdgpu_debugfs_gfxoff_residency_read, and she is literally here to hand you a GFXOFF residency sample. slay. π¦
β¨ SYNOPSIS β¨
ssize_t amdgpu_debugfs_gfxoff_residency_read (struct file *f , char
__user *buf , size_t size , loff_t *pos );
that's the whole vibe. one function, four args, returns an ssize_t. no cap. π
π ARGUMENTS π
fβ the open file handle. like, the file you already have open. main character energy.bufβ user buffer where the read data gets stored. this is where the data goes to live its best life. π«Άsizeβ number of bytes to read. how much you want, bestie.posβ the offset to seek to. where you're starting from. iykyk.
πΈ DESCRIPTION πΈ
so the way that this works is: it reads a live GFXOFF residency sample from firmware. one sample. live. from firmware. π₯
β οΈ but listen β one needs to start logging before getting the current value. like, do not come in here expecting a number if you haven't already started logging, because you will simply not get one. periodt. π
not me warning you again: start logging first. that's the whole trick. π
π SEE ALSO π
the kernel file herself:
./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
and her whole friend group, all showing up to the group chat with their (9) in hand π§:
amdgpu_debugfs_process_reg_op(9)amdgpu_debugfs_regs_pcie_read(9)amdgpu_debugfs_regs_pcie_write(9)amdgpu_debugfs_regs_pcie64_read(9)amdgpu_debugfs_regs_pcie64_write(9)amdgpu_debugfs_regs_didt_read(9)amdgpu_debugfs_regs_didt_write(9)amdgpu_debugfs_regs_smc_read(9)amdgpu_debugfs_regs_smc_write(9)amdgpu_debugfs_gca_config_read(9)amdgpu_debugfs_sensor_read(9)amdgpu_debugfs_gfxoff_residency_write(9)amdgpu_debugfs_gfxoff_count_read(9)amdgpu_debugfs_gfxoff_write(9)amdgpu_debugfs_gfxoff_read(9)amdgpu_debugfs_regs_init(9)
and that's the page!! mwah π this icon is brought to you by the fine people at ./drivers/gpu/drm/amd/amdgpu, dated October 2026, living under the <rainbow>Kernel API Manual</rainbow> umbrella. go start that logging bestie πβ¨
π¦ 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