diff options
author | 2023-05-05 13:20:11 +0800 | |
---|---|---|
committer | 2023-05-11 01:06:27 -0400 | |
commit | 58d9b9a14b47c2a3da6effcbb01607ad7edc0275 (patch) | |
tree | d88b95f92dbda1a1e2771c0b470047198ba00783 /scripts/generate_rust_analyzer.py | |
parent | drm/amdgpu: set gfx9 onwards APU atomics support to be true (diff) | |
download | wireguard-linux-58d9b9a14b47c2a3da6effcbb01607ad7edc0275.tar.xz wireguard-linux-58d9b9a14b47c2a3da6effcbb01607ad7edc0275.zip |
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
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions