Mike Banon has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38201 )
Change subject: lenovo/g505s: fix the VGA-related PCI resource allocation problems ......................................................................
lenovo/g505s: fix the VGA-related PCI resource allocation problems
This workaround helps to avoid the PCI resource allocation problems which happen if a particular Lenovo G505S has more than one VGA adapter and its' discrete VGA adapter is enabled at devicetree.cb of G505S (device pci 2.0 on end).
It doesn't bring any downsides for Lenovo G505S without a discrete VGA adapter: https://mail.coreboot.org/hyperkitty/list/coreboot@coreboot.org/message/KVXP...
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I62fdb05f79ef59282c452bbf3956dd3ed6d93f62 --- M src/mainboard/lenovo/g505s/OemCustomize.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/38201/1
diff --git a/src/mainboard/lenovo/g505s/OemCustomize.c b/src/mainboard/lenovo/g505s/OemCustomize.c index f842129..9fbe2d8 100644 --- a/src/mainboard/lenovo/g505s/OemCustomize.c +++ b/src/mainboard/lenovo/g505s/OemCustomize.c @@ -209,6 +209,8 @@
void board_BeforeInitPost(struct sysinfo *cb, AMD_POST_PARAMS *InitPost) { + /* Set to 0xD0 instead of 0xE0 to avoid the PCI resource allocation problems. */ + InitPost->MemConfig.BottomIo = 0xD0; InitPost->MemConfig.PlatformMemoryConfiguration = (PSO_ENTRY *)PlatformMemoryTable; }