]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06c39934da5c628eb6d7cf6d4419d8928543a05b
treecfc4f2c4386abe58fa6aaf48739960a8982bf05d
parenta2ae2d1399d7dbde4419055fb3eef46ef4b27f07
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