From ee9b9d197130203cde900f6218fc90ba2e94b2fa Mon Sep 17 00:00:00 2001 From: Ole Algoritme Date: Wed, 27 Mar 2024 11:22:37 +0100 Subject: [PATCH] added warning for missing iomem relaxed --- lib/src/gddr6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/gddr6.c b/lib/src/gddr6.c index 60e31a5..8ed634d 100644 --- a/lib/src/gddr6.c +++ b/lib/src/gddr6.c @@ -110,6 +110,8 @@ void gddr6_memory_map(void) { ctx.devices[i].mapped_addr = NULL; fprintf(stderr, "Memory mapping failed for pci=%x:%x:%x\n", ctx.devices[i].bus, ctx.devices[i].dev, ctx.devices[i].func); + fprintf(stderr, "Did you enable iomem=relaxed? Are you r00t?\n"); + exit(EXIT_FAILURE); } else { printf("Device: %s %s (%s / 0x%04x) pci=%x:%x:%x\n", ctx.devices[i].name, ctx.devices[i].vram, ctx.devices[i].arch, ctx.devices[i].dev_id, ctx.devices[i].bus, ctx.devices[i].dev, ctx.devices[i].func);