diff options
author | Anusha Srivatsa <anusha.srivatsa@intel.com> | 2023-06-13 20:47:39 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:35:05 +0300 |
commit | 64c9ae213d2ab1cce824841518e9539f597ee91e (patch) | |
tree | 29ced12a0e0102e56f9980184a406fb5b199bc6c /drivers/gpu/drm/xe/tests | |
parent | c8a740775dfff4467c9dd9f1cad22d8bdc7cccfa (diff) | |
download | linux-64c9ae213d2ab1cce824841518e9539f597ee91e.tar.xz |
drm/xe/kunit: Handle fake device creation for all platform/subplatform cases
For platform like Alderlake P there are subplatforms and
just Alderlake P. Unlike DG2 in which every flavour is
either a G10,G11 or G12 variant. In this case(Alderlake P/S),
the Kunit test evaluates the subplatform to NONE and is
unable to create a fake device. Removing the condition
in xe_pci_fake_device_init() to support this corner case
so driver can proceed with the unit testing.
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20230613174740.786041-1-anusha.srivatsa@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/tests')
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_pci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_pci.c b/drivers/gpu/drm/xe/tests/xe_pci.c index 2178ad71c0da..a40879da2fbe 100644 --- a/drivers/gpu/drm/xe/tests/xe_pci.c +++ b/drivers/gpu/drm/xe/tests/xe_pci.c @@ -139,9 +139,6 @@ int xe_pci_fake_device_init(struct xe_device *xe, enum xe_platform platform, if (subplatform_desc->subplatform == subplatform) break; - if (subplatform == XE_SUBPLATFORM_NONE && subplatform_desc) - return -ENODEV; - if (subplatform != XE_SUBPLATFORM_NONE && !subplatform_desc) return -ENODEV; |