summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_guc_buf.c
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2025-01-14 20:21:40 +0100
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2025-01-19 00:12:07 +0100
commit238f96315ada9e2183b04df90c9714b1da68455c (patch)
tree8e5f46df32f44248a7e9a1f630707248297365b6 /drivers/gpu/drm/xe/xe_guc_buf.c
parentf90b552dcbb4e142f2a15d2b4458ea601248b8e8 (diff)
downloadlinux-next-238f96315ada9e2183b04df90c9714b1da68455c.tar.gz
linux-next-238f96315ada9e2183b04df90c9714b1da68455c.zip
drm/xe/kunit: Add KUnit tests for GuC Buffer Cache
Add tests to make sure that recently added GuC Buffer Cache component is working as expected. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Michał Winiarski <michal.winiarski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250114192140.1039-1-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_buf.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_buf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_buf.c b/drivers/gpu/drm/xe/xe_guc_buf.c
index 261c7c74417f..ce6d9830e13b 100644
--- a/drivers/gpu/drm/xe/xe_guc_buf.c
+++ b/drivers/gpu/drm/xe/xe_guc_buf.c
@@ -170,3 +170,7 @@ u64 xe_guc_cache_gpu_addr_from_ptr(struct xe_guc_buf_cache *cache, const void *p
return cache->sam->gpu_addr + offset;
}
+
+#if IS_BUILTIN(CONFIG_DRM_XE_KUNIT_TEST)
+#include "tests/xe_guc_buf_kunit.c"
+#endif