Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
Leo Li bb20be7510 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>
2019-04-23 17:27:25 -05:00
..
2018-10-24 20:04:03 -05:00
2015-06-03 21:03:15 -04:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2015-06-03 21:03:15 -04:00
2019-01-14 15:04:47 -05:00
2019-01-14 15:04:47 -05:00
2015-06-03 21:03:17 -04:00
2016-08-31 15:21:09 -04:00
2019-01-14 15:04:47 -05:00
2019-04-19 11:33:15 -05:00
2019-03-19 15:36:50 -05:00
2019-01-14 15:04:47 -05:00