[PATCH i-g-t 4/4] Debug print v3
Dominik Karol Piatkowski
dominik.karol.piatkowski at intel.com
Mon Dec 12 08:11:23 UTC 2022
Signed-off-by: Dominik Karol Piatkowski <dominik.karol.piatkowski at intel.com>
---
lib/intel_allocator.c | 3 +++
lib/intel_allocator_simple.c | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
index 64616984..d7ab9e98 100644
--- a/lib/intel_allocator.c
+++ b/lib/intel_allocator.c
@@ -645,6 +645,7 @@ static int handle_request(struct alloc_req *req, struct alloc_resp *resp)
case REQ_RESERVE:
resp->response_type = RESP_RESERVE;
+ igt_info("reserve.start: %lx\n", req->reserve.start);
reserved = ial->reserve(ial,
req->reserve.handle,
req->reserve.start,
@@ -912,6 +913,7 @@ static uint64_t __intel_allocator_open_full(int fd, uint32_t ctx,
if (!start)
req.open.start = gem_detect_safe_start_offset(fd);
+ igt_info("req.open.start: %lx\n", req.open.start);
if (!end) {
igt_assert_f(can_report_gtt_size(fd), "Invalid fd\n");
@@ -926,6 +928,7 @@ static uint64_t __intel_allocator_open_full(int fd, uint32_t ctx,
if (!default_alignment)
req.open.default_alignment = gem_detect_safe_alignment(fd);
+ igt_info("req.open.default_alignment: %lx\n", req.open.default_alignment);
/* Get child_tid only once at open() */
if (child_tid == -1)
diff --git a/lib/intel_allocator_simple.c b/lib/intel_allocator_simple.c
index 8d5105f1..9a7d03bc 100644
--- a/lib/intel_allocator_simple.c
+++ b/lib/intel_allocator_simple.c
@@ -514,16 +514,19 @@ static bool intel_allocator_simple_reserve(struct intel_allocator *ial,
igt_assert(ial);
ials = (struct intel_allocator_simple *) ial->priv;
igt_assert(ials);
-
+ igt_info("ials->start: %lx\n", ials->start);
/* don't allow end equal to 0 before decanonical */
igt_assert(end);
/* clear [63:48] bits to get rid of canonical form */
+ igt_info("start: %lx\n", start);
start = DECANONICAL(start);
+ igt_info("decanonical_start: %lx\n", start);
end = DECANONICAL(end);
igt_assert(end > start || end == 0);
size = get_size(start, end);
igt_assert(start + size <= ials->end);
+ igt_info("start: %lx ials_start: %lx\n", start, ials->start);
igt_assert(start >= ials->start);
if (simple_vma_heap_alloc_addr(ials, start, size)) {
--
2.34.1
More information about the Intel-gfx-trybot
mailing list