@@ -1948,6 +1948,7 @@ int i915_gem_huge_page_mock_selftests(void)
mock_destroy_device(dev_priv);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_huge_page_mock_selftests, I915_SELFTEST);
int i915_gem_huge_page_live_selftests(struct drm_i915_private *i915)
{
@@ -1970,3 +1971,4 @@ int i915_gem_huge_page_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_huge_page_live_selftests, I915_SELFTEST);
@@ -763,3 +763,4 @@ int i915_gem_client_blt_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_client_blt_live_selftests, I915_SELFTEST);
@@ -436,3 +436,4 @@ int i915_gem_coherency_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_coherency_live_selftests, I915_SELFTEST);
@@ -1912,3 +1912,4 @@ int i915_gem_context_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_context_live_selftests, I915_SELFTEST);
@@ -466,6 +466,7 @@ int i915_gem_dmabuf_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_dmabuf_mock_selftests, I915_SELFTEST);
int i915_gem_dmabuf_live_selftests(struct drm_i915_private *i915)
{
@@ -478,3 +479,4 @@ int i915_gem_dmabuf_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_dmabuf_live_selftests, I915_SELFTEST);
@@ -526,3 +526,4 @@ int i915_gem_migrate_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_migrate_live_selftests, I915_SELFTEST);
@@ -1847,3 +1847,4 @@ int i915_gem_mman_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_mman_live_selftests, I915_SELFTEST);
@@ -88,6 +88,7 @@ int i915_gem_object_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_object_mock_selftests, I915_SELFTEST);
int i915_gem_object_live_selftests(struct drm_i915_private *i915)
{
@@ -97,3 +98,4 @@ int i915_gem_object_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_object_live_selftests, I915_SELFTEST);
@@ -85,3 +85,4 @@ int i915_gem_phys_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_phys_mock_selftests, I915_SELFTEST);
@@ -449,3 +449,4 @@ int intel_context_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_context_live_selftests, I915_SELFTEST);
@@ -25,3 +25,4 @@ int intel_engine_live_selftests(struct drm_i915_private *i915)
return 0;
}
+EXPORT_SYMBOL_NS_GPL(intel_engine_live_selftests, I915_SELFTEST);
@@ -366,6 +366,7 @@ int intel_engine_cs_perf_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_engine_cs_perf_selftests, I915_SELFTEST);
static int intel_mmio_bases_check(void *arg)
{
@@ -421,3 +422,4 @@ int intel_engine_cs_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(intel_engine_cs_mock_selftests, I915_SELFTEST);
@@ -389,6 +389,7 @@ int intel_heartbeat_live_selftests(struct drm_i915_private *i915)
i915->params.enable_hangcheck = saved_hangcheck;
return err;
}
+EXPORT_SYMBOL_NS_GPL(intel_heartbeat_live_selftests, I915_SELFTEST);
void st_engine_heartbeat_disable(struct intel_engine_cs *engine)
{
@@ -4513,3 +4513,4 @@ int intel_execlists_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_execlists_live_selftests, I915_SELFTEST);
@@ -199,6 +199,7 @@ int intel_gt_pm_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_gt_pm_live_selftests, I915_SELFTEST);
int intel_gt_pm_late_selftests(struct drm_i915_private *i915)
{
@@ -216,3 +217,4 @@ int intel_gt_pm_late_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_gt_pm_late_selftests, I915_SELFTEST);
@@ -2058,3 +2058,4 @@ int intel_hangcheck_live_selftests(struct drm_i915_private *i915)
return err;
}
+EXPORT_SYMBOL_NS_GPL(intel_hangcheck_live_selftests, I915_SELFTEST);
@@ -1975,3 +1975,4 @@ int intel_lrc_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_lrc_live_selftests, I915_SELFTEST);
@@ -649,6 +649,7 @@ int intel_migrate_live_selftests(struct drm_i915_private *i915)
return i915_subtests(tests, >->migrate);
}
+EXPORT_SYMBOL_NS_GPL(intel_migrate_live_selftests, I915_SELFTEST);
static struct drm_i915_gem_object *
create_init_lmem_internal(struct intel_gt *gt, size_t sz, bool try_lmem)
@@ -870,3 +871,4 @@ int intel_migrate_perf_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_migrate_perf_selftests, I915_SELFTEST);
@@ -453,3 +453,4 @@ int intel_mocs_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_mocs_live_selftests, I915_SELFTEST);
@@ -386,3 +386,4 @@ int intel_reset_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_reset_live_selftests, I915_SELFTEST);
@@ -108,3 +108,4 @@ int intel_ring_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(intel_ring_mock_selftests, I915_SELFTEST);
@@ -296,3 +296,4 @@ int intel_ring_submission_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_ring_submission_live_selftests, I915_SELFTEST);
@@ -443,3 +443,4 @@ int intel_slpc_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(intel_slpc_live_selftests, I915_SELFTEST);
@@ -450,6 +450,7 @@ int intel_timeline_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(intel_timeline_mock_selftests, I915_SELFTEST);
static int emit_ggtt_store_dw(struct i915_request *rq, u32 addr, u32 value)
{
@@ -1423,3 +1424,4 @@ int intel_timeline_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_timeline_live_selftests, I915_SELFTEST);
@@ -1393,3 +1393,4 @@ int intel_workarounds_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_workarounds_live_selftests, I915_SELFTEST);
@@ -61,3 +61,4 @@ int shmem_utils_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(shmem_utils_mock_selftests, I915_SELFTEST);
@@ -300,3 +300,4 @@ int intel_guc_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_guc_live_selftests, I915_SELFTEST);
@@ -157,3 +157,4 @@ int intel_guc_hang_check(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_guc_hang_check, I915_SELFTEST);
@@ -181,3 +181,4 @@ int intel_guc_multi_lrc_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, gt);
}
+EXPORT_SYMBOL_NS_GPL(intel_guc_multi_lrc_live_selftests, I915_SELFTEST);
@@ -260,6 +260,7 @@ int i915_active_live_selftests(struct drm_i915_private *i915)
return i915_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_active_live_selftests, I915_SELFTEST);
static struct intel_engine_cs *node_to_barrier(struct active_node *it)
{
@@ -254,3 +254,4 @@ int i915_gem_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_live_selftests, I915_SELFTEST);
@@ -555,6 +555,7 @@ int i915_gem_evict_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_evict_mock_selftests, I915_SELFTEST);
int i915_gem_evict_live_selftests(struct drm_i915_private *i915)
{
@@ -567,3 +568,4 @@ int i915_gem_evict_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_evict_live_selftests, I915_SELFTEST);
@@ -1938,6 +1938,7 @@ int i915_gem_gtt_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_gtt_mock_selftests, I915_SELFTEST);
static int context_sync(struct intel_context *ce)
{
@@ -2320,3 +2321,4 @@ int i915_gem_gtt_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_gem_gtt_live_selftests, I915_SELFTEST);
@@ -437,3 +437,4 @@ int i915_perf_live_selftests(struct drm_i915_private *i915)
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_perf_live_selftests, I915_SELFTEST);
@@ -563,6 +563,7 @@ int i915_request_mock_selftests(void)
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_request_mock_selftests, I915_SELFTEST);
static int live_nop_request(void *arg)
{
@@ -1869,6 +1870,7 @@ int i915_request_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_request_live_selftests, I915_SELFTEST);
static int switch_to_kernel_sync(struct intel_context *ce, int err)
{
@@ -3286,3 +3288,4 @@ int i915_request_perf_selftests(struct drm_i915_private *i915)
return i915_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_request_perf_selftests, I915_SELFTEST);
@@ -39,12 +39,14 @@ int i915_mock_sanitycheck(void)
pr_info(DRIVER_NAME ": %s() - ok!\n", __func__);
return 0;
}
+EXPORT_SYMBOL_NS_GPL(i915_mock_sanitycheck, I915_SELFTEST);
int i915_live_sanitycheck(struct drm_i915_private *i915)
{
pr_info("%s: %s() - ok!\n", i915->drm.driver->name, __func__);
return 0;
}
+EXPORT_SYMBOL_NS_GPL(i915_live_sanitycheck, I915_SELFTEST);
enum {
#define selftest(name, func) mock_##name,
@@ -755,3 +755,4 @@ int i915_sw_fence_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(i915_sw_fence_mock_selftests, I915_SELFTEST);
@@ -614,3 +614,4 @@ int i915_syncmap_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(i915_syncmap_mock_selftests, I915_SELFTEST);
@@ -949,6 +949,7 @@ int i915_vma_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(i915_vma_mock_selftests, I915_SELFTEST);
static int igt_vma_remapped_gtt(void *arg)
{
@@ -1105,3 +1106,4 @@ int i915_vma_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(i915_vma_live_selftests, I915_SELFTEST);
@@ -1376,6 +1376,7 @@ int intel_memory_region_mock_selftests(void)
mock_destroy_device(i915);
return err;
}
+EXPORT_SYMBOL_NS_GPL(intel_memory_region_mock_selftests, I915_SELFTEST);
int intel_memory_region_live_selftests(struct drm_i915_private *i915)
{
@@ -1397,6 +1398,7 @@ int intel_memory_region_live_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(intel_memory_region_live_selftests, I915_SELFTEST);
int intel_memory_region_perf_selftests(struct drm_i915_private *i915)
{
@@ -1409,3 +1411,4 @@ int intel_memory_region_perf_selftests(struct drm_i915_private *i915)
return i915_live_subtests(tests, i915);
}
+EXPORT_SYMBOL_NS_GPL(intel_memory_region_perf_selftests, I915_SELFTEST);
@@ -138,6 +138,7 @@ int intel_uncore_mock_selftests(void)
return 0;
}
+EXPORT_SYMBOL_NS_GPL(intel_uncore_mock_selftests, I915_SELFTEST);
static int live_forcewake_ops(void *arg)
{
@@ -352,3 +353,4 @@ int intel_uncore_live_selftests(struct drm_i915_private *i915)
return intel_gt_live_subtests(tests, to_gt(i915));
}
+EXPORT_SYMBOL_NS_GPL(intel_uncore_live_selftests, I915_SELFTEST);
@@ -378,3 +378,4 @@ int scatterlist_mock_selftests(void)
return i915_subtests(tests, NULL);
}
+EXPORT_SYMBOL_NS_GPL(scatterlist_mock_selftests, I915_SELFTEST);
In order to prepare for a new KUnit module that will run selftests, export all selftest functions to I915_SELFTEST namespace. No functional changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH RFC v2 0/8] at: https://lore.kernel.org/all/cover.1667486144.git.mchehab@kernel.org/ drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 2 ++ drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c | 1 + drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c | 1 + drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 1 + drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 2 ++ drivers/gpu/drm/i915/gem/selftests/i915_gem_migrate.c | 1 + drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 1 + drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c | 2 ++ drivers/gpu/drm/i915/gem/selftests/i915_gem_phys.c | 1 + drivers/gpu/drm/i915/gt/selftest_context.c | 1 + drivers/gpu/drm/i915/gt/selftest_engine.c | 1 + drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 2 ++ drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c | 1 + drivers/gpu/drm/i915/gt/selftest_execlists.c | 1 + drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 2 ++ drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 1 + drivers/gpu/drm/i915/gt/selftest_lrc.c | 1 + drivers/gpu/drm/i915/gt/selftest_migrate.c | 2 ++ drivers/gpu/drm/i915/gt/selftest_mocs.c | 1 + drivers/gpu/drm/i915/gt/selftest_reset.c | 1 + drivers/gpu/drm/i915/gt/selftest_ring.c | 1 + drivers/gpu/drm/i915/gt/selftest_ring_submission.c | 1 + drivers/gpu/drm/i915/gt/selftest_slpc.c | 1 + drivers/gpu/drm/i915/gt/selftest_timeline.c | 2 ++ drivers/gpu/drm/i915/gt/selftest_workarounds.c | 1 + drivers/gpu/drm/i915/gt/st_shmem_utils.c | 1 + drivers/gpu/drm/i915/gt/uc/selftest_guc.c | 1 + drivers/gpu/drm/i915/gt/uc/selftest_guc_hangcheck.c | 1 + drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c | 1 + drivers/gpu/drm/i915/selftests/i915_active.c | 1 + drivers/gpu/drm/i915/selftests/i915_gem.c | 1 + drivers/gpu/drm/i915/selftests/i915_gem_evict.c | 2 ++ drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 2 ++ drivers/gpu/drm/i915/selftests/i915_perf.c | 1 + drivers/gpu/drm/i915/selftests/i915_request.c | 3 +++ drivers/gpu/drm/i915/selftests/i915_selftest.c | 2 ++ drivers/gpu/drm/i915/selftests/i915_sw_fence.c | 1 + drivers/gpu/drm/i915/selftests/i915_syncmap.c | 1 + drivers/gpu/drm/i915/selftests/i915_vma.c | 2 ++ drivers/gpu/drm/i915/selftests/intel_memory_region.c | 3 +++ drivers/gpu/drm/i915/selftests/intel_uncore.c | 2 ++ drivers/gpu/drm/i915/selftests/scatterlist.c | 1 + 42 files changed, 58 insertions(+)