linux_dsm_epyc7002/drivers/gpu/drm/panfrost
Rob Herring 62f1089f3c drm/panfrost: Flush and disable address space when freeing page tables
Currently, page tables are freed without disabling the address space first.
This probably is fine as we'll switch to new page tables when the address
space is allocated again and runtime PM suspend will reset the GPU
clearing the registers. However, it's better to clean up after ourselves.
There is also a problem that we could be accessing the h/w in
tlb_inv_context() when suspended.

Rework the disable code to make sure we flush caches/TLBs and disable the
address space before freeing the page tables if we are not suspended. As
the tlb_inv_context() hook is only called when freeing the page tables and
we do a flush before disabling the AS, lets remove the flush from
tlb_inv_context and avoid any runtime PM issues.

Fixes: 7282f7645d ("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-8-robh@kernel.org
2019-08-30 09:53:41 -05:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_devfreq.c drm/panfrost: Add missing check for pfdev->regulator 2019-08-28 10:02:38 -05:00
panfrost_devfreq.h drm/panfrost: Remove opp table when unloading 2019-08-19 11:38:51 -05:00
panfrost_device.c drm/panfrost: Rework runtime PM initialization 2019-08-30 09:51:41 -05:00
panfrost_device.h drm/panfrost: Remove unnecessary mmu->lock mutex 2019-08-30 09:52:47 -05:00
panfrost_drv.c drm/panfrost: Rework runtime PM initialization 2019-08-30 09:51:41 -05:00
panfrost_features.h
panfrost_gem_shrinker.c drm/panfrost: Use mutex_trylock in panfrost_gem_purge 2019-08-28 10:02:39 -05:00
panfrost_gem.c drm/panfrost: Fix sleeping while atomic in panfrost_gem_open 2019-08-22 20:44:19 -05:00
panfrost_gem.h drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00
panfrost_gpu.c drm/panfrost: Export all GPU feature registers 2019-07-25 16:10:52 -06:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/panfrost: Hold runtime PM reference until jobs complete 2019-08-30 09:51:51 -05:00
panfrost_job.h
panfrost_mmu.c drm/panfrost: Flush and disable address space when freeing page tables 2019-08-30 09:53:41 -05:00
panfrost_mmu.h drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00
panfrost_perfcnt.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_perfcnt.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_regs.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
TODO drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00