#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <kunit/test.h>
#include "xe_device.h"
#include "xe_kunit_helpers.h"
#include "xe_pci_test.h"
#include "xe_reg_sr.h"
#include "xe_tuning.h"
#include "xe_wa.h"
struct platform_test_case { … };
#define PLATFORM_CASE(platform__, graphics_step__) …
#define SUBPLATFORM_CASE(platform__, subplatform__, graphics_step__) …
#define GMDID_CASE(platform__, graphics_verx100__, graphics_step__, \
media_verx100__, media_step__) …
static const struct platform_test_case cases[] = …;
static void platform_desc(const struct platform_test_case *t, char *desc)
{ … }
KUNIT_ARRAY_PARAM(platform, cases, platform_desc);
static int xe_wa_test_init(struct kunit *test)
{ … }
static void xe_wa_test_exit(struct kunit *test)
{ … }
static void xe_wa_gt(struct kunit *test)
{ … }
static struct kunit_case xe_wa_tests[] = …;
static struct kunit_suite xe_rtp_test_suite = …;
kunit_test_suite(…) …;