]> 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)
commita02d038cac07a24f5495ba6ad26667392e5b7d45
treee3886c2a9f167a809e344485d4747d5f9b31d8d0
parent8ff18296f7e515b26a771a6e177f6f6a5d5e9f65
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