OpenCloudOS-Kernel/drivers/gpu/drm/lima
Erico Nunes 47ab145782 drm/lima: add timeout to drm scheduler init
After "5918045c4ed4 drm/scheduler: rework job destruction", lima started
to leak memory due to buffers not being destroyed after job execution in
the drm scheduler.

This started happening because the drm scheduler only destroyed buffers
after cancelling the job timeout handler, and for lima this handler was
never started as lima specified a MAX_SCHEDULE_TIMEOUT timeout.

Lima seems to run well in its current state with a real timeout, so to
make it more aligned with the other drivers from now on, let's use a
real default timeout.

This also fixes the observed memory leaks.

The 500ms value was chosen as it is the current value for all other
embedded gpu drivers using drm sched.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190520224229.21111-1-nunes.erico@gmail.com
2019-05-21 20:47:36 +08:00
..
Kconfig
Makefile
lima_bcast.c
lima_bcast.h
lima_ctx.c
lima_ctx.h
lima_device.c
lima_device.h
lima_dlbu.c
lima_dlbu.h
lima_drv.c drm/lima: add timeout to drm scheduler init 2019-05-21 20:47:36 +08:00
lima_drv.h
lima_gem.c drm/lima: Use the drm_gem_fence_array_add helpers for our deps. 2019-04-16 15:53:48 -07:00
lima_gem.h
lima_gem_prime.c
lima_gem_prime.h
lima_gp.c
lima_gp.h
lima_l2_cache.c
lima_l2_cache.h
lima_mmu.c
lima_mmu.h
lima_object.c
lima_object.h
lima_pmu.c
lima_pmu.h
lima_pp.c drm/lima: handle shared irq case for lima_pp_bcast_irq_handler 2019-04-20 16:14:09 +08:00
lima_pp.h
lima_regs.h
lima_sched.c drm/lima: add timeout to drm scheduler init 2019-05-21 20:47:36 +08:00
lima_sched.h drm/lima: Use the drm_gem_fence_array_add helpers for our deps. 2019-04-16 15:53:48 -07:00
lima_vm.c
lima_vm.h