Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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

+1 -1
+1 -1
drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
··· 11 11 #include "xe_pci_test.h" 12 12 13 13 #define TEST_MAX_VFS 63 14 - #define TEST_VRAM 0x37a800000ull 14 + #define TEST_VRAM 0x7a800000ull /* random size that works on 32-bit */ 15 15 16 16 static void pf_set_admin_mode(struct xe_device *xe, bool enable) 17 17 {