diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2023-12-18 20:06:27 +0100 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 16:31:30 -0500 |
commit | 29d52c9c1b9d1abdbddc9b6cbd8eb2d70b025e6c (patch) | |
tree | 0ffc838fdce2b3d19794116ad2e89e661fad88eb | |
parent | drm/xe/kunit: Use xe kunit helper in RTP test (diff) | |
download | linux-29d52c9c1b9d1abdbddc9b6cbd8eb2d70b025e6c.tar.gz linux-29d52c9c1b9d1abdbddc9b6cbd8eb2d70b025e6c.tar.bz2 linux-29d52c9c1b9d1abdbddc9b6cbd8eb2d70b025e6c.zip |
drm/xe/kunit: Use xe kunit helper in WA test
Use xe helper code to allocate fake xe device.
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20231218190629.502-9-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_wa_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_wa_test.c b/drivers/gpu/drm/xe/tests/xe_wa_test.c index a53c22a19582..3d7f3ef62ae9 100644 --- a/drivers/gpu/drm/xe/tests/xe_wa_test.c +++ b/drivers/gpu/drm/xe/tests/xe_wa_test.c @@ -9,6 +9,7 @@ #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" @@ -108,9 +109,7 @@ static int xe_wa_test_init(struct kunit *test) dev = drm_kunit_helper_alloc_device(test); KUNIT_ASSERT_NOT_ERR_OR_NULL(test, dev); - xe = drm_kunit_helper_alloc_drm_device(test, dev, - struct xe_device, - drm, DRIVER_GEM); + xe = xe_kunit_helper_alloc_xe_device(test, dev); KUNIT_ASSERT_NOT_ERR_OR_NULL(test, xe); test->priv = &data; |