drm/xe/tests: Set non-GMDID graphics step in xe_pci_fake_device_init()

Currently the logic to set the graphics step for non-GMDID-based
platforms in kunit testing is defined in xe_wa_test_init().  That
logic should rather belong to the helper xe_pci_fake_device_init(), so
move it there.

Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Violet Monti <violet.monti@intel.com>
Link: https://patch.msgid.link/20260609-xe-probe-info-v1-6-21e83e188e60@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
This commit is contained in:
Gustavo Sousa
2026-06-09 17:17:38 -03:00
parent b53155bd0e
commit 4a2cd8a48e
2 changed files with 3 additions and 3 deletions

View File

@@ -388,6 +388,9 @@ int xe_pci_fake_device_init(struct xe_device *xe)
xe_info_init_early(xe, desc, subplatform_desc, &probed_info);
xe_info_init(xe, desc, &probed_info);
if (data && !data->graphics_verx100)
xe->info.step = data->step;
return 0;
}
EXPORT_SYMBOL_IF_KUNIT(xe_pci_fake_device_init);

View File

@@ -43,9 +43,6 @@ static int xe_wa_test_init(struct kunit *test)
xe_gt_mmio_init(gt);
}
if (!param->graphics_verx100)
xe->info.step = param->step;
/* TODO: init hw engines for engine/LRC WAs */
xe->drm.dev = dev;
test->priv = xe;