]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add FPU wrappers to dcn21_validate_bandwidth()
authorJan Kokemüller <jan.kokemueller@gmail.com>
Thu, 11 Feb 2021 18:28:43 +0000 (19:28 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:09 +0000 (16:43 -0500)
commitad5697daf1c64633a4c211e9bac06665e65823da
tree3597972b3ffd716a5ed572e206aed8b2064c74bf
parent6a2e5906d86354eb44213e56080491a459f5070d
drm/amd/display: Add FPU wrappers to dcn21_validate_bandwidth()

dcn21_validate_bandwidth() calls functions that use floating point math.
On my machine this sometimes results in simd exceptions when there are
other FPU users such as KVM virtual machines running. The screen freezes
completely in this case.

Wrapping the function with DC_FP_START()/DC_FP_END() seems to solve the
problem. This mirrors the approach used for dcn20_validate_bandwidth.

Tested on a AMD Ryzen 7 PRO 4750U (Renoir).

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=206987
Signed-off-by: Jan Kokemüller <jan.kokemueller@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c