From 1d29e1df8b140b7ad3466d5122e703435ef5e436 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 30 May 2021 15:10:39 +0200 Subject: nouveau: print bo address in the GPU/CPU vm and its size v2: print bo->offset as 64 bit Reviewed-by: Emil Velikov Signed-off-by: Karol Herbst --- nouveau/pushbuf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nouveau') diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c index 10ff3f57..5fadd7a9 100644 --- a/nouveau/pushbuf.c +++ b/nouveau/pushbuf.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -274,9 +275,10 @@ pushbuf_dump(struct nouveau_pushbuf_krec *krec, int krec_id, int chid) kref = krec->buffer; for (i = 0; i < krec->nr_buffer; i++, kref++) { - err("ch%d: buf %08x %08x %08x %08x %08x\n", chid, i, + bo = (void *)(uintptr_t)kref->user_priv; + err("ch%d: buf %08x %08x %08x %08x %08x %p 0x%"PRIx64" 0x%"PRIx64"\n", chid, i, kref->handle, kref->valid_domains, - kref->read_domains, kref->write_domains); + kref->read_domains, kref->write_domains, bo->map, bo->offset, bo->size); } krel = krec->reloc; -- cgit v1.2.1