Hello Felix Singer, build bot (Jenkins), Nico Huber, Furquan Shaikh, Matt DeVillier, Paul Menzel, Tim Wawrzynczak, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/46461
to look at the new patch set (#11).
Change subject: soc/intel/skl: replace conditional on dt option reading CPUID for CPPC
......................................................................
soc/intel/skl: replace conditional on dt option reading CPUID for CPPC
Check ISST (Intel SpeedShift) availability via CPUID.06H:EAX[7], instead
of relying on the devicetree option `speed_shift_enable`, that is going
to be dropped.
Test: GCPC and _CPC entries still get generated on Supermicro X11SSM-F
Change-Id: I5f9bf09385627fb6a1d8e566a80370f7ddd8605e
Signed-off-by: Michael Niewöhner <foss(a)mniewoehner.de>
---
M src/soc/intel/skylake/acpi.c
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/46461/11
--
To view, visit https://review.coreboot.org/c/coreboot/+/46461
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5f9bf09385627fb6a1d8e566a80370f7ddd8605e
Gerrit-Change-Number: 46461
Gerrit-PatchSet: 11
Gerrit-Owner: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
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: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46652 )
Change subject: Revert "mb/google/dedede: Add mainboard acpi support for GPIO PM configuration"
......................................................................
Patch Set 2: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/46652/2/src/mainboard/google/deded…
File src/mainboard/google/dedede/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/46652/2/src/mainboard/google/deded…
PS2, Line 42: <soc/intel/common/acpi/lpit.asl>
> Do we lose any functionality in the kernel by not exposing LPIT? We won't really use any function no […]
From what I can tell no. We already don't expose an LPIT table, so that's moot. This PNP0D80 device is all that's left. Assuming nothing in firmware land is relying on those ACPI S0 notification methods being called, the only part the kernel would look at is the device constraints in [1]. From what I can see in lpit.asl that's only initialized to a sentinal node now with no real device constraints. So the kernel should be ok.
[1] https://source.corp.google.com/chromeos_public/src/third_party/kernel/v5.4/…
--
To view, visit https://review.coreboot.org/c/coreboot/+/46652
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8e3be42cd82fd3ae919d23d6f19c84a90b9c737a
Gerrit-Change-Number: 46652
Gerrit-PatchSet: 2
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Evan Green <evgreen(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 22 Oct 2020 21:41:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: comment
Marc Jones has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46598 )
Change subject: soc/intel/xeon_sp: Rename cpx_generate_p_state_entries()
......................................................................
soc/intel/xeon_sp: Rename cpx_generate_p_state_entries()
Prepare for common ACPI. Rename cpx_generated_p_state_entries()
to the common soc_power_states_generation() function. Add
empty soc_power_states_generation() to skx.
Change-Id: Ib7e8dfd2bb602f3e6ccdb5b221bc65236f66a875
Signed-off-by: Marc Jones <marcjones(a)sysproconsulting.com>
---
M src/soc/intel/xeon_sp/cpx/acpi.c
M src/soc/intel/xeon_sp/cpx/soc_acpi.c
M src/soc/intel/xeon_sp/include/soc/acpi.h
M src/soc/intel/xeon_sp/skx/soc_acpi.c
4 files changed, 9 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/46598/1
diff --git a/src/soc/intel/xeon_sp/cpx/acpi.c b/src/soc/intel/xeon_sp/cpx/acpi.c
index 5a908da..3066dda2 100644
--- a/src/soc/intel/xeon_sp/cpx/acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/acpi.c
@@ -261,8 +261,9 @@
/* NOTE: Intel idle driver doesn't use ACPI C-state tables */
- /* Generate P-state tables */
- cpx_generate_p_state_entries(core_id, threads_per_package);
+ /* Soc specific power states generation */
+ soc_power_states_generation(core_id, threads_per_package);
+
acpigen_pop_len();
}
}
diff --git a/src/soc/intel/xeon_sp/cpx/soc_acpi.c b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
index 19d196d..8820517 100644
--- a/src/soc/intel/xeon_sp/cpx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
@@ -123,8 +123,8 @@
acpigen_pop_len();
}
-/* To be renamed soc_power_states_generation() */
-void cpx_generate_p_state_entries(int core, int cores_per_package)
+/* TODO: See if we can use the common generate_p_state_entries */
+void soc_power_states_generation(int core, int cores_per_package)
{
int ratio_min, ratio_max, ratio_turbo, ratio_step;
int coord_type, power_max, power_unit, num_entries;
diff --git a/src/soc/intel/xeon_sp/include/soc/acpi.h b/src/soc/intel/xeon_sp/include/soc/acpi.h
index 75859e83..61639d2 100644
--- a/src/soc/intel/xeon_sp/include/soc/acpi.h
+++ b/src/soc/intel/xeon_sp/include/soc/acpi.h
@@ -22,7 +22,6 @@
void motherboard_fill_fadt(acpi_fadt_t *fadt);
-void cpx_generate_p_state_entries(int core, int cores_per_package);
int calculate_power(int tdp, int p1_ratio, int ratio);
void uncore_inject_dsdt(const struct device *device);
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
diff --git a/src/soc/intel/xeon_sp/skx/soc_acpi.c b/src/soc/intel/xeon_sp/skx/soc_acpi.c
index 7462d72..df2550c 100644
--- a/src/soc/intel/xeon_sp/skx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/skx/soc_acpi.c
@@ -171,6 +171,10 @@
acpigen_pop_len();
}
+void soc_power_states_generation(int core, int cores_per_package)
+{
+}
+
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current)
{
struct device *cpu;
--
To view, visit https://review.coreboot.org/c/coreboot/+/46598
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib7e8dfd2bb602f3e6ccdb5b221bc65236f66a875
Gerrit-Change-Number: 46598
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Marc Jones has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46595 )
Change subject: soc/intel/xeon_sp: Move ACPI prototypes from chip.h
......................................................................
soc/intel/xeon_sp: Move ACPI prototypes from chip.h
Prepare for common ACPI. Move the soc ACPI function prototypes from
cpx and skx chip.h to include/soc/acpi.h.
Change-Id: Ib7037cfb58825a2f6c25c122b95f72d5992dc04e
Signed-off-by: Marc Jones <marcjones(a)sysproconsulting.com>
---
M src/soc/intel/xeon_sp/cpx/acpi.c
M src/soc/intel/xeon_sp/cpx/chip.h
M src/soc/intel/xeon_sp/cpx/soc_acpi.c
M src/soc/intel/xeon_sp/include/soc/acpi.h
M src/soc/intel/xeon_sp/skx/acpi.c
M src/soc/intel/xeon_sp/skx/chip.h
M src/soc/intel/xeon_sp/skx/soc_acpi.c
7 files changed, 5 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/46595/1
diff --git a/src/soc/intel/xeon_sp/cpx/acpi.c b/src/soc/intel/xeon_sp/cpx/acpi.c
index 8d3e86a..658c951 100644
--- a/src/soc/intel/xeon_sp/cpx/acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/acpi.c
@@ -23,8 +23,6 @@
#include <soc/pm.h>
#include <soc/soc_util.h>
-#include "chip.h"
-
static int acpi_sci_irq(void)
{
int sci_irq = 9;
diff --git a/src/soc/intel/xeon_sp/cpx/chip.h b/src/soc/intel/xeon_sp/cpx/chip.h
index e7c146c..434b343 100644
--- a/src/soc/intel/xeon_sp/cpx/chip.h
+++ b/src/soc/intel/xeon_sp/cpx/chip.h
@@ -99,10 +99,4 @@
typedef struct soc_intel_xeon_sp_cpx_config config_t;
-/* soc acpi function prototypes. To be removed when acpi.c is replaced by common/acpi.c */
-void cpx_generate_p_state_entries(int core, int cores_per_package);
-int calculate_power(int tdp, int p1_ratio, int ratio);
-void uncore_inject_dsdt(void);
-unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
-
#endif
diff --git a/src/soc/intel/xeon_sp/cpx/soc_acpi.c b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
index fab2211..cf84334 100644
--- a/src/soc/intel/xeon_sp/cpx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
@@ -17,8 +17,6 @@
#include <soc/pm.h>
#include <soc/soc_util.h>
-#include "chip.h"
-
/* TODO: Check if the common/acpi weak function can be used */
unsigned long acpi_fill_mcfg(unsigned long current)
{
diff --git a/src/soc/intel/xeon_sp/include/soc/acpi.h b/src/soc/intel/xeon_sp/include/soc/acpi.h
index 6a76ef2..b46914d 100644
--- a/src/soc/intel/xeon_sp/include/soc/acpi.h
+++ b/src/soc/intel/xeon_sp/include/soc/acpi.h
@@ -22,4 +22,9 @@
void motherboard_fill_fadt(acpi_fadt_t *fadt);
+void cpx_generate_p_state_entries(int core, int cores_per_package);
+int calculate_power(int tdp, int p1_ratio, int ratio);
+void uncore_inject_dsdt(void);
+unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
+
#endif /* _SOC_ACPI_H_ */
diff --git a/src/soc/intel/xeon_sp/skx/acpi.c b/src/soc/intel/xeon_sp/skx/acpi.c
index cbafbdb..c446a51 100644
--- a/src/soc/intel/xeon_sp/skx/acpi.c
+++ b/src/soc/intel/xeon_sp/skx/acpi.c
@@ -15,8 +15,6 @@
#include <soc/pm.h>
#include <string.h>
-#include "chip.h"
-
acpi_cstate_t *soc_get_cstate_map(size_t *entries)
{
*entries = 0;
diff --git a/src/soc/intel/xeon_sp/skx/chip.h b/src/soc/intel/xeon_sp/skx/chip.h
index adb70e5..0860899 100644
--- a/src/soc/intel/xeon_sp/skx/chip.h
+++ b/src/soc/intel/xeon_sp/skx/chip.h
@@ -76,8 +76,4 @@
typedef struct soc_intel_xeon_sp_skx_config config_t;
-/* soc acpi function prototypes. To be removed when acpi.c is replaced by common/acpi.c */
-void uncore_inject_dsdt(void);
-unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
-
#endif
diff --git a/src/soc/intel/xeon_sp/skx/soc_acpi.c b/src/soc/intel/xeon_sp/skx/soc_acpi.c
index b6b39f2..afbcf84 100644
--- a/src/soc/intel/xeon_sp/skx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/skx/soc_acpi.c
@@ -18,8 +18,6 @@
#include <soc/pm.h>
#include <soc/soc_util.h>
-#include "chip.h"
-
/* TODO: Check if the common/acpi weak function can be used */
unsigned long acpi_fill_mcfg(unsigned long current)
{
--
To view, visit https://review.coreboot.org/c/coreboot/+/46595
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib7037cfb58825a2f6c25c122b95f72d5992dc04e
Gerrit-Change-Number: 46595
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46461 )
Change subject: soc/intel/skl: replace conditional on dt option reading CPUID for CPPC
......................................................................
Patch Set 10:
(1 comment)
https://review.coreboot.org/c/coreboot/+/46461/10/src/soc/intel/skylake/acp…
File src/soc/intel/skylake/acpi.c:
https://review.coreboot.org/c/coreboot/+/46461/10/src/soc/intel/skylake/acp…
PS10, Line 38: CPUID_1_ECX
That would be EIST. We'd want to check CPUID_6_EAX[7].
--
To view, visit https://review.coreboot.org/c/coreboot/+/46461
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5f9bf09385627fb6a1d8e566a80370f7ddd8605e
Gerrit-Change-Number: 46461
Gerrit-PatchSet: 10
Gerrit-Owner: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
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: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 22 Oct 2020 21:25:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment