1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dcn21
Jan Kokemüller 41401ac677 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
2021-02-18 16:43:09 -05:00
..
dcn21_dccg.c drm/amd/display: cap dpp dto phase not more than modulo. 2020-11-10 14:26:18 -05:00
dcn21_dccg.h drm/amd/display: Adding prototype for dccg21_update_dpp_dto() 2020-12-15 11:35:25 -05:00
dcn21_hubbub.c drm/amd/display: Populate hostvm parameter before DML calculation 2020-11-16 12:18:44 -05:00
dcn21_hubbub.h drm/amd/display: optimize prgoram wm and clks 2020-02-25 11:09:37 -05:00
dcn21_hubp.c drm/amd/display: Remove nv12 work around 2020-05-28 14:00:48 -04:00
dcn21_hubp.h drm/amd/display: update chroma viewport wa 2019-12-18 16:09:08 -05:00
dcn21_hwseq.c drm/amd/display: Initialize dmub_rb_cmd unions to 0 2021-02-09 15:48:11 -05:00
dcn21_hwseq.h drm/amd/display: Block ABM in case of eDP ODM 2020-10-05 15:16:43 -04:00
dcn21_init.c drm/amd/display: New sequence for HUBP blank 2021-01-13 23:44:22 -05:00
dcn21_init.h drm/amd/display: cleanup of function pointer tables 2019-11-19 10:12:53 -05:00
dcn21_link_encoder.c drm/amd/display: determine USB C DP2 mode only when USB DP Alt is enabled 2020-04-09 10:43:17 -04:00
dcn21_link_encoder.h drm/amd/display: add missing dcn link encoder regs 2019-12-18 16:09:06 -05:00
dcn21_resource.c drm/amd/display: Add FPU wrappers to dcn21_validate_bandwidth() 2021-02-18 16:43:09 -05:00
dcn21_resource.h drm/amd/display: Add Renoir resource (v2) 2019-08-29 15:52:33 -05:00
Makefile drm/amdgpu/display: drop DCN support for aarch64 2021-01-05 11:35:53 -05:00