]> git.hungrycats.org Git - linux/commitdiff
drm/xe/tests: Set non-GMDID graphics step in xe_pci_fake_device_init()
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 9 Jun 2026 20:17:38 +0000 (17:17 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Thu, 2 Jul 2026 21:41:53 +0000 (18:41 -0300)
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>
drivers/gpu/drm/xe/tests/xe_pci.c
drivers/gpu/drm/xe/tests/xe_wa_test.c

index 1baf3cd0d38158819a73df90eaf02e98049552a1..a665d5dbc47202e1026c50deb1f849f6698b9714 100644 (file)
@@ -388,6 +388,9 @@ done:
        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);
index ff0e2502b39f93d49bd67005f869dd42dd47a234..21601e9df3533cb2a471c8d6ae011cd6b0148526 100644 (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;