diff options
| author | Qiang Yu <[email protected]> | 2020-04-21 21:35:45 +0800 |
|---|---|---|
| committer | Qiang Yu <[email protected]> | 2020-04-24 20:50:51 +0800 |
| commit | 4eb70cd3f284e200c9e526bdd60ed720d5ab9e5c (patch) | |
| tree | cfc4f2c4386abe58fa6aaf48739960a8982bf05d /drivers/gpu/drm/lima/lima_mmu.c | |
| parent | 24943269e51bb6fd2810e71597b675878369e06b (diff) | |
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 <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_mmu.c')
| -rw-r--r-- | drivers/gpu/drm/lima/lima_mmu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/lima/lima_mmu.c b/drivers/gpu/drm/lima/lima_mmu.c index f79d2af427e7..c26b751b0f9d 100644 --- a/drivers/gpu/drm/lima/lima_mmu.c +++ b/drivers/gpu/drm/lima/lima_mmu.c @@ -113,8 +113,7 @@ void lima_mmu_switch_vm(struct lima_ip *ip, struct lima_vm *vm) LIMA_MMU_STATUS, v, v & LIMA_MMU_STATUS_STALL_ACTIVE); - if (vm) - mmu_write(LIMA_MMU_DTE_ADDR, vm->pd.dma); + mmu_write(LIMA_MMU_DTE_ADDR, vm->pd.dma); /* flush the TLB */ mmu_write(LIMA_MMU_COMMAND, LIMA_MMU_COMMAND_ZAP_CACHE); |