diff options
author | Christian König <christian.koenig@amd.com> | 2021-04-01 15:45:33 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-08-27 09:55:39 +0200 |
commit | 450b2622bc11037c8108f7d2f2d8a43e980e847d (patch) | |
tree | cfb2c7a61e4d624967867ffa325d6755f8a44438 /drivers/gpu/drm/lima/lima_sched.c | |
parent | 880121be1179a0db3eb4fdb198108d9475b8be4c (diff) | |
download | linux-450b2622bc11037c8108f7d2f2d8a43e980e847d.tar.gz linux-450b2622bc11037c8108f7d2f2d8a43e980e847d.tar.bz2 linux-450b2622bc11037c8108f7d2f2d8a43e980e847d.zip |
drm/ttm: optimize the pool shrinker a bit v2
Switch back to using a spinlock again by moving the IOMMU unmap outside
of the locked region.
This avoids contention especially while freeing pages.
v2: Add a comment explaining why we need sync_shrinkers().
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210820120528.81114-3-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions