linux/drivers/gpu/drm/amd/display
Sebastian Andrzej Siewior 2091ac6903 drm/amd/display: Move the memory allocation out of dcn20_validate_bandwidth_fp().
dcn20_validate_bandwidth_fp() is invoked while FPU access has been
enabled. FPU access requires disabling preemption even on PREEMPT_RT.
It is not possible to allocate memory with disabled preemption even with
GFP_ATOMIC on PREEMPT_RT.

Move the memory allocation before FPU access is enabled.
To preserve previous "clean" state of "pipes" add a memset() before the
second invocation of dcn20_validate_bandwidth_internal() where the
variable is used.

Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-10-09 16:48:08 -04:00
..
amdgpu_dm drm/amd/display: Add a warning if the FPU is used outside from task context. 2023-10-09 16:47:37 -04:00
dc drm/amd/display: Move the memory allocation out of dcn20_validate_bandwidth_fp(). 2023-10-09 16:48:08 -04:00
dmub drm/amd/display: Adjust code style for dmub_cmd.h 2023-10-04 18:42:35 -04:00
include drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00
modules drm/amd/display: Clean up code warnings 2023-10-04 18:42:01 -04:00
Kconfig drm/amd/display: Allow building DC with clang on RISC-V 2023-07-21 16:52:25 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP 2023-03-07 14:22:39 -05:00
TODO