amdgpu_ras_...count_helper(9)
β¨ amdgpu_ras_query_error_count_helper β¨
okay bestie so this is a page straight out of the Kernel API Manual (that's the manual name, keep it in your back pocket π ) and it's all about one little function in the AMDGPU RAS world. Sit down, hydrate, let's go π«Ά
πΈ NAME πΈ
amdgpu_ras_query_error_count_helper β literally just Get error counter for specific IP. That's the whole job. It fetches the error counter for a specific IP, no cap.
π SYNOPSIS π
int amdgpu_ras_query_error_count_helper (struct amdgpu_device *adev ,
unsigned long *ce_count , unsigned long *ue_count , struct ras_query_if
*query_info );
that's the signature, copy it exactly, don't freestyle it π
π¦ ARGUMENTS π¦
adevβ pointer to AMD GPU device. like, the device. the main character πce_countβ pointer to an integer that gets set to the count of correctible errors. (yes, spelled correctible in the original, we're keeping the spelling, iykyk)ue_countβ pointer to an integer that gets set to the count of uncorrectible errors. also keeping that spelling, we don't fix what the kernel wrote πquery_infoβ pointer toras_query_if. that's it, that's the whole description, she's lowkey mysterious π§
π DESCRIPTION π
so the deal is: it returns 0 when the query succeeds β or it just does nothing β and otherwise it returns an error on failures. that's the vibe check, fr fr. success = 0, failure = error, nothing in between β¨
π SEE ALSO π
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.cAMDGPU RAS debugfs control interface(9)AMDGPU RAS debugfs EEPROM table reset interface(9)AMDGPU RAS sysfs Error Count Interface(9)amdgpu_ras_query_error_count(9)AMDGPU RAS sysfs gpu_vram_bad_pages Interface(9)AMDGPU RAS Reboot Behavior for Unrecoverable Errors(9)
go read those too, they're the friend group π«Ά
and that's the page!! it lives under ./drivers/gpu/drm/amd/amdgpu and the version stamp is October 2026 β so yeah, from the future, iconic β thanks for reading bestie, you ate πππ₯
π¦ 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