Skip to content

Commit c6b9075

Browse files
committed
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
1 parent 6cdcc65 commit c6b9075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/nouveau/nouveau_uvmm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ nouveau_uvmm_sm_prepare(struct nouveau_uvmm *uvmm,
639639
struct drm_gpuva *va = r->unmap->va;
640640
struct uvmm_map_args remap_args = {
641641
.kind = uvma_from_va(va)->kind,
642+
.region = uvma_from_va(va)->region,
642643
};
643644
u64 ustart = va->va.addr;
644645
u64 urange = va->va.range;

0 commit comments

Comments
 (0)