]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:42:07 +0000 (11:42 +0200)
commit9917538295f9319dc7c6cf63d25eef89f302d81e
tree0580d333f42baeac743c78255b3e7b2ca7973803
parent2c547fe580ebb3271465eb0579c6bbc4d3787068
drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal

commit f41ed88cbd6f025f7a683a11a74f901555fba11c upstream.

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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c