]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe/kunit: Move fake pci data to test-priv
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 5 Dec 2023 13:39:52 +0000 (05:39 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:23 +0000 (11:45 -0500)
commit5b2a63b40d5620ce453f2a509334ae6feb7b884e
tree221b4c364d5e5617a1cc5ca5e9405c3cc7580281
parent1da0e581983c6f212499d44573b23ae48c1a4d00
drm/xe/kunit: Move fake pci data to test-priv

Instead of passing as parameter to xe_pci_fake_device_init(), use
test->priv to pass parameters down the call stack. The main advantage is
that then the data is readily available on other functions by using
kunit_get_current_test().

This is a preparation to fix the initialization of fake devices when
they were supposed to be using GMD_ID.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20231129232807.1499826-4-lucas.demarchi@intel.com
Link: https://lore.kernel.org/r/20231205133954.2089546-2-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
drivers/gpu/drm/xe/tests/xe_pci_test.h
drivers/gpu/drm/xe/tests/xe_rtp_test.c
drivers/gpu/drm/xe/tests/xe_wa_test.c