public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Hellstrom, Thomas" <thomas.hellstrom@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Sharma,  Nishit" <nishit.sharma@intel.com>,
	"Thomas, Sobin" <sobin.thomas@intel.com>,
	"kamil.konieczny@linux.intel.com"
	<kamil.konieczny@linux.intel.com>
Subject: Re: [PATCH i-g-t v3 1/1] test/intel/xe_vm:Add oversubscribe concurrent bind stress subtest
Date: Wed, 15 Apr 2026 14:19:02 +0000	[thread overview]
Message-ID: <ea4feb817a22a5274c99afacf2a1f8da8cb3598f.camel@intel.com> (raw)
In-Reply-To: <20260414172752.vjwgjx6ufx7rhpdy@kamilkon-DESK.igk.intel.com>

On Tue, 2026-04-14 at 19:27 +0200, Kamil Konieczny wrote:
> Hi Sobin,
> On 2026-04-13 at 04:33:18 +0000, Sobin Thomas wrote:
> 
> small nit about subject, add space after ':' so it will be:
> 
> [PATCH i-g-t v3 1/1] test/intel/xe_vm: Add oversubscribe concurrent
> bind stress subtest
> 
> Few more nits below.
> 
> > Add test for oversubscribing VRAM in multi process environment that
> > creates VM, bind large BOs and submit workloads nearly
> > simultaneously.
> > 
> > Previous coverage lacked a scenario combining multi-process bind
> > with VRAM oversubscription. This generates memory pressure with
> > multi-process VM Bind activity and concurrent submission,
> > exercising
> > the bind pipeline under eviction pressure.
> > 
> > v2: Removed helper APIs usage clock_nanosleep and commented
> > code.(Nishit)
> > 
> > v3: Refactored code to smaller functions.
> >     Added check for available SRAM usage and keep the max process
> > to 20.
> > 
> > v4: Remove explicit macros definition
> >     Replace Bind ioctl with library calls.(Thomas)
> > 
> > Signed-off-by: Sobin Thomas <sobin.thomas@intel.com>
> > ---
> >  tests/intel/xe_vm.c | 433
> > ++++++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 433 insertions(+)
> > 
> > diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
> > index d75b0730d..42effbd48 100644
> > --- a/tests/intel/xe_vm.c
> > +++ b/tests/intel/xe_vm.c
> > @@ -19,8 +19,100 @@
> >  #include "xe/xe_ioctl.h"
> >  #include "xe/xe_query.h"
> >  #include "xe/xe_spin.h"
> > +#include <inttypes.h>
> >  #include <string.h>
> 
> Could you move both to proper place?
> 
> >  
> > +#define GB(x) (1024ULL * 1024ULL * 1024ULL * (x))
> > +#define MAX_THREADS 20
> > +struct gem_bo {
> > +	uint32_t handle;
> > +	uint64_t size;
> > +	int *ptr;
> > +	uint64_t addr;
> > +};
> > +
> > +struct xe_test_ctx {
> > +	int fd;
> > +	uint32_t vm_id;
> > +	uint32_t exec_queue_id;
> > +	uint16_t sram_instance;
> > +	uint16_t vram_instance;
> > +	bool has_vram;
> > +};
> > +
> > +struct mem_bind_sync {
> > +	struct gem_bo *bufs;
> > +	int n_bufs;
> > +	uint64_t *binds_ufence;
> > +};
> > +
> > +static uint64_t align_to_page_size(uint64_t size)
> 
> Here imho add this as param or rename to explicit 4K:
> 
> static uint64_t align_to_4K_page_size(uint64_t size)
> 
> or
> 
> static uint64_t align_to_page_size(uint64_t size, uint64_t page_size)
> 
> > +{
> > +	return (size + 4095UL) & ~4095UL;
> > +}
> > +

Perhaps use the ALIGN() macro?
/Thomas


> 
> Regards,
> Kamil 
> 
> [cut]

  reply	other threads:[~2026-04-15 14:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13  4:33 [PATCH i-g-t v3 1/1] test/intel/xe_vm:Add oversubscribe concurrent bind stress subtest Sobin Thomas
2026-04-13 22:41 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,v3,1/1] " Patchwork
2026-04-13 22:47 ` ✓ i915.CI.BAT: " Patchwork
2026-04-14  0:41 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-14  4:15 ` ✓ i915.CI.Full: success " Patchwork
2026-04-14 17:27 ` [PATCH i-g-t v3 1/1] " Kamil Konieczny
2026-04-15 14:19   ` Hellstrom, Thomas [this message]
2026-04-15 14:57 ` Hellstrom, Thomas
2026-04-21  1:58   ` Thomas, Sobin

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=ea4feb817a22a5274c99afacf2a1f8da8cb3598f.camel@intel.com \
    --to=thomas.hellstrom@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=nishit.sharma@intel.com \
    --cc=sobin.thomas@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