drm/xe: Move test infra out of xe_pci.[ch]
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 1 Apr 2023 08:51:46 +0000 (01:51 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:31:31 +0000 (18:31 -0500)
commitaf049be5a33e12fb993028eb378fd61545e72f5e
tree42a093fbc78912df1918085fdc59b1e5ea8c6e3d
parentd19ad0e80ebe3da48dc8122d6beca9d3d35df454
drm/xe: Move test infra out of xe_pci.[ch]

Move code out of xe_pci.[ch] into tests/*.[ch], like is done in other
similar compilation units. Even if this is not part of "tests for
xe_pci.c", they are functions exported and required by other tests. It's
better not to clutter the module headers and sources with them.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230401085151.1786204-3-lucas.demarchi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_bo.c
drivers/gpu/drm/xe/tests/xe_dma_buf.c
drivers/gpu/drm/xe/tests/xe_migrate.c
drivers/gpu/drm/xe/tests/xe_pci.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_pci_test.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_pci.h