[Intel-gfx] [PATCH v2 11/15] drm/i915/selftests: handle allocation failures

Thomas Hellström thomas.hellstrom at linux.intel.com
Fri Feb 11 09:37:35 UTC 2022


On 2/10/22 13:13, Matthew Auld wrote:
> If we have to contend with non-mappable LMEM, then we need to ensure the
> object fits within the mappable portion, like in the selftests, where we
> later try to CPU access the pages. However if it can't then we need to
> gracefully handle this, without throwing an error.
>
> Also it looks like TTM will return -ENOMEM, in ttm_bo_mem_space() after
> exhausting all possible placements.
>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>

Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>




More information about the Intel-gfx mailing list