summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_guc_db_mgr.c
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2023-12-18 20:06:29 +0100
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 16:31:30 -0500
commit6e2546131750a7c5e5dc668f9050d6a99c095d51 (patch)
treedb1094881a8a494aafdb0b1734f1ef85a0ce1bdb /drivers/gpu/drm/xe/xe_guc_db_mgr.c
parent90ad6f3017894860429bc1f8820024e0b177e676 (diff)
drm/xe/kunit: Add GuC Doorbells Manager tests
Add few tests to make sure that basic usage scenarios of the GuC Doorbells Manager are implemented correctly. Cc: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com> Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com> Link: https://lore.kernel.org/r/20231218190629.502-11-michal.wajdeczko@intel.com Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_db_mgr.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_db_mgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_db_mgr.c b/drivers/gpu/drm/xe/xe_guc_db_mgr.c
index 15816f90e960..c1c04575d82d 100644
--- a/drivers/gpu/drm/xe/xe_guc_db_mgr.c
+++ b/drivers/gpu/drm/xe/xe_guc_db_mgr.c
@@ -255,3 +255,7 @@ void xe_guc_db_mgr_print(struct xe_guc_db_mgr *dbm,
mutex_unlock(dbm_mutex(dbm));
}
+
+#if IS_BUILTIN(CONFIG_DRM_XE_KUNIT_TEST)
+#include "tests/xe_guc_db_mgr_test.c"
+#endif