From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] lib/intel_allocator: Fix missing alignment bug
Date: Tue, 6 Jun 2023 20:48:47 +0200 [thread overview]
Message-ID: <20230606184847.97018-1-zbigniew.kempczynski@intel.com> (raw)
For helpers which don't pass alignment we must establish any positive
value to move forward in RELOC allocator.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
lib/intel_allocator.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
index 45c1168ab5..8161221dbf 100644
--- a/lib/intel_allocator.c
+++ b/lib/intel_allocator.c
@@ -935,6 +935,9 @@ static uint64_t __intel_allocator_open_full(int fd, uint32_t ctx,
igt_assert(xe_dev);
+ if (!default_alignment)
+ req.open.default_alignment = xe_get_default_alignment(fd);
+
if (!end)
req.open.end = 1ull << xe_dev->va_bits;
}
--
2.34.1
next reply other threads:[~2023-06-06 18:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-06 18:48 Zbigniew Kempczyński [this message]
2023-06-06 20:29 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/intel_allocator: Fix missing alignment bug Patchwork
2023-06-07 8:00 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
2023-06-07 10:30 ` [igt-dev] ✓ Fi.CI.IGT: success for " 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=20230606184847.97018-1-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@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