kernel_samsung_a53x/drivers/gpu/drm/amd/pm
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
..
inc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powerplay drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()' 2024-11-18 12:13:20 +01:00
swsmu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amdgpu_dpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amdgpu_pm.c drm/amd/pm: Handle non-terminated overdrive commands. 2024-11-18 11:43:31 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00