From: Michal Wajdeczko Date: Fri, 27 Feb 2026 16:00:10 +0000 (+0100) Subject: drm/xe/tests: Change TEST_VRAM to work with 32-bit resource_size_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f18a79b3585a28c9f73f859fe83f12d0eccc736;p=thirdparty%2Fkernel%2Flinux.git drm/xe/tests: Change TEST_VRAM to work with 32-bit resource_size_t We've picked the value of TEST_VRAM to match real VRAM size as found on the machines used by the CI, but that didn't work well on kernels that have 32-bit resource_size_t. Use smaller value instead. Reported-by: Nathan Chancellor Closes: https://lore.kernel.org/intel-xe/20260227011639.GA1683727@ax162/ Fixes: cbe29da6f7c0 ("drm/xe/tests: Add KUnit tests for new VRAM fair provisioning") Signed-off-by: Michal Wajdeczko Reviewed-by: Piotr Piórkowski Link: https://patch.msgid.link/20260227160010.12425-1-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c b/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c index 305dbd4e5d1a7..efa8963ec2488 100644 --- a/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c +++ b/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c @@ -11,7 +11,7 @@ #include "xe_pci_test.h" #define TEST_MAX_VFS 63 -#define TEST_VRAM 0x37a800000ull +#define TEST_VRAM 0x7a800000ull /* random size that works on 32-bit */ static void pf_set_admin_mode(struct xe_device *xe, bool enable) {