Attention is currently required from: Arthur Heymans, Christian Walter, Johnny Lin, Lean Sheng Tan, Patrick Rudolph, Tim Chu.
Shuo Liu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81043?usp=email )
Change subject: soc/intel/xeon_sp: Add dev_find_all_devices_on_socket
......................................................................
soc/intel/xeon_sp: Add dev_find_all_devices_on_socket
Change-Id: I163eacae363334919fd66d571b7e0415e77bd52d
Signed-off-by: Shuo Liu <shuo.liu(a)intel.com>
---
M src/soc/intel/xeon_sp/chip_common.c
M src/soc/intel/xeon_sp/include/soc/chip_common.h
2 files changed, 21 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/81043/1
diff --git a/src/soc/intel/xeon_sp/chip_common.c b/src/soc/intel/xeon_sp/chip_common.c
index 0c1d52b..7aa8c4b 100644
--- a/src/soc/intel/xeon_sp/chip_common.c
+++ b/src/soc/intel/xeon_sp/chip_common.c
@@ -23,20 +23,27 @@
}
/**
- * Find a device of a given vendor and type for the specified socket.
+ * Find all device of a given vendor and type for the specified socket.
* The function iterates over all PCI domains of the specified socket
* and matches the PCI vendor and device ID.
*
* @param socket The socket where to search for the device.
* @param vendor A PCI vendor ID (e.g. 0x8086 for Intel).
* @param device A PCI device ID.
- * @return Pointer to the device struct.
+ * @param from The device pointer to start search from.
+ *
+ * @return Pointer to the device struct. When there are multiple device
+ * instances, the caller should continue search upon a non-NULL match.
*/
-struct device *dev_find_device_on_socket(uint8_t socket, u16 vendor, u16 device)
+struct device *dev_find_all_devices_on_socket(uint8_t socket, u16 vendor, u16 device,
+ struct device *from)
{
struct device *domain, *dev = NULL;
union xeon_domain_path dn;
+ if (from != NULL)
+ dev = from;
+
while ((dev = dev_find_device(vendor, device, dev))) {
domain = dev_get_pci_domain(dev);
if (!domain)
@@ -50,6 +57,15 @@
return NULL;
}
+/*
+ * Find device of a given vendor and type for the specified socket.
+ * The function will return at the 1st match.
+ */
+struct device *dev_find_device_on_socket(uint8_t socket, u16 vendor, u16 device)
+{
+ return dev_find_all_devices_on_socket(socket, vendor, device, NULL);
+}
+
/**
* Returns the socket ID where the specified device is connected to.
* This is an integer in the range [0, CONFIG_MAX_SOCKET).
diff --git a/src/soc/intel/xeon_sp/include/soc/chip_common.h b/src/soc/intel/xeon_sp/include/soc/chip_common.h
index 556e510..e5e6da6 100644
--- a/src/soc/intel/xeon_sp/include/soc/chip_common.h
+++ b/src/soc/intel/xeon_sp/include/soc/chip_common.h
@@ -23,6 +23,8 @@
void soc_create_ioat_domains(union xeon_domain_path path, struct bus *bus, const xSTACK_RES *sr);
struct device *dev_find_device_on_socket(uint8_t socket, u16 vendor, u16 device);
+struct device *dev_find_all_devices_on_socket(uint8_t socket, u16 vendor, u16 device,
+ struct device *from);
int iio_pci_domain_socket_from_dev(struct device *dev);
int iio_pci_domain_stack_from_dev(struct device *dev);
--
To view, visit https://review.coreboot.org/c/coreboot/+/81043?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I163eacae363334919fd66d571b7e0415e77bd52d
Gerrit-Change-Number: 81043
Gerrit-PatchSet: 1
Gerrit-Owner: Shuo Liu <shuo.liu(a)intel.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Attention: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-MessageType: newchange
Attention is currently required from: Arthur Heymans, Christian Walter, Jincheng Li, Johnny Lin, Lean Sheng Tan, Patrick Rudolph, Tim Chu.
Hello Jincheng Li,
I'd like you to do a code review.
Please visit
https://review.coreboot.org/c/coreboot/+/81041?usp=email
to review the following change.
Change subject: soc/intel/xeon_sp: Unshare UDK binding among Xeon-SP platforms
......................................................................
soc/intel/xeon_sp: Unshare UDK binding among Xeon-SP platforms
Change-Id: I285549daad87fe1ad6e8a94853e0a92cd5930e04
Signed-off-by: Li, Jincheng <jincheng.li(a)intel.com>
---
M src/soc/intel/xeon_sp/Kconfig
M src/soc/intel/xeon_sp/cpx/Kconfig
M src/soc/intel/xeon_sp/skx/Kconfig
M src/soc/intel/xeon_sp/spr/Kconfig
4 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/81041/1
diff --git a/src/soc/intel/xeon_sp/Kconfig b/src/soc/intel/xeon_sp/Kconfig
index 15d129a..a69d465 100644
--- a/src/soc/intel/xeon_sp/Kconfig
+++ b/src/soc/intel/xeon_sp/Kconfig
@@ -47,7 +47,6 @@
bool
default y
select PLATFORM_USES_FSP2_0
- select UDK_202005_BINDING
select POSTCAR_STAGE
config MAX_SOCKET
diff --git a/src/soc/intel/xeon_sp/cpx/Kconfig b/src/soc/intel/xeon_sp/cpx/Kconfig
index 1e89f21..ab1e16c 100644
--- a/src/soc/intel/xeon_sp/cpx/Kconfig
+++ b/src/soc/intel/xeon_sp/cpx/Kconfig
@@ -8,6 +8,7 @@
select NO_FSP_TEMP_RAM_EXIT
select HAVE_INTEL_FSP_REPO
select USE_COREBOOT_SPECIFIC_FSP_HEADERS
+ select UDK_202005_BINDING
help
Intel Cooper Lake-SP support
diff --git a/src/soc/intel/xeon_sp/skx/Kconfig b/src/soc/intel/xeon_sp/skx/Kconfig
index 52f4e62..4afc6a8 100644
--- a/src/soc/intel/xeon_sp/skx/Kconfig
+++ b/src/soc/intel/xeon_sp/skx/Kconfig
@@ -6,6 +6,7 @@
select PLATFORM_USES_FSP2_0
select NO_FSP_TEMP_RAM_EXIT
select USE_COREBOOT_SPECIFIC_FSP_HEADERS
+ select UDK_202005_BINDING
help
Intel Skylake-SP support
diff --git a/src/soc/intel/xeon_sp/spr/Kconfig b/src/soc/intel/xeon_sp/spr/Kconfig
index ce170ad..c436b0b 100644
--- a/src/soc/intel/xeon_sp/spr/Kconfig
+++ b/src/soc/intel/xeon_sp/spr/Kconfig
@@ -14,6 +14,7 @@
select XEON_SP_COMMON_BASE
select HAVE_IOAT_DOMAINS
select USE_COREBOOT_SPECIFIC_FSP_HEADERS
+ select UDK_202005_BINDING
help
Intel Sapphire Rapids-SP support
--
To view, visit https://review.coreboot.org/c/coreboot/+/81041?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I285549daad87fe1ad6e8a94853e0a92cd5930e04
Gerrit-Change-Number: 81041
Gerrit-PatchSet: 1
Gerrit-Owner: Shuo Liu <shuo.liu(a)intel.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Jincheng Li <jincheng.li(a)intel.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Jincheng Li <jincheng.li(a)intel.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Attention: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-MessageType: newchange
Shuo Liu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81039?usp=email )
Change subject: soc/intel/xeon_sp: Add USE_COREBOOT_SPECIFIC_FSP_HEADERS
......................................................................
soc/intel/xeon_sp: Add USE_COREBOOT_SPECIFIC_FSP_HEADERS
For SKX to SPR, there are 2 class of FSP headers. One class is
common headers, like <IioUniversalDataHob.h> which is commonly
used for all bootloaders, include UEFI and SlimBoot. Another class
is coreboot extended FSP headers, like <hob_iiouds.h>. These
extended headers are used in coreboot only and maintained in
coreboot repo.
In GNR and future generations, the generality of FSP headers is
improved and these extended headers are not needed. Hence files
like <hob_iiouds.h> will not be used. Accordingly, we need to
remove the references of these headers from Xeon-SP common codes
conditionally.
Change-Id: Iefd45e8e0518e88529ae3edcdd8ed08a49f0e475
Signed-off-by: Shuo Liu <shuo.liu(a)intel.com>
---
M src/soc/intel/xeon_sp/Kconfig
M src/soc/intel/xeon_sp/cpx/Kconfig
M src/soc/intel/xeon_sp/include/soc/chip_common.h
M src/soc/intel/xeon_sp/include/soc/util.h
M src/soc/intel/xeon_sp/skx/Kconfig
M src/soc/intel/xeon_sp/spr/Kconfig
6 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/81039/1
diff --git a/src/soc/intel/xeon_sp/Kconfig b/src/soc/intel/xeon_sp/Kconfig
index 18474ec..15d129a 100644
--- a/src/soc/intel/xeon_sp/Kconfig
+++ b/src/soc/intel/xeon_sp/Kconfig
@@ -107,4 +107,7 @@
config HAVE_IOAT_DOMAINS
bool
+config USE_COREBOOT_SPECIFIC_FSP_HEADERS
+ bool
+
endif ## SOC_INTEL_XEON_SP
diff --git a/src/soc/intel/xeon_sp/cpx/Kconfig b/src/soc/intel/xeon_sp/cpx/Kconfig
index ac166c3..1e89f21 100644
--- a/src/soc/intel/xeon_sp/cpx/Kconfig
+++ b/src/soc/intel/xeon_sp/cpx/Kconfig
@@ -7,6 +7,7 @@
select CACHE_MRC_SETTINGS
select NO_FSP_TEMP_RAM_EXIT
select HAVE_INTEL_FSP_REPO
+ select USE_COREBOOT_SPECIFIC_FSP_HEADERS
help
Intel Cooper Lake-SP support
diff --git a/src/soc/intel/xeon_sp/include/soc/chip_common.h b/src/soc/intel/xeon_sp/include/soc/chip_common.h
index 3727777..847d95a 100644
--- a/src/soc/intel/xeon_sp/include/soc/chip_common.h
+++ b/src/soc/intel/xeon_sp/include/soc/chip_common.h
@@ -3,7 +3,9 @@
#ifndef _CHIP_COMMON_H_
#define _CHIP_COMMON_H_
+#if CONFIG(USE_COREBOOT_SPECIFIC_FSP_HEADERS)
#include <hob_iiouds.h>
+#endif
union xeon_domain_path {
unsigned int domain_path;
diff --git a/src/soc/intel/xeon_sp/include/soc/util.h b/src/soc/intel/xeon_sp/include/soc/util.h
index a7d5dac..b881cb4 100644
--- a/src/soc/intel/xeon_sp/include/soc/util.h
+++ b/src/soc/intel/xeon_sp/include/soc/util.h
@@ -4,7 +4,9 @@
#define _XEON_SP_SOC_UTIL_H_
#include <cpu/x86/msr.h>
+#if CONFIG(USE_COREBOOT_SPECIFIC_FSP_HEADERS)
#include <hob_iiouds.h>
+#endif
#define MEM_ADDR_64MB_SHIFT_BITS 26
diff --git a/src/soc/intel/xeon_sp/skx/Kconfig b/src/soc/intel/xeon_sp/skx/Kconfig
index 5d84387..52f4e62 100644
--- a/src/soc/intel/xeon_sp/skx/Kconfig
+++ b/src/soc/intel/xeon_sp/skx/Kconfig
@@ -5,6 +5,7 @@
select XEON_SP_COMMON_BASE
select PLATFORM_USES_FSP2_0
select NO_FSP_TEMP_RAM_EXIT
+ select USE_COREBOOT_SPECIFIC_FSP_HEADERS
help
Intel Skylake-SP support
diff --git a/src/soc/intel/xeon_sp/spr/Kconfig b/src/soc/intel/xeon_sp/spr/Kconfig
index bb88bec..ce170ad 100644
--- a/src/soc/intel/xeon_sp/spr/Kconfig
+++ b/src/soc/intel/xeon_sp/spr/Kconfig
@@ -13,6 +13,7 @@
select SOC_INTEL_CSE_SERVER_SKU
select XEON_SP_COMMON_BASE
select HAVE_IOAT_DOMAINS
+ select USE_COREBOOT_SPECIFIC_FSP_HEADERS
help
Intel Sapphire Rapids-SP support
--
To view, visit https://review.coreboot.org/c/coreboot/+/81039?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Iefd45e8e0518e88529ae3edcdd8ed08a49f0e475
Gerrit-Change-Number: 81039
Gerrit-PatchSet: 1
Gerrit-Owner: Shuo Liu <shuo.liu(a)intel.com>
Gerrit-MessageType: newchange
Attention is currently required from: Hung-Te Lin, Martin L Roth.
Yidi Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81023?usp=email )
Change subject: mb/google/oak: Don't build the ChromeEC codebase by default
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> In fact even depthcharge can't build for oak/hana/elm today because the driver for ANX7688 is alread […]
I have a fix for depthcharge (crrev.com/c/5333904).
The problem is that oak/hana/elm only has 4MB flash ROM. It does not have enough space for packing all bmp blocks(introduced by Groot).
I can built the image only if the locale is specified. (`LOCALES=en emerge-elm chromeos-bootimage`)
--
To view, visit https://review.coreboot.org/c/coreboot/+/81023?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Idd4fe45e52dbdd1c8dccf0d2c09d5cf6d61aa839
Gerrit-Change-Number: 81023
Gerrit-PatchSet: 2
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Comment-Date: Mon, 04 Mar 2024 11:05:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hung-Te Lin <hungte(a)chromium.org>
Comment-In-Reply-To: Yu-Ping Wu <yupingso(a)google.com>
Comment-In-Reply-To: Yidi Lin <yidilin(a)google.com>
Gerrit-MessageType: comment
Attention is currently required from: Elyes Haouas, Felix Singer, Jérémy Compostella.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81021?usp=email )
Change subject: arch/x86/Kconfig: Deduplicate SSE2 selection
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
Sorry, this seems wrong. The individual ARCH_<stage>_<arch> symbols should
be individually selectable. Moving the SSE2 select away would remove SSE2
from platforms that don't select the ARCH_ALL_ version (probably currently
none, but that's just the current state).
--
To view, visit https://review.coreboot.org/c/coreboot/+/81021?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I78c9bb599303d3a249a2434dd38b7629e3f1ca86
Gerrit-Change-Number: 81021
Gerrit-PatchSet: 2
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Mon, 04 Mar 2024 10:48:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Dinesh Gehlot, Kapil Porwal, Nick Vaccaro, Subrata Banik.
Ronak Kanabar has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81038?usp=email )
Change subject: intel/alderlake/Kconfig: select Kconfig MRC_CACHE_USING_MRC_VERSION
......................................................................
Patch Set 2:
(1 comment)
File src/soc/intel/alderlake/Kconfig:
https://review.coreboot.org/c/coreboot/+/81038/comment/4cb6f281_5e96825c :
PS1, Line 113: select MRC_CACHE_USING_MRC_VERSION
> i thought ADL-N will also use this ?
currently ADL-N use FSP headers from 3rdpart repo. which dose not have FspProducerDataHeader.h file. without that ADL-N can't select this Kconfig. We will select this under SOC_INTEL_ALDERLAKE_PCH_N, once header is available in 3rdpart repo.
--
To view, visit https://review.coreboot.org/c/coreboot/+/81038?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Icc7e4ecd84a7d2818d54acc6ac5d0592544bb9ce
Gerrit-Change-Number: 81038
Gerrit-PatchSet: 2
Gerrit-Owner: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Reviewer: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Comment-Date: Mon, 04 Mar 2024 10:47:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Gerrit-MessageType: comment