agp/intel: use correct GTT offset on VLV
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 15 Jun 2012 18:55:22 +0000 (11:55 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Jun 2012 20:49:46 +0000 (22:49 +0200)
VLV is a gen7 device, but we don't currently handle that in the switch.
So add it and write the PTEs correctly.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/char/agp/intel-gtt.c

index 692610e597db149936a055af43e595337e6cdbc2..9ed92ef5829b8f54bb318e0b6510e59c2b40e939 100644 (file)
@@ -1253,6 +1253,7 @@ static int i9xx_setup(void)
                switch (INTEL_GTT_GEN) {
                case 5:
                case 6:
+               case 7:
                        gtt_offset = MB(2);
                        break;
                case 4: