[Intel-gfx] [PATCH 6/7] intel_gtt: Support HSW PTEs

Ben Widawsky benjamin.widawsky at intel.com
Sun Sep 1 21:51:25 CEST 2013


Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 tools/intel_gtt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/intel_gtt.c b/tools/intel_gtt.c
index 874a4f6..acf63c1 100644
--- a/tools/intel_gtt.c
+++ b/tools/intel_gtt.c
@@ -50,7 +50,10 @@ static uint64_t get_phys(uint32_t pt_offset)
 	if (intel_gen(devid) < 6)
 		return phys;
 
-	pae = (phys & 0xff0) << 28;
+	if (IS_HASWELL(devid))
+		pae = (phys & 0x7f0) << 28;
+	else
+		pae = (phys & 0xff0) << 28;
 
 	return (phys | pae) & ~0xfff;
 }
-- 
1.8.4




More information about the Intel-gfx mailing list