mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 02:45:34 +07:00
47ab145782
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 |
||
---|---|---|
.. | ||
Kconfig | ||
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 | ||
lima_drv.h | ||
lima_gem_prime.c | ||
lima_gem_prime.h | ||
lima_gem.c | ||
lima_gem.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 | ||
lima_pp.h | ||
lima_regs.h | ||
lima_sched.c | ||
lima_sched.h | ||
lima_vm.c | ||
lima_vm.h | ||
Makefile |