drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal
authorDaniel Kolesa <daniel@octaforge.org>
Sat, 8 Aug 2020 20:42:35 +0000 (22:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Aug 2020 21:26:52 +0000 (17:26 -0400)
commitfbd7cda0e61e25a5714d7b3b4dd3524271bc2245
tree3bcc2a052f313686286be78c65cd6e6f944f2a95
parent8db2d634ed29eeaed56fdbeaf63da7ae9e65280b
drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal

GFP_KERNEL may and will sleep, and this is being executed in
a non-preemptible context; this will mess things up since it's
called inbetween DC_FP_START/END, and rescheduling will result
in the DC_FP_END later being called in a different context (or
just crashing if any floating point/vector registers/instructions
are used after the call is resumed in a different context).

Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c