drm/amd/display: use GFP_ATOMIC in dcn20_resource_construct
authorNirmoy Das <nirmoy.das@amd.com>
Wed, 17 Mar 2021 10:38:11 +0000 (11:38 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:38:22 +0000 (16:38 -0400)
commit3bb1105071fb974e3e3ca2f92ddfd69c81285ab6
treea2819b68bdd8c4b3b031aa24aea535fedc7f349f
parent3ca401459cf1b22ad1748f8854e1264b4240cc4e
drm/amd/display: use GFP_ATOMIC in dcn20_resource_construct

Replace GFP_KERNEL with GFP_ATOMIC as dcn20_resource_construct()
can't sleep.

Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=212311
as dcn20_resource_construct() also calls into SMU functions which does
mutex_lock().

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dccg.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c