Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/23090
Change subject: sb/intel/i82801ix: Don't select HAVE_INTEL_FIRMWARE on Q35-QEMU
......................................................................
sb/intel/i82801ix: Don't select HAVE_INTEL_FIRMWARE on Q35-QEMU
The Qemu q35 target doesn't support or needs Intel Firmware blobs so
it doesn't make sense to select that option on this hardware.
The result of this change will be that when changing the ROM chip
size, CBFS_SIZE will automatically fill the whole flash which is
desirable in this case.
Change-Id: I89b0c2a7b3e9c163ce4b4eb5b38ab5fa70ba3cfa
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/southbridge/intel/i82801ix/Kconfig
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/23090/1
diff --git a/src/southbridge/intel/i82801ix/Kconfig b/src/southbridge/intel/i82801ix/Kconfig
index 6879bce..fcf2eb5 100644
--- a/src/southbridge/intel/i82801ix/Kconfig
+++ b/src/southbridge/intel/i82801ix/Kconfig
@@ -25,7 +25,7 @@
select HAVE_SMI_HANDLER
select HAVE_USBDEBUG_OPTIONS
select SOUTHBRIDGE_INTEL_COMMON_GPIO
- select HAVE_INTEL_FIRMWARE
+ select HAVE_INTEL_FIRMWARE if !BOARD_EMULATION_QEMU_X86_Q35
if SOUTHBRIDGE_INTEL_I82801IX
--
To view, visit https://review.coreboot.org/23090
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I89b0c2a7b3e9c163ce4b4eb5b38ab5fa70ba3cfa
Gerrit-Change-Number: 23090
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/23088 )
Change subject: nb/intel/sandybridge: Reduce storage size
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
https://review.coreboot.org/#/c/23088/1/src/northbridge/intel/sandybridge/r…
File src/northbridge/intel/sandybridge/raminit_common.c:
https://review.coreboot.org/#/c/23088/1/src/northbridge/intel/sandybridge/r…
PS1, Line 2106: MIN(MAX(timC, 0), MAX_TIMC);
I haven't check what exactly this function is supposed to do but wouldn't you want a warning on overflows?
--
To view, visit https://review.coreboot.org/23088
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia3bb026fb1bd81b66f8a5be333760990d924071f
Gerrit-Change-Number: 23088
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 04 Jan 2018 11:50:42 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/23087 )
Change subject: nb/intel/sandybridge/raminit: Add workaround for timC
......................................................................
Patch Set 1:
Is this something that ought to be constant for one board?
--
To view, visit https://review.coreboot.org/23087
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I535ea4e320c4572bfae55ce1d0f2c1723e9c54d6
Gerrit-Change-Number: 23087
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tobias Diedrich <ranma+coreboot(a)tdiedrich.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 04 Jan 2018 11:46:58 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/23087
Change subject: nb/intel/sandybridge/raminit: Add workaround for timC
......................................................................
nb/intel/sandybridge/raminit: Add workaround for timC
The initial phase between CMD and CLK can be calculated if the board
does follow the design guidelines. Some do not and may have a different
phase. As we don't know we have to test.
Add a loop that changes the initial phase in quarter steps to fix the
issue "timC discovery failed". The additional loop is only
taken on failed timC discovery and should have no influence on working
boards.
Tested on Lenovo T430.
Needs test on affected hardware.
Change-Id: I535ea4e320c4572bfae55ce1d0f2c1723e9c54d6
Signed-off-by: Patrick Rudolph <siro(a)das-labor.org>
---
M src/northbridge/intel/sandybridge/raminit_common.c
1 file changed, 26 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/23087/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c
index eaef5f7..0d84cd6 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.c
+++ b/src/northbridge/intel/sandybridge/raminit_common.c
@@ -2076,11 +2076,32 @@
write32(DEFAULT_MCHBAR + 0x4288 + (channel << 10), 0);
}
- FOR_ALL_CHANNELS FOR_ALL_POPULATED_RANKS {
- err = discover_timC(ctrl, channel, slotrank);
- if (err)
- return err;
- }
+ do {
+ FOR_ALL_CHANNELS {
+ FOR_ALL_POPULATED_RANKS {
+ err = discover_timC(ctrl, channel, slotrank);
+ if (err)
+ break;
+ }
+ if (err)
+ break;
+ }
+
+ if (err) {
+ /*
+ * This path is rarely taken and a result of ignorance.
+ * In case the board doesn't follow design guidelines,
+ * the calculated value of reg_c14_offset doesn't work.
+ * As it only affects a very small amount of boards and
+ * the real value is discovered in a later step, just
+ * try to find a "good" one for now.
+ * Increment CLK/CMD phase offset by one quarter.
+ */
+ ctrl->reg_c14_offset += 128 / 4;
+ }
+ } while (err && ctrl->reg_c14_offset < 128);
+ if (err)
+ return err;
FOR_ALL_POPULATED_CHANNELS
program_timings(ctrl, channel);
--
To view, visit https://review.coreboot.org/23087
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I535ea4e320c4572bfae55ce1d0f2c1723e9c54d6
Gerrit-Change-Number: 23087
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>