Skip to contentSkip to conversation

Improve and fix VM decoding

PATCH New Tom St Denis 1 participant 1 message Jul 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Improve and fix VM decoding

We now filter the output nicely to not repeat PDE entries unncessarily. The VA mask was also fixed for AI platforms.

---
 src/app/main.c      |   6 +--
 src/lib/read_vram.c | 128 +++++++++++++++++++++++++++++++---------------------
 2 files changed, 77 insertions(+), 57 deletions(-)
src/app/main.c +1 -5
index 006727ba7981..920f6815e220 100644
@@ -374,11 +374,7 @@ int main(int argc, char **argv)
 				if (options.hub_name[0])
 					vmid |= UMR_USER_HUB;
 
-				while (size--) {
-					if (umr_read_vram(asic, vmid, address, 0, NULL))
-						break;
-					address += 0x1000;
-				}
+				umr_read_vram(asic, vmid, address, 0x1000UL * size, NULL);
 				i += 2;
 
 				asic->options.verbose = overbose;
src/lib/read_vram.c +76 -52

277 lines not on this page · raw message

Signature · 6 lines
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx