From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id DDCDF10F328 for ; Wed, 30 Mar 2022 04:55:08 +0000 (UTC) Date: Tue, 29 Mar 2022 21:55:07 -0700 Message-ID: <87ilrw6nv8.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Ramalingam C In-Reply-To: <20220330044915.31189-3-ramalingam.c@intel.com> References: <20220330044915.31189-1-ramalingam.c@intel.com> <20220330044915.31189-3-ramalingam.c@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [igt-dev] [PATCH i-g-t v4 2/2] tests/i915/gem_lmem_swapping: Add ccs subtests List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Tue, 29 Mar 2022 21:49:15 -0700, Ramalingam C wrote: > > @@ -174,13 +324,26 @@ static void __do_evict(int i915, > region->memory_instance); > const unsigned int max_swap_in = params->count / 100 + 1; > struct object *objects, *obj, *list; > + const uint32_t bpp = 32; > + uint32_t width, height, stride; > + const intel_ctx_t *blt_ctx; > + struct blt_copy_object *tmp; > unsigned int engine = 0; > unsigned int i, l; > - uint64_t size; > + uint64_t size, ahnd; > struct timespec t = {}; > unsigned int num; > > - size = 4096; > + width = PAGE_SIZE / (bpp / 8); > + height = params->size.max / (bpp / 8) / width; > + stride = width * 4; > + > + tmp = calloc(1, sizeof(*tmp)); > + __gem_context_set_persistence(i915, 0, false); Setting context 0 as non-persistent? > + if (params->flags & TEST_CCS) > + blt_ctx = intel_ctx_create_for_engine(i915, > + I915_ENGINE_CLASS_COPY, > + 0);