drm/panfrost: Add cache/TLB flush before switching address space
authorRob Herring <robh@kernel.org>
Mon, 26 Aug 2019 22:33:15 +0000 (17:33 -0500)
committerRob Herring <robh@kernel.org>
Fri, 30 Aug 2019 14:53:32 +0000 (09:53 -0500)
commit5924d40958dfc2b8996fbf788a9d58e411a6db71
tree01413e87f6ac0f151a8592440aa13deeada8f1c2
parent86df65f39b009e00cf2826eac72c5a969b878065
drm/panfrost: Add cache/TLB flush before switching address space

It's not entirely clear if this is required, but add a flush of GPU caches
and TLBs before we change an address space to new page tables.

Fixes: 7282f7645d06 ("drm/panfrost: Implement per FD address spaces")
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190826223317.28509-7-robh@kernel.org
drivers/gpu/drm/panfrost/panfrost_mmu.c