1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm
Yefim Barashkin 1e866f1fe5 drm/amd/pm: Prevent divide by zero
divide error: 0000 [#1] SMP PTI
CPU: 3 PID: 78925 Comm: tee Not tainted 5.15.50-1-lts #1
Hardware name: MSI MS-7A59/Z270 SLI PLUS (MS-7A59), BIOS 1.90 01/30/2018
RIP: 0010:smu_v11_0_set_fan_speed_rpm+0x11/0x110 [amdgpu]

Speed is user-configurable through a file.
I accidentally set it to zero, and the driver crashed.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Yefim Barashkin <mr.b34r@kolabnow.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-07-13 11:25:18 -04:00
..
inc drm/amdgpu/pm: implement the SMU_MSG_EnableGfxImu function 2022-06-03 16:44:15 -04:00
legacy-dpm drm/amd/pm: fix the compile warning 2022-04-28 17:45:49 -04:00
powerplay drm/amd/pm: fix the deadlock issue observed on SI 2022-04-22 14:50:23 -04:00
swsmu drm/amd/pm: Prevent divide by zero 2022-07-13 11:25:18 -04:00
amdgpu_dpm.c drm/amdgpu/pm: implement the SMU_MSG_EnableGfxImu function 2022-06-03 16:44:15 -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_pm.c drm/amd/pm: consistent approach for smartshift 2022-05-16 14:20:55 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00