linux/drivers/gpu/drm/amd/pm
ZhenGuo Yin 5af392a89b drm/amd/pm: Init pm_attr_list when dpm is disabled
[Why]
In SRIOV multi-vf, dpm is always disabled, and pm_attr_list won't
be initialized. There will be a NULL pointer call trace after
removing the dpm check condition in amdgpu_pm_sysfs_fini.
BUG: kernel NULL pointer dereference, address: 0000000000000000
RIP: 0010:amdgpu_device_attr_remove_groups+0x20/0x90 [amdgpu]
Call Trace:
  <TASK>
  amdgpu_pm_sysfs_fini+0x2f/0x40 [amdgpu]
  amdgpu_device_fini_hw+0xdf/0x290 [amdgpu]

[How]
List pm_attr_list should be initialized when dpm is disabled.

Fixes: a6ad27cec5 ("drm/amd/pm: Remove redundant check condition")
Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-10-17 17:41:21 -04:00
..
inc drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00
legacy-dpm drivers/amd/pm: check the return value of amdgpu_bo_kmap 2022-10-06 11:57:29 -04:00
powerplay drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly" 2022-10-17 17:41:20 -04:00
swsmu drm/amd/pm: disable cstate feature for gpu reset scenario 2022-10-17 17:41:21 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00
amdgpu_pm.c drm/amd/pm: Init pm_attr_list when dpm is disabled 2022-10-17 17:41:21 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00