Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29759
Change subject: soc/intel/cannonlake: Add DPTF ACPI code
......................................................................
soc/intel/cannonlake: Add DPTF ACPI code
Define the constants that DPTF expects from the SOC in order to
use the common DPTF ACPI code. For cannonlake this indicates
the CPU device is called B0D4 and is at PCI address 00:04.0.
Change-Id: I43c2f8dd7281d3e9f791ab01478ee7823fd6b128
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
A src/soc/intel/cannonlake/acpi/dptf.asl
1 file changed, 45 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/29759/1
diff --git a/src/soc/intel/cannonlake/acpi/dptf.asl b/src/soc/intel/cannonlake/acpi/dptf.asl
new file mode 100644
index 0000000..098a61c
--- /dev/null
+++ b/src/soc/intel/cannonlake/acpi/dptf.asl
@@ -0,0 +1,45 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#define DPTF_CPU_DEVICE B0D4
+#define DPTF_CPU_ADDR 0x00040000
+
+#ifndef DPTF_CPU_PASSIVE
+#define DPTF_CPU_PASSIVE 80
+#endif
+
+#ifndef DPTF_CPU_CRITICAL
+#define DPTF_CPU_CRITICAL 90
+#endif
+
+#ifndef DPTF_CPU_ACTIVE_AC0
+#define DPTF_CPU_ACTIVE_AC0 90
+#endif
+
+#ifndef DPTF_CPU_ACTIVE_AC1
+#define DPTF_CPU_ACTIVE_AC1 80
+#endif
+
+#ifndef DPTF_CPU_ACTIVE_AC2
+#define DPTF_CPU_ACTIVE_AC2 70
+#endif
+
+#ifndef DPTF_CPU_ACTIVE_AC3
+#define DPTF_CPU_ACTIVE_AC3 60
+#endif
+
+#ifndef DPTF_CPU_ACTIVE_AC4
+#define DPTF_CPU_ACTIVE_AC4 50
+#endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/29759
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I43c2f8dd7281d3e9f791ab01478ee7823fd6b128
Gerrit-Change-Number: 29759
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29757
Change subject: soc/intel/common/dptf: Make CPU address a define
......................................................................
soc/intel/common/dptf: Make CPU address a define
In order to support using the common ACPI code on more platforms
than just Apollo Lake the DPTF code needs to be told what the
PCI address is for the CPU thermal device.
Change-Id: I638f2387330bbc42f64eb0fb676ee32c5df6572e
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/soc/intel/apollolake/acpi/dptf.asl
M src/soc/intel/common/acpi/dptf/cpu.asl
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/29757/1
diff --git a/src/soc/intel/apollolake/acpi/dptf.asl b/src/soc/intel/apollolake/acpi/dptf.asl
index b9ba9c3..f34725f 100644
--- a/src/soc/intel/apollolake/acpi/dptf.asl
+++ b/src/soc/intel/apollolake/acpi/dptf.asl
@@ -14,6 +14,7 @@
*/
#define DPTF_CPU_DEVICE TCPU
+#define DPTF_CPU_ADDR 0x00000001
#ifndef DPTF_CPU_PASSIVE
#define DPTF_CPU_PASSIVE 80
diff --git a/src/soc/intel/common/acpi/dptf/cpu.asl b/src/soc/intel/common/acpi/dptf/cpu.asl
index c28c0cc..9414e25 100644
--- a/src/soc/intel/common/acpi/dptf/cpu.asl
+++ b/src/soc/intel/common/acpi/dptf/cpu.asl
@@ -23,7 +23,7 @@
Device (DPTF_CPU_DEVICE)
{
- Name(_ADR, 0x00000001)
+ Name(_ADR, DPTF_CPU_ADDR)
Method (_STA)
{
--
To view, visit https://review.coreboot.org/c/coreboot/+/29757
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I638f2387330bbc42f64eb0fb676ee32c5df6572e
Gerrit-Change-Number: 29757
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29756
Change subject: soc/intel/cannonlake: Remove CPU ACPI code
......................................................................
soc/intel/cannonlake: Remove CPU ACPI code
Remove the cannonlake-specific CPU ACPI code and instead use
the newly added common CPU ACPI code.
Change-Id: Id526dc503f278b5cf3a8ce5ccec6f751aa777df0
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
D src/soc/intel/cannonlake/acpi/cpu.asl
1 file changed, 0 insertions(+), 43 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/29756/1
diff --git a/src/soc/intel/cannonlake/acpi/cpu.asl b/src/soc/intel/cannonlake/acpi/cpu.asl
deleted file mode 100644
index 79314e6..0000000
--- a/src/soc/intel/cannonlake/acpi/cpu.asl
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2017 Google Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-/* These devices are created at runtime */
-External (\_PR.CP00, DeviceObj)
-External (\_PR.CP01, DeviceObj)
-External (\_PR.CP02, DeviceObj)
-External (\_PR.CP03, DeviceObj)
-External (\_PR.CP04, DeviceObj)
-External (\_PR.CP05, DeviceObj)
-External (\_PR.CP06, DeviceObj)
-External (\_PR.CP07, DeviceObj)
-
-/* Notify OS to re-read CPU tables, assuming ^2 CPU count */
-Method (PNOT)
-{
- If (LGreaterEqual (\PCNT, 2)) {
- Notify (\_PR.CP00, 0x81) // _CST
- Notify (\_PR.CP01, 0x81) // _CST
- }
- If (LGreaterEqual (\PCNT, 4)) {
- Notify (\_PR.CP02, 0x81) // _CST
- Notify (\_PR.CP03, 0x81) // _CST
- }
- If (LGreaterEqual (\PCNT, 8)) {
- Notify (\_PR.CP04, 0x81) // _CST
- Notify (\_PR.CP05, 0x81) // _CST
- Notify (\_PR.CP06, 0x81) // _CST
- Notify (\_PR.CP07, 0x81) // _CST
- }
-}
--
To view, visit https://review.coreboot.org/c/coreboot/+/29756
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id526dc503f278b5cf3a8ce5ccec6f751aa777df0
Gerrit-Change-Number: 29756
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29755
Change subject: mb/google/{zoombini,sarien}: Use common CPU ACPI code
......................................................................
mb/google/{zoombini,sarien}: Use common CPU ACPI code
Instead of using the cannonlake specific CPU ACPI code (which
is incomplete) use the newly added common CPU ACPI code that
does include the required methods.
Change-Id: Ief3de0c8061fd1a985fecbc355062eb23d046d6d
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/mainboard/google/sarien/dsdt.asl
M src/mainboard/google/zoombini/dsdt.asl
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/29755/1
diff --git a/src/mainboard/google/sarien/dsdt.asl b/src/mainboard/google/sarien/dsdt.asl
index 18fedd5..110a214 100644
--- a/src/mainboard/google/sarien/dsdt.asl
+++ b/src/mainboard/google/sarien/dsdt.asl
@@ -31,7 +31,7 @@
#include <soc/intel/cannonlake/acpi/globalnvs.asl>
/* CPU */
- #include <soc/intel/cannonlake/acpi/cpu.asl>
+ #include <soc/intel/common/acpi/cpu.asl>
Scope (\_SB) {
Device (PWRB)
diff --git a/src/mainboard/google/zoombini/dsdt.asl b/src/mainboard/google/zoombini/dsdt.asl
index 3140990..2d8229d 100644
--- a/src/mainboard/google/zoombini/dsdt.asl
+++ b/src/mainboard/google/zoombini/dsdt.asl
@@ -34,7 +34,7 @@
#include <soc/intel/cannonlake/acpi/globalnvs.asl>
// CPU
- #include <soc/intel/cannonlake/acpi/cpu.asl>
+ #include <soc/intel/common/acpi/cpu.asl>
Scope (\_SB) {
Device (PCI0)
--
To view, visit https://review.coreboot.org/c/coreboot/+/29755
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief3de0c8061fd1a985fecbc355062eb23d046d6d
Gerrit-Change-Number: 29755
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: newchange
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29751 )
Change subject: cpu/x86/Kconfig.debug: Move more options here
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
https://review.coreboot.org/#/c/29751/1/src/cpu/x86/Kconfig.debug
File src/cpu/x86/Kconfig.debug:
https://review.coreboot.org/#/c/29751/1/src/cpu/x86/Kconfig.debug@10
PS1, Line 10: if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
nit: I'm okay with leaving it as it is, but in general this doesn't sound like the right thing to do. In some configurations there are ways to change loglevel at runtime, so we probably shouldn't presume here.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29751
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3bb8e759fc6a4871d30fccff47babfb7a291b45c
Gerrit-Change-Number: 29751
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 21 Nov 2018 01:14:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment