smu_dpm_set_power_gate(9)
π smu_dpm_set_power_gate(9) π
okay so welcome to smu_dpm_set_power_gate(9), straight outta the Kernel API Manual β this is your girl's guide to gating and ungating a specific IP block, and yes we're gonna slay it β¨
πΈ NAME πΈ
smu_dpm_set_power_gate β power gate/ungate the specific IP block π
π¦ SYNOPSIS π¦
int smu_dpm_set_power_gate (void *handle , uint32_t block_type , bool
gate , int inst );
π ARGUMENTS π
handleβ thesmu_contextpointer, iconic, the main character of this whole function ngl π«Άblock_typeβ which IP block we're power gating/ungating, iykykgateβ if it'struewe power gate it, otherwise we ungate it. literally that simple πinstβ which instance of the IP block we're power gating/ungating, like which copy bestie π
β¨ DESCRIPTION β¨
so this API uses no smu->mutex lock protection, and before you come for her, here's exactly why:
- It's either called by another IP block (
gfx/sdma/vcn/uvd/vce) β and that call is guarded to be race condition free by the caller. so the caller's got her back, no cap π - Or it gets called on a user setting request of
power_dpm_force_performance_level. In that case, thesmu->mutexlock protection is already enforced on the parent APIsmu_force_performance_levelof the call path. so like, it's handled upstream, we're good π₯
fr fr though, don't go thinking you should add your own locking casually β this page is telling you why she doesn't need it in these two cases π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
smu_set_user_clk_dependencies(9)smu_restore_dpm_user_profile(9)smu_alloc_memory_pool(9)smu_wbrf_handle_exclusion_ranges(9)smu_wbrf_event_handler(9)smu_wbrf_delayed_work_handler(9)smu_wbrf_support_check(9)smu_wbrf_init(9)smu_wbrf_fini(9)smu_get_ppt_limit(9)smu_reset_sdma_is_supported(9)
and that's the whole page bestie, you ate that π
signing off from ./drivers/gpu/drm/amd/pm/swsmu β that's the source, the version is the Kernel API Manual, and this cutie's dated October 2026 π
β¨ see you in the next manpage mwah ππ
π¦ 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