diff options
| author | Ma Jun <[email protected]> | 2024-03-11 06:38:34 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-03-20 17:12:57 +0000 |
| commit | 08ae9ef829b8055c2fdc8cfee37510c1f4721a07 (patch) | |
| tree | 813f9984a9e959548cce5f7f338d7c09c397f47e /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amdgpu: Skip access PF-only registers on gfx10/gfxhub2_1 under SRIOV (diff) | |
| download | kernel-08ae9ef829b8055c2fdc8cfee37510c1f4721a07.tar.gz kernel-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 <[email protected]>
Reported-by: Yin Zhenguo <[email protected]>
Suggested-by: Lazar Lijo <[email protected]>
Suggested-by: Alex Deucher <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
