projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ab84e
)
drm/xe/kunit: Remove handling of XE_TEST_SUBPLATFORM_ANY
author
Lucas De Marchi
<lucas.demarchi@intel.com>
Tue, 5 Dec 2023 13:39:51 +0000
(
05:39
-0800)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:23 +0000
(11:45 -0500)
The only user passing XE_TEST_SUBPLATFORM_ANY is
xe_pci_fake_device_init_any(), but then the function would return
earlier when handling XE_TEST_PLATFORM_ANY. Platforms without a
subplatform use XE_SUBPLATFORM_NONE.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link:
https://lore.kernel.org/r/20231129232807.1499826-3-lucas.demarchi@intel.com
Link:
https://lore.kernel.org/r/20231129232807.1499826-6-lucas.demarchi@intel.com
Link:
https://lore.kernel.org/r/20231205133954.2089546-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_pci.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/tests/xe_pci.c
b/drivers/gpu/drm/xe/tests/xe_pci.c
index d850dca85af17ffe8522937561f7efe8a387e0d7..c1aa785cac185c735477d31e676610bf63786267 100644
(file)
--- a/
drivers/gpu/drm/xe/tests/xe_pci.c
+++ b/
drivers/gpu/drm/xe/tests/xe_pci.c
@@
-128,11
+128,6
@@
int xe_pci_fake_device_init(struct xe_device *xe, enum xe_platform platform,
if (!ent->device)
return -ENODEV;
- if (subplatform == XE_TEST_SUBPLATFORM_ANY) {
- subplatform_desc = desc->subplatforms;
- goto done;
- }
-
for (subplatform_desc = desc->subplatforms;
subplatform_desc && subplatform_desc->subplatform;
subplatform_desc++)