[coreboot-gerrit] Patch set updated for coreboot: 7d6cff8 Lenovo X60: Native VGA init: Get rid of the memory corruptions.

Denis Carikli (GNUtoo@no-log.org) gerrit at coreboot.org
Mon Oct 28 00:49:32 CET 2013

Denis Carikli (GNUtoo at no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4002


commit 7d6cff88b67d003a95f288668b70e2ed4613a66b
Author: Peter Stuge <peter at stuge.se>
Date:   Sun Oct 27 16:07:28 2013 +0100

    Lenovo X60: Native VGA init: Get rid of the memory corruptions.
    Without that fix the GTT points at 0x00000000.
    The patch was made by Peter Stuge, I just split it
      and added a commit message.
    Change-Id: Ia378b600ba2faf00d42635c6503b94ff0cb1bc8c
    Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
 src/mainboard/lenovo/x60/i915.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/lenovo/x60/i915.c b/src/mainboard/lenovo/x60/i915.c
index 0f90168..f130c5c 100644
--- a/src/mainboard/lenovo/x60/i915.c
+++ b/src/mainboard/lenovo/x60/i915.c
@@ -139,7 +139,8 @@ int gtt_setup(unsigned int mmiobase)
 	PGETBL_save = read32(mmiobase + PGETBL_CTL) & ~PGETBL_ENABLED;
-	printk(BIOS_DEBUG, "PGETBL_save=0x%lx\n", PGETBL_save);
+	PGETBL_save |= pci_read_config32(dev_find_slot(0, PCI_DEVFN(2,0)), 0x5c) & 0xfffff000;
+	PGETBL_save |= 2; /* set GTT to 256kb */
 	write32(mmiobase + GFX_FLSH_CNTL, 0);

More information about the coreboot-gerrit mailing list