mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-23 14:16:39 -04:00
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user