Patrick Rudolph (siro@das-labor.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12898
-gerrit
commit ba2e740420d9d7f093933f5f218504c98211d58a Author: Patrick Rudolph siro@das-labor.org Date: Mon Dec 28 14:03:15 2015 +0100
mainboard/lenovo: add cmos layout for hybrid graphics
Add cmos layout vga_primary_is_peg and vga_secondary_powersave.
vga_secondary_powersave defaults to true and must remain true ! Using two GPUs at the same time isn't supported at time by the hybrid graphics driver and will result in black screen.
Toggling vga_primary_is_peg allow switching between integrated and dedicated GPU using nvramtool.
Tested on Lenovo T520 using Nvidia NVS 5200m.
Change-Id: I97418f421fb1e525752c32ba886c7c78e8d3aa24 Signed-off-by: Patrick Rudolph siro@das-labor.org --- src/mainboard/lenovo/t400/cmos.default | 2 ++ src/mainboard/lenovo/t400/cmos.layout | 2 ++ src/mainboard/lenovo/t420/cmos.default | 2 ++ src/mainboard/lenovo/t420/cmos.layout | 4 +++- src/mainboard/lenovo/t420s/cmos.default | 2 ++ src/mainboard/lenovo/t420s/cmos.layout | 4 +++- src/mainboard/lenovo/t430s/cmos.default | 2 ++ src/mainboard/lenovo/t430s/cmos.layout | 4 +++- src/mainboard/lenovo/t520/cmos.default | 2 ++ src/mainboard/lenovo/t520/cmos.layout | 4 +++- src/mainboard/lenovo/t530/cmos.default | 2 ++ src/mainboard/lenovo/t530/cmos.layout | 4 +++- 12 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/src/mainboard/lenovo/t400/cmos.default b/src/mainboard/lenovo/t400/cmos.default index ac9f96d..f757425 100644 --- a/src/mainboard/lenovo/t400/cmos.default +++ b/src/mainboard/lenovo/t400/cmos.default @@ -13,3 +13,5 @@ sticky_fn=Disable power_management_beeps=Enable low_battery_beep=Enable sata_mode=AHCI +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable diff --git a/src/mainboard/lenovo/t400/cmos.layout b/src/mainboard/lenovo/t400/cmos.layout index 0c12458..f084e5b 100644 --- a/src/mainboard/lenovo/t400/cmos.layout +++ b/src/mainboard/lenovo/t400/cmos.layout @@ -78,6 +78,8 @@ entries
# coreboot config options: northbridge 941 3 e 11 gfx_uma_size +944 1 e 1 vga_primary_is_peg +945 1 e 1 vga_secondary_powersave
# coreboot config options: EC 952 8 h 0 volume diff --git a/src/mainboard/lenovo/t420/cmos.default b/src/mainboard/lenovo/t420/cmos.default index 1b8e212..885183f 100644 --- a/src/mainboard/lenovo/t420/cmos.default +++ b/src/mainboard/lenovo/t420/cmos.default @@ -14,3 +14,5 @@ fn_ctrl_swap=Disable sticky_fn=Disable trackpoint=Enable hyper_threading=Enable +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable \ No newline at end of file diff --git a/src/mainboard/lenovo/t420/cmos.layout b/src/mainboard/lenovo/t420/cmos.layout index bf0f195..915656c 100644 --- a/src/mainboard/lenovo/t420/cmos.layout +++ b/src/mainboard/lenovo/t420/cmos.layout @@ -77,7 +77,9 @@ entries
# coreboot config options: northbridge 432 3 e 11 gfx_uma_size -#435 5 r 0 unused +435 1 e 1 vga_primary_is_peg +436 1 e 1 vga_secondary_powersave +#437 3 r 0 unused
440 8 h 0 volume
diff --git a/src/mainboard/lenovo/t420s/cmos.default b/src/mainboard/lenovo/t420s/cmos.default index 1b8e212..885183f 100644 --- a/src/mainboard/lenovo/t420s/cmos.default +++ b/src/mainboard/lenovo/t420s/cmos.default @@ -14,3 +14,5 @@ fn_ctrl_swap=Disable sticky_fn=Disable trackpoint=Enable hyper_threading=Enable +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable \ No newline at end of file diff --git a/src/mainboard/lenovo/t420s/cmos.layout b/src/mainboard/lenovo/t420s/cmos.layout index 4362840..68b96cd 100644 --- a/src/mainboard/lenovo/t420s/cmos.layout +++ b/src/mainboard/lenovo/t420s/cmos.layout @@ -77,7 +77,9 @@ entries
# coreboot config options: northbridge 432 3 e 11 gfx_uma_size -#435 5 r 0 unused +435 1 e 1 vga_primary_is_peg +436 1 e 1 vga_secondary_powersave +#437 3 r 0 unused
440 8 h 0 volume
diff --git a/src/mainboard/lenovo/t430s/cmos.default b/src/mainboard/lenovo/t430s/cmos.default index 00e8863..1c4d076 100644 --- a/src/mainboard/lenovo/t430s/cmos.default +++ b/src/mainboard/lenovo/t430s/cmos.default @@ -15,3 +15,5 @@ sticky_fn=Disable trackpoint=Enable hyper_threading=Enable backlight=Both +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable diff --git a/src/mainboard/lenovo/t430s/cmos.layout b/src/mainboard/lenovo/t430s/cmos.layout index 16b499a..b2e4246 100644 --- a/src/mainboard/lenovo/t430s/cmos.layout +++ b/src/mainboard/lenovo/t430s/cmos.layout @@ -77,7 +77,9 @@ entries
# coreboot config options: northbridge 432 3 e 11 gfx_uma_size -#435 5 r 0 unused +435 1 e 1 vga_primary_is_peg +436 1 e 1 vga_secondary_powersave +#437 3 r 0 unused 440 8 h 0 volume
# SandyBridge MRC Scrambler Seed values diff --git a/src/mainboard/lenovo/t520/cmos.default b/src/mainboard/lenovo/t520/cmos.default index 00e8863..1c4d076 100644 --- a/src/mainboard/lenovo/t520/cmos.default +++ b/src/mainboard/lenovo/t520/cmos.default @@ -15,3 +15,5 @@ sticky_fn=Disable trackpoint=Enable hyper_threading=Enable backlight=Both +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable diff --git a/src/mainboard/lenovo/t520/cmos.layout b/src/mainboard/lenovo/t520/cmos.layout index 2cf3629..40d211a 100644 --- a/src/mainboard/lenovo/t520/cmos.layout +++ b/src/mainboard/lenovo/t520/cmos.layout @@ -77,7 +77,9 @@ entries
# coreboot config options: northbridge 432 3 e 11 gfx_uma_size -#435 5 r 0 unused +435 1 e 1 vga_primary_is_peg +436 1 e 1 vga_secondary_powersave +#437 3 r 0 unused 440 8 h 0 volume
# SandyBridge MRC Scrambler Seed values diff --git a/src/mainboard/lenovo/t530/cmos.default b/src/mainboard/lenovo/t530/cmos.default index 00e8863..1c4d076 100644 --- a/src/mainboard/lenovo/t530/cmos.default +++ b/src/mainboard/lenovo/t530/cmos.default @@ -15,3 +15,5 @@ sticky_fn=Disable trackpoint=Enable hyper_threading=Enable backlight=Both +vga_primary_is_peg=Disable +vga_secondary_powersave=Enable diff --git a/src/mainboard/lenovo/t530/cmos.layout b/src/mainboard/lenovo/t530/cmos.layout index e21c197..c44427a 100644 --- a/src/mainboard/lenovo/t530/cmos.layout +++ b/src/mainboard/lenovo/t530/cmos.layout @@ -77,7 +77,9 @@ entries
# coreboot config options: northbridge 432 3 e 11 gfx_uma_size -#435 5 r 0 unused +435 1 e 1 vga_primary_is_peg +436 1 e 1 vga_secondary_powersave +#437 3 r 0 unused
440 8 h 0 volume