From: Matthew Auld <matthew.auld@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [PATCH i-g-t 3/5] benchmarks/gem_wsim: use xe_bb_size() helper
Date: Wed, 24 Jan 2024 18:07:11 +0000 [thread overview]
Message-ID: <20240124180713.268843-3-matthew.auld@intel.com> (raw)
In-Reply-To: <20240124180713.268843-1-matthew.auld@intel.com>
No need to open code this anymore.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
benchmarks/gem_wsim.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index 955b6799e..257134539 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -1743,8 +1743,8 @@ xe_alloc_step_batch(struct workload *wrk, struct w_step *w)
struct dep_entry *dep;
int i;
- w->bb_size = ALIGN(PAGE_SIZE + xe_cs_prefetch_size(fd),
- xe_get_default_alignment(fd));
+ w->bb_size = xe_bb_size(fd, PAGE_SIZE);
+
w->bb_handle = xe_bo_create(fd, vm->id, w->bb_size,
vram_if_possible(fd, eq->hwe_list[0].gt_id),
DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
--
2.43.0
next prev parent reply other threads:[~2024-01-24 18:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 18:07 [PATCH i-g-t 1/5] lib/xe/ioctl: introduce xe_bb_size() helper Matthew Auld
2024-01-24 18:07 ` [PATCH i-g-t 2/5] tests/intel/xe: account for prefetch Matthew Auld
2024-01-25 6:12 ` Zbigniew Kempczyński
2024-01-24 18:07 ` Matthew Auld [this message]
2024-01-25 6:12 ` [PATCH i-g-t 3/5] benchmarks/gem_wsim: use xe_bb_size() helper Zbigniew Kempczyński
2024-01-24 18:07 ` [PATCH i-g-t 4/5] lib/igt_fb: " Matthew Auld
2024-01-25 6:12 ` Zbigniew Kempczyński
2024-01-24 18:07 ` [PATCH i-g-t 5/5] tests/intel/xe: " Matthew Auld
2024-01-25 6:15 ` Zbigniew Kempczyński
2024-01-24 18:51 ` ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/5] lib/xe/ioctl: introduce " Patchwork
2024-01-24 19:02 ` ✓ CI.xeBAT: success " Patchwork
2024-01-25 6:06 ` [PATCH i-g-t 1/5] " 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=20240124180713.268843-3-matthew.auld@intel.com \
--to=matthew.auld@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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