linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07: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/amd/pm: Delete get_dal_power_level 2026-05-27 10:47:07 -04:00
hwmgr_ppt.h
hwmgr.c drm/amd/pm/ci: Don't disable MCLK DPM on Bonaire 0x6658 (R7 260X) 2026-07-15 09:15:41 -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/pm: Guard VBIOS AC timing table walk 2026-07-01 11:47:46 -04:00
ppatomctrl.h drm/amd/powerplay: Delete unused function and maths library 2024-10-01 17:42:24 -04:00
ppatomfwctrl.c drm/amd/powerplay: fix VoltageObjectInfo zero-stride loop and OOB read 2026-07-01 11:24:40 -04: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/powerplay: Align get_tonga_state_array() header with prototype 2026-07-01 11:43:56 -04:00
process_pptables_v1_0.h
processpptables.c drm/amd/pm: Validate legacy hwmgr PP table offsets 2026-07-01 11:28:06 -04:00
processpptables.h
smu_helper.c drm/amd/pm: use kcalloc in phm table copy helpers 2026-06-03 13:53:03 -04:00
smu_helper.h drm/amd/pm/smu7: Remove non-functional SMU7 voltage dependency on DAL 2026-03-30 16:48:11 -04:00
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 treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
smu7_hwmgr.h drm/amd/pm/smu7: Add SCLK cap for quirky Hawaii board 2026-03-30 16:49:01 -04:00
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/amd/pm: Delete vddc_dep_on_dal_pwrl 2026-05-27 10:47:01 -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/amd/pm: Delete vddc_dep_on_dal_pwrl 2026-05-27 10:47:01 -04: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
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 drm/amd/pm: Clean up errors in vega10_baco.c 2023-08-09 09:40:22 -04:00
vega10_baco.h
vega10_hwmgr.c drm/amd/pm: use milliwatts for GPU power sensors 2026-07-28 19:17:33 -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/pm: Validate Vega10 PPTable subtable bounds 2026-07-01 11:28:09 -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/amd/pm: use milliwatts for GPU power sensors 2026-07-28 19:17:33 -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 drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds 2026-07-01 11:28:03 -04:00
vega12_processpptables.h
vega12_thermal.c drm/amd/pm: fulfill the missing enablement for vega12/vega20 L2H and H2L interrupts 2023-06-30 13:11:35 -04:00
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/amd/pm: use milliwatts for GPU power sensors 2026-07-28 19:17:33 -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: Validate Vega hwmgr PowerPlay table bounds 2026-07-01 11:28:03 -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