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
Stefan Reinauer has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/30168?usp=email )
Change subject: [RFC] arch/riscv/stdint.h: Check the size of (u)intptr_t
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/30168?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5583ba58eeca3a37229b41b6517adfc12b2fddce
Gerrit-Change-Number: 30168
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Ron Minnich <rminnich(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: abandon