diff options
author | 2019-04-18 11:53:58 -0400 | |
---|---|---|
committer | 2019-04-23 17:27:25 -0500 | |
commit | bb20be7510203db17c6c09f888cf328e307f1701 (patch) | |
tree | 269b8421a28e63de42bd5b1c05012b07cf67fc65 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/include: Add HUBPREQ_DEBUG register offsets (diff) | |
download | wireguard-linux-bb20be7510203db17c6c09f888cf328e307f1701.tar.xz wireguard-linux-bb20be7510203db17c6c09f888cf328e307f1701.zip |
drm/amdgpu: Check if SW SMU is supported before accessing funcs
smu.ppt_funcs is only initialized for ASICs supporting SW SMU.
On a Hawaii ASIC, attempting to access the udev attribute
ATTRS{power_dpm_state} will cause a null pointer deref in
amdgpu_get_dpm_state() because of this.
Fix by checking if SW SMU is supported first.
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions