Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45103 )
Change subject: Add config IPMI_KCS_IO_TIMEOUT for IPMI KCS timeout value
......................................................................
Add config IPMI_KCS_IO_TIMEOUT for IPMI KCS timeout value
The current value of 1000 cycles of 100ns would see timeout
occurs on OCP Delta Lake, especially when the log level is
smaller than 8 because the prink(BIOS_SPEW, ..) in ipmi_kcs_status()
creates delay and avoid the problem, but after setting log level
to 4 we see the timeout occurs. Default remains as 1000.
Change-Id: I42ede1d9200bb5d0dbb455d2ff66e2816f10e86b
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
---
M src/drivers/ipmi/Kconfig
M src/drivers/ipmi/ipmi_kcs.c
2 files changed, 9 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/45103/1
diff --git a/src/drivers/ipmi/Kconfig b/src/drivers/ipmi/Kconfig
index 44ed17e..f86f609 100644
--- a/src/drivers/ipmi/Kconfig
+++ b/src/drivers/ipmi/Kconfig
@@ -33,3 +33,10 @@
help
The PNP base address of BMC KCS. It must be equal to the
pnp port value defined in devicetree for chip drivers/ipmi.
+
+config IPMI_KCS_IO_TIMEOUT
+ int
+ default 1000
+ depends on IPMI_KCS
+ help
+ The timeout time for a single KCS IO in the unit of 100 microseconds.
diff --git a/src/drivers/ipmi/ipmi_kcs.c b/src/drivers/ipmi/ipmi_kcs.c
index 1d6b71c..e1f6c75 100644
--- a/src/drivers/ipmi/ipmi_kcs.c
+++ b/src/drivers/ipmi/ipmi_kcs.c
@@ -35,7 +35,7 @@
static int wait_ibf_timeout(int port)
{
- int timeout = 1000;
+ int timeout = CONFIG_IPMI_KCS_IO_TIMEOUT;
do {
if (!(ipmi_kcs_status(port) & IPMI_KCS_IBF))
return 0;
@@ -47,7 +47,7 @@
static int wait_obf_timeout(int port)
{
- int timeout = 1000;
+ int timeout = CONFIG_IPMI_KCS_IO_TIMEOUT;
do {
if ((ipmi_kcs_status(port) & IPMI_KCS_OBF))
return 0;
--
To view, visit https://review.coreboot.org/c/coreboot/+/45103
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I42ede1d9200bb5d0dbb455d2ff66e2816f10e86b
Gerrit-Change-Number: 45103
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-MessageType: newchange
Sam Lewis has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44381 )
Change subject: soc/ti/am335x: Fix MLO build
......................................................................
soc/ti/am335x: Fix MLO build
Allows the AM335X to boot from the coreboot generated MLO by:
- Fixing the load address in the MLO header to be the start of SRAM
- Fixing the way that the bootblock size is calculated (which is
embedded into the MLO so that the MLO knows how much to load into
SRAM). The previous method relied on parsing cbfstool output - the
output has changed format since this was originally written so this no
longer works. Directly using the filesize of the built binary is
probably a more stable way of doing this.
As part of this, the start addresses of SRAM and DRAM were fixed to be
consistent with the datasheet.
TEST: Booted Beaglebone Black from MLO placed at offset 0x00 on an SD card
Change-Id: I514d7cda65ddcbf27e78286dc6857c9e81ce6f9e
Signed-off-by: Sam Lewis <sam.vr.lewis(a)gmail.com>
---
M src/soc/ti/am335x/Makefile.inc
M src/soc/ti/am335x/bootblock_media.c
M src/soc/ti/am335x/header.c
M src/soc/ti/am335x/memlayout.ld
4 files changed, 9 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/44381/1
diff --git a/src/soc/ti/am335x/Makefile.inc b/src/soc/ti/am335x/Makefile.inc
index dd9e093..06ac1ee 100644
--- a/src/soc/ti/am335x/Makefile.inc
+++ b/src/soc/ti/am335x/Makefile.inc
@@ -29,17 +29,13 @@
header_ld := $(call src-to-obj,omap-header,$(dir)/header.ld)
get_header_size= \
- $(eval omap_header_info=$(shell $(CBFSTOOL) $(1) print | grep $(2))) \
- $(shell echo $$(($(word 2,$(omap_header_info)) + \
- $(word 4,$(omap_header_info)))))
+ $(shell echo $$(wc -c < $(objcbfs)/bootblock.bin))
-$(obj)/omap-header.bin: $$(omap-header-objs) $(obj)/coreboot.rom
+$(obj)/omap-header.bin: $$(omap-header-objs) $(objcbfs)/bootblock.bin
@printf " CC $(subst $(obj)/,,$(@))\n"
$(CC_omap-header) -nostdlib -nostartfiles -static -include $(obj)/config.h \
-Wl,--defsym,header_load_size=$(strip \
- $(call get_header_size,$(obj)/coreboot.rom, \
- $(CONFIG_CBFS_PREFIX)/romstage \
- ) \
+ $(call get_header_size,$(obj)/coreboot.rom) \
) \
-o $@.tmp $< -T $(header_ld)
$(OBJCOPY_omap-header) --only-section=".header" -O binary $@.tmp $@
diff --git a/src/soc/ti/am335x/bootblock_media.c b/src/soc/ti/am335x/bootblock_media.c
index 050e0b7..1c65c38 100644
--- a/src/soc/ti/am335x/bootblock_media.c
+++ b/src/soc/ti/am335x/bootblock_media.c
@@ -5,7 +5,7 @@
/* FIXME: No idea how big the internal SRAM actually is. */
static const struct mem_region_device boot_dev =
- MEM_REGION_DEV_RO_INIT(_dram, CONFIG_ROM_SIZE);
+ MEM_REGION_DEV_RO_INIT(_sram, CONFIG_ROM_SIZE);
const struct region_device *boot_device_ro(void)
{
diff --git a/src/soc/ti/am335x/header.c b/src/soc/ti/am335x/header.c
index 9edfdd0..c0a7589 100644
--- a/src/soc/ti/am335x/header.c
+++ b/src/soc/ti/am335x/header.c
@@ -52,6 +52,6 @@
},
.image_header = {
.size = (uintptr_t)&header_load_size,
- .destination = (uintptr_t)_dram
+ .destination = (uintptr_t)_sram
}
};
diff --git a/src/soc/ti/am335x/memlayout.ld b/src/soc/ti/am335x/memlayout.ld
index 78528e6..991e401 100644
--- a/src/soc/ti/am335x/memlayout.ld
+++ b/src/soc/ti/am335x/memlayout.ld
@@ -6,11 +6,14 @@
SECTIONS
{
- DRAM_START(0x40000000)
+ SRAM_START(0x402f0400)
BOOTBLOCK(0x402f0400, 20K)
ROMSTAGE(0x402f5400, 88K)
FMAP_CACHE(0x4030b400, 2K)
STACK(0x4030be00, 4K)
+ SRAM_END(0x40310000)
+ DRAM_START(0x80000000)
+
RAMSTAGE(0x80200000, 192K)
/* TODO: Implement MMU support and move TTB to a better location. */
--
To view, visit https://review.coreboot.org/c/coreboot/+/44381
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I514d7cda65ddcbf27e78286dc6857c9e81ce6f9e
Gerrit-Change-Number: 44381
Gerrit-PatchSet: 1
Gerrit-Owner: Sam Lewis <sam.vr.lewis(a)gmail.com>
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-MessageType: newchange
Sam Lewis has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44380 )
Change subject: mb/ti/beaglebone: Init UART in early init
......................................................................
mb/ti/beaglebone: Init UART in early init
The console is initialized before mainboard_init, so the peripheral
should be initialized in bootblock_mainboard_early_init rather than
bootblock_mainboard_init.
Change-Id: I9f4ba29798eb0b1efea76f5ade4a234fb35a2f83
Signed-off-by: Sam Lewis <sam.vr.lewis(a)gmail.com>
---
M src/mainboard/ti/beaglebone-black/bootblock.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/44380/1
diff --git a/src/mainboard/ti/beaglebone-black/bootblock.c b/src/mainboard/ti/beaglebone-black/bootblock.c
index ca1a390..b7b0ee9 100644
--- a/src/mainboard/ti/beaglebone-black/bootblock.c
+++ b/src/mainboard/ti/beaglebone-black/bootblock.c
@@ -9,7 +9,7 @@
#include "leds.h"
-void bootblock_mainboard_init(void)
+void bootblock_mainboard_early_init(void)
{
write32(&am335x_cm_wkup->wkup_gpio0, CM_ST_SW_WKUP | CM_FCLK_EN);
write32(&am335x_cm_per->gpio1, CM_ST_SW_WKUP | CM_FCLK_EN);
--
To view, visit https://review.coreboot.org/c/coreboot/+/44380
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9f4ba29798eb0b1efea76f5ade4a234fb35a2f83
Gerrit-Change-Number: 44380
Gerrit-PatchSet: 1
Gerrit-Owner: Sam Lewis <sam.vr.lewis(a)gmail.com>
Gerrit-MessageType: newchange
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45049 )
Change subject: soc/intel/common/block/uart/Kconfig: Drop unused symbols
......................................................................
soc/intel/common/block/uart/Kconfig: Drop unused symbols
They are not referenced anywhere.
Change-Id: Iff2d3b0063da5796e0bff1ada08b0a544c3f9a5a
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/soc/intel/common/block/uart/Kconfig
1 file changed, 0 insertions(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/45049/1
diff --git a/src/soc/intel/common/block/uart/Kconfig b/src/soc/intel/common/block/uart/Kconfig
index e731465..7d30c41 100644
--- a/src/soc/intel/common/block/uart/Kconfig
+++ b/src/soc/intel/common/block/uart/Kconfig
@@ -4,18 +4,6 @@
help
Intel Processor common UART support
-config SOC_INTEL_COMMON_BLOCK_UART_LPSS_CLK_M_VAL
- depends on SOC_INTEL_COMMON_BLOCK_UART
- hex
- help
- Clock m-divisor value for m/n divider
-
-config SOC_INTEL_COMMON_BLOCK_UART_LPSS_CLK_N_VAL
- depends on SOC_INTEL_COMMON_BLOCK_UART
- hex
- help
- Clock m-divisor value for m/n divider
-
config INTEL_LPSS_UART_FOR_CONSOLE
bool
depends on SOC_INTEL_COMMON_BLOCK_UART
--
To view, visit https://review.coreboot.org/c/coreboot/+/45049
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iff2d3b0063da5796e0bff1ada08b0a544c3f9a5a
Gerrit-Change-Number: 45049
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Rob Barnes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44950 )
Change subject: util/spd_tools: Support comments in mem_parts_used
......................................................................
util/spd_tools: Support comments in mem_parts_used
Allow comments prefixed with '#' in mem_parts_used csv file.
BUG=None
TEST=Run gen_part_id with mem_parts_used file containing comments
Change-Id: Ia9e274d45aa06dea7a3a5f8cd1c8ee2b23398876
Signed-off-by: Rob Barnes <robbarnes(a)google.com>
---
M src/mainboard/google/zork/variants/berknip/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/dirinboz/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/morphius/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/trembyle/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
M src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
M util/spd_tools/ddr4/gen_part_id.go
9 files changed, 73 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/44950/1
diff --git a/src/mainboard/google/zork/variants/berknip/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/berknip/spd/mem_parts_used.txt
index 69d65d2..a973238 100644
--- a/src/mainboard/google/zork/variants/berknip/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/berknip/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
K4A8G165WC-BCTD, 0
MT40A512M16TB-062E:J, 2
H5AN8G6NDJR-XNC, 3
diff --git a/src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt
index f254851..f24e86b 100644
--- a/src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
HMA851S6CJR6N-VK, 0
H5ANAG6NCMR-VKC, 1
K4A8G165WC-BCTD, 2
diff --git a/src/mainboard/google/zork/variants/dirinboz/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/dirinboz/spd/mem_parts_used.txt
index 1d19915..5833b61 100644
--- a/src/mainboard/google/zork/variants/dirinboz/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/dirinboz/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
K4A8G165WC-BCTD, 2
K4A8G165WC-BCWE, 4
H5AN8G6NDJR-XNC, 5
diff --git a/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
index 27fb51b..92d5fdc 100644
--- a/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
H5AN8G6NCJR-VKC,0
MT40A512M16TB-062E:J,2
MT40A1G16KNR-075:E, 3
diff --git a/src/mainboard/google/zork/variants/morphius/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/morphius/spd/mem_parts_used.txt
index b56a6b4..cb9cfff 100644
--- a/src/mainboard/google/zork/variants/morphius/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/morphius/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
K4AAG165WA-BCWE, 0
MT40A512M16TB-062E:J, 2
MT40A1G16KD-062E:E, 3
diff --git a/src/mainboard/google/zork/variants/trembyle/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/trembyle/spd/mem_parts_used.txt
index f8a7229..bb33a61 100644
--- a/src/mainboard/google/zork/variants/trembyle/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/trembyle/spd/mem_parts_used.txt
@@ -1,2 +1,11 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
H5AN8G6NCJR-VKC, 0
H5ANAG6NCMR-VKC, 1
diff --git a/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
index ac7b794b..49c13cb 100644
--- a/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/vilboz/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
H5AN8G6NCJR-VKC, 0
H5ANAG6NCMR-VKC, 1
K4A8G165WC-BCWE, 2
diff --git a/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
index fcee866..61a580a 100644
--- a/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
@@ -1,3 +1,12 @@
+# This is a CSV file containg a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Each part must also be listed in util/spd_tools/ddr4/global_ddr4_mem_parts.json.txt.
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# gen_part_id tool from util/spd_tools/ddr4.
+# See util/spd_tools/ddr4/README.md for more details and instructions.
+
+# Part Name, Fixed ID (optional)
H5AN8G6NCJR-XNC, 1
MT40A512M16TB-062E:J, 8
H5AN8G6NCJR-XNC, 9
diff --git a/util/spd_tools/ddr4/gen_part_id.go b/util/spd_tools/ddr4/gen_part_id.go
index c0098ab..135d5c8 100644
--- a/util/spd_tools/ddr4/gen_part_id.go
+++ b/util/spd_tools/ddr4/gen_part_id.go
@@ -68,6 +68,7 @@
r := csv.NewReader(f)
r.FieldsPerRecord = -1 // Allow variable length records
r.TrimLeadingSpace = true
+ r.Comment = '#'
parts := []usedPart{}
--
To view, visit https://review.coreboot.org/c/coreboot/+/44950
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia9e274d45aa06dea7a3a5f8cd1c8ee2b23398876
Gerrit-Change-Number: 44950
Gerrit-PatchSet: 1
Gerrit-Owner: Rob Barnes <robbarnes(a)google.com>
Gerrit-MessageType: newchange