amdgpu_gfx_parse_disable_cu(9)
π amdgpu_gfx_parse_disable_cu(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this little page is all about amdgpu_gfx_parse_disable_cu, and yeah the name is a mouthful but she's literally just here to read a module parameter and stash the results. no cap. π«Ά
πΈ NAME πΈ
amdgpu_gfx_parse_disable_cu β the function whose whole personality is parsing the disable_cu module parameter π
β¨ SYNOPSIS β¨
void amdgpu_gfx_parse_disable_cu (struct amdgpu_device *adev , unsigned
int *mask , unsigned int max_se , unsigned int max_sh );
that's it, that's the whole signature, and yes she returns void β no receipts, no return value, she just does the thing and dips π
π¦ ARGUMENTS π¦
adevβ your amdgpu device pointer, the main character of this whole operation πmaskβ the array where all the per-shader array disable masks get stored, like little lockers for each shader array ποΈmax_seβ the number of SEs, that's your count of shader engines, don't lose it πmax_shβ the number of SHs, i.e. your shader array count, equally important, equally iconic β
π DESCRIPTION π
so here's the tea β β the bitmask of CUs that should be disabled, for the shader array identified by se and sh, gets stored right here:
mask[se * max_sh + sh]
it's giving "index math, but make it fashion" β¨ that's the entire lookup formula and she's not changing it for anyone. se, sh, max_sh β all up in there, all doing their part. no notes. π§
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_handle_priv_fault(9)amdgpu_gfx_set_run_cleaner_shader(9)amdgpu_gfx_get_enforce_isolation(9)amdgpu_gfx_set_enforce_isolation(9)amdgpu_gfx_kfd_sch_ctrl(9)amdgpu_gfx_enforce_isolation_handler(9)amdgpu_gfx_enforce_isolation_wait_for_kfd(9)amdgpu_gfx_enforce_isolation_ring_begin_use(9)amdgpu_gfx_enforce_isolation_ring_end_use(9)amdgpu_gfx_csb_preamble_start(9)amdgpu_gfx_csb_data_parser(9)amdgpu_gfx_csb_preamble_end(9)
like, that's the whole friend group right there β go say hi to all of them π«Ά literally every single one is listed, i checked π
π sign-off π
and that's the page!! sourced straight from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and filed under amdgpu_gfx_parse_disable_cu(9) β slay, go read the other pages, ily, bye ππ·
π¦ 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