Skip to content

Commit 780d7cc

Browse files
ickleairlied
authored andcommitted
agp/intel: Fix typo in G4x_GMCH_SIZE_VT_2M
Konstantin Belousov found an error in the define of G4x_GMCH_SIZE_VT_2M relative to the GMCH specs, and confirmed that indeed one of his users with a Q45 reports 0xb not 0xc for a 2/2MiB GATT. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Konstantin Belousov <kostikbel@gmail.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 4171424 commit 780d7cc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎drivers/char/agp/intel-agp.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@
9090
#define G4x_GMCH_SIZE_MASK (0xf << 8)
9191
#define G4x_GMCH_SIZE_1M (0x1 << 8)
9292
#define G4x_GMCH_SIZE_2M (0x3 << 8)
93-
#define G4x_GMCH_SIZE_VT_1M (0x9 << 8)
94-
#define G4x_GMCH_SIZE_VT_1_5M (0xa << 8)
95-
#define G4x_GMCH_SIZE_VT_2M (0xc << 8)
93+
#define G4x_GMCH_SIZE_VT_EN (0x8 << 8)
94+
#define G4x_GMCH_SIZE_VT_1M (G4x_GMCH_SIZE_1M | G4x_GMCH_SIZE_VT_EN)
95+
#define G4x_GMCH_SIZE_VT_1_5M ((0x2 << 8) | G4x_GMCH_SIZE_VT_EN)
96+
#define G4x_GMCH_SIZE_VT_2M (G4x_GMCH_SIZE_2M | G4x_GMCH_SIZE_VT_EN)
9697

9798
#define GFX_FLSH_CNTL 0x2170 /* 915+ */
9899

0 commit comments

Comments
 (0)