kernel_samsung_a53x/drivers/gpu/drm/amd/pm/powerplay/hwmgr
Srinivasan Shanmugam 1e48045438 drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
[ Upstream commit 6616b5e1999146b1304abe78232af810080c67e3 ]

In 'struct phm_ppm_table *ptr' allocation using kzalloc, an incorrect
structure type is passed to sizeof() in kzalloc, larger structure types
were used, thus using correct type 'struct phm_ppm_table' fixes the
below:

drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:203 get_platform_power_management_table() warn: struct type mismatch 'phm_ppm_table vs _ATOM_Tonga_PPM_Table'

Cc: Eric Huang <JinHuiEric.Huang@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:20 +01:00
..
ci_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fiji_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fiji_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hardwaremanager.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwmgr_ppt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
polaris_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
polaris_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pp_overdriver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pp_overdriver.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pp_psm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pp_psm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppatomctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppatomctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppatomfwctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppatomfwctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppevvmath.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pppcielanes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pppcielanes.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pptable_v1_0.h drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga 2024-11-18 11:43:13 +01:00
process_pptables_v1_0.c drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()' 2024-11-18 12:13:20 +01:00
process_pptables_v1_0.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
processpptables.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
processpptables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_clockpowergating.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_clockpowergating.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_dyn_defaults.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_powertune.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_powertune.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu7_thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu8_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu8_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu9_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu9_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu10_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu10_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu10_inc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu_helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smu_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tonga_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tonga_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_inc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_powertune.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_powertune.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_pptable.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_processpptables.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_processpptables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_inc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_pptable.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_processpptables.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_processpptables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega12_thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_baco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_baco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_hwmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_hwmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_inc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_powertune.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_powertune.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_pptable.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_processpptables.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_processpptables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00