[igt-dev] [PATCH i-g-t 3/8] tests/i915/gem_exec_endless: Stop setting the ring size

Daniel Vetter daniel at ffwll.ch
Mon Mar 22 19:14:16 UTC 2021


On Fri, Mar 19, 2021 at 05:32:28PM -0500, Jason Ekstrand wrote:
> I915_CONTEXT_PARAM_RINGSIZE is being removed from upstream i915 because
> it's never been used by any userspace other than IGT.

Lots of MI_SEMAPHORE in this tests, looks a bit like something that is
probably not a valid usecase for legacy dma_fence execbuf with
end-of-batch dma_fence semantics. But didn't look too closely.

Up to this patch, with sob added:

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

> ---
>  tests/i915/gem_exec_endless.c | 12 +-----------
>  1 file changed, 1 insertion(+), 11 deletions(-)
> 
> diff --git a/tests/i915/gem_exec_endless.c b/tests/i915/gem_exec_endless.c
> index 1b320d4c..a3e2fa49 100644
> --- a/tests/i915/gem_exec_endless.c
> +++ b/tests/i915/gem_exec_endless.c
> @@ -67,16 +67,6 @@ static unsigned int offset_in_page(void *addr)
>  static uint32_t __supervisor_create_context(int i915,
>  					    const struct intel_execution_engine2 *e)
>  {
> -	struct drm_i915_gem_context_create_ext_setparam p_ring = {
> -		{
> -			.name = I915_CONTEXT_CREATE_EXT_SETPARAM,
> -			.next_extension = 0
> -		},
> -		{
> -			.param = I915_CONTEXT_PARAM_RINGSIZE,
> -			.value = 4096,
> -		},
> -	};
>  	I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, 2) = {
>  		.engines = {
>  			{ e->class, e->instance },
> @@ -86,7 +76,7 @@ static uint32_t __supervisor_create_context(int i915,
>  	struct drm_i915_gem_context_create_ext_setparam p_engines = {
>  		{
>  			.name = I915_CONTEXT_CREATE_EXT_SETPARAM,
> -			.next_extension = to_user_pointer(&p_ring)
> +			.next_extension = 0,
>  		},
>  		{
>  			.param = I915_CONTEXT_PARAM_ENGINES,
> -- 
> 2.29.2
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the igt-dev mailing list