Skip to content

Commit e33997e

Browse files
ZhenGuo Yinalexdeucher
authored andcommitted
drm/amdgpu: clear set_q_mode_offs when VM changed
[Why] set_q_mode_offs don't get cleared after GPU reset, nexting SET_Q_MODE packet to init shadow memory will be skiped, hence there has a page fault. [How] VM flush is needed after GPU reset, clear set_q_mode_offs when emitting VM flush. Fixes: 8bc7558 ("drm/amdgpu: workaround to avoid SET_Q_MODE packets v2") Reviewed-by: Christian König <[email protected]> Signed-off-by: ZhenGuo Yin <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent f7e232d commit e33997e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5465,6 +5465,7 @@ static void gfx_v11_0_ring_emit_vm_flush(struct amdgpu_ring *ring,
54655465
/* Make sure that we can't skip the SET_Q_MODE packets when the VM
54665466
* changed in any way.
54675467
*/
5468+
ring->set_q_mode_offs = 0;
54685469
ring->set_q_mode_ptr = NULL;
54695470
}
54705471

0 commit comments

Comments
 (0)