drm/i915/gt: limit lmem allocation size to succeed on SmallBars
authorAndrzej Hajda <andrzej.hajda@intel.com>
Thu, 1 Jun 2023 14:44:50 +0000 (16:44 +0200)
committerAndrzej Hajda <andrzej.hajda@intel.com>
Fri, 2 Jun 2023 12:01:23 +0000 (14:01 +0200)
commit4d4de1cbdb26829615d05e6b556011d308880e82
tree3842af434398402a56b0068ef74b0d0981bfeb54
parent1baeef6cd2229e01091c69cef042f6b688e194be
drm/i915/gt: limit lmem allocation size to succeed on SmallBars

In case system is short on mappable memory (256MB on SmallBar) allocation
of two 1GB buffers will fail.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8300
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601144450.792228-1-andrzej.hajda@intel.com
drivers/gpu/drm/i915/gt/selftest_tlb.c