linux_dsm_epyc7002/drivers/gpu/drm/msm
Akhil P Oommen 9d8baa2bf2 drm/msm: Fix premature purging of BO
In the case where we have a back-to-back submission that shares the same
BO, this BO will be prematurely moved to inactive_list while retiring the
first submit. But it will be still part of the second submit which is
being processed by the GPU. Now, if the shrinker happens to be triggered at
this point, it will result in a premature purging of this BO.

To fix this, we need to refcount BO while doing submit and retire. Then,
it should be moved to inactive list when this refcount becomes 0.

Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
2020-09-22 08:28:15 -07:00
..
adreno drm/msm: Fix the a650 hw_apriv check 2020-09-20 10:34:28 -07:00
disp drm/msm/dp: Fix crash if no DP device 2020-09-19 10:18:42 -07:00
dp drm/msm/dp: Sleep properly in dp_hpd_handler kthread 2020-09-20 10:12:51 -07:00
dsi drm/msm/dsi: add support for 7nm DSI PHY/PLL 2020-09-12 09:59:58 -07:00
edp drm/msm: sync generated headers 2020-07-31 06:46:16 -07:00
hdmi drm/msm: sync generated headers 2020-07-31 06:46:16 -07:00
Kconfig drm/msm: Remove depends on interconnect 2020-09-20 10:48:18 -07:00
Makefile drm/msm/dp: Use qmp phy for DP PLL and PHY 2020-09-15 10:54:35 -07:00
msm_atomic_trace.h drm/msm: add atomic traces 2019-09-03 16:17:02 -07:00
msm_atomic_tracepoints.c drm/msm: add atomic traces 2019-09-03 16:17:02 -07:00
msm_atomic.c drm/msm: enable vblank during atomic commits 2020-08-21 22:30:17 -07:00
msm_debugfs.c drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
msm_debugfs.h drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
msm_drv.c drm/msm/dp: add displayPort driver support 2020-09-15 10:54:34 -07:00
msm_drv.h drm/msm: Fix premature purging of BO 2020-09-22 08:28:15 -07:00
msm_fb.c drm/msm: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:33 +01:00
msm_fbdev.c drm: Remove drm_fb_helper add, add all and remove connector calls 2020-03-06 14:19:58 +01:00
msm_fence.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
msm_fence.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
msm_gem_prime.c drm/msm: drop use of drmP.h 2019-09-03 16:16:57 -07:00
msm_gem_shrinker.c drm/msm: Convert shrinker msgs to tracepoints 2020-09-09 15:25:54 -07:00
msm_gem_submit.c drm/msm: Drop context arg to gpu->submit() 2020-09-12 10:45:56 -07:00
msm_gem_vma.c drm/msm: Show process names in gem_describe 2020-09-12 10:48:32 -07:00
msm_gem.c drm/msm: Fix premature purging of BO 2020-09-22 08:28:15 -07:00
msm_gem.h drm/msm: Fix premature purging of BO 2020-09-22 08:28:15 -07:00
msm_gpu_trace.h drm/msm/gpu: Add suspend/resume tracepoints 2020-09-12 09:59:58 -07:00
msm_gpu_tracepoints.c
msm_gpu.c drm/msm: Fix premature purging of BO 2020-09-22 08:28:15 -07:00
msm_gpu.h drm/msm: Allow a5xx to mark the RPTR shadow as privileged 2020-09-15 10:47:44 -07:00
msm_gpummu.c drm/msm: Add support to create a local pagetable 2020-09-12 10:48:32 -07:00
msm_iommu.c drm/msm: Add support to create a local pagetable 2020-09-12 10:48:32 -07:00
msm_kms.h drm/msm/dpu: async commit support 2019-09-03 16:17:01 -07:00
msm_mmu.h drm/msm: Add support to create a local pagetable 2020-09-12 10:48:32 -07:00
msm_perf.c drm/msm: drop use of drmP.h 2019-09-03 16:16:57 -07:00
msm_rd.c drm/msm: Fix undefined "rd_full" link error 2020-05-18 09:26:32 -07:00
msm_ringbuffer.c drm/msm: Enable expanded apriv support for a650 2020-09-04 12:14:07 -07:00
msm_ringbuffer.h drm/msm/a6xx: Add support for per-instance pagetables 2020-09-12 10:48:32 -07:00
msm_submitqueue.c drm/msm: Add a context pointer to the submitqueue 2020-09-12 10:45:56 -07:00
NOTES