Xi Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46585 )
Change subject: soc/mediatek/mt8192: add dram log prefix
......................................................................
soc/mediatek/mt8192: add dram log prefix
1 Add dram log prefix: [MEM]
2 Print error code when memtest fails.
Signed-off-by: Xi Chen <xixi.chen(a)mediatek.com>
Change-Id: I6c53c9cecf5996227a3e343fc703b9880d9afeac
---
M src/soc/mediatek/mt8192/Kconfig
M src/soc/mediatek/mt8192/memory.c
2 files changed, 9 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/46585/1
diff --git a/src/soc/mediatek/mt8192/Kconfig b/src/soc/mediatek/mt8192/Kconfig
index 1d1cf7b..2932f25 100644
--- a/src/soc/mediatek/mt8192/Kconfig
+++ b/src/soc/mediatek/mt8192/Kconfig
@@ -32,10 +32,14 @@
bool
default n
help
- This options enables DRAM calibration with multiple frequencies (low,
+ This option enables DRAM calibration with multiple frequencies (low,
medium and high) for DVFS feature.
config MEMORY_TEST
bool
default y
+ help
+ This option will do memory basic compare test to verify the dram read
+ or write is as expect.
+
endif
diff --git a/src/soc/mediatek/mt8192/memory.c b/src/soc/mediatek/mt8192/memory.c
old mode 100644
new mode 100755
index b5363b0..19a702d
--- a/src/soc/mediatek/mt8192/memory.c
+++ b/src/soc/mediatek/mt8192/memory.c
@@ -15,13 +15,13 @@
const struct ddr_base_info *ddr_info = &dparam->ddr_info;
for (u8 rank = RANK_0; rank < ddr_info->support_ranks; rank++) {
- int i = complex_mem_test(addr, 0x2000);
+ int result = complex_mem_test(addr, 0x2000);
printk(BIOS_DEBUG, "[MEM] complex R/W mem test %s\n",
- (i == 0) ? "pass" : "fail");
+ (result == CB_SUCCESS) ? "pass" : "fail");
- if (i != 0) {
- printk(BIOS_ERR, "DRAM memory test failed\n");
+ if (result != 0) {
+ printk(BIOS_ERR, "[MEM] DRAM memory test failed: %d\n", result);
return -1;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/46585
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6c53c9cecf5996227a3e343fc703b9880d9afeac
Gerrit-Change-Number: 46585
Gerrit-PatchSet: 1
Gerrit-Owner: Xi Chen <xixi.chen(a)mediatek.com>
Gerrit-MessageType: newchange
Hello build bot (Jenkins), Furquan Shaikh, Jamie Ryu, Maulik V Vaghela, Rizwan Qureshi, Stefan Reinauer, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/46441
to look at the new patch set (#10).
Change subject: util/ifdtool: Enable CPU read of the ME region
......................................................................
util/ifdtool: Enable CPU read of the ME region
We are implementing a mechanism in coreboot to update CSME firmware,
this requires coreboot to be able to read CSME region. Exposing the
CSME data is not an issue since the data stored by CSE is all encrypted.
This patch provides a command line option "-r" which will enable read
access to CSME region when locking.
Without this change, locking SPI regions using ifdtool will block BIOS
access to read/access CSME. This will cause failure since BIOS can't
read basic information such as CSME version.
TEST=Flashrom returns success while erasing the SI_ME region.
After rebooting the DUT, DUT boots into OS without any issues on
Drawlat EVT.
Signed-off-by: Usha P <usha.p(a)intel.com>
Change-Id: I1d9a8e17fba19b717453476fbcb7bcf95b278abe
---
M util/ifdtool/ifdtool.c
1 file changed, 29 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/46441/10
--
To view, visit https://review.coreboot.org/c/coreboot/+/46441
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1d9a8e17fba19b717453476fbcb7bcf95b278abe
Gerrit-Change-Number: 46441
Gerrit-PatchSet: 10
Gerrit-Owner: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Jamie Ryu <jamie.m.ryu(a)intel.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/45538 )
Change subject: em100: Always install signal handler
......................................................................
em100: Always install signal handler
Always catch SIGINT, because we don't want the tool to be interrupted
half way through operations. This might leave the EM100Pro in a bad state
that requires physically reconnecting the device. This renders the tool
virtually unusable for lab setups.
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Change-Id: I649dc491f68f764fdb1352599ff17b36e3d39fd8
---
M em100.c
1 file changed, 13 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/38/45538/1
diff --git a/em100.c b/em100.c
index 49d0d1e..580290a 100644
--- a/em100.c
+++ b/em100.c
@@ -840,6 +840,7 @@
unsigned long address_offset = 0;
unsigned int spi_start_address = 0;
const char *voltage = NULL;
+ struct sigaction signal_action;
while ((opt = getopt_long(argc, argv, "c:d:a:m:u:rsvtO:F:f:g:S:V:p:DCx:lUhT",
longopts, &idx)) != -1) {
@@ -936,6 +937,18 @@
if (desiredchip && !chip)
return 1;
+ /* Set up signal handler. This is used for two reasons:
+ * 1) to create a way to cleanly exit trace mode.
+ * 2) to make sure that the em100 is not left in an improper state
+ * when receiving SIGINT for other reasons during operation. In
+ * this second case, we just ignore SIGINT until em100 naturally
+ * terminates or receives a second signal. This is OK because the
+ * utility is short-running in nature.
+ */
+ signal_action.sa_handler = exit_handler;
+ signal_action.sa_flags = 0;
+ sigemptyset(&signal_action.sa_mask);
+ sigaction(SIGINT, &signal_action, NULL);
if (em100.hwversion == HWVERSION_EM100PRO || em100.hwversion == HWVERSION_EM100PRO_EARLY) {
printf("MCU version: %d.%02d\n", em100.mcu >> 8, em100.mcu & 0xff);
@@ -1177,8 +1190,6 @@
}
if (trace || terminal) {
- struct sigaction signal_action;
-
if ((holdpin == NULL) && (!set_hold_pin_state(&em100, 3))) {
printf("Error: Failed to set EM100 to input\n");
return 1;
@@ -1200,10 +1211,6 @@
}
printf(". Press CTL-C to exit.\n\n");
- signal_action.sa_handler = exit_handler;
- signal_action.sa_flags = 0;
- sigemptyset(&signal_action.sa_mask);
- sigaction(SIGINT, &signal_action, NULL);
while (!do_exit_flag) {
if (trace)
--
To view, visit https://review.coreboot.org/c/em100/+/45538
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: em100
Gerrit-Branch: master
Gerrit-Change-Id: I649dc491f68f764fdb1352599ff17b36e3d39fd8
Gerrit-Change-Number: 45538
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-MessageType: newchange
Hello build bot (Jenkins), Furquan Shaikh, Jamie Ryu, Maulik V Vaghela, Rizwan Qureshi, Stefan Reinauer, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/46441
to look at the new patch set (#9).
Change subject: util/ifdtool: Enable CPU read of the ME region
......................................................................
util/ifdtool: Enable CPU read of the ME region
We are implementing a mechanism in coreboot to update CSME firmware,
this requires coreboot to be able to read CSME region. Exposing the
CSME data is not an issue since the data stored by CSE is all encrypted.
This patch provides a command line option "-r" which will enable read
access to CSME region when locking.
Without this change, locking SPI regions using ifdtool will block BIOS
access to read/access CSME. This will cause failure since BIOS can't
read basic information such as CSME version.
TEST=Flashrom returns success while erasing the SI_ME region.
After rebooting the DUT, DUT boots into OS without any issues on
Drawlat EVT.
Signed-off-by: Usha P <usha.p(a)intel.com>
Change-Id: I1d9a8e17fba19b717453476fbcb7bcf95b278abe
---
M util/ifdtool/ifdtool.c
1 file changed, 30 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/46441/9
--
To view, visit https://review.coreboot.org/c/coreboot/+/46441
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1d9a8e17fba19b717453476fbcb7bcf95b278abe
Gerrit-Change-Number: 46441
Gerrit-PatchSet: 9
Gerrit-Owner: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Jamie Ryu <jamie.m.ryu(a)intel.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Hung-Te Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41503 )
Change subject: mb/google/kukui: Change AP ADC channel 4 to be high bits of RAM code
......................................................................
mb/google/kukui: Change AP ADC channel 4 to be high bits of RAM code
Kukui (eMCP, discrete) and Jacuzzi (discrete) are currently sharing same
memory code table with only one ADC (12 levels) and we are running out
of RAM IDs.
Considering there may be lots of requests of adding new second source
DRAM in future, we decided to increase the RAM code mapping table
instead of doing model-specific table. Now both ADC 2 and 4 will be RAM
code, and SKU straps will be moved from AP (ADC 2) to EC.
All existing devices should have grounded both AP SKU and EC SKU (e.g.,
0) so there should be no backward compatible issues.
BUG=b:156691665
TEST=make; boots on Kukui
BRANCH=kukui
Change-Id: Ib4f4866aa26fd9ea797c1b74b6b59349f1898ccd
Signed-off-by: Hung-Te Lin <hungte(a)chromium.org>
---
M src/mainboard/google/kukui/boardid.c
1 file changed, 9 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/41503/1
diff --git a/src/mainboard/google/kukui/boardid.c b/src/mainboard/google/kukui/boardid.c
index 1b610ed..a2487b4 100644
--- a/src/mainboard/google/kukui/boardid.c
+++ b/src/mainboard/google/kukui/boardid.c
@@ -26,8 +26,8 @@
enum {
LCM_ID_CHANNEL = 2, /* ID of LCD Module on schematics. */
- RAM_ID_CHANNEL = 3,
- SKU_ID_CHANNEL = 4,
+ RAM_L_ID_CHANNEL = 3, /* Low 4 bits of RAM code */
+ RAM_H_ID_CHANNEL = 4, /* High 4 bits of RAM code */
};
static const int ram_voltages[ADC_LEVELS] = {
@@ -64,8 +64,8 @@
static const int *adc_voltages[] = {
[LCM_ID_CHANNEL] = lcm_voltages,
- [RAM_ID_CHANNEL] = ram_voltages,
- [SKU_ID_CHANNEL] = ram_voltages, /* SKU ID is sharing RAM voltages. */
+ [RAM_L_ID_CHANNEL] = ram_voltages,
+ [RAM_H_ID_CHANNEL] = ram_voltages,
};
static uint32_t get_adc_index(unsigned int channel)
@@ -101,7 +101,7 @@
return cached_sku_id;
}
- /* Quirk for Kukui: All Rev1/Sku0 had incorrectly set SKU_ID=1. */
+ /* Quirk for Kukui: All Rev1/Sku0 had incorrectly set SKU ID=1. */
if (CONFIG(BOARD_GOOGLE_KUKUI)) {
if (board_id() == 1) {
cached_sku_id = 0;
@@ -112,10 +112,10 @@
/*
* The SKU (later used for device tree matching) is combined from:
* ADC2[4bit/H] = straps on LCD module (type of panel).
- * ADC4[4bit/L] = SKU ID from board straps.
+ * EC [4bit/L] = straps on EC SKU ID straps.
*/
cached_sku_id = (get_adc_index(LCM_ID_CHANNEL) << 4 |
- get_adc_index(SKU_ID_CHANNEL));
+ google_chromeec_get_sku_id());
return cached_sku_id;
}
@@ -124,6 +124,7 @@
static uint32_t cached_ram_code = BOARD_ID_INIT;
if (cached_ram_code == BOARD_ID_INIT)
- cached_ram_code = get_adc_index(RAM_ID_CHANNEL);
+ cached_ram_code = (get_adc_index(RAM_H_ID_CHANNEL) << 4 |
+ get_adc_index(RAM_L_ID_CHANNEL));
return cached_ram_code;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/41503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib4f4866aa26fd9ea797c1b74b6b59349f1898ccd
Gerrit-Change-Number: 41503
Gerrit-PatchSet: 1
Gerrit-Owner: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-MessageType: newchange
Morgan Jang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46650 )
Change subject: soc/intel/xeon_sp/cpx: Set SLEEP_BUTTON flag in ACPI FADT
......................................................................
soc/intel/xeon_sp/cpx: Set SLEEP_BUTTON flag in ACPI FADT
Set SLEEP_BUTTON flag in ACPI FADT to indicate that no sleep button on
Copperlake platform.
Change-Id: I268c178dfc094299ea6ec239aa1a7c82ccdb0410
Signed-off-by: Morgan Jang <Morgan_Jang(a)wiwynn.com>
---
M src/soc/intel/xeon_sp/cpx/acpi.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/46650/1
diff --git a/src/soc/intel/xeon_sp/cpx/acpi.c b/src/soc/intel/xeon_sp/cpx/acpi.c
index a1ebc4a..a1af52f 100644
--- a/src/soc/intel/xeon_sp/cpx/acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/acpi.c
@@ -152,7 +152,7 @@
fadt->day_alrm = 0xd;
fadt->flags |= ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | ACPI_FADT_C2_MP_SUPPORTED |
- ACPI_FADT_PLATFORM_CLOCK;
+ ACPI_FADT_PLATFORM_CLOCK | ACPI_FADT_SLEEP_BUTTON;
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
--
To view, visit https://review.coreboot.org/c/coreboot/+/46650
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I268c178dfc094299ea6ec239aa1a7c82ccdb0410
Gerrit-Change-Number: 46650
Gerrit-PatchSet: 1
Gerrit-Owner: Morgan Jang <Morgan_Jang(a)wiwynn.com>
Gerrit-MessageType: newchange
Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/45537 )
Change subject: Update to use upstream version 4.3.10
......................................................................
Update to use upstream version 4.3.10
Upstream 4.3.10 is using a different download slot, adjusting
the makechips.sh script.
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Change-Id: I740885e4773dcbd236d1a645e03b6896bf39c0d1
---
M makechips.sh
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/37/45537/1
diff --git a/makechips.sh b/makechips.sh
index fcf0070..8a2d901 100755
--- a/makechips.sh
+++ b/makechips.sh
@@ -12,7 +12,7 @@
# GNU General Public License for more details.
#
-URL="https://www.dediprog.com/download/save/78.msi"
+URL="https://www.dediprog.com/download/save/1145.msi"
VURL="https://www.dediprog.com/download?productCategory=SPI+Flash+Solution&produc…"
if ! which curl > /dev/null; then
--
To view, visit https://review.coreboot.org/c/em100/+/45537
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: em100
Gerrit-Branch: master
Gerrit-Change-Id: I740885e4773dcbd236d1a645e03b6896bf39c0d1
Gerrit-Change-Number: 45537
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-MessageType: newchange