From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: Pravalika Gurram <pravalika.gurram@intel.com>
Cc: igt-dev@lists.freedesktop.org, sai.gowtham.ch@intel.com,
katarzyna.piecielska@intel.com
Subject: Re: [PATCH i-g-t 2/2] tests/intel/xe_exec_compute_mode: Use xe_find_engine_by_class
Date: Wed, 16 Oct 2024 12:37:57 +0200 [thread overview]
Message-ID: <20241016103757.5o3zprwevb2wsbbd@zkempczy-mobl2> (raw)
In-Reply-To: <20241016101933.4191790-3-pravalika.gurram@intel.com>
On Wed, Oct 16, 2024 at 03:49:33PM +0530, Pravalika Gurram wrote:
> Use 'xe_find_engine_by_class' helper to get the engine info with the
> required engine class. Stop assuming engine id is equal to 1
>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
> ---
> tests/intel/xe_exec_compute_mode.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/xe_exec_compute_mode.c b/tests/intel/xe_exec_compute_mode.c
> index 82e607848..b238503ea 100644
> --- a/tests/intel/xe_exec_compute_mode.c
> +++ b/tests/intel/xe_exec_compute_mode.c
> @@ -461,7 +461,10 @@ static void lr_mode_workload(int fd)
> vm = xe_vm_create(fd, DRM_XE_VM_CREATE_FLAG_LR_MODE, 0);
> ahnd = intel_allocator_open(fd, 0, INTEL_ALLOCATOR_RELOC);
> bo_size = xe_bb_size(fd, sizeof(*spin));
> - engine = xe_engine(fd, 1);
> +
Unnecessary blank line. With this nit fixed:
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Don't send next revision, just remind me when CI results will be available.
I'll remove it before pushing.
--
Zbigniew
> + engine = xe_find_engine_by_class(fd, DRM_XE_ENGINE_CLASS_COPY);
> + igt_assert(engine);
> +
> bo = xe_bo_create(fd, vm, bo_size, vram_if_possible(fd, engine->instance.gt_id), 0);
> spin = xe_bo_map(fd, bo, bo_size);
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-10-16 10:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-16 10:19 [PATCH i-g-t 0/2] xe_find_engine_by_class helper Pravalika Gurram
2024-10-16 10:19 ` [PATCH i-g-t 1/2] lib/xe/xe_query: " Pravalika Gurram
2024-10-16 10:36 ` Zbigniew Kempczyński
2024-10-21 12:59 ` Kamil Konieczny
2024-10-22 13:55 ` Zbigniew Kempczyński
2024-10-16 10:19 ` [PATCH i-g-t 2/2] tests/intel/xe_exec_compute_mode: Use xe_find_engine_by_class Pravalika Gurram
2024-10-16 10:37 ` Zbigniew Kempczyński [this message]
2024-10-21 15:40 ` Kamil Konieczny
2024-10-22 10:29 ` Zbigniew Kempczyński
2024-10-16 10:39 ` ✗ GitLab.Pipeline: warning for xe_find_engine_by_class helper (rev2) Patchwork
2024-10-16 11:05 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-10-16 11:11 ` ✓ CI.xeBAT: success " Patchwork
2024-10-16 23:24 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-21 10:47 ` Gurram, Pravalika
2024-10-22 10:31 ` Zbigniew Kempczyński
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=20241016103757.5o3zprwevb2wsbbd@zkempczy-mobl2 \
--to=zbigniew.kempczynski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=katarzyna.piecielska@intel.com \
--cc=pravalika.gurram@intel.com \
--cc=sai.gowtham.ch@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