mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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
This commit is contained in:
parent
7baf605564
commit
b4e9fa9335
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue