Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/display: use GFP_ATOMIC in dcn21_validate_bandwidth_fp()

After fixing nested FPU contexts caused by 41401ac67791 we're still seeing
complaints about spurious kernel_fpu_end(). As it turns out this was
already fixed for dcn20 in commit f41ed88cbd ("drm/amdgpu/display:
use GFP_ATOMIC in dcn20_validate_bandwidth_internal") but never moved
forward to dcn21.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Holger Hoffstätte and committed by
Alex Deucher
37ba52c6 b42c68fa

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
··· 1335 1335 int vlevel = 0; 1336 1336 int pipe_split_from[MAX_PIPES]; 1337 1337 int pipe_cnt = 0; 1338 - display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_KERNEL); 1338 + display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC); 1339 1339 DC_LOGGER_INIT(dc->ctx->logger); 1340 1340 1341 1341 BW_VAL_TRACE_COUNT();