Attention is currently required from: Lance Zhao, Tim Wawrzynczak.
Hello Lance Zhao, build bot (Jenkins), Tim Wawrzynczak,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/74326
to look at the new patch set (#2).
Change subject: soc/intel: Introduce ioapic_get_sci_pin()
......................................................................
soc/intel: Introduce ioapic_get_sci_pin()
According to ACPI Release 6.5 systems supporting PIC (i8259)
interrupt mechanism need to report IRQ vector for the SCI_INT
field. In PIC mode only IRQ0..15 are allowed hardware vectors.
This change should cover section 5.2.9 to not pass SCI_INT
larger than IRQ15. Section 5.2.15.5 needs follow-up work.
It appears touched platforms currently program SCI as IRQ9.
Change-Id: I723c207f1dcbba5e6fc0452fe1dbd087fad290ee
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/acpi/acpi.c
M src/arch/x86/include/arch/ioapic.h
M src/include/acpi/acpi.h
M src/soc/intel/baytrail/acpi.c
M src/soc/intel/baytrail/fadt.c
M src/soc/intel/baytrail/include/soc/acpi.h
M src/soc/intel/braswell/acpi.c
M src/soc/intel/braswell/fadt.c
M src/soc/intel/braswell/include/soc/acpi.h
M src/soc/intel/common/block/acpi/acpi.c
10 files changed, 122 insertions(+), 92 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/74326/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/74326
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I723c207f1dcbba5e6fc0452fe1dbd087fad290ee
Gerrit-Change-Number: 74326
Gerrit-PatchSet: 2
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Lance Zhao <lance.zhao(a)gmail.com>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Lance Zhao <lance.zhao(a)gmail.com>
Gerrit-Attention: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: YH Lin, Tarun Tuli, Subrata Banik, Kapil Porwal.
Eric Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74257 )
Change subject: mb/google/rex: add variant gpio tables for variant creation
......................................................................
Patch Set 3:
(1 comment)
File src/mainboard/google/rex/variants/baseboard/rex/gpio.c:
https://review.coreboot.org/c/coreboot/+/74257/comment/8c45b3b8_8f415304
PS3, Line 32: DECLARE_WEAK_CROS_GPIOS(cros_gpios);
> you can remove it and just use DECLARE_NO_CROS_GPIOS for template
oh can't do that since no _WEAK for that maybe just put empty array.
--
To view, visit https://review.coreboot.org/c/coreboot/+/74257
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebc098f8d480ac3e1835b00861fd844d97f281a8
Gerrit-Change-Number: 74257
Gerrit-PatchSet: 3
Gerrit-Owner: YH Lin <yueherngl(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Attention: YH Lin <yueherngl(a)google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Comment-Date: Tue, 11 Apr 2023 07:51:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-MessageType: comment
Attention is currently required from: Tarun Tuli, Subrata Banik, Dinesh Gehlot.
Sridhar Siricilla has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74256 )
Change subject: soc/intel/: Store CSE firmware version into cbmem table
......................................................................
Patch Set 8:
(2 comments)
File src/soc/intel/common/block/cse/cse_lite.c:
https://review.coreboot.org/c/coreboot/+/74256/comment/1ffe2460_8ae76ff4
PS7, Line 1089:
: const struct cse_bp_entry *cse_bp = cse_get_bp_entry(RW, &cse_bp_info.bp_info);
: struct cse_fw_partition_info *version;
: version = cbmem_add(CBMEM_ID_CSE_PARTITION_VERSION, sizeof(*version));
: version->cur_cse_fw_version.major = cse_bp->fw_ver.major;
: version->cur_cse_fw_version.minor = cse_bp->fw_ver.minor;
: version->cur_cse_fw_version.hotfix = cse_bp->fw_ver.hotfix;
: version->cur_cse_fw_version.build = cse_bp->fw_ver.build;
: }
:
> > Can't this be handled in the cse_get_bp_info() itself? Doing so, we can avoid resending the comman […]
Make sense as per the flow. Instead of sending HECI command to get CSE Lite version, coreboot can track CSE Lite version in the metadata.
File src/soc/intel/common/block/cse/cse_lite.c:
https://review.coreboot.org/c/coreboot/+/74256/comment/081996da_f1b2d87b
PS8, Line 1082: SOC_INTEL_CSE_LITE_SKU
This flag check is not required since the file get compiled only if SOC_INTEL_CSE_LITE_SKU config is selected.
--
To view, visit https://review.coreboot.org/c/coreboot/+/74256
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I923049d2f1f589f87e1a29e1ac94af7f5fccc2c8
Gerrit-Change-Number: 74256
Gerrit-PatchSet: 8
Gerrit-Owner: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Comment-Date: Tue, 11 Apr 2023 07:50:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-MessageType: comment
Attention is currently required from: YH Lin, Tarun Tuli, Subrata Banik, Kapil Porwal.
Eric Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74257 )
Change subject: mb/google/rex: add variant gpio tables for variant creation
......................................................................
Patch Set 3:
(1 comment)
File src/mainboard/google/rex/variants/baseboard/rex/gpio.c:
https://review.coreboot.org/c/coreboot/+/74257/comment/dc8060df_b63db03f
PS3, Line 32: DECLARE_WEAK_CROS_GPIOS(cros_gpios);
you can remove it and just use DECLARE_NO_CROS_GPIOS for template
--
To view, visit https://review.coreboot.org/c/coreboot/+/74257
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebc098f8d480ac3e1835b00861fd844d97f281a8
Gerrit-Change-Number: 74257
Gerrit-PatchSet: 3
Gerrit-Owner: YH Lin <yueherngl(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Attention: YH Lin <yueherngl(a)google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Comment-Date: Tue, 11 Apr 2023 07:47:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Matt DeVillier, Paul Menzel, Fred Reitberger, Karthik Ramasubramanian, Felix Held.
Grzegorz Bernacki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74266 )
Change subject: amdfwtool: Add --fsp-version option
......................................................................
Patch Set 1:
(4 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/74266/comment/7fcaea9c_4b9d2e15
PS1, Line 9: This version tells amdfwtool to create a text file
: which contains versions of following blobs:
: PSP bootloader (type 0x01),
: SMU firmware (type 0x08),
: AGESA bootloader 0 (type 0x30).
> > Passing this option tells amdfwtool to create a text file, […]
OK, I rephrase according to requested changes.
https://review.coreboot.org/c/coreboot/+/74266/comment/309c63d7_bb0f6d98
PS1, Line 14:
> What is the new switch/option going to be used for? Maybe start with the motivation.
Sure, I'll add it
https://review.coreboot.org/c/coreboot/+/74266/comment/528d0736_63087d50
PS1, Line 16: TEST=Tested on Skyrim device
> If possible, please paste the commands and the output: […]
Yes, I'll add it in the next version
Patchset:
PS1:
> As I do not know, what the option is going to be used for, I think the KISS way would be to just out […]
No problem, I will print the versions to the standard out. What do you think about --print-type0x01-version, --print-type0x08-version and so on?
--
To view, visit https://review.coreboot.org/c/coreboot/+/74266
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idaa3a02ace524f44cfa656e34308bd896016dff6
Gerrit-Change-Number: 74266
Gerrit-PatchSet: 1
Gerrit-Owner: Grzegorz Bernacki
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 11 Apr 2023 07:46:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74296 )
Change subject: soc/intel/xeon_sp: Fix very samll total memory when CXL is enabled
......................................................................
soc/intel/xeon_sp: Fix very samll total memory when CXL is enabled
Processor attached memory should use ram_from_to rather than
reserved_ram_from_to. Treat the calculation of gi_mem_size size as
64MB.
By default SOC_INTEL_HAS_CXL is enabled for Sapphire Rapids platforms,
this should fix small total memory issue.
Tested=On AC without attaching CXL memory, the total memory size is
the same as de-selecting SOC_INTEL_HAS_CXL.
Change-Id: I38e9d138fd284620ac616a65f444e943f1774869
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
---
M src/soc/intel/xeon_sp/uncore.c
1 file changed, 32 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/74296/1
diff --git a/src/soc/intel/xeon_sp/uncore.c b/src/soc/intel/xeon_sp/uncore.c
index 5249a94..2a4cf5c 100644
--- a/src/soc/intel/xeon_sp/uncore.c
+++ b/src/soc/intel/xeon_sp/uncore.c
@@ -249,18 +249,22 @@
if (CONFIG(SOC_INTEL_HAS_CXL)) {
/* 4GiB -> CXL Memory */
uint32_t gi_mem_size;
- gi_mem_size = get_generic_initiator_mem_size();
-
- res = reserved_ram_from_to(dev, index++, 0x100000000,
- mc_values[TOHM_REG] - (uint64_t)gi_mem_size + 1);
+ gi_mem_size = get_generic_initiator_mem_size(); /* unit: 64MB */
+ /*
+ * Memory layout when there is CXL HDM (Host-managed Device Memory):
+ * -------------- <- TOHM
+ * CXL memory regions (pds global variable records the base/size of them)
+ * Processor attached high memory
+ * -------------- <- 0x100000000 (4GB)
+ */
+ res = ram_from_to(dev, index++, 0x100000000,
+ mc_values[TOHM_REG] - ((uint64_t)gi_mem_size << 26) + 1);
LOG_RESOURCE("high_ram", dev, res);
-
/* CXL Memory */
uint8_t i;
for (i = 0; i < pds.num_pds; i++) {
if (pds.pds[i].pd_type == PD_TYPE_PROCESSOR)
continue;
-
if (CONFIG(OCP_VPD)) {
unsigned long flags = IORESOURCE_CACHEABLE;
int cxl_mode = get_cxl_mode_from_vpd();
@@ -269,8 +273,9 @@
else
flags |= IORESOURCE_STORED;
- res = fixed_mem_range_flags(dev, index++, (uint64_t)pds.pds[i].base,
- (uint64_t)pds.pds[i].size, flags);
+ res = fixed_mem_range_flags(dev, index++,
+ (uint64_t)pds.pds[i].base << 26,
+ (uint64_t)pds.pds[i].size << 26, flags);
if (cxl_mode == CXL_SPM)
LOG_RESOURCE("specific_purpose_memory", dev, res);
else
--
To view, visit https://review.coreboot.org/c/coreboot/+/74296
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I38e9d138fd284620ac616a65f444e943f1774869
Gerrit-Change-Number: 74296
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-MessageType: newchange
Attention is currently required from: Sam McNally, David Wu, YH Lin, Lucas Chen, Ren Kuo, Zhuohao Lee, Sheng-Liang Pan.
Eric Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74295 )
Change subject: mb/google/dedede: Create taranza variant
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/74295
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id64e48ff2acd6e827fe586a00376183930ddc7e1
Gerrit-Change-Number: 74295
Gerrit-PatchSet: 1
Gerrit-Owner: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Lucas Chen <lucas.chen(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: Sheng-Liang Pan <sheng-liang.pan(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: YH Lin <yueherngl(a)google.com>
Gerrit-Reviewer: Zhuohao Lee <zhuohao(a)google.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Attention: YH Lin <yueherngl(a)google.com>
Gerrit-Attention: Lucas Chen <lucas.chen(a)quanta.corp-partner.google.com>
Gerrit-Attention: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Attention: Zhuohao Lee <zhuohao(a)google.com>
Gerrit-Attention: Sheng-Liang Pan <sheng-liang.pan(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Tue, 11 Apr 2023 07:45:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment