John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46506 )
Change subject: drivers/uart: Fix control flow DEADCODE issue
......................................................................
drivers/uart: Fix control flow DEADCODE issue
Coverity detects the irq_gpio_index DEADCODE which is initialized as -1.
This change updates irq_gpio_index based on irq_gpio.pin_count which
differentiates gpio irq or pirq.
Found-by: Coverity CID 1429983
TEST=None
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I79f85f05b78e5569615ae4c4f7c81cc85c3999c9
---
M src/drivers/uart/acpi/acpi.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/46506/1
diff --git a/src/drivers/uart/acpi/acpi.c b/src/drivers/uart/acpi/acpi.c
index f9d9d8f..df26f4e 100644
--- a/src/drivers/uart/acpi/acpi.c
+++ b/src/drivers/uart/acpi/acpi.c
@@ -73,8 +73,10 @@
acpi_device_write_uart(&config->uart);
/* Use either Interrupt() or GpioInt() */
- if (config->irq_gpio.pin_count)
+ if (config->irq_gpio.pin_count) {
acpi_device_write_gpio(&config->irq_gpio);
+ irq_gpio_index++;
+ }
else
acpi_device_write_interrupt(&config->irq);
--
To view, visit https://review.coreboot.org/c/coreboot/+/46506
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I79f85f05b78e5569615ae4c4f7c81cc85c3999c9
Gerrit-Change-Number: 46506
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46617 )
Change subject: device/pci_device: Map big PCI bars above 4 GiB
......................................................................
device/pci_device: Map big PCI bars above 4 GiB
Map BARs bigger than 4GiB to memory space above 4GiB.
FIXME: This should probably go into the resource allocator.
Required for Nvidia NV100, which has a 32GiB BAR for accessing the VRAM.
Change-Id: Ief34e5bc1c2133ba7380acc9468d4e1042e6e100
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/device/pci_device.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/46617/1
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 3623c3b..36af0d9 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -178,6 +178,9 @@
/* 64bit limit. */
resource->limit = 0xffffffffffffffffULL;
resource->flags |= IORESOURCE_PCI64;
+
+ if (resource->size >= 0x100000000ULL)
+ resource->flags |= IORESOURCE_ABOVE_4G;
} else {
/* Invalid value. */
printk(BIOS_ERR, "Broken BAR with value %lx\n", attr);
--
To view, visit https://review.coreboot.org/c/coreboot/+/46617
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief34e5bc1c2133ba7380acc9468d4e1042e6e100
Gerrit-Change-Number: 46617
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange
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