summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNareshkumar Gollakoti <naresh.kumar.g@intel.com>2026-07-29 17:48:43 +0530
committerHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>2026-07-30 08:49:34 +0530
commit60693b580ab5f7f3158adcc2bab5ae816edd49ff (patch)
tree9b795f93bb9f73e2614d86205f83af84bd4394f0 /include
parent41a74ed31f0bb87035eef9bd4efd92b4e82bcc99 (diff)
downloadlinux-60693b580ab5f7f3158adcc2bab5ae816edd49ff.tar.gz
linux-60693b580ab5f7f3158adcc2bab5ae816edd49ff.zip
drm/xe/tests: add live KUnit coverage for BO page-size allocation modes
Add live KUnit coverage for the debug-controlled BO page-size allocation modes. The new tests cover forced 2M mode, forced 1G mode, and mixed mode. They verify that user BO creation applies the expected NEEDS_* flags, that no unexpected page-size flags are added in the forced modes, that BO size is rounded as expected, and that page_alignment matches the selected leaf size. The mixed-mode test does not assume a strict per-allocation rotation sequence, since the device-global mixed-mode index may be perturbed by concurrent BO creation on a live system. Instead, it validates that each allocation results in one valid mixed-mode page-size outcome. Treat transient VRAM allocation failures as skipped test cases so the tests can run in varying live environments without producing false failures. v3 - address review comments - rework mixed-mode test to avoid assuming strict rotation order - reword commit message v4 - skip VRAM-targeted live tests on non-dGFX devices v5 - advance the mixed-mode index in the test v6 - Gaurd kunit tests under CONFIG_DRM_XE_DEBUG_PAGE_SIZE v9 - consider XE_VRAM_FLAGS_NEED64K in mixed mode for certain platoform min alignment expectations. Signed-off-by: Nareshkumar Gollakoti <naresh.kumar.g@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patch.msgid.link/20260729121843.1255891-7-naresh.kumar.g@intel.com Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions