]> git.baikalelectronics.ru Git - kernel.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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Aug 2020 22:09:46 +0000 (18:09 -0400)
commitd691475078c1161ae0ab6868808532d72655c920
treee3886c2a9f167a809e344485d4747d5f9b31d8d0
parent789e8dcef9bf5d3fa5c103db65ce3e597d0f0a31
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c