[igt-dev] [PATCH] [i-g-t] tests/i915: Remove I915_CACHING_NONE

Surendrakumar Upadhyay, TejaskumarX tejaskumarx.surendrakumar.upadhyay at intel.com
Mon Apr 19 07:10:20 UTC 2021



> -----Original Message-----
> From: Dixit, Ashutosh <ashutosh.dixit at intel.com>
> Sent: 19 April 2021 12:13
> To: Talabattula, ViswaX Krishna Raveendra
> <viswax.krishna.raveendra.talabattula at intel.com>
> Cc: igt-dev at lists.freedesktop.org; Surendrakumar Upadhyay, TejaskumarX
> <tejaskumarx.surendrakumar.upadhyay at intel.com>; Pandey, Hariom
> <hariom.pandey at intel.com>; Maarten Lankhorst
> <maarten.lankhorst at linux.intel.com>
> Subject: Re: [igt-dev] [PATCH] [i-g-t] tests/i915: Remove
> I915_CACHING_NONE
> 
> On Sun, 18 Apr 2021 23:09:28 -0700,
> <viswax.krishna.raveendra.talabattula at intel.com> wrote:
> >
> > From: Viswa Krishna Raveendra Talabattula
> > <viswax.krishna.raveendra.talabattula at intel.com>
> >
> > The userptr memory does not support I915_CACHING_NONE(no caching)
> > level as per the below commit related to i915 in the kernel
> >
> > drm/i915: Reject more ioctls for userptr, v2.
> >
> > Hence removing the cache level of I915_CACHING_NONE from the test case
> 
> Instead of dropping the test should we check for -ENXIO return?

As far as our understanding is concern, no caching is dropped for all platforms. In that case we think keeping it in tests has no meaning. Please suggest.

Thanks,
Tejas
> 
> > Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> > Signed-off-by: Viswa Krishna Raveendra Talabattula
> > <viswax.krishna.raveendra.talabattula at intel.com>
> > ---
> >  tests/i915/gem_userptr_blits.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/tests/i915/gem_userptr_blits.c
> > b/tests/i915/gem_userptr_blits.c index aad5f141..f0c63535 100644
> > --- a/tests/i915/gem_userptr_blits.c
> > +++ b/tests/i915/gem_userptr_blits.c
> > @@ -2011,7 +2011,6 @@ static void test_sd_probe(int i915)
> >  static void test_set_caching(int i915)
> >  {
> >	const int levels[] = {
> > -		I915_CACHING_NONE,
> >		I915_CACHING_CACHED,
> >	};
> >	uint32_t handle;
> > --
> > 2.30.0
> >
> > _______________________________________________
> > igt-dev mailing list
> > igt-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list