diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2024-02-21 16:30:20 +0300 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2024-02-21 22:08:23 +0300 |
commit | 0cd99046ca0522d8d212eb9adb093063a5f333ae (patch) | |
tree | 3f3a64c4ef449e87504415d37e8759ca705b89fe /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | ffb7249df1998a623525648fca412e17a440a136 (diff) | |
download | linux-0cd99046ca0522d8d212eb9adb093063a5f333ae.tar.xz |
drm/xe: Add vm snapshot mutex for easily taking a vm snapshot during devcoredump
The devcoredump is done in fence signaling context. Because of this, we
cannot take any of the normal mutexes or we would invert.
Normal: Take vm->lock, dma_fence_wait()
Devcoredump: from dma_fence_wait() context, take vm->lock.
This doesn't work, and we only care about integrity, so take the locks
around additions and removals of vma's.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240221133024.898315-5-maarten.lankhorst@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions