Marc Jones has posted comments on this change. ( https://review.coreboot.org/22777 )
Change subject: Update vboot submodule to upstream master
......................................................................
Patch Set 1:
This fixes the build issue with depthcharge master.
--
To view, visit https://review.coreboot.org/22777
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I49b1349cfd9266cd815b68759ae89bdffdd0d74b
Gerrit-Change-Number: 22777
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc(a)marcjonesconsulting.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: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Comment-Date: Thu, 07 Dec 2017 22:27:22 +0000
Gerrit-HasComments: No
Tobias Diedrich has uploaded this change for review. ( https://review.coreboot.org/22776
Change subject: intel/sandybridge: Make timC training more robust.
......................................................................
intel/sandybridge: Make timC training more robust.
When using native raminit with https://review.coreboot.org/#/c/22683/
I've found that timC training usually fails unless the ram is
overspecced (i.e. DDR3L-1600 rated for 1.35V works most of the time with
native raminit as DDR3-1333 @1.5V).
Looking at the training data I've found that during timC training it is
reading register values in the 0-4000 range and checking for runs of 0,
but with the failing training the values don't go all the way down to 0.
The solution for me has been to do a thresholing pre-pass, after which
both the DDR3-1333 @1.5V and the DDR3L-1600 @1.35V work fine for me.
Tested:
- Intel NUC DCP847SKE
- RAM slots with 2x4GB Kingston KVR1333D3S9/4G (DDR3-1333 1.5V),
boots fine with native raminit @1.5V
- RAM slots with 2x4GB Kingston KVR16LS11/4G (DDR3L-1600 1.35V),
boots fine with native raminit @1.35V
- Casual use with these settings
Untested:
- I haven't run any extensive longer memtest yet
Change-Id: I9986616e86560c4980ccd8e3e549af53caa15c71
Signed-off-by: Tobias Diedrich <ranma+coreboot(a)tdiedrich.de>
---
M src/northbridge/intel/sandybridge/raminit_common.c
1 file changed, 25 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/22776/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c
index eaef5f7..955d44b 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.c
+++ b/src/northbridge/intel/sandybridge/raminit_common.c
@@ -1546,6 +1546,27 @@
wait_428c(channel);
}
+static void threshold_preprocess(int *data, int count)
+{
+ int min = data[0];
+ int max = min;
+ int i;
+ for (i = 1; i < count; i++) {
+ if (min > data[i]) {
+ min = data[i];
+ }
+ if (max < data[i]) {
+ max = data[i];
+ }
+ }
+ int threshold = min/2 + max/2;
+ for (i = 0; i < count; i++) {
+ data[i] = data[i] > threshold;
+ }
+ printram("threshold=%d min=%d max=%d\n",
+ threshold, min, max);
+}
+
static int discover_timC(ramctr_timing *ctrl, int channel, int slotrank)
{
int timC;
@@ -1577,8 +1598,10 @@
}
}
FOR_ALL_LANES {
- struct run rn =
- get_longest_zero_run(statistics[lane], MAX_TIMC + 1);
+ threshold_preprocess(
+ statistics[lane], ARRAY_SIZE(statistics[lane]));
+ struct run rn = get_longest_zero_run(
+ statistics[lane], ARRAY_SIZE(statistics[lane]));
ctrl->timings[channel][slotrank].lanes[lane].timC = rn.middle;
if (rn.all) {
printk(BIOS_EMERG, "timC discovery failed: %d, %d, %d\n",
--
To view, visit https://review.coreboot.org/22776
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9986616e86560c4980ccd8e3e549af53caa15c71
Gerrit-Change-Number: 22776
Gerrit-PatchSet: 1
Gerrit-Owner: Tobias Diedrich <ranma+coreboot(a)tdiedrich.de>
Hello build bot (Jenkins), Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/22765
to look at the new patch set (#3).
Change subject: soc/amd/common: Move files to common/block
......................................................................
soc/amd/common: Move files to common/block
The following files need to be moved: amd_pci_util.c, amd_pci_util.h and
spi.c. The remaining files are AGESA related and will be part of a separate
issue/commit.
BUG=b:62240201
TEST=Build with no error gardenia and kahlee (no code change, just folder
reorg).
Change-Id: I3f965afa21124d4874d3b7bfe0f404a58b070e23
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/mainboard/amd/gardenia/mainboard.c
M src/mainboard/amd/gardenia/mptable.c
M src/mainboard/google/kahlee/mainboard.c
M src/mainboard/google/kahlee/mptable.c
M src/soc/amd/common/Makefile.inc
R src/soc/amd/common/block/include/amdblocks/amd_pci_util.h
A src/soc/amd/common/block/pci/Kconfig
A src/soc/amd/common/block/pci/Makefile.inc
R src/soc/amd/common/block/pci/amd_pci_util.c
A src/soc/amd/common/block/spi/Kconfig
A src/soc/amd/common/block/spi/Makefile.inc
R src/soc/amd/common/block/spi/spi.c
M src/soc/amd/stoneyridge/Kconfig
M src/soc/amd/stoneyridge/southbridge.c
14 files changed, 31 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/22765/3
--
To view, visit https://review.coreboot.org/22765
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3f965afa21124d4874d3b7bfe0f404a58b070e23
Gerrit-Change-Number: 22765
Gerrit-PatchSet: 3
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>