Evgeny Zinoviev has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
Patch Set 4:
The ACPI problems were caused by `get_cores_per_package()` function. It was using CPUID 0Bh function, that returns number of logical processes of requested level to EBX. According to Intel's manual, this value is not changed if HT was disabled.
int totalcores = dev_count_cpu(); // this was 2
int cores_per_package = get_cores_per_package(); // this was 4, when it had to be 2
int numcpus = totalcores/cores_per_package; // so this was 0
I updated the `get_cores_per_package` function, now it uses MSR 0x35 instead of CPUID. I hope that doesn't break anything.
Somebody please review. I will then fix build problems, which are caused by non-existent CMOS option for some boards or similar minor stuff.
Latest PS is tested on X220.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 4
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-Comment-Date: Tue, 28 May 2019 17:49:32 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Evgeny Zinoviev has uploaded a new patch set (#4) to the change originally created by Nico Huber. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
cpu/intel/sandybridge: Add `hyper_threading` option
More and more people request an option to disable HT. To implement that
we have to toggle a bit in a `soft reset` register in the PCH that can
override certain default settings of the CPU when it comes out of reset.
The `soft reset` register is already used for other settings. So we have
to take care that all settings are gathered before we issue the reset.
Note, the current code using `soft reset` for flex ratio selection seems
incomplete.
Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Signed-off-by: Evgeny Zinoviev <me(a)ch1p.io>
---
M src/cpu/intel/model_206ax/acpi.c
M src/cpu/intel/model_206ax/bootblock.c
M src/mainboard/hp/2570p/cmos.layout
M src/mainboard/hp/2760p/cmos.layout
M src/mainboard/hp/8460p/cmos.layout
M src/mainboard/hp/8470p/cmos.layout
M src/mainboard/hp/8770w/cmos.layout
M src/mainboard/hp/compaq_8200_elite_sff/cmos.layout
M src/mainboard/hp/folio_9470m/cmos.layout
M src/mainboard/hp/revolve_810_g1/cmos.layout
M src/mainboard/lenovo/l520/cmos.layout
M src/mainboard/lenovo/t420/cmos.layout
M src/mainboard/lenovo/t420s/cmos.layout
M src/mainboard/lenovo/t430/cmos.layout
M src/mainboard/lenovo/t430s/cmos.layout
M src/mainboard/lenovo/t520/cmos.layout
M src/mainboard/lenovo/t530/cmos.layout
M src/mainboard/lenovo/x131e/cmos.layout
M src/mainboard/lenovo/x1_carbon_gen1/cmos.layout
M src/mainboard/lenovo/x220/cmos.layout
M src/mainboard/lenovo/x230/cmos.layout
M src/southbridge/intel/bd82x6x/pch.h
22 files changed, 90 insertions(+), 47 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/29669/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 4
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-MessageType: newpatchset
Evgeny Zinoviev has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
Patch Set 3:
[ 0.328910] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.CP00 (20190215/dspkginit-440)
[ 0.329023] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.CP01 (20190215/dspkginit-440)
[ 0.329134] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.CP02 (20190215/dspkginit-440)
[ 0.329247] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.CP03 (20190215/dspkginit-440)
[ 0.928328] ACPI BIOS Error (bug): Could not resolve symbol [\_PR.CP00], AE_NOT_FOUND (20190215/psargs-330)
[ 0.928441] ACPI Error: Aborting method \_PR.CNOT due to previous error (AE_NOT_FOUND) (20190215/psparse-531)
[ 0.928561] ACPI Error: Aborting method \PNOT due to previous error (AE_NOT_FOUND) (20190215/psparse-531)
[ 0.928671] ACPI Error: Aborting method \_SB.PCI0.LPCB.EC.AC._PSR due to previous error (AE_NOT_FOUND) (20190215/psparse-531)
[ 0.928786] ACPI Error: AE_NOT_FOUND, Error reading AC Adapter state (20190215/ac-129)
Need to fix this first.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-Comment-Date: Tue, 28 May 2019 13:21:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Evgeny Zinoviev has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
Patch Set 3:
Interesting thing: with HT disabled I no longer have /sys/class/power_supply/AC, but still have /sys/class/power_supply/BAT0. Not all ACPI tables generated?
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-Comment-Date: Tue, 28 May 2019 13:14:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Evgeny Zinoviev has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
Patch Set 3:
I rebased this on master, extended to some other boards and tested on X220.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-Comment-Date: Tue, 28 May 2019 13:04:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Evgeny Zinoviev has uploaded a new patch set (#3) to the change originally created by Nico Huber. ( https://review.coreboot.org/c/coreboot/+/29669 )
Change subject: cpu/intel/sandybridge: Add `hyper_threading` option
......................................................................
cpu/intel/sandybridge: Add `hyper_threading` option
More and more people request an option to disable HT. To implement that
we have to toggle a bit in a `soft reset` register in the PCH that can
override certain default settings of the CPU when it comes out of reset.
The `soft reset` register is already used for other settings. So we have
to take care that all settings are gathered before we issue the reset.
Note, the current code using `soft reset` for flex ratio selection seems
incomplete.
Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Signed-off-by: Evgeny Zinoviev <me(a)ch1p.io>
---
M src/cpu/intel/model_206ax/bootblock.c
M src/mainboard/hp/2570p/cmos.default
M src/mainboard/hp/2570p/cmos.layout
M src/mainboard/hp/2760p/cmos.default
M src/mainboard/hp/2760p/cmos.layout
M src/mainboard/hp/8460p/cmos.default
M src/mainboard/hp/8460p/cmos.layout
M src/mainboard/hp/8470p/cmos.default
M src/mainboard/hp/8470p/cmos.layout
M src/mainboard/hp/8770w/cmos.default
M src/mainboard/hp/8770w/cmos.layout
M src/mainboard/hp/compaq_8200_elite_sff/cmos.default
M src/mainboard/hp/compaq_8200_elite_sff/cmos.layout
M src/mainboard/hp/folio_9470m/cmos.default
M src/mainboard/hp/folio_9470m/cmos.layout
M src/mainboard/hp/revolve_810_g1/cmos.default
M src/mainboard/hp/revolve_810_g1/cmos.layout
M src/mainboard/lenovo/l520/cmos.default
M src/mainboard/lenovo/l520/cmos.layout
M src/mainboard/lenovo/t420/cmos.default
M src/mainboard/lenovo/t420/cmos.layout
M src/mainboard/lenovo/t420s/cmos.default
M src/mainboard/lenovo/t420s/cmos.layout
M src/mainboard/lenovo/t430/cmos.default
M src/mainboard/lenovo/t430/cmos.layout
M src/mainboard/lenovo/t430s/cmos.default
M src/mainboard/lenovo/t430s/cmos.layout
M src/mainboard/lenovo/t520/cmos.default
M src/mainboard/lenovo/t520/cmos.layout
M src/mainboard/lenovo/t530/cmos.layout
M src/mainboard/lenovo/x131e/cmos.default
M src/mainboard/lenovo/x131e/cmos.layout
M src/mainboard/lenovo/x1_carbon_gen1/cmos.default
M src/mainboard/lenovo/x1_carbon_gen1/cmos.layout
M src/mainboard/lenovo/x220/cmos.default
M src/mainboard/lenovo/x220/cmos.layout
M src/mainboard/lenovo/x230/cmos.default
M src/mainboard/lenovo/x230/cmos.layout
M src/southbridge/intel/bd82x6x/pch.h
39 files changed, 103 insertions(+), 37 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/29669/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/29669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b73e32ff5af8ea64a47e8aa706e27648aaf0993
Gerrit-Change-Number: 29669
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-CC: Tristan Corrick <tristan(a)corrick.kiwi>
Gerrit-MessageType: newpatchset
Frans Hendriks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29371 )
Change subject: drivers/intel/fsp1_1/raminit.c: Make check FSP HOBs independent of CONFIG_DISPLAY_HOBS
......................................................................
Patch Set 8:
(3 comments)
https://review.coreboot.org/#/c/29371/3/src/drivers/intel/fsp1_1/raminit.c
File src/drivers/intel/fsp1_1/raminit.c:
https://review.coreboot.org/#/c/29371/3/src/drivers/intel/fsp1_1/raminit.c@…
PS3, Line 209: printk(BIOS_DEBUG,
> These prints could be moved to the print_hob_type_structure function possibly? It is kind of display […]
Done
https://review.coreboot.org/#/c/29371/3/src/drivers/intel/fsp1_1/raminit.c@…
PS3, Line 224: printk(BIOS_DEBUG,
> Let's print only an error message in case of missing HOB. […]
Done
https://review.coreboot.org/#/c/29371/3/src/drivers/intel/fsp1_1/raminit.c@…
PS3, Line 229: printk(BIOS_DEBUG,
> These prints should be moved too. The check for missing HOB is done earlier.
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/29371
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3776fa37866c7ef3aea090842387660c22bbdd4d
Gerrit-Change-Number: 29371
Gerrit-PatchSet: 8
Gerrit-Owner: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Lee Leahy <leroy.p.leahy(a)intel.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Piotr Król <piotr.krol(a)3mdeb.com>
Gerrit-Reviewer: York Yang <yyang024(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 28 May 2019 12:48:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-MessageType: comment