#include <kunit/test.h>
#include <kunit/visibility.h>
#include "tests/xe_kunit_helpers.h"
#include "tests/xe_pci_test.h"
#include "xe_pci.h"
#include "xe_pm.h"
static bool sanity_fence_failed(struct xe_device *xe, struct dma_fence *fence,
const char *str, struct kunit *test)
{ … }
static int run_sanity_job(struct xe_migrate *m, struct xe_device *xe,
struct xe_bb *bb, u32 second_idx, const char *str,
struct kunit *test)
{ … }
#define check(_retval, _expected, str, _test) …
static void test_copy(struct xe_migrate *m, struct xe_bo *bo,
struct kunit *test, u32 region)
{ … }
static void test_copy_sysmem(struct xe_migrate *m, struct xe_bo *bo,
struct kunit *test)
{ … }
static void test_copy_vram(struct xe_migrate *m, struct xe_bo *bo,
struct kunit *test)
{ … }
static void xe_migrate_sanity_test(struct xe_migrate *m, struct kunit *test)
{ … }
static int migrate_test_run_device(struct xe_device *xe)
{ … }
static void xe_migrate_sanity_kunit(struct kunit *test)
{ … }
static struct dma_fence *blt_copy(struct xe_tile *tile,
struct xe_bo *src_bo, struct xe_bo *dst_bo,
bool copy_only_ccs, const char *str, struct kunit *test)
{ … }
static void test_migrate(struct xe_device *xe, struct xe_tile *tile,
struct xe_bo *sys_bo, struct xe_bo *vram_bo, struct xe_bo *ccs_bo,
struct kunit *test)
{ … }
static void test_clear(struct xe_device *xe, struct xe_tile *tile,
struct xe_bo *sys_bo, struct xe_bo *vram_bo, struct kunit *test)
{ … }
static void validate_ccs_test_run_tile(struct xe_device *xe, struct xe_tile *tile,
struct kunit *test)
{ … }
static int validate_ccs_test_run_device(struct xe_device *xe)
{ … }
static void xe_validate_ccs_kunit(struct kunit *test)
{ … }
static struct kunit_case xe_migrate_tests[] = …;
VISIBLE_IF_KUNIT
struct kunit_suite xe_migrate_test_suite = …;
EXPORT_SYMBOL_IF_KUNIT(…);