]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: cleanup io_mem interface with nouveau
authorChristian König <christian.koenig@amd.com>
Mon, 13 Jul 2020 14:50:04 +0000 (16:50 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 21 Jul 2020 14:13:29 +0000 (16:13 +0200)
commit2252c64b9e5af21d3f50fb3866f5fec5aa186800
tree98457738c0bda25dc1cd5797acb3d6b92c6a5df5
parentaf6727097d00ee09590e30bed99b30820ae83ef8
drm/ttm: cleanup io_mem interface with nouveau

Nouveau is the only user of this functionality and evicting io space
on -EAGAIN is really a misuse of the return code.

Instead switch to using -ENOSPC here which makes much more sense and
simplifies the code.

This could unbreak something as we now cleanly return EAGAIN, but the
chance for this are rather low.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/378237/
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c