From f5c3e5811e2d29ee0c00dc4fc49ab776f247203f Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Mon, 4 Feb 2013 17:47:53 -0800 Subject: intel_gtt: Fix PTE offsets Vincent sent me a patch which I think didn't go far enough. Honestly, I don't even know what this tool does. Reported-by: Cheah, Vincent Beng Keat Signed-off-by: Ben Widawsky --- tools/intel_gtt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/intel_gtt.c') diff --git a/tools/intel_gtt.c b/tools/intel_gtt.c index 05d36d71..7885610e 100644 --- a/tools/intel_gtt.c +++ b/tools/intel_gtt.c @@ -70,10 +70,10 @@ int main(int argc, char **argv) break; } else { int offset; - if (IS_G4X(devid) || IS_GEN5(devid)) - offset = MB(2); - else + if (IS_GEN4(devid)) offset = KB(512); + else + offset = MB(2); if (pci_device_map_range(pci_dev, pci_dev->regions[0].base_addr + offset, offset, -- cgit v1.2.3