Commit 680174cf authored by Holger Hoffstätte's avatar Holger Hoffstätte Committed by Alex Deucher
Browse files

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



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

Signed-off-by: default avatarHolger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 15e8b95d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1335,7 +1335,7 @@ static noinline bool dcn21_validate_bandwidth_fp(struct dc *dc,
	int vlevel = 0;
	int vlevel = 0;
	int pipe_split_from[MAX_PIPES];
	int pipe_split_from[MAX_PIPES];
	int pipe_cnt = 0;
	int pipe_cnt = 0;
	display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_KERNEL);
	display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC);
	DC_LOGGER_INIT(dc->ctx->logger);
	DC_LOGGER_INIT(dc->ctx->logger);


	BW_VAL_TRACE_COUNT();
	BW_VAL_TRACE_COUNT();