Guchun Chen 58d9b9a14b drm/amd/pm: parse pp_handle under appropriate conditions
amdgpu_dpm_is_overdrive_supported is a common API across all
asics, so we should cast pp_handle into correct structure
under different power frameworks.

v2: using return directly to simplify code
v3: SI asic does not carry od_enabled member in pp_handle, and update Fixes tag

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2541
Fixes: eb4900aa4c49 ("drm/amdgpu: Fix kernel NULL pointer dereference in dpm functions")
Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2023-05-11 01:06:27 -04:00
..
2023-04-27 11:53:57 -07:00
2023-01-24 17:36:29 +01:00
2023-05-05 11:49:22 -07:00
2023-03-14 17:07:48 +01:00
2023-03-29 16:00:23 +02:00
2023-04-25 16:12:15 -07:00
2023-04-25 16:12:15 -07:00
2023-04-25 16:12:15 -07:00
2023-04-25 16:12:15 -07:00
2023-02-22 18:28:03 -08:00
2023-03-14 17:07:48 +01:00
2023-03-14 17:07:48 +01:00
2023-04-06 15:02:17 +02:00
2023-04-25 16:12:15 -07:00
2023-03-29 16:00:23 +02:00
2023-02-22 18:28:03 -08:00
2023-03-22 10:24:47 +01:00
2023-03-29 16:00:23 +02:00
2023-03-29 16:00:23 +02:00
2023-04-27 12:07:50 -07:00
2023-02-20 14:56:52 +01:00