diff options
author | 2024-03-11 14:38:34 +0800 | |
---|---|---|
committer | 2024-03-20 13:12:57 -0400 | |
commit | 08ae9ef829b8055c2fdc8cfee37510c1f4721a07 (patch) | |
tree | 813f9984a9e959548cce5f7f338d7c09c397f47e /tools/perf/scripts/python | |
parent | drm/amdgpu: Skip access PF-only registers on gfx10/gfxhub2_1 under SRIOV (diff) | |
download | wireguard-linux-08ae9ef829b8055c2fdc8cfee37510c1f4721a07.tar.xz wireguard-linux-08ae9ef829b8055c2fdc8cfee37510c1f4721a07.zip |
drm/amdgpu/pm: Fix NULL pointer dereference when get power limit
Because powerplay_table initialization is skipped under
sriov case, We check and set default lower and upper OD
value if powerplay_table is NULL.
Fixes: 7968e9748fbb ("drm/amdgpu/pm: Fix the power1_min_cap value")
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reported-by: Yin Zhenguo <zhenguo.yin@amd.com>
Suggested-by: Lazar Lijo <lijo.lazar@amd.com>
Suggested-by: Alex Deucher <Alexander.Deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions