drm/lima: always set page directory when switch vm
authorQiang Yu <yuq825@gmail.com>
Tue, 21 Apr 2020 13:35:45 +0000 (21:35 +0800)
committerQiang Yu <yuq825@gmail.com>
Fri, 24 Apr 2020 12:50:51 +0000 (20:50 +0800)
commit4eb70cd3f284e200c9e526bdd60ed720d5ab9e5c
treecfc4f2c4386abe58fa6aaf48739960a8982bf05d
parent24943269e51bb6fd2810e71597b675878369e06b
drm/lima: always set page directory when switch vm

We need to flush TLB anyway before every task start, and the
page directory will be set to empty vm after suspend/resume,
so always set it to the task vm even no ctx switch happens.

Tested-by: Bhushan Shah <bshah@kde.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-5-yuq825@gmail.com
drivers/gpu/drm/lima/lima_mmu.c
drivers/gpu/drm/lima/lima_sched.c