mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Yefim Barashkin 0638c98c17 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>
Cc: stable@vger.kernel.org
2022-07-13 12:20:37 -04:00
..
inc drm/amd/pm: suppress compile warning about possible unaligned accesses 2022-05-10 17:53:13 -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 12:20:37 -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/pm: Return auto perf level, if unsupported 2022-05-26 14:56:33 -04: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