summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@igalia.com>2023-08-17 15:20:46 -0300
committerAlex Deucher <alexander.deucher@amd.com>2023-08-30 15:51:16 -0400
commitd68ccdb26392f72f40848d84bf0b57a56a4e13ef (patch)
treeda69949880631c16d3083cb570f9a442ed09cbd6 /drivers/gpu/drm/amd
parent1cb87e048975ce59dd2dcadff47002df64f95f72 (diff)
downloadlinux-d68ccdb26392f72f40848d84bf0b57a56a4e13ef.tar.gz
linux-d68ccdb26392f72f40848d84bf0b57a56a4e13ef.tar.bz2
linux-d68ccdb26392f72f40848d84bf0b57a56a4e13ef.zip
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 <andrealmeid@igalia.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index b2bc5eb31a90..603ce113a9f8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -4870,7 +4870,7 @@ static void amdgpu_reset_capture_coredumpm(struct amdgpu_device *adev)
struct drm_device *dev = adev_to_drm(adev);
ktime_get_ts64(&adev->reset_time);
- dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_KERNEL,
+ dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_NOWAIT,
amdgpu_devcoredump_read, amdgpu_devcoredump_free);
}
#endif