Skip to content

Commit 2a24755

Browse files
Alex Hungalexdeucher
authored andcommitted
drm/amd/display: Remove unnecessary DC_FP_START/DC_FP_END
[WHY & HOW] Remove the unnecessary DC_FP_START/DC_FP_END pair to reduce time in preempt_disable. It also fixes "BUG: sleeping function called from invalid context" error messages because of calling kzalloc with GFP_KERNEL which can sleep. Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 94da073)
1 parent f1c6be3 commit 2a24755

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,8 +2114,6 @@ static bool dcn32_resource_construct(
21142114
#define REG_STRUCT dccg_regs
21152115
dccg_regs_init();
21162116

2117-
DC_FP_START();
2118-
21192117
ctx->dc_bios->regs = &bios_regs;
21202118

21212119
pool->base.res_cap = &res_cap_dcn32;
@@ -2501,14 +2499,10 @@ static bool dcn32_resource_construct(
25012499
if (ASICREV_IS_GC_11_0_3(dc->ctx->asic_id.hw_internal_rev) && (dc->config.sdpif_request_limit_words_per_umc == 0))
25022500
dc->config.sdpif_request_limit_words_per_umc = 16;
25032501

2504-
DC_FP_END();
2505-
25062502
return true;
25072503

25082504
create_fail:
25092505

2510-
DC_FP_END();
2511-
25122506
dcn32_resource_destruct(pool);
25132507

25142508
return false;

0 commit comments

Comments
 (0)