aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/basics/custom_float.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2023-09-21 14:15:15 +0000
committerAlex Deucher <[email protected]>2023-10-09 20:47:59 +0000
commit941e8036a450bc7ae8517ceb6dbd9135046f4ad8 (patch)
treeb4b82334aeb1ffd580af26aad39062bd9ab9a5cf /drivers/gpu/drm/amd/display/dc/basics/custom_float.c
parentdrm/amd/display: Add a warning if the FPU is used outside from task context. (diff)
downloadkernel-941e8036a450bc7ae8517ceb6dbd9135046f4ad8.tar.gz
kernel-941e8036a450bc7ae8517ceb6dbd9135046f4ad8.zip
drm/amd/display: Move the memory allocation out of dcn21_validate_bandwidth_fp().
dcn21_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. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217928 Acked-by: Harry Wentland <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/custom_float.c')
0 files changed, 0 insertions, 0 deletions