[PATCH i-g-t 4/4] Debug print v2

Dominik Karol Piatkowski dominik.karol.piatkowski at intel.com
Fri Dec 9 09:37:06 UTC 2022


Signed-off-by: Dominik Karol Piatkowski <dominik.karol.piatkowski at intel.com>
---
 lib/intel_allocator.c        | 1 +
 lib/intel_allocator_simple.c | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
index 64616984..3c6666fe 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,
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