diff options
author | Danilo Krummrich <dakr@redhat.com> | 2023-08-21 01:29:16 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2023-08-24 03:57:46 +0300 |
commit | c6b9075cfbd624f2b33bd6fd388dc6f0b7027472 (patch) | |
tree | 55e62caeffc9728924e48d525e8bc1c3a8af71cc /drivers/gpu/drm/nouveau/nouveau_uvmm.c | |
parent | 6cdcc65fdb0bc59bfca75d0b6fdc54d6ca347ddf (diff) | |
download | linux-c6b9075cfbd624f2b33bd6fd388dc6f0b7027472.tar.xz |
drm/nouveau: uvmm: fix unset region pointer on remap
Transfer the region pointer of a uvma to the new uvma(s) on re-map to
prevent potential shader faults when the re-mapped uvma(s) are unmapped.
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230820222920.2344-1-dakr@redhat.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_uvmm.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_uvmm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_uvmm.c b/drivers/gpu/drm/nouveau/nouveau_uvmm.c index 3a1e8538f205..aae780e4a4aa 100644 --- a/drivers/gpu/drm/nouveau/nouveau_uvmm.c +++ b/drivers/gpu/drm/nouveau/nouveau_uvmm.c @@ -639,6 +639,7 @@ nouveau_uvmm_sm_prepare(struct nouveau_uvmm *uvmm, struct drm_gpuva *va = r->unmap->va; struct uvmm_map_args remap_args = { .kind = uvma_from_va(va)->kind, + .region = uvma_from_va(va)->region, }; u64 ustart = va->va.addr; u64 urange = va->va.range; |