Hello Marshall Dawson, Paul Menzel, build bot (Jenkins), Marc Jones, Michał Żygowski, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/19275
to look at the new patch set (#10).
Change subject: binaryPI: Drop BINARYPI_LEGACY_WRAPPER support
......................................................................
binaryPI: Drop BINARYPI_LEGACY_WRAPPER support
Drop all the sources that were guarded with this.
Change-Id: I6c6fd19875cb57f0caf42a1a94f59efed83bfe0d
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/cpu/amd/pi/Kconfig
M src/cpu/amd/pi/Makefile.inc
D src/cpu/amd/pi/amd_late_init.c
D src/cpu/amd/pi/romstage.c
M src/drivers/amd/agesa/Makefile.inc
M src/drivers/amd/agesa/def_callouts.c
M src/drivers/amd/agesa/eventlog.c
M src/drivers/amd/agesa/romstage.c
M src/include/cpu/amd/car.h
M src/mainboard/amd/bettong/BiosCallOuts.c
M src/mainboard/amd/bettong/Kconfig
M src/mainboard/amd/bettong/OemCustomize.c
M src/mainboard/amd/bettong/romstage.c
M src/mainboard/amd/db-ft3b-lc/Kconfig
M src/mainboard/amd/db-ft3b-lc/OemCustomize.c
M src/mainboard/amd/db-ft3b-lc/romstage.c
M src/mainboard/amd/lamar/Kconfig
M src/mainboard/amd/lamar/OemCustomize.c
M src/mainboard/amd/lamar/romstage.c
M src/mainboard/amd/olivehillplus/Kconfig
M src/mainboard/amd/olivehillplus/OemCustomize.c
M src/mainboard/amd/olivehillplus/romstage.c
M src/mainboard/bap/ode_e21XX/Kconfig
M src/mainboard/bap/ode_e21XX/OemCustomize.c
M src/mainboard/bap/ode_e21XX/romstage.c
M src/northbridge/amd/agesa/state_machine.h
M src/northbridge/amd/pi/00630F01/northbridge.c
M src/northbridge/amd/pi/00660F01/northbridge.c
M src/northbridge/amd/pi/00730F01/Makefile.inc
M src/northbridge/amd/pi/00730F01/northbridge.c
M src/northbridge/amd/pi/Makefile.inc
D src/northbridge/amd/pi/agesawrapper.c
D src/northbridge/amd/pi/agesawrapper.h
D src/northbridge/amd/pi/agesawrapper_call.h
M src/vendorcode/amd/Kconfig
D src/vendorcode/amd/pi/00630F01/binaryPI/AGESA.c
D src/vendorcode/amd/pi/00660F01/binaryPI/AGESA.c
D src/vendorcode/amd/pi/00730F01/binaryPI/AGESA.c
M src/vendorcode/amd/pi/Makefile.inc
39 files changed, 9 insertions(+), 2,074 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/19275/10
--
To view, visit https://review.coreboot.org/c/coreboot/+/19275
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6c6fd19875cb57f0caf42a1a94f59efed83bfe0d
Gerrit-Change-Number: 19275
Gerrit-PatchSet: 10
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Bill XIE has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37109 )
Change subject: util/sconfig: Fix illogical override rule for resource
......................................................................
util/sconfig: Fix illogical override rule for resource
The old logic only use type to identify resources, which makes a
resource in override tree overriding the first resource with the same
type (but possibly different index) in base tree, and resources with
same type (but again different index) in override tree overriding each
other.
Resources had better be identified with both their type and index.
Change-Id: I7cd88905a8d6d1c7c6c03833835df2fba83047ea
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
---
M util/sconfig/main.c
1 file changed, 14 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/37109/1
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 5c23333..3b60e2a 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -1073,6 +1073,16 @@
}
/*
+ * Match resource nodes from base and override tree to see if they are the same
+ * node.
+ */
+static int res_match(struct resource *a, struct resource *b)
+{
+ return ((a->type == b->type) &&
+ (a->index == b->index));
+}
+
+/*
* Walk through the override subtree in breadth-first manner starting at node to
* see if chip_instance pointer of the node is same as chip_instance pointer of
* override parent that is passed into the function. If yes, then update the
@@ -1104,8 +1114,7 @@
struct resource *base_res = dev->res;
while (base_res) {
- if (base_res->type == res->type) {
- base_res->index = res->index;
+ if (res_match(base_res, res)) {
base_res->base = res->base;
return;
}
@@ -1195,9 +1204,9 @@
* | | |
* | res | Each resource that is present in override |
* | | device is copied over to base device: |
- * | | 1. If resource of same type is present in |
- * | | base device, then index and base of the |
- * | | resource is copied. |
+ * | | 1. If resource of same type and index is |
+ * | | present in base device, then base of |
+ * | | the resource is copied. |
* | | 2. If not, then a new resource is allocated|
* | | under the base device using type, index |
* | | and base from override res. |
--
To view, visit https://review.coreboot.org/c/coreboot/+/37109
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7cd88905a8d6d1c7c6c03833835df2fba83047ea
Gerrit-Change-Number: 37109
Gerrit-PatchSet: 1
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Werner Zeh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36941 )
Change subject: arch/x86: SMBIOS: Improve core count reporting
......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36941/2/src/arch/x86/smbios.c
File src/arch/x86/smbios.c:
https://review.coreboot.org/c/coreboot/+/36941/2/src/arch/x86/smbios.c@677
PS2, Line 677: t->core_count = (res.ebx >> 16) & 0xff;
> oh I see. Yeah that would be good idea and perhaps should be implemented long term. […]
Sure, keep this in mind for future refactorings. It will help you if one have, for some reason, reduced MAX_NUM_CPUS to a smaller number.
--
To view, visit https://review.coreboot.org/c/coreboot/+/36941
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id4ba9e3079f92ffe38f9104ffcfafe62582dd259
Gerrit-Change-Number: 36941
Gerrit-PatchSet: 3
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 26 Nov 2019 08:50:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Werner Zeh <werner.zeh(a)siemens.com>
Comment-In-Reply-To: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-MessageType: comment
David Hendricks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37087 )
Change subject: src/drivers/ipmi: Implement BMC Get Self Test Result function
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/37087
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I20349cec2e8e9420d177d725de2a5560d354fe47
Gerrit-Change-Number: 37087
Gerrit-PatchSet: 1
Gerrit-Owner: Morgan Jang
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Comment-Date: Tue, 26 Nov 2019 06:13:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Weiyi Lu,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/35905
to review the following change.
Change subject: mediatek/mt8183: keep XO_SOC always in Full Power Mode
......................................................................
mediatek/mt8183: keep XO_SOC always in Full Power Mode
We could have XO_SOC output 26MHz to SOC by keeping it always in
Full Power Mode even when the system suspended as a workaround for
the random failure of suspend resume test.
BRANCH=none
TEST=suspend resume stress test by 2500 times passed on Krane.
Change-Id: Id6cf8a9968cbdd2a5865aa2fd158a1ba0beb90f5
Signed-off-by: Weiyi Lu <weiyi.lu(a)mediatek.com>
---
M src/soc/mediatek/mt8183/rtc.c
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/35905/1
diff --git a/src/soc/mediatek/mt8183/rtc.c b/src/soc/mediatek/mt8183/rtc.c
index 19b717c..c2d6c80 100644
--- a/src/soc/mediatek/mt8183/rtc.c
+++ b/src/soc/mediatek/mt8183/rtc.c
@@ -411,8 +411,11 @@
rtc_write(PMIC_RG_DCXO_CW16, 0x9855);
/* 26M enable control */
- /* Enable clock buffer XO_SOC, XO_CEL */
- rtc_write(PMIC_RG_DCXO_CW00, 0x4805);
+ /*
+ * Enable clock buffer XO_SOC and XO_CEL.
+ * Also keep XO_SOC always in Full Power Mode.
+ */
+ rtc_write(PMIC_RG_DCXO_CW00, 0x6805);
rtc_write(PMIC_RG_DCXO_CW11, 0x8000);
/* Load thermal coefficient */
--
To view, visit https://review.coreboot.org/c/coreboot/+/35905
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6cf8a9968cbdd2a5865aa2fd158a1ba0beb90f5
Gerrit-Change-Number: 35905
Gerrit-PatchSet: 1
Gerrit-Owner: Weiyi Lu <weiyi.lu(a)mediatek.corp-partner.google.com>
Gerrit-Reviewer: Weiyi Lu <weiyi.lu(a)mediatek.com>
Gerrit-MessageType: newchange
Roja Rani Yarubandi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36830 )
Change subject: sc7180: Add I2C driver
......................................................................
Patch Set 4:
(1 comment)
> Patch Set 4: Code-Review+2
>
> (1 comment)
Done, share patch with Mike
https://review.coreboot.org/c/coreboot/+/36830/4/src/soc/qualcomm/sc7180/i2…
File src/soc/qualcomm/sc7180/i2c.c:
https://review.coreboot.org/c/coreboot/+/36830/4/src/soc/qualcomm/sc7180/i2…
PS4, Line 155: if (seg == NULL || seg->buf == NULL)
> nit: should be unnecessary
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/36830
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I61221ffff8afe5c7ede5abb9e194e242ab0274d8
Gerrit-Change-Number: 36830
Gerrit-PatchSet: 4
Gerrit-Owner: mturney mturney <mturney(a)codeaurora.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Ravi kumar <rbokka(a)codeaurora.org>
Gerrit-Reviewer: Satya Priya Kakitapalli <c_skakit(a)qualcomm.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: mturney mturney <mturney(a)codeaurora.org>
Gerrit-CC: Akash Asthana <akashast(a)qualcomm.corp-partner.google.com>
Gerrit-CC: Roja Rani Yarubandi <c_rojay(a)qualcomm.corp-partner.google.com>
Gerrit-Comment-Date: Tue, 26 Nov 2019 04:38:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/18526 )
Change subject: binaryPI: Drop CAR teardown without POSTCAR_STAGE
......................................................................
Patch Set 10:
(2 comments)
https://review.coreboot.org/c/coreboot/+/18526/8/src/vendorcode/amd/pi/0063…
File src/vendorcode/amd/pi/00630F01/binaryPI/gcccar.inc:
https://review.coreboot.org/c/coreboot/+/18526/8/src/vendorcode/amd/pi/0063…
PS8, Line 920: wbinvd
> Was this used as a very hacky way to make sure cbmem hits ram during romstage? That is definitely nasty and makes me wonder if S3 resume is even possible doing this.
I kind of doubt it was for cbmem, although its addition predates me. There was definitely a "known" low memory corruption problem for S3 when I started working on it, so that was defeatured for all binaryPI IIRC. In those days, cbmem on AMD was initialized "late". I speculate the wbinvd was a way of preserving CAR data and stack info. I seem to recall Kyösti had solved the non-binaryPI AGESA stack problem by ensuring it was 100% popped when it got reassigned. Also a bit of trivia: a challenge to moving Stoney's cbmem_init to early was that detecting whether migration had occurred was unreliable because the CAR region was over top of DRAM. Intel implementations placed it in MMIO, ensuring FFs were read once CAR was disabled. Aaron pointed me at postcar to get around that.
Kyösti, BTW if I'm able to license the binaryPI glue, or whatever that looks like, we need to make sure that the APs aren't also using a wbinvd! Unsure what implementation made that change. We fixed it for ST, then ultimately changed binaryPI to call out to coreboot for tearing down APs' CAR.
https://review.coreboot.org/c/coreboot/+/18526/8/src/vendorcode/amd/pi/0063…
PS8, Line 1550: * AMD_DISABLE_STACK: Destroy the stack inside the cache. This routine
: * should only be executed on the BSP
> Is there some documentation of what is run on AP's by AGESA and in what state those are?
I sort of implied it in my other comment, however the binary implementations I've looked at use duplicated CAR teardown routines, one still inside AGESA image for the APs, and this one run by the BSP.
When the BSP hits the AmdInitEarly() entry point, it releases the APs which start running from the reset vector (vs. an INIT SIPI). The BSP waits for the APs to catch up inside AmdInitEarly() before parking them and continuing. (Sorry but...) without taking the time to go back and look at it, IIRC the BSP's teardown process triggers the APs to run the internal teardown routine.
--
To view, visit https://review.coreboot.org/c/coreboot/+/18526
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I693c104c3aab3be537c00695cbd764a48bd603b0
Gerrit-Change-Number: 18526
Gerrit-PatchSet: 10
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 26 Nov 2019 02:27:14 +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: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: comment