Evgeny Zinoviev has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42413 )
Change subject: cpu/intel/206ax: Fix get_cores_per_package
......................................................................
cpu/intel/206ax: Fix get_cores_per_package
Current implementation uses CPUID 0Bh function that returns numbers of
logical cores of requested level. The problem with this approach is that
this value doesn't change when HyperThreading is disabled (it's in the
Intel docs), so it breaks generate_cpu_entries().
Use MSR 0x35 instead, which returns correct number of logical processors
with and without HT.
Related to #29669.
Change-Id: Ib32c2d40408cfa42ca43ab42ed661c168e579ada
Signed-off-by: Evgeny Zinoviev <me(a)ch1p.io>
---
M src/cpu/intel/model_206ax/acpi.c
1 file changed, 5 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/42413/1
diff --git a/src/cpu/intel/model_206ax/acpi.c b/src/cpu/intel/model_206ax/acpi.c
index 9ff0673..44b3360 100644
--- a/src/cpu/intel/model_206ax/acpi.c
+++ b/src/cpu/intel/model_206ax/acpi.c
@@ -14,18 +14,13 @@
static int get_cores_per_package(void)
{
- struct cpuinfo_x86 c;
- struct cpuid_result result;
- int cores = 1;
+ msr_t msr;
+ int logical_cores;
- get_fms(&c, cpuid_eax(1));
- if (c.x86 != 6)
- return 1;
+ msr = rdmsr(MSR_CORE_THREAD_COUNT);
+ logical_cores = msr.lo & 0xffff;
- result = cpuid_ext(0xb, 1);
- cores = result.ebx & 0xff;
-
- return cores;
+ return logical_cores;
}
static void generate_cstate_entries(acpi_cstate_t *cstates,
--
To view, visit https://review.coreboot.org/c/coreboot/+/42413
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib32c2d40408cfa42ca43ab42ed661c168e579ada
Gerrit-Change-Number: 42413
Gerrit-PatchSet: 1
Gerrit-Owner: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-MessageType: newchange
Shaunak Saha has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32350 )
Change subject: src/arch/x86:Add support for low power idle table
......................................................................
Patch Set 4:
Thanks for all the comments I am trying to change the patch as per the comments and verify. Will update soon with the data and doubts if any.
--
To view, visit https://review.coreboot.org/c/coreboot/+/32350
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie76ab0d50f09c98762bc674c2758520d53789137
Gerrit-Change-Number: 32350
Gerrit-PatchSet: 4
Gerrit-Owner: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)chromium.org>
Gerrit-Reviewer: Karthikeyan Ramasubramanian <kramasub(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-CC: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Comment-Date: Mon, 28 Sep 2020 07:31:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Amanda Hwang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45679 )
Change subject: mb/google/zork/vilboz: Remove unused memory part IDs
......................................................................
mb/google/zork/vilboz: Remove unused memory part IDs
These parts have not been used in any vilboz devices. Removing
so IDs can be assigned more efficiently.
Command to generate files:
go build gen_part_id.go
local variant=vilboz
./gen_part_id ../../../src/mainboard/google/zork/spd ../../../src/mainboard/google/zork/variants/${variant}/spd/ ../../../src/mainboard/google/zork/variants/${variant}/spd/mem_parts_used.txt
BUG=b:165611994
TEST=none
Change-Id: I99614acaf45db0556120c883577494d9f753ea12
Signed-off-by: Amanda Huang <amanda_hwang(a)compal.corp-partner.google.com>
---
M src/mainboard/google/zork/variants/vilboz/spd/Makefile.inc
M src/mainboard/google/zork/variants/vilboz/spd/dram_id.generated.txt
M src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
3 files changed, 2 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/45679/1
diff --git a/src/mainboard/google/zork/variants/vilboz/spd/Makefile.inc b/src/mainboard/google/zork/variants/vilboz/spd/Makefile.inc
index 7328545..8868a69 100644
--- a/src/mainboard/google/zork/variants/vilboz/spd/Makefile.inc
+++ b/src/mainboard/google/zork/variants/vilboz/spd/Makefile.inc
@@ -2,8 +2,8 @@
## This is an auto-generated file. Do not edit!!
SPD_SOURCES =
-SPD_SOURCES += ddr4-spd-3.hex # ID = 0(0b0000) Parts = H5AN8G6NCJR-VKC
-SPD_SOURCES += ddr4-spd-6.hex # ID = 1(0b0001) Parts = H5ANAG6NCMR-VKC
+SPD_SOURCES += ddr4-spd-empty.hex # ID = 0(0b0000)
+SPD_SOURCES += ddr4-spd-empty.hex # ID = 1(0b0001)
SPD_SOURCES += ddr4-spd-1.hex # ID = 2(0b0010) Parts = K4A8G165WC-BCWE
SPD_SOURCES += ddr4-spd-1.hex # ID = 3(0b0011) Parts = H5AN8G6NDJR-XNC
SPD_SOURCES += ddr4-spd-1.hex # ID = 4(0b0100) Parts = MT40A512M16TB-062E:J
diff --git a/src/mainboard/google/zork/variants/vilboz/spd/dram_id.generated.txt b/src/mainboard/google/zork/variants/vilboz/spd/dram_id.generated.txt
index 6eb4bf3..bfbe034 100644
--- a/src/mainboard/google/zork/variants/vilboz/spd/dram_id.generated.txt
+++ b/src/mainboard/google/zork/variants/vilboz/spd/dram_id.generated.txt
@@ -1,6 +1,4 @@
DRAM Part Name ID to assign
-H5AN8G6NCJR-VKC 0 (0000)
-H5ANAG6NCMR-VKC 1 (0001)
K4A8G165WC-BCWE 2 (0010)
H5AN8G6NDJR-XNC 3 (0011)
MT40A512M16TB-062E:J 4 (0100)
diff --git a/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
index 6afaeed..08f4891 100644
--- a/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
@@ -7,8 +7,6 @@
# See util/spd_tools/ddr4/README.md for more details and instructions.
# Part Name, Fixed ID (optional)
-H5AN8G6NCJR-VKC, 0
-H5ANAG6NCMR-VKC, 1
K4A8G165WC-BCWE, 2
H5AN8G6NDJR-XNC, 3
MT40A512M16TB-062E:J, 4
--
To view, visit https://review.coreboot.org/c/coreboot/+/45679
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I99614acaf45db0556120c883577494d9f753ea12
Gerrit-Change-Number: 45679
Gerrit-PatchSet: 1
Gerrit-Owner: Amanda Hwang <amanda_hwang(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange