Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47535 )
Change subject: soc/intel/apollolake: use P2SB function to generate DMAR IOAPIC
......................................................................
soc/intel/apollolake: use P2SB function to generate DMAR IOAPIC
Change-Id: If088d5bf701310e54b14965145229627f3a50417
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/soc/intel/apollolake/acpi.c
1 file changed, 2 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/47535/1
diff --git a/src/soc/intel/apollolake/acpi.c b/src/soc/intel/apollolake/acpi.c
index 8609c7c..d0e7a73 100644
--- a/src/soc/intel/apollolake/acpi.c
+++ b/src/soc/intel/apollolake/acpi.c
@@ -185,22 +185,14 @@
/* DEFVTBAR has to be set and enabled. */
if (defvtbar && defvten) {
tmp = current;
- /*
- * P2SB may already be hidden. There's no clear rule, when.
- * It is needed to get bus, device and function for IOAPIC and
- * HPET device which is stored in P2SB device. So unhide it to
- * get the info and hide it again when done.
- */
- p2sb_unhide();
- struct device *p2sb_dev = pcidev_path_on_root(PCH_DEVFN_P2SB);
- uint16_t ibdf = pci_read_config16(p2sb_dev, PCH_P2SB_IBDF);
+ union p2sb_bdf ibdf = p2sb_get_ioapic_bdf();
union p2sb_bdf hbdf = p2sb_get_hpet_bdf();
p2sb_hide();
current += acpi_create_dmar_drhd(current,
DRHD_INCLUDE_PCI_ALL, 0, defvtbar);
current += acpi_create_dmar_ds_ioapic(current,
- 2, ibdf >> 8, PCI_SLOT(ibdf), PCI_FUNC(ibdf));
+ 2, ibdf.bus, ibdf.dev, ibdf.fn);
current += acpi_create_dmar_ds_msi_hpet(current,
0, hbdf.bus, hbdf.dev, hbdf.fn);
acpi_dmar_drhd_fixup(tmp, current);
--
To view, visit https://review.coreboot.org/c/coreboot/+/47535
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If088d5bf701310e54b14965145229627f3a50417
Gerrit-Change-Number: 47535
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47737 )
Change subject: drivers/intel/fsp1_1/cache_as_ram.S: Use _car_stack area for stack
......................................................................
drivers/intel/fsp1_1/cache_as_ram.S: Use _car_stack area for stack
Top of Temp RAM is used as bootloader stack, which is the _car_region_end
area. This area is not equal to CAR stack area as defined in car.ld file.
Use _ecar_stack (end of CAR stack) as starting stack location.
Tested VBOOT, Vendorboot security and no security on Facebook FBG1701.
Change-Id: I16b077f60560de334361b1f0d3758ab1a5cbe895
Signed-off-by: Frans Hendriks <fhendriks(a)eltan.com>
---
M src/drivers/intel/fsp1_1/cache_as_ram.S
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/47737/1
diff --git a/src/drivers/intel/fsp1_1/cache_as_ram.S b/src/drivers/intel/fsp1_1/cache_as_ram.S
index 31c3580..3be9eb9 100644
--- a/src/drivers/intel/fsp1_1/cache_as_ram.S
+++ b/src/drivers/intel/fsp1_1/cache_as_ram.S
@@ -133,7 +133,7 @@
jne halt2
/* Setup bootloader stack */
- movl %edx, %esp
+ movl $_ecar_stack, %esp
/*
* ebp: FSP_INFO_HEADER address
--
To view, visit https://review.coreboot.org/c/coreboot/+/47737
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I16b077f60560de334361b1f0d3758ab1a5cbe895
Gerrit-Change-Number: 47737
Gerrit-PatchSet: 1
Gerrit-Owner: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-MessageType: newchange