drm/etnaviv: switch devcoredump allocations to GFP_NOWAIT
authorLucas Stach <l.stach@pengutronix.de>
Fri, 21 Jun 2024 17:13:07 +0000 (19:13 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 26 Jun 2024 13:31:33 +0000 (15:31 +0200)
commita3ecd97aa6aa444cc6c1b4c5b45d8d25068f19f6
tree1a9fa716ea651314e75d08b8ad5de60c60e95ca1
parenta233df7f6c8abd532748312631b0a0530d3079a7
drm/etnaviv: switch devcoredump allocations to GFP_NOWAIT

The etnaviv devcoredump is created in the GPU reset path, which
must make forward progress to avoid stalling memory reclaim on
unsignalled dma fences. The currently used __GFP_NORETRY does not
prohibit sleeping on direct reclaim, breaking the forward progress
guarantee. Switch to GFP_NOWAIT, which allows background reclaim
to be triggered, but avoids any stalls waiting for direct reclaim.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/etnaviv/etnaviv_dump.c