OSDN Git Service

drm/nouveau: move io_reserve_lru handling into the driver v5
authorChristian König <christian.koenig@amd.com>
Fri, 21 Aug 2020 14:06:50 +0000 (16:06 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Sep 2020 09:40:38 +0000 (11:40 +0200)
commit141b15e59175aa174ca1f7596188bd15a7ca17ba
treeb2b8687e5e37867182138eff7dd3628c708fb1fa
parentd575ee11317f3327d6a1d899e56295424f53f3e3
drm/nouveau: move io_reserve_lru handling into the driver v5

While working on TTM cleanups I've found that the io_reserve_lru used by
Nouveau is actually not working at all.

In general we should remove driver specific handling from the memory
management, so this patch moves the io_reserve_lru handling into Nouveau
instead.

v2: don't call ttm_bo_unmap_virtual in nouveau_ttm_io_mem_reserve
v3: rebased and use both base and offset in the check
v4: fix small typos and test the patch
v5: rebased and keep the mem.bus init in TTM.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Link: https://patchwork.freedesktop.org/patch/388643/
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.h
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_ttm.c