]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/display: use GFP_ATOMIC in dcn21_validate_bandwidth_fp()
authorHolger Hoffstätte <holger@applied-asynchrony.com>
Fri, 5 Mar 2021 14:23:18 +0000 (15:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Mar 2021 21:13:13 +0000 (16:13 -0500)
After fixing nested FPU contexts caused by ad5697daf1c6 we're still seeing
complaints about spurious kernel_fpu_end(). As it turns out this was
already fixed for dcn20 in commit d691475078 ("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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c

index 68be73fe2e2394c056a447fe30c14cd61b2d007e..94ee2cab26b7ce72a4b0d45a2d729d63d7b9b205 100644 (file)
@@ -1335,7 +1335,7 @@ static noinline bool dcn21_validate_bandwidth_fp(struct dc *dc,
        int vlevel = 0;
        int pipe_split_from[MAX_PIPES];
        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);
 
        BW_VAL_TRACE_COUNT();