linux/drivers/gpu/drm/xe/tests/xe_dma_buf.c

// SPDX-License-Identifier: GPL-2.0 AND MIT
/*
 * Copyright © 2022 Intel Corporation
 */

#include <drm/xe_drm.h>

#include <kunit/test.h>
#include <kunit/visibility.h>

#include "tests/xe_dma_buf_test.h"
#include "tests/xe_pci_test.h"

#include "xe_pci.h"
#include "xe_pm.h"

static bool p2p_enabled(struct dma_buf_test_params *params)
{}

static bool is_dynamic(struct dma_buf_test_params *params)
{}

static void check_residency(struct kunit *test, struct xe_bo *exported,
			    struct xe_bo *imported, struct dma_buf *dmabuf)
{}

static void xe_test_dmabuf_import_same_driver(struct xe_device *xe)
{}

static const struct dma_buf_attach_ops nop2p_attach_ops =;

/*
 * We test the implementation with bos of different residency and with
 * importers with different capabilities; some lacking p2p support and some
 * lacking dynamic capabilities (attach_ops == NULL). We also fake
 * different devices avoiding the import shortcut that just reuses the same
 * gem object.
 */
static const struct dma_buf_test_params test_params[] =;

static int dma_buf_run_device(struct xe_device *xe)
{}

void xe_dma_buf_kunit(struct kunit *test)
{}
EXPORT_SYMBOL_IF_KUNIT();