[igt-dev] [PATCH i-g-t 04/74] tests/i915/gem_ctx_param: Drop the zeromap subtests
Jason Ekstrand
jason at jlekstrand.net
Tue Apr 13 03:52:40 UTC 2021
The idea behind this param is to support OpenCL drivers with relocations
because OpenCL reserves 0x0 for NULL and, if we placed memory there, it
would confuse CL kernels. It was originally sent out as part of a patch
series including libdrm [1] and Beignet [2] support. However, the
libdrm and Beignet patches never landed in their respective upstream
projects so this API has never been used. It's never been used in Mesa
or any other driver, either.
This means that these IGT tests are the only userspace for NO_ZEROMAP
which has ever really existed. Let's drop them and drop support from
i915 as well.
[1]: https://lists.freedesktop.org/archives/intel-gfx/2015-May/067030.html
[2]: https://lists.freedesktop.org/archives/intel-gfx/2015-May/067031.html
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
tests/i915/gem_ctx_param.c | 33 ---------------------------------
1 file changed, 33 deletions(-)
diff --git a/tests/i915/gem_ctx_param.c b/tests/i915/gem_ctx_param.c
index ab0e3007..47fea06d 100644
--- a/tests/i915/gem_ctx_param.c
+++ b/tests/i915/gem_ctx_param.c
@@ -335,39 +335,6 @@ igt_main
gem_context_set_param(fd, &arg);
}
- arg.param = I915_CONTEXT_PARAM_NO_ZEROMAP;
-
- igt_describe("Validates context set param ioctl in non root mode with param "
- "set to no zeromap");
- igt_subtest("non-root-set-no-zeromap") {
- igt_fork(child, 1) {
- igt_drop_root();
-
- arg.ctx_id = ctx;
- gem_context_get_param(fd, &arg);
- arg.value--;
- gem_context_set_param(fd, &arg);
- }
-
- igt_waitchildren();
- }
-
- igt_describe("Tests the context set param ioctl with no zeromap enabled in root mode");
- igt_subtest("root-set-no-zeromap-enabled") {
- arg.ctx_id = ctx;
- gem_context_get_param(fd, &arg);
- arg.value = 1;
- gem_context_set_param(fd, &arg);
- }
-
- igt_describe("Tests the context set param ioctl with no zeromap disabled in root mode");
- igt_subtest("root-set-no-zeromap-disabled") {
- arg.ctx_id = ctx;
- gem_context_get_param(fd, &arg);
- arg.value = 0;
- gem_context_set_param(fd, &arg);
- }
-
igt_describe("Tests that multiple contexts can share the same VMA");
igt_subtest("vm")
test_vm(fd);
--
2.31.1
More information about the igt-dev
mailing list