]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/tests/pci: Ensure all platforms have a valid GT/tile count
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 1 Jul 2025 20:13:25 +0000 (13:13 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Jul 2025 23:08:54 +0000 (16:08 -0700)
commitfb72cd2104a9a57c390fe773e0c6ff58679a0a12
treef0d1ae0c8c2e7ff3815bdf9597b3f7c5139e91c0
parentf8e0f4c526a4332e568b2384671ca9d016e0c5a5
drm/xe/tests/pci: Ensure all platforms have a valid GT/tile count

Add a simple kunit test to ensure each platform's GT per tile count is
non-zero and does not exceed the global XE_MAX_GT_PER_TILE definition.

We need to move 'struct xe_subplatform_desc' from the .c file to the
types header to ensure it is accessible from the kunit test.

v2:
 - Rebase on latest xe_pci test rework from Michal and convert to
   a parameterized test that runs on each PCI ID supported by the
   driver.

Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Ravi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com>
Link: https://lore.kernel.org/r/20250701201320.2514369-13-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/tests/xe_pci.c
drivers/gpu/drm/xe/tests/xe_pci_test.c
drivers/gpu/drm/xe/tests/xe_pci_test.h
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_pci_types.h