From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Ramalingam C <ramalingam.c@intel.com>
Cc: igt-dev <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t v4 2/2] tests/i915/gem_lmem_swapping: Add ccs subtests
Date: Tue, 29 Mar 2022 21:55:07 -0700 [thread overview]
Message-ID: <87ilrw6nv8.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20220330044915.31189-3-ramalingam.c@intel.com>
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);
next prev parent reply other threads:[~2022-03-30 4:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-30 4:49 [igt-dev] [PATCH i-g-t v4 0/2] tests/i915/gem_lmem_swapping: Add ccs subtests Ramalingam C
2022-03-30 4:49 ` [igt-dev] [PATCH i-g-t v4 1/2] tests/i915/gem_lmem_swapping: create batch buffer from obj pool Ramalingam C
2022-03-30 4:49 ` [igt-dev] [PATCH i-g-t v4 2/2] tests/i915/gem_lmem_swapping: Add ccs subtests Ramalingam C
2022-03-30 4:55 ` Dixit, Ashutosh [this message]
2022-03-30 5:23 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/i915/gem_lmem_swapping: Add ccs subtests (rev3) Patchwork
2022-03-30 5:53 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilrw6nv8.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramalingam.c@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox