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)
commit4b8edc39a45f51eb304acb081020ec4f063d53a5
tree98457738c0bda25dc1cd5797acb3d6b92c6a5df5
parente69acf18d08d7b5e9416fa6afb3a8dd6dd3439ce
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