Felix Singer has uploaded a new patch set (#4) to the change originally created by Nico Huber. ( https://review.coreboot.org/c/coreboot/+/29897 )
Change subject: util/inteltool: Add Apollo Lake GPIO groups and names
......................................................................
util/inteltool: Add Apollo Lake GPIO groups and names
Apollo Lake has four GPIO communities each with a single group named
after the physical location of the pads (I guess): North West, North,
West and South West.
Also add some logic to be able to tag the default function of a pad
(with an asterisk before its name). This seems easier to review in the
tables, but we could also encode the number of the default explicitly
instead.
Change-Id: I5cd687fdc1d2ae81f2e948178bf319897b47f031
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
Signed-off-by: Felix Singer <migy(a)darmstadt.ccc.de>
---
M util/inteltool/gpio.c
M util/inteltool/gpio_groups.c
2 files changed, 353 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/29897/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/29897
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5cd687fdc1d2ae81f2e948178bf319897b47f031
Gerrit-Change-Number: 29897
Gerrit-PatchSet: 4
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Felix Singer <migy(a)darmstadt.ccc.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
ron minnich has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31079
Change subject: riscv: realign our naming with the true names
......................................................................
riscv: realign our naming with the true names
The riscv world has decided that
riscv means rv32
riscv64 means rv64
and that, further, nobody is going to use names like rv32 or rv64! Poor choices IMHO but
seems it's too late to change.
This is the first step on aligning coreboot naming to the outside world. Partly this is needed
for a 32-bit RISCV processor coming to you soon, but largely it's good to be aligned with
everyone else's naming.
A primary goal here is that src/arch/riscv continues to mean "all riscv regardless of word size"
even though it arguably is not following the naming. But the 32- and 64-bit isa's are essentially
the same save for XLEN, so this ought to work.
Choosing 32- or 64-bit is done in mainboards, hence the name change for the
emulation targets. With luck, we might someday be able to say "build the emulation
target and pick the 32-bit variant" but our naming does not quite allow that yet.
In future commits we'll probably want to move src/soc/ucb/riscv to src/soc/ucb/riscv64
but it's nice to minimize breakage.
Change-Id: If842767a4b6c5e82df99b5a57b524b88044afcba
Signed-off-by: Ronald G. Minnich <rminnich(a)gmail.com>
---
M MAINTAINERS
R src/mainboard/emulation/qemu-riscv64/Kconfig
R src/mainboard/emulation/qemu-riscv64/Kconfig.name
R src/mainboard/emulation/qemu-riscv64/Makefile.inc
R src/mainboard/emulation/qemu-riscv64/board_info.txt
R src/mainboard/emulation/qemu-riscv64/devicetree.cb
R src/mainboard/emulation/qemu-riscv64/mainboard.c
R src/mainboard/emulation/qemu-riscv64/memlayout.ld
R src/mainboard/emulation/qemu-riscv64/mtime.c
R src/mainboard/emulation/qemu-riscv64/rom_media.c
R src/mainboard/emulation/qemu-riscv64/romstage.c
R src/mainboard/emulation/qemu-riscv64/uart.c
D src/mainboard/emulation/spike-riscv/Kconfig.name
R src/mainboard/emulation/spike-riscv64/Kconfig
A src/mainboard/emulation/spike-riscv64/Kconfig.name
R src/mainboard/emulation/spike-riscv64/Makefile.inc
R src/mainboard/emulation/spike-riscv64/board_info.txt
R src/mainboard/emulation/spike-riscv64/clint.c
R src/mainboard/emulation/spike-riscv64/devicetree.cb
R src/mainboard/emulation/spike-riscv64/mainboard.c
R src/mainboard/emulation/spike-riscv64/memlayout.ld
R src/mainboard/emulation/spike-riscv64/rom_media.c
R src/mainboard/emulation/spike-riscv64/romstage.c
R src/mainboard/emulation/spike-riscv64/uart.c
24 files changed, 12 insertions(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/31079/1
diff --git a/MAINTAINERS b/MAINTAINERS
index fbaad69..8131178 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -141,7 +141,7 @@
F: src/arch/riscv/
F: src/soc/sifive/
F: src/soc/ucb/
-F: src/mainboard/emulation/*-riscv/
+F: src/mainboard/emulation/*-riscv*/
F: src/mainboard/sifive/
F: util/riscv/
diff --git a/src/mainboard/emulation/qemu-riscv/Kconfig b/src/mainboard/emulation/qemu-riscv64/Kconfig
similarity index 91%
rename from src/mainboard/emulation/qemu-riscv/Kconfig
rename to src/mainboard/emulation/qemu-riscv64/Kconfig
index 528b21e..62b8e3a 100644
--- a/src/mainboard/emulation/qemu-riscv/Kconfig
+++ b/src/mainboard/emulation/qemu-riscv64/Kconfig
@@ -27,11 +27,11 @@
config MAINBOARD_DIR
string
- default emulation/qemu-riscv
+ default emulation/qemu-riscv64
config MAINBOARD_PART_NUMBER
string
- default "QEMU RISCV"
+ default "QEMU RISCV64"
config MAX_CPUS
int
@@ -41,4 +41,4 @@
int
default 32768
-endif # BOARD_EMULATION_QEMU_RISCV
+endif # BOARD_EMULATION_QEMU_RISCV64
diff --git a/src/mainboard/emulation/qemu-riscv/Kconfig.name b/src/mainboard/emulation/qemu-riscv64/Kconfig.name
similarity index 61%
rename from src/mainboard/emulation/qemu-riscv/Kconfig.name
rename to src/mainboard/emulation/qemu-riscv64/Kconfig.name
index e9243e6..54454cb 100644
--- a/src/mainboard/emulation/qemu-riscv/Kconfig.name
+++ b/src/mainboard/emulation/qemu-riscv64/Kconfig.name
@@ -1,2 +1,2 @@
config BOARD_EMULATION_QEMU_RISCV
- bool "QEMU riscv"
+ bool "QEMU riscv64"
diff --git a/src/mainboard/emulation/qemu-riscv/Makefile.inc b/src/mainboard/emulation/qemu-riscv64/Makefile.inc
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/Makefile.inc
rename to src/mainboard/emulation/qemu-riscv64/Makefile.inc
diff --git a/src/mainboard/emulation/qemu-riscv/board_info.txt b/src/mainboard/emulation/qemu-riscv64/board_info.txt
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/board_info.txt
rename to src/mainboard/emulation/qemu-riscv64/board_info.txt
diff --git a/src/mainboard/emulation/qemu-riscv/devicetree.cb b/src/mainboard/emulation/qemu-riscv64/devicetree.cb
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/devicetree.cb
rename to src/mainboard/emulation/qemu-riscv64/devicetree.cb
diff --git a/src/mainboard/emulation/qemu-riscv/mainboard.c b/src/mainboard/emulation/qemu-riscv64/mainboard.c
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/mainboard.c
rename to src/mainboard/emulation/qemu-riscv64/mainboard.c
diff --git a/src/mainboard/emulation/qemu-riscv/memlayout.ld b/src/mainboard/emulation/qemu-riscv64/memlayout.ld
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/memlayout.ld
rename to src/mainboard/emulation/qemu-riscv64/memlayout.ld
diff --git a/src/mainboard/emulation/qemu-riscv/mtime.c b/src/mainboard/emulation/qemu-riscv64/mtime.c
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/mtime.c
rename to src/mainboard/emulation/qemu-riscv64/mtime.c
diff --git a/src/mainboard/emulation/qemu-riscv/rom_media.c b/src/mainboard/emulation/qemu-riscv64/rom_media.c
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/rom_media.c
rename to src/mainboard/emulation/qemu-riscv64/rom_media.c
diff --git a/src/mainboard/emulation/qemu-riscv/romstage.c b/src/mainboard/emulation/qemu-riscv64/romstage.c
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/romstage.c
rename to src/mainboard/emulation/qemu-riscv64/romstage.c
diff --git a/src/mainboard/emulation/qemu-riscv/uart.c b/src/mainboard/emulation/qemu-riscv64/uart.c
similarity index 100%
rename from src/mainboard/emulation/qemu-riscv/uart.c
rename to src/mainboard/emulation/qemu-riscv64/uart.c
diff --git a/src/mainboard/emulation/spike-riscv/Kconfig.name b/src/mainboard/emulation/spike-riscv/Kconfig.name
deleted file mode 100644
index 17549c6..0000000
--- a/src/mainboard/emulation/spike-riscv/Kconfig.name
+++ /dev/null
@@ -1,3 +0,0 @@
-config BOARD_EMULATION_SPIKE_RISCV
- bool "SPIKE riscv"
- help
diff --git a/src/mainboard/emulation/spike-riscv/Kconfig b/src/mainboard/emulation/spike-riscv64/Kconfig
similarity index 86%
rename from src/mainboard/emulation/spike-riscv/Kconfig
rename to src/mainboard/emulation/spike-riscv64/Kconfig
index f8c98ab..c09b621 100644
--- a/src/mainboard/emulation/spike-riscv/Kconfig
+++ b/src/mainboard/emulation/spike-riscv64/Kconfig
@@ -12,7 +12,7 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-if BOARD_EMULATION_SPIKE_RISCV
+if BOARD_EMULATION_SPIKE_RISCV64
config BOARD_SPECIFIC_OPTIONS
def_bool y
@@ -24,14 +24,14 @@
config MAINBOARD_DIR
string
- default emulation/spike-riscv
+ default emulation/spike-riscv64
config MAINBOARD_PART_NUMBER
string
- default "SPIKE RISCV"
+ default "SPIKE RISCV64"
config MAX_CPUS
int
default 1
-endif # BOARD_EMULATION_SPIKE_RISCV
+endif # BOARD_EMULATION_SPIKE_RISCV64
diff --git a/src/mainboard/emulation/spike-riscv64/Kconfig.name b/src/mainboard/emulation/spike-riscv64/Kconfig.name
new file mode 100644
index 0000000..b743bd5
--- /dev/null
+++ b/src/mainboard/emulation/spike-riscv64/Kconfig.name
@@ -0,0 +1,3 @@
+config BOARD_EMULATION_SPIKE_RISCV64
+ bool "SPIKE riscv64"
+ help
diff --git a/src/mainboard/emulation/spike-riscv/Makefile.inc b/src/mainboard/emulation/spike-riscv64/Makefile.inc
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/Makefile.inc
rename to src/mainboard/emulation/spike-riscv64/Makefile.inc
diff --git a/src/mainboard/emulation/spike-riscv/board_info.txt b/src/mainboard/emulation/spike-riscv64/board_info.txt
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/board_info.txt
rename to src/mainboard/emulation/spike-riscv64/board_info.txt
diff --git a/src/mainboard/emulation/spike-riscv/clint.c b/src/mainboard/emulation/spike-riscv64/clint.c
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/clint.c
rename to src/mainboard/emulation/spike-riscv64/clint.c
diff --git a/src/mainboard/emulation/spike-riscv/devicetree.cb b/src/mainboard/emulation/spike-riscv64/devicetree.cb
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/devicetree.cb
rename to src/mainboard/emulation/spike-riscv64/devicetree.cb
diff --git a/src/mainboard/emulation/spike-riscv/mainboard.c b/src/mainboard/emulation/spike-riscv64/mainboard.c
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/mainboard.c
rename to src/mainboard/emulation/spike-riscv64/mainboard.c
diff --git a/src/mainboard/emulation/spike-riscv/memlayout.ld b/src/mainboard/emulation/spike-riscv64/memlayout.ld
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/memlayout.ld
rename to src/mainboard/emulation/spike-riscv64/memlayout.ld
diff --git a/src/mainboard/emulation/spike-riscv/rom_media.c b/src/mainboard/emulation/spike-riscv64/rom_media.c
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/rom_media.c
rename to src/mainboard/emulation/spike-riscv64/rom_media.c
diff --git a/src/mainboard/emulation/spike-riscv/romstage.c b/src/mainboard/emulation/spike-riscv64/romstage.c
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/romstage.c
rename to src/mainboard/emulation/spike-riscv64/romstage.c
diff --git a/src/mainboard/emulation/spike-riscv/uart.c b/src/mainboard/emulation/spike-riscv64/uart.c
similarity index 100%
rename from src/mainboard/emulation/spike-riscv/uart.c
rename to src/mainboard/emulation/spike-riscv64/uart.c
--
To view, visit https://review.coreboot.org/c/coreboot/+/31079
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If842767a4b6c5e82df99b5a57b524b88044afcba
Gerrit-Change-Number: 31079
Gerrit-PatchSet: 1
Gerrit-Owner: ron minnich <rminnich(a)gmail.com>
Gerrit-MessageType: newchange
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/27276 )
Change subject: soc/amd/common: Remove redundant ACPI S3 test
......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/#/c/27276/4/src/soc/amd/stoneyridge/Kconfig
File src/soc/amd/stoneyridge/Kconfig:
https://review.coreboot.org/#/c/27276/4/src/soc/amd/stoneyridge/Kconfig@a53
PS4, Line 53:
> Also, I plan to reuse that s3_resume.c with improved stage_cache and mrc_cache code with agesa/family16 that definetly can do fastboot...
The stage_cache/mrc_cache is definitely a plus. ST and I assume CZ(MF) can't do an S5 fastboot because there's now the PMU handling that DRAM training. It doesn't know how to reuse info from a prior boot. I believe Family 15h Mod 60h was where that first showed up; I don't believe Kavari, but definitely no F16h I've ever heard of.
--
To view, visit https://review.coreboot.org/c/coreboot/+/27276
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c7a9ecbfcb82790e477d906a00f9749103b4045
Gerrit-Change-Number: 27276
Gerrit-PatchSet: 4
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 11 Feb 2019 22:52:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Comment-In-Reply-To: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Comment-In-Reply-To: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-MessageType: comment
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/27277 )
Change subject: soc/amd/common: Fix AmdLateRunApTask()
......................................................................
Patch Set 4:
(2 comments)
https://review.coreboot.org/#/c/27277/4/src/soc/amd/common/block/pi/agesawr…
File src/soc/amd/common/block/pi/agesawrapper.c:
https://review.coreboot.org/#/c/27277/4/src/soc/amd/common/block/pi/agesawr…
PS4, Line 374:
When we reach here, we have either
Func==AGESA_RUNFUNC_ONAP or Func==AGESA_RUNFUNC_ON_ALL_APS
Looking into implementation of AmdLateRunApTask() it's expected FunctionNumber equals one of the entries in ApDispatchTable.
In CarrizoPi, cpuF15CzBtcBefore() and RUN_BTC_ON_ALL_APS is sort of example what happens.
https://review.coreboot.org/#/c/27277/4/src/soc/amd/common/block/pi/agesawr…
PS4, Line 370:
:
:
:
:
:
:
> Have you verified that AGESA actually fills these parameters of ApExeParams?
Seems to, I was mostly staring at that FunctionNumber field.
--
To view, visit https://review.coreboot.org/c/coreboot/+/27277
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1dad64b955b53bd19363737665235f95aa3d451e
Gerrit-Change-Number: 27277
Gerrit-PatchSet: 4
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 11 Feb 2019 22:28:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-MessageType: comment
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/27277 )
Change subject: soc/amd/common: Fix AmdLateRunApTask()
......................................................................
Patch Set 4:
I'm not convinced yet that this is correct, although I agree with your premise.
The PI blob is built so that all callouts run through a function named AmdAgesaCallout(). This, in turn, calls a pointer with arguments Func, Data, ConfigPtr). As a result, I believe the PI version of agesawrapper.c is written correctly to unwrap the information.
Unfortunately, I don't observe the function being run in agesawrapper.c, so it's not obvious whether there's a bug. The stoney PI source doesn't call AmdLateRunApTask()
--
To view, visit https://review.coreboot.org/c/coreboot/+/27277
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1dad64b955b53bd19363737665235f95aa3d451e
Gerrit-Change-Number: 27277
Gerrit-PatchSet: 4
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 11 Feb 2019 21:50:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment