]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Migrate platform-dependent mock hugepage selftests to live
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Wed, 26 Apr 2023 21:28:48 +0000 (23:28 +0200)
committerAndrzej Hajda <andrzej.hajda@intel.com>
Fri, 28 Apr 2023 11:20:04 +0000 (13:20 +0200)
commitd59ce1ff8e6830fab60b688f33a89ef48c94b5d8
treebdfda5b4053761b1198d54c2062a64fa2f02f56f
parenta7fa1537b791cfb2ea3895ac448ab1455a4405f8
drm/i915: Migrate platform-dependent mock hugepage selftests to live

Convert the igt_mock_ppgtt_huge_fill and igt_mock_ppgtt_64K mock selftests
into live selftests as their requirements have recently become
platform-dependent. Additionally, apply necessary platform dependency
checks to these tests.

v8:
- handle properly 64K and 2M pages
v9:
- do not expect 64K pages if 2M are present
- fix hex printing
- obey commit message line limit

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Co-developed-by: Andrzej Hajda <andrzej.hajda@intel.com>
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/20230425-hugepage-migrate-v8-1-7868d54eaa27@intel.com
drivers/gpu/drm/i915/gem/selftests/huge_pages.c