]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/tests: Change TEST_VRAM to work with 32-bit resource_size_t
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 27 Feb 2026 16:00:10 +0000 (17:00 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 3 Mar 2026 15:18:06 +0000 (16:18 +0100)
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 <nathan@kernel.org>
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 <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patch.msgid.link/20260227160010.12425-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c

index 305dbd4e5d1a70b19a0ec658a804e231762607ed..efa8963ec2488172ee610d5067e67143e295b88d 100644 (file)
@@ -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)
 {