Sumeet R Pawnikar has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34743 )
Change subject: mb/google/hatch/variants/helios: Update DPTF parameters and TDP PL1/PL2
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/34743/1/src/mainboard/google/hatch…
File src/mainboard/google/hatch/variants/helios/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/34743/1/src/mainboard/google/hatch…
PS1, Line 37: 13000
> How did you arrive to 13W for PowerLimitMaximum ? Shouldn't this to 15W ?
Please, address this above comment. Thanks.
--
To view, visit https://review.coreboot.org/c/coreboot/+/34743
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic7a96c33ce710c32b57e2ad8066830ff83398c57
Gerrit-Change-Number: 34743
Gerrit-PatchSet: 2
Gerrit-Owner: Frank Chu <frank_chu(a)pegatron.corp-partner.google.com>
Gerrit-Reviewer: Frank Chu <frank_chu(a)pegatron.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Philip Chen <philipchen(a)google.com>
Gerrit-Reviewer: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Hank Lin <hank2_lin(a)pegatron.corp-partner.google.com>
Gerrit-CC: Kane Chen <kane_chen(a)pegatron.corp-partner.google.com>
Gerrit-CC: Ken Lu <ken_lu(a)pegatron.corp-partner.google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Thu, 05 Sep 2019 06:24:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-MessageType: comment
Hello build bot (Jenkins), Martin Roth, Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33770
to look at the new patch set (#13).
Change subject: soc/amd/picasso: Update southbridge
......................................................................
soc/amd/picasso: Update southbridge
Picasso's FCH has many similarities to Stoney Ridge, so few changes
are necessary. The most notable changes are:
* Update the index values for the C00/C01 interrupt routing
* FORCE_STPCLK_RETRY is not present
* PCIB is not defined
* FCH MISC Registers 0xfed80e00 numbering has changed
* AOAC device assignment has changed
* C-state base moves from PM register to MSR
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Change-Id: I69dfc4a875006639aa330385680d150331840e40
---
M src/soc/amd/picasso/include/soc/amd_pci_int_defs.h
M src/soc/amd/picasso/include/soc/cpu.h
M src/soc/amd/picasso/include/soc/southbridge.h
M src/soc/amd/picasso/smihandler.c
M src/soc/amd/picasso/southbridge.c
5 files changed, 110 insertions(+), 166 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/33770/13
--
To view, visit https://review.coreboot.org/c/coreboot/+/33770
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I69dfc4a875006639aa330385680d150331840e40
Gerrit-Change-Number: 33770
Gerrit-PatchSet: 13
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Hello Edward O'Callaghan, Julius Werner, Richard Spiegel, build bot (Jenkins), Furquan Shaikh, Martin Roth, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33759
to look at the new patch set (#13).
Change subject: soc/amd/picasso: Create a hybrid romstage to begin in DRAM
......................................................................
soc/amd/picasso: Create a hybrid romstage to begin in DRAM
Add the support files to begin execution in romstage and located in
DRAM. Details for this implementation are found in
Documentation/amd/picasso/family17.md.
Combine steps typically found in bootblock, containing the reset
vector and protected mode enable, with the parts of romstage
that enable the console and cbmem.
Duplicate the ROMSTAGE_ADDR symbol into Kconfig and give it a safe
default value in DRAM. Define EARLYRAM values for stack and early
storage prior to cbmem. (A subsequent patch to add an FSP driver
will rely on the storage.)
Remove all postcar support.
Change-Id: Id8c6175de34a0728ad41085e9c7cd310bd280976
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
M src/soc/amd/picasso/Kconfig
M src/soc/amd/picasso/Makefile.inc
A src/soc/amd/picasso/early_stack.S
A src/soc/amd/picasso/hybrid_romstage.c
M src/soc/amd/picasso/include/soc/cpu.h
M src/soc/amd/picasso/include/soc/romstage.h
D src/soc/amd/picasso/romstage.c
7 files changed, 279 insertions(+), 138 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/33759/13
--
To view, visit https://review.coreboot.org/c/coreboot/+/33759
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id8c6175de34a0728ad41085e9c7cd310bd280976
Gerrit-Change-Number: 33759
Gerrit-PatchSet: 13
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Marty E. Plummer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35171 )
Change subject: arch/ppc64: add arch_timer
......................................................................
arch/ppc64: add arch_timer
Based on code from hostboot's timemgr.C file. looks right and the
resultant assembly looks correct.
Change-Id: I65d7be0fd384e69a069fe8278c313db914763b80
Signed-off-by: Marty E. Plummer <hanetzer(a)startmail.com>
---
M src/arch/ppc64/Kconfig
M src/arch/ppc64/Makefile.inc
A src/arch/ppc64/arch_timer.c
A src/arch/ppc64/include/arch/asm.h
4 files changed, 101 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/35171/1
diff --git a/src/arch/ppc64/Kconfig b/src/arch/ppc64/Kconfig
index 0f65c0c..41ff074 100644
--- a/src/arch/ppc64/Kconfig
+++ b/src/arch/ppc64/Kconfig
@@ -20,3 +20,9 @@
select ARCH_PPC64
source "src/arch/ppc64/power8/Kconfig"
+source "src/arch/ppc64/power9/Kconfig"
+
+config PPC64_USE_ARCH_TIMER
+ bool
+ default n
+
diff --git a/src/arch/ppc64/Makefile.inc b/src/arch/ppc64/Makefile.inc
index 7a069cd..d6f0b77 100644
--- a/src/arch/ppc64/Makefile.inc
+++ b/src/arch/ppc64/Makefile.inc
@@ -30,6 +30,7 @@
bootblock-y += stages.c
bootblock-y += boot.c
bootblock-y += rom_media.c
+bootblock-$(CONFIG_PPC64_USE_ARCH_TIMER) += arch_timer.c
bootblock-y += \
$(top)/src/lib/memchr.c \
$(top)/src/lib/memcmp.c \
@@ -55,6 +56,7 @@
romstage-y += boot.c
romstage-y += stages.c
romstage-y += rom_media.c
+romstage-$(CONFIG_PPC64_USE_ARCH_TIMER) += arch_timer.c
romstage-y += \
$(top)/src/lib/memchr.c \
$(top)/src/lib/memcmp.c \
@@ -84,6 +86,7 @@
ramstage-y += stages.c
ramstage-y += boot.c
ramstage-y += tables.c
+ramstage-$(CONFIG_PPC64_USE_ARCH_TIMER) += arch_timer.c
ramstage-y += \
$(top)/src/lib/memchr.c \
$(top)/src/lib/memcmp.c \
diff --git a/src/arch/ppc64/arch_timer.c b/src/arch/ppc64/arch_timer.c
new file mode 100644
index 0000000..c988a34
--- /dev/null
+++ b/src/arch/ppc64/arch_timer.c
@@ -0,0 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * 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.
+ */
+
+#include <timer.h>
+#include <arch/asm.h>
+
+void timer_monotonic_get(struct mono_time *mt)
+{
+ // TODO: see src/kernel/timemgr.C
+ // looks right for now...
+ uint64_t value = raw_read_tb();
+ uint64_t freq = 512000000ULL;
+ long usecs = (value * 1000000) / freq;
+ mono_time_set_usecs(mt, usecs);
+}
diff --git a/src/arch/ppc64/include/arch/asm.h b/src/arch/ppc64/include/arch/asm.h
new file mode 100644
index 0000000..4692f87
--- /dev/null
+++ b/src/arch/ppc64/include/arch/asm.h
@@ -0,0 +1,67 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * 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.
+ */
+
+#ifndef __PPC_PPC64_ASM_H
+#define __PPC_PPC64_ASM_H
+
+#define ENDPROC(name) \
+ .type name, % function; \
+ END(name)
+
+#define ENTRY_WITH_ALIGN(name, bits) \
+ .section.text.name, "ax", % progbits; \
+ .global name; \
+ .align bits; \
+ name:
+
+#define ENTRY(name) ENTRY_WITH_ALIGN(name, 2)
+
+#define END(name) .size name, .- name
+
+/* Special Purpose Registers */
+#define SPRN_TBRL 268
+#define SPRN_TBRU 269
+
+
+#ifndef __ASSEMBLER__
+
+#include <stdint.h>
+
+#define MAKE_REGISTER_READ(reg) \
+ static inline uint64_t raw_read_##reg(void) \
+ { \
+ uint64_t value; \
+ __asm__ __volatile__("mfspr %0, " #reg "\n\t" : "=r"(value)); \
+ return value; \
+ }
+
+#define MAKE_REGISTER_WRITE(reg) \
+ static inline void raw_write_##reg(uint64_t value) \
+ { \
+ __asm__ __volatile__("mtspr " #reg ", %0\n\t" : : "r"(value) : "memory"); \
+ }
+
+#define MAKE_REGISTER_ACCESSORS(reg) \
+ MAKE_REGISTER_READ(##reg) \
+ MAKE_REGISTER_WRITE(##reg)
+
+static inline uint64_t raw_read_tb(void)
+{
+ uint64_t value;
+ __asm__ __volatile__("mfspr %0, %1\n\t" : "=r"(value) : "i"(SPRN_TBRL));
+ return value;
+}
+
+#endif /* __ASSEMBLER__ */
+
+#endif /* __PPC_PPC64_ASM_H */
--
To view, visit https://review.coreboot.org/c/coreboot/+/35171
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I65d7be0fd384e69a069fe8278c313db914763b80
Gerrit-Change-Number: 35171
Gerrit-PatchSet: 1
Gerrit-Owner: Marty E. Plummer <hanetzer(a)startmail.com>
Gerrit-MessageType: newchange
Peichao Li has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35116 )
Change subject: [TEST-ONLY]Update the memory timing table for Treeya to the 2T table. Rename the table from Liara specific to simply specifying that it's using 2T command rate
......................................................................
[TEST-ONLY]Update the memory timing table for Treeya to the 2T table.
Rename the table from Liara specific to simply specifying that it's using
2T command rate
BUG=139841929
TEST=build and do stress test
Change-Id: I6e10b95c8aea50e68d8a3b710f30dda4f6b807d3
---
M src/mainboard/google/kahlee/OemCustomize.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/35116/1
diff --git a/src/mainboard/google/kahlee/OemCustomize.c b/src/mainboard/google/kahlee/OemCustomize.c
index 886e14f..1b33b03 100644
--- a/src/mainboard/google/kahlee/OemCustomize.c
+++ b/src/mainboard/google/kahlee/OemCustomize.c
@@ -39,7 +39,7 @@
PSO_END
};
/* Liara-specific 2T memory configuration */
-static const PSO_ENTRY DDR4LiaraMemoryConfiguration[] = {
+static const PSO_ENTRY DDR4_T2_MemoryConfiguration[] = {
DRAM_TECHNOLOGY(ANY_SOCKET, DDR4_TECHNOLOGY),
NUMBER_OF_DIMMS_SUPPORTED(ANY_SOCKET, ANY_CHANNEL, DIMMS_PER_CHANNEL),
NUMBER_OF_CHANNELS_SUPPORTED(ANY_SOCKET, MAX_DRAM_CH),
@@ -58,9 +58,9 @@
void OemPostParams(AMD_POST_PARAMS *PostParams)
{
- if (CONFIG(BOARD_GOOGLE_LIARA))
+ if (CONFIG(BOARD_GOOGLE_LIARA) || CONFIG(BOARD_GOOGLE_TREEYA))
PostParams->MemConfig.PlatformMemoryConfiguration =
- (PSO_ENTRY *)DDR4LiaraMemoryConfiguration;
+ (PSO_ENTRY *)DDR4_T2_MemoryConfiguration;
else
PostParams->MemConfig.PlatformMemoryConfiguration =
(PSO_ENTRY *)DDR4PlatformMemoryConfiguration;
--
To view, visit https://review.coreboot.org/c/coreboot/+/35116
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6e10b95c8aea50e68d8a3b710f30dda4f6b807d3
Gerrit-Change-Number: 35116
Gerrit-PatchSet: 1
Gerrit-Owner: Peichao Li <peichao.wang(a)bitland.corp-partner.google.com>
Gerrit-MessageType: newchange