mirror-linux/drivers/gpu/drm/amd/pm
Guchun Chen 506da05a5e drm/amd/pm: avoid potential UBSAN issue on legacy asics
commit 5247f05ead upstream.

Prevent further dpm casting on legacy asics without od_enabled in
amdgpu_dpm_is_overdrive_supported. This can avoid UBSAN complain
in init sequence.

v2: add a macro to check legacy dpm instead of checking asic family/type
v3: refine macro name for naming consistency

Suggested-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-17 11:53:50 +02:00
..
inc drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00
legacy-dpm drivers/amd/pm: check the return value of amdgpu_bo_kmap 2022-10-06 11:57:29 -04:00
powerplay Revert "drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly"" 2023-01-18 11:58:14 +01:00
swsmu drm/amd/pm: re-enable the gfx imu when smu resume 2023-05-11 23:03:04 +09:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-05-17 11:53:50 +02:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amdgpu: Enable vclk dclk node for gc11.0.3 2023-02-22 12:59:45 +01:00