ICH9M: default to 256MB VRAM, not 352MB

352MB VRAM causes stability issues, according to some reports

users can still set it to the higher level when building, if
they wish to
fsdg20230625
Leah Rowe 2023-03-04 23:58:17 +00:00
parent 6421af5dcb
commit a5aa5bca77
18 changed files with 107 additions and 51 deletions

View File

@ -1,7 +1,7 @@
From 5a9f45601e96940e8345da57ba07d2081a436590 Mon Sep 17 00:00:00 2001
From 4c5971a6fcf7e948f7df4d0ce2ab0751060cb2ca Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@retroboot.org>
Date: Fri, 19 Mar 2021 05:54:58 +0000
Subject: [PATCH 01/16] apple/macbook21: Set default VRAM to 64MiB instead of
Subject: [PATCH 01/18] apple/macbook21: Set default VRAM to 64MiB instead of
8MiB
---
@ -19,5 +19,5 @@ index cf1bc4566e..dc0df3b6d6 100644
-gfx_uma_size=8M
+gfx_uma_size=64M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 2a5dbe6aa7eb46c4fe6db0c6d0ff826e0d733b3f Mon Sep 17 00:00:00 2001
From ff523fd40649b72512b0f1253701509d83ca4a8d Mon Sep 17 00:00:00 2001
From: Vitali64 <5405891-vitali64yt@users.noreply.gitlab.com>
Date: Wed, 27 Oct 2021 13:36:01 +0200
Subject: [PATCH 02/16] add c3 and clockgen to apple/macbook21
Subject: [PATCH 02/18] add c3 and clockgen to apple/macbook21
---
src/mainboard/apple/macbook21/Kconfig | 1 +
@ -64,5 +64,5 @@ index dd701da7ed..5587c48d1f 100644
end
end
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 0c714764584eb10b555d399d189d1821d92be7dc Mon Sep 17 00:00:00 2001
From fe79712702002bf2044227d6c3cef7ae022e3539 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@osboot.org>
Date: Sun, 3 Jan 2021 03:34:01 +0000
Subject: [PATCH 03/16] lenovo/x60: 64MiB Video RAM changed to default
Subject: [PATCH 03/18] lenovo/x60: 64MiB Video RAM changed to default
(previously it was 8MiB)
---
@ -19,5 +19,5 @@ index 5c3576d1f3..88170a1aab 100644
-gfx_uma_size=8M
+gfx_uma_size=64M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 510e655b28355101763e903c09d551879abfb951 Mon Sep 17 00:00:00 2001
From 79440902866bdafeec651476a5a0e51d42b43b21 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@osboot.org>
Date: Mon, 22 Feb 2021 22:16:59 +0000
Subject: [PATCH 04/16] lenovo/t60: make 64MiB VRAM the default in cmos.default
Subject: [PATCH 04/18] lenovo/t60: make 64MiB VRAM the default in cmos.default
---
src/mainboard/lenovo/t60/cmos.default | 2 +-
@ -18,5 +18,5 @@ index af865f16da..7f03157df7 100644
-gfx_uma_size=8M
+gfx_uma_size=64M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From d71a9b9bf97d652f54062d2f29126983e7e5c447 Mon Sep 17 00:00:00 2001
From 73ca2562e77c971c2e581a414dc57b4b9aa544d7 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:10:33 +0100
Subject: [PATCH 05/16] lenovo/t400: set VRAM to 352MiB VRAM by default
Subject: [PATCH 05/18] lenovo/t400: set VRAM to 352MiB VRAM by default
In the past, this caused stability issues so we set it to 256MiB. Nowadays,
coreboot has fixed the issue preventing this. See:
@ -23,5 +23,5 @@ index a326e315b1..e74d15d030 100644
-gfx_uma_size=32M
+gfx_uma_size=352M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 3ab0b74506350f9a35a825b27bf07a82d6e4116d Mon Sep 17 00:00:00 2001
From badcbb2f07ac0e3d8b53a23e324f709bf93c3dd5 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:11:59 +0100
Subject: [PATCH 06/16] lenovo/x200: set VRAM to 352MiB by default
Subject: [PATCH 06/18] lenovo/x200: set VRAM to 352MiB by default
This fix makes it possible:
https://review.coreboot.org/c/coreboot/+/16831
@ -20,5 +20,5 @@ index bb4323836e..33a6a69f59 100644
-gfx_uma_size=32M
+gfx_uma_size=352M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From ee816fbecbffedfd61ece76fa0c50da426b6668a Mon Sep 17 00:00:00 2001
From 59e14decddd3a3d0eb9905196df045e34b7ce035 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:18:26 +0100
Subject: [PATCH 07/16] gigabyte/ga-g41m-es2l: set VRAM to 352MiB by default
Subject: [PATCH 07/18] gigabyte/ga-g41m-es2l: set VRAM to 352MiB by default
---
src/mainboard/gigabyte/ga-g41m-es2l/cmos.default | 2 +-
@ -18,5 +18,5 @@ index 8372032119..3a9a8e2d72 100644
-gfx_uma_size=64M
+gfx_uma_size=352M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From d381ceb4b43b504f187e2e2b4112482637bc4f38 Mon Sep 17 00:00:00 2001
From 794e082e64558678fe245c86a2c81b4edc582795 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Fri, 14 May 2021 13:21:39 +0100
Subject: [PATCH 08/16] acer/g43t-am3: set VRAM to 352MiB by default
Subject: [PATCH 08/18] acer/g43t-am3: set VRAM to 352MiB by default
---
src/mainboard/acer/g43t-am3/cmos.default | 2 +-
@ -18,5 +18,5 @@ index 706f5dd551..98899e8bf5 100644
-gfx_uma_size=64M
+gfx_uma_size=352M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From df73b53d684f0714f137a76f26a2816b81eb7bce Mon Sep 17 00:00:00 2001
From 62121b837771b0b05f6490943ff9f1ccaba45bdb Mon Sep 17 00:00:00 2001
From: persmule <persmule@gmail.com>
Date: Sun, 31 Oct 2021 23:33:26 +0000
Subject: [PATCH 09/16] lenovo/t400: Enable all SATA ports
Subject: [PATCH 09/18] lenovo/t400: Enable all SATA ports
There are 2 SATA ports on the chassis of t400(s), but at least one dock for
t400 contains a port for (P/S)ATA device, and t400s has a eSATA port on its
@ -30,5 +30,5 @@ index 1df350ab67..21c8e2c9a1 100644
register "sata_traffic_monitor" = "0"
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 92f474ae7d67c82ce6defd7612a6c3a8d2923cb7 Mon Sep 17 00:00:00 2001
From 13d95d2bf44e1c950e317e7c6fbbe5d96174c48a Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Mon, 20 Dec 2021 01:29:31 +0000
Subject: [PATCH 10/16] coreboot: Add Lenovo X230 patch: gfx_uma_size 224M by
Subject: [PATCH 10/18] coreboot: Add Lenovo X230 patch: gfx_uma_size 224M by
default
---
@ -18,5 +18,5 @@ index 7314066c2b..2e315d4521 100644
me_state=Normal
+gfx_uma_size=224M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 4a44b00cc4d920be2236777c9967199aa149c820 Mon Sep 17 00:00:00 2001
From fa8113f64fe320e0e75f3e53ccfa9037d3bdd074 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Mon, 3 Jan 2022 19:06:22 +0000
Subject: [PATCH 11/16] lenovo/x230: set me_state=Disabled in cmos.default
Subject: [PATCH 11/18] lenovo/x230: set me_state=Disabled in cmos.default
I only recently found out about this. It's possible to use me_cleaner to
do the same thing, but some people might just flash coreboot and not do
@ -34,5 +34,5 @@ index 2e315d4521..3585cbd58b 100644
+me_state=Disabled
gfx_uma_size=224M
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From a8a86d992d52770d56b7f594aa4f80e77480e77c Mon Sep 17 00:00:00 2001
From 4bb3d60a1a1dfb2dac6320cef491a99b728ed25a Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Wed, 2 Mar 2022 21:50:01 +0000
Subject: [PATCH 12/16] set me_state=Disabled on all cmos.default files!
Subject: [PATCH 12/18] set me_state=Disabled on all cmos.default files!
yeah. why the hell isn't this the default
---
@ -96,5 +96,5 @@ index 6d1d57a795..52f303dfdb 100644
-me_state=Normal
+me_state=Disabled
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From edaeb3774764fe6698653fc7fcc38bbda6c69bb9 Mon Sep 17 00:00:00 2001
From 52acb9071bda297e9520107a0d0f996e9cba28fb Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sun, 13 Mar 2022 18:04:55 +0000
Subject: [PATCH 13/16] specifically use python3, in scripts
Subject: [PATCH 13/18] specifically use python3, in scripts
---
src/drivers/intel/fsp2_0/Makefile.inc | 2 +-
@ -32,5 +32,5 @@ index 89976eac59..2cd7027377 100644
# SPDX-License-Identifier: GPL-3.0-or-later
#
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 5677039fe0535da560bb9bca16e5ff9579203780 Mon Sep 17 00:00:00 2001
From f60a7e12526ca254b1d98830ad1e31296984e815 Mon Sep 17 00:00:00 2001
From: Alexander Couzens <lynxis@fe80.eu>
Date: Sat, 19 Mar 2022 13:42:33 +0000
Subject: [PATCH 14/16] lenovo/x230: introduce FHD variant
Subject: [PATCH 14/18] lenovo/x230: introduce FHD variant
There is a modification for the x230 which uses the 2nd DP from the dock
as the integrated panel's connection, which allows using a custom eDP
@ -194,5 +194,5 @@ index 0000000000..f7cf0bc264
+
+end GMA.Mainboard;
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 5a8cdbc26de8c07aaa53d3aad6251af391a1591e Mon Sep 17 00:00:00 2001
From b8bb450bef9f9a486917115bfe78519838558300 Mon Sep 17 00:00:00 2001
From: Alexei Sorokin <sor.alexei@meowr.ru>
Date: Sun, 27 Nov 2022 18:36:26 +0300
Subject: [PATCH 15/16] lenovo/x230: fix the data.vbt path for the EDP variant
Subject: [PATCH 15/18] lenovo/x230: fix the data.vbt path for the EDP variant
---
src/mainboard/lenovo/x230/Kconfig | 2 +-
@ -21,5 +21,5 @@ index 4d8325ea43..409892f3ab 100644
config USBDEBUG_HCD_INDEX
int
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 4d78ee1f99fe49585eeb1afe6792ddfe8ddcccb1 Mon Sep 17 00:00:00 2001
From 32a961895ed41cd2bb1f9ae00ab0200c4bfb0bf3 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sun, 19 Feb 2023 18:21:43 +0000
Subject: [PATCH 16/16] util/ifdtool: add --nuke flag (all 0xFF on region)
Subject: [PATCH 16/18] util/ifdtool: add --nuke flag (all 0xFF on region)
When this option is used, the region's contents are overwritten
with all ones (0xFF).
@ -201,5 +201,5 @@ index 98afa4bbcf..5509721018 100644
fpsba_t *fpsba = find_fpsba(image, size);
fmsba_t *fmsba = find_fmsba(image, size);
--
2.30.2
2.39.2

View File

@ -1,7 +1,7 @@
From 8af41a8f60665cd73daa2d79e6a011b25f1957c2 Mon Sep 17 00:00:00 2001
From 05b8acae9a88b8dd13dd96facca30e4662399053 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sun, 19 Feb 2023 23:20:10 +0000
Subject: [PATCH 1/1] util/ifdtool: fix bad patch
Subject: [PATCH 17/18] util/ifdtool: fix bad patch
i messed up the "rebase" a few lbmk commits ago
---
@ -61,5 +61,5 @@ index 5509721018..89feb99536 100644
return -1;
}
--
2.30.2
2.39.2

View File

@ -0,0 +1,56 @@
From 30d8dd45ab489bed21398b04bd03a54e08eafaf2 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Sat, 4 Mar 2023 23:55:41 +0000
Subject: [PATCH 18/18] ich9m boards: set 256MB VRAM instead
352MB causes some stability issues reported by a few people
---
src/mainboard/acer/g43t-am3/cmos.default | 2 +-
src/mainboard/gigabyte/ga-g41m-es2l/cmos.default | 2 +-
src/mainboard/lenovo/t400/cmos.default | 2 +-
src/mainboard/lenovo/x200/cmos.default | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mainboard/acer/g43t-am3/cmos.default b/src/mainboard/acer/g43t-am3/cmos.default
index 98899e8bf5..e8b45ea22c 100644
--- a/src/mainboard/acer/g43t-am3/cmos.default
+++ b/src/mainboard/acer/g43t-am3/cmos.default
@@ -3,4 +3,4 @@ debug_level=Debug
power_on_after_fail=Disable
nmi=Enable
sata_mode=AHCI
-gfx_uma_size=352M
+gfx_uma_size=256M
diff --git a/src/mainboard/gigabyte/ga-g41m-es2l/cmos.default b/src/mainboard/gigabyte/ga-g41m-es2l/cmos.default
index 3a9a8e2d72..bedad54d2a 100644
--- a/src/mainboard/gigabyte/ga-g41m-es2l/cmos.default
+++ b/src/mainboard/gigabyte/ga-g41m-es2l/cmos.default
@@ -2,4 +2,4 @@ boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable
nmi=Enable
-gfx_uma_size=352M
+gfx_uma_size=256M
diff --git a/src/mainboard/lenovo/t400/cmos.default b/src/mainboard/lenovo/t400/cmos.default
index e74d15d030..b907a3e2df 100644
--- a/src/mainboard/lenovo/t400/cmos.default
+++ b/src/mainboard/lenovo/t400/cmos.default
@@ -13,4 +13,4 @@ power_management_beeps=Enable
low_battery_beep=Enable
sata_mode=AHCI
hybrid_graphics_mode=Integrated Only
-gfx_uma_size=352M
+gfx_uma_size=256M
diff --git a/src/mainboard/lenovo/x200/cmos.default b/src/mainboard/lenovo/x200/cmos.default
index 33a6a69f59..458b3f19c5 100644
--- a/src/mainboard/lenovo/x200/cmos.default
+++ b/src/mainboard/lenovo/x200/cmos.default
@@ -12,4 +12,4 @@ sticky_fn=Disable
power_management_beeps=Enable
low_battery_beep=Enable
sata_mode=AHCI
-gfx_uma_size=352M
+gfx_uma_size=256M
--
2.39.2