drm/ttm: return ENOSPC from ttm_bo_mem_space v3
authorChristian König <christian.koenig@amd.com>
Tue, 5 Dec 2023 15:40:40 +0000 (16:40 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 24 Jan 2024 16:13:52 +0000 (17:13 +0100)
commit28e5126718c7b306b8c29d2ae8f48417e9303aa1
treec8ff64eafb089bdcc7a8b8f5abba53f4d11c152a
parentbc77bde2d3f078c038f69c65387dca6fe0faacbd
drm/ttm: return ENOSPC from ttm_bo_mem_space v3

Only convert it to ENOMEM in ttm_bo_validate.

This allows ttm_bo_validate to distinguish between an out of memory
situation and just out of space in a placement domain.

v2: improve commit message
v3: fix kerneldoc typos

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240112125158.2748-3-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c