Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/intel_allocator: Fix missing alignment bug
@ 2023-06-06 18:48 Zbigniew Kempczyński
  2023-06-06 20:29 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zbigniew Kempczyński @ 2023-06-06 18:48 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-07 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 18:48 [igt-dev] [PATCH i-g-t] lib/intel_allocator: Fix missing alignment bug Zbigniew Kempczyński
2023-06-06 20:29 ` [igt-dev] ✓ Fi.CI.BAT: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox