linux-loongson/drivers/gpu/drm/amd/pm/powerplay/hwmgr
Fedor Pchelkin a54e4639c4 drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value
There is a small typo in phm_wait_on_indirect_register().

Swap mask and value arguments provided to phm_wait_on_register() so that
they satisfy the function signature and actual usage scheme.

Found by Linux Verification Center (linuxtesting.org) with Svace static
analysis tool.

In practice this doesn't fix any issues because the only place this
function is used uses the same value for the value and mask.

Fixes: 3bace35914 ("drm/amd/powerplay: add hardware manager sub-component")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-07-07 13:47:02 -04:00
..
ci_baco.c drm/amdgpu: Clean up errors in ci_baco.c 2023-08-09 09:40:46 -04:00
ci_baco.h
common_baco.c drm/amdgpu: Clean up errors in common_baco.c 2023-08-09 09:40:42 -04:00
common_baco.h
fiji_baco.c drm/amd/pm: Clean up errors in fiji_baco.c 2023-08-09 09:40:31 -04:00
fiji_baco.h
hardwaremanager.c drm/amdgpu: Remove phm_powerdown_uvd 2025-03-05 10:44:29 -05:00
hwmgr_ppt.h
hwmgr.c drm/amd/pm/powerplay/hwmgr/hwmgr: Clean up errors in hwmgr.c 2023-08-09 09:41:12 -04:00
Makefile
polaris_baco.c drm/amd/pm: Clean up errors in polaris_baco.c 2023-08-09 09:41:18 -04:00
polaris_baco.h
pp_overdriver.c
pp_overdriver.h
pp_psm.c drm/amd/pm: check negtive return for table entries 2024-05-13 16:12:02 -04:00
pp_psm.h
ppatomctrl.c drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table 2025-04-07 15:18:58 -04:00
ppatomctrl.h drm/amd/powerplay: Delete unused function and maths library 2024-10-01 17:42:24 -04:00
ppatomfwctrl.c drm/amdgpu: Remove ppatomfwctrl deadcode 2025-03-05 10:43:11 -05:00
ppatomfwctrl.h drm/amdgpu: Remove ppatomfwctrl deadcode 2025-03-05 10:43:11 -05:00
pppcielanes.c
pppcielanes.h
pptable_v1_0.h drm/amd/pm: powerplay: Add __counted_by attribute for flexible arrays 2024-06-19 12:52:25 -04:00
process_pptables_v1_0.c drm/amdgpu/pm: Drop hard-code value of usTMax 2024-05-17 17:40:36 -04:00
process_pptables_v1_0.h
processpptables.c drm/amd/pm: ensure the fw_info is not null before using it 2024-08-20 22:14:14 -04:00
processpptables.h
smu7_baco.c drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
smu7_baco.h drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
smu7_clockpowergating.c drm/amdgpu: Remove powerdown_uvd member 2025-03-05 10:44:37 -05:00
smu7_clockpowergating.h drm/amdgpu: Remove powerdown_uvd member 2025-03-05 10:44:37 -05:00
smu7_dyn_defaults.h
smu7_hwmgr.c drm/amdgpu: Remove powerdown_uvd member 2025-03-05 10:44:37 -05:00
smu7_hwmgr.h
smu7_powertune.c drm/amdgpu: Clean up errors in smu7_powertune.c 2023-08-09 09:40:40 -04:00
smu7_powertune.h
smu7_thermal.c drm/amd/pm: Prevent division by zero 2025-03-26 17:41:43 -04:00
smu7_thermal.h
smu8_hwmgr.c drm/amdgpu: fixing typo in macro name 2025-05-22 12:01:57 -04:00
smu8_hwmgr.h
smu9_baco.c drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
smu9_baco.h drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
smu10_hwmgr.c drm/amdgpu: Remove powerdown_uvd member 2025-03-05 10:44:37 -05:00
smu10_hwmgr.h drm/amd/pm: Annotate struct smu10_voltage_dependency_table with __counted_by 2023-10-05 11:29:03 +02:00
smu10_inc.h
smu_helper.c drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value 2025-07-07 13:47:02 -04:00
smu_helper.h drm/amdgpu/powerplay: Clean up errors in smu_helper.h 2023-08-09 09:40:59 -04:00
tonga_baco.c drm/amd/pm: Clean up errors in tonga_baco.c 2023-08-09 09:41:10 -04:00
tonga_baco.h
vega10_baco.c
vega10_baco.h
vega10_hwmgr.c drm/amd/pm: fix unchecked return value warning for vega10_hwmgr 2024-08-06 11:11:03 -04:00
vega10_hwmgr.h
vega10_inc.h
vega10_powertune.c drm/amd/pm: Fix an error handling path in vega10_enable_se_edc_force_stall_config() 2024-12-10 10:26:47 -05:00
vega10_powertune.h
vega10_pptable.h drm/amd: Fix UBSAN array-index-out-of-bounds for Powerplay headers 2023-11-03 11:59:51 -04:00
vega10_processpptables.c drm/amd: Clean up errors in vega10_processpptables.c 2023-08-09 09:40:57 -04:00
vega10_processpptables.h
vega10_thermal.c drm/amd/pm: Prevent division by zero 2025-03-26 17:41:37 -04:00
vega10_thermal.h
vega12_baco.c drm/amd/pm: Clean up errors in vega12_baco.c 2023-08-09 09:40:38 -04:00
vega12_baco.h
vega12_hwmgr.c drm/amdgpu/pm: Fix uninitialized variable warning for smu10 2024-05-08 15:17:04 -04:00
vega12_hwmgr.h drm/amd/pm: Clean up errors in vega12_hwmgr.h 2023-08-09 09:41:14 -04:00
vega12_inc.h
vega12_pptable.h drm/amd/pm: Clean up errors in vega12_pptable.h 2023-08-09 09:40:36 -04:00
vega12_processpptables.c
vega12_processpptables.h
vega12_thermal.c
vega12_thermal.h
vega20_baco.c drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
vega20_baco.h drm/amdgpu/pm: Add support for MACO flag checking 2024-04-09 22:07:59 -04:00
vega20_hwmgr.c drm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCs 2024-05-13 15:44:52 -04:00
vega20_hwmgr.h drm/amd/pm: Clean up errors in vega20_hwmgr.h 2023-08-09 09:41:01 -04:00
vega20_inc.h
vega20_powertune.c
vega20_powertune.h
vega20_pptable.h drm/amd/pm: Clean up errors in vega20_pptable.h 2023-08-09 09:41:16 -04:00
vega20_processpptables.c drm/amd/pm: remove dump_pptable functions 2024-10-01 17:41:13 -04:00
vega20_processpptables.h
vega20_thermal.c drm/amd/pm: Prevent division by zero 2025-03-26 17:41:31 -04:00
vega20_thermal.h