Skip to content

Commit cb9c919

Browse files
airlieddakr
authored andcommitted
nouveau/tu102: flush all pdbs on vmm flush
This is a hack around a bug exposed with the GSP code, I'm not sure what is happening exactly, but it appears some of our flushes don't result in proper tlb invalidation for out BAR2 and we get a BAR2 fault from GSP and it all dies. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231130010852.4034774-1-airlied@gmail.com
1 parent 88a2b4d commit cb9c919

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tu102_vmm_flush(struct nvkm_vmm *vmm, int depth)
3131

3232
type |= 0x00000001; /* PAGE_ALL */
3333
if (atomic_read(&vmm->engref[NVKM_SUBDEV_BAR]))
34-
type |= 0x00000004; /* HUB_ONLY */
34+
type |= 0x00000006; /* HUB_ONLY | ALL PDB (hack) */
3535

3636
mutex_lock(&vmm->mmu->mutex);
3737

0 commit comments

Comments
 (0)