Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46138 )
Change subject: [WIP] mb/amd/mandolin: add missing PCIe devices to devicetree
......................................................................
[WIP] mb/amd/mandolin: add missing PCIe devices to devicetree
Haven't verified if this behaves correctly for Dali chips.
Change-Id: I8b0f590eab086b6b85219b739741c0f1ca25aeac
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
---
M src/mainboard/amd/mandolin/variants/mandolin/devicetree.cb
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/46138/1
diff --git a/src/mainboard/amd/mandolin/variants/mandolin/devicetree.cb b/src/mainboard/amd/mandolin/variants/mandolin/devicetree.cb
index 3de5812..8d63ebe 100644
--- a/src/mainboard/amd/mandolin/variants/mandolin/devicetree.cb
+++ b/src/mainboard/amd/mandolin/variants/mandolin/devicetree.cb
@@ -143,7 +143,12 @@
device pci 0.0 on end # Root Complex
device pci 0.2 on end # IOMMU
device pci 1.0 on end # Dummy Host Bridge
+ device pci 1.1 on end # Bridge to GPU PCIe slot
+ device pci 1.2 on end # Bridge to WIFI M.2 slot
device pci 1.3 on end # Bridge to PCIe Ethernet chip
+ device pci 1.4 on end # Bridge to WWAN M.2 slot; not available on Dali
+ device pci 1.5 on end # Bridge to second WIFI M.2 slot; not available on Dali
+ device pci 1.7 on end # Bridge to NVME M.2 slot
device pci 8.0 on end # Dummy Host Bridge
device pci 8.1 on # Bridge to Bus A
device pci 0.0 on end # Internal GPU
--
To view, visit https://review.coreboot.org/c/coreboot/+/46138
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8b0f590eab086b6b85219b739741c0f1ca25aeac
Gerrit-Change-Number: 46138
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46139 )
Change subject: [UNTESTED] mb/amd/mandolin: select PCIe power save options in Kconfig
......................................................................
[UNTESTED] mb/amd/mandolin: select PCIe power save options in Kconfig
Haven't verified this, since I currently don't have PCIe devices to test
against; all devices I have here to test against won't work without
reworking the board, since the EC that controls the rest on those
connectors has no coreboot driver to deassert the reset lines.
Change-Id: Ib94e165c0ba1d16f6df9bb3cf95f0eb5067a3b82
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
---
M src/mainboard/amd/mandolin/Kconfig
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/46139/1
diff --git a/src/mainboard/amd/mandolin/Kconfig b/src/mainboard/amd/mandolin/Kconfig
index 8e2bd8b..be1c2bc 100644
--- a/src/mainboard/amd/mandolin/Kconfig
+++ b/src/mainboard/amd/mandolin/Kconfig
@@ -13,6 +13,10 @@
select HAVE_ACPI_RESUME
select DRIVERS_UART_ACPI
select PICASSO_CONSOLE_UART if !AMD_LPC_DEBUG_CARD
+ select PCIEXP_ASPM
+ select PCIEXP_CLK_PM
+ select PCIEXP_COMMON_CLOCK
+ select PCIEXP_L1_SUB_STATE
config FMDFILE
string
--
To view, visit https://review.coreboot.org/c/coreboot/+/46139
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib94e165c0ba1d16f6df9bb3cf95f0eb5067a3b82
Gerrit-Change-Number: 46139
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Hello Furquan Shaikh, Arthur Heymans, Kyösti Mälkki, Aaron Durbin,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/41553
to review the following change.
Change subject: device/pci: Don't enabled unassigned resources
......................................................................
device/pci: Don't enabled unassigned resources
We only have a single bit in the PCI_COMMAND register to enable
or disable resources of one type. If any resource of a type is
unassigned, we have to disable all of them.
Change-Id: I7a7e9c5c382358446b60a7bd5b29954f80cce07e
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M src/device/pci_device.c
1 file changed, 12 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/41553/1
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 5afbfa9..8df44df 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -506,7 +506,8 @@
}
}
-static void pci_set_resource(struct device *dev, struct resource *resource)
+static void pci_set_resource(struct device *const dev, struct resource *const resource,
+ uint16_t *const command_mask)
{
/* Make certain the resource has actually been assigned a value. */
if (!(resource->flags & IORESOURCE_ASSIGNED)) {
@@ -518,6 +519,11 @@
printk(BIOS_ERR, "ERROR: %s %02lx %s size: 0x%010llx not "
"assigned\n", dev_path(dev), resource->index,
resource_type(resource), resource->size);
+ /* We'll have to disable all resources of this type. */
+ if (resource->flags & IORESOURCE_MEM)
+ *command_mask &= ~PCI_COMMAND_MEMORY;
+ if (resource->flags & IORESOURCE_IO)
+ *command_mask &= ~PCI_COMMAND_IO;
return;
}
}
@@ -561,12 +567,16 @@
void pci_dev_set_resources(struct device *dev)
{
+ uint16_t command_mask = 0xffff;
struct resource *res;
struct bus *bus;
u8 line;
for (res = dev->resource_list; res; res = res->next)
- pci_set_resource(dev, res);
+ pci_set_resource(dev, res, &command_mask);
+ /* If there are unassigned resources, we might
+ have to disable others of the same type. */
+ dev->command &= command_mask;
for (bus = dev->link_list; bus; bus = bus->next) {
if (bus->children)
--
To view, visit https://review.coreboot.org/c/coreboot/+/41553
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7a7e9c5c382358446b60a7bd5b29954f80cce07e
Gerrit-Change-Number: 41553
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-MessageType: newchange