Skip to content

Commit 6d1b345

Browse files
andrealmeidalexdeucher
authored andcommitted
drm/amdgpu: Allocate coredump memory in a nonblocking way
During a GPU reset, a normal memory reclaim could block to reclaim memory. Giving that coredump is a best effort mechanism, it shouldn't disturb the reset path. Change its memory allocation flag to a nonblocking one. Signed-off-by: André Almeida <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e0c5c38 commit 6d1b345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@ static void amdgpu_reset_capture_coredumpm(struct amdgpu_device *adev)
48694869
struct drm_device *dev = adev_to_drm(adev);
48704870

48714871
ktime_get_ts64(&adev->reset_time);
4872-
dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_KERNEL,
4872+
dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_NOWAIT,
48734873
amdgpu_devcoredump_read, amdgpu_devcoredump_free);
48744874
}
48754875
#endif

0 commit comments

Comments
 (0)