Rizwan Qureshi has uploaded a new patch set (#2). ( https://review.coreboot.org/28674 )
Change subject: soc/intel/cannonlake: [WIP] Make FSP completely optional
......................................................................
soc/intel/cannonlake: [WIP] Make FSP completely optional
Change-Id: I557b8001a2f59220a9da096100b601c9bd8764ee
Signed-off-by: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
---
M src/lib/coreboot_table.c
M src/soc/intel/cannonlake/Kconfig
M src/soc/intel/cannonlake/Makefile.inc
M src/soc/intel/cannonlake/chip.c
M src/soc/intel/cannonlake/cpu.c
A src/soc/intel/cannonlake/fsp_igd_bar.c
A src/soc/intel/cannonlake/fsp_rst_handle.c
M src/soc/intel/cannonlake/graphics.c
M src/soc/intel/cannonlake/include/soc/ramstage.h
M src/soc/intel/cannonlake/include/soc/romstage.h
M src/soc/intel/cannonlake/include/soc/smm.h
M src/soc/intel/cannonlake/include/soc/vr_config.h
M src/soc/intel/cannonlake/memmap.c
M src/soc/intel/cannonlake/reset.c
M src/soc/intel/cannonlake/romstage/Makefile.inc
A src/soc/intel/cannonlake/romstage/dimminfo.c
A src/soc/intel/cannonlake/romstage/dimminfo.h
A src/soc/intel/cannonlake/romstage/meminit.c
A src/soc/intel/cannonlake/romstage/meminit.h
M src/soc/intel/cannonlake/romstage/romstage.c
A src/soc/intel/cannonlake/siliconinit.c
A src/soc/intel/cannonlake/siliconinit.h
M src/soc/intel/cannonlake/vr_config.c
A src/soc/intel/common/basecode/include/intelbasecode/memmap.h
24 files changed, 325 insertions(+), 110 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/28674/2
--
To view, visit https://review.coreboot.org/28674
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I557b8001a2f59220a9da096100b601c9bd8764ee
Gerrit-Change-Number: 28674
Gerrit-PatchSet: 2
Gerrit-Owner: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/28673
Change subject: sb/intel/common/firmware: Ensure warning is put late
......................................................................
sb/intel/common/firmware: Ensure warning is put late
Change-Id: I400de0a622c2b45ea5ef1f1446f4f489ac397c32
---
M src/southbridge/intel/common/firmware/Makefile.inc
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/28673/1
diff --git a/src/southbridge/intel/common/firmware/Makefile.inc b/src/southbridge/intel/common/firmware/Makefile.inc
index 01a8061..774bb23 100644
--- a/src/southbridge/intel/common/firmware/Makefile.inc
+++ b/src/southbridge/intel/common/firmware/Makefile.inc
@@ -23,7 +23,7 @@
ifeq ($(CONFIG_HAVE_IFD_BIN),y)
INTERMEDIATE+=add_intel_firmware
else ifeq ($(CONFIG_INTEL_DESCRIPTOR_MODE_REQUIRED),y)
-INTERMEDIATE += warn_intel_firmware
+files_added:: warn_intel_firmware
endif
IFD_BIN_PATH := $(CONFIG_IFD_BIN_PATH)
@@ -89,7 +89,7 @@
warn_intel_firmware:
printf "\n\t** WARNING **\n"
- printf "coreboot will be built without an Intel Firmware Descriptor.\n"
+ printf "coreboot has been built without an Intel Firmware Descriptor.\n"
printf "Never write a complete coreboot.rom without an IFD to your\n"
printf "board's flash chip! You can use flashrom's IFD or layout\n"
printf "parameters to flash only to the BIOS region.\n\n"
--
To view, visit https://review.coreboot.org/28673
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I400de0a622c2b45ea5ef1f1446f4f489ac397c32
Gerrit-Change-Number: 28673
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/28672
Change subject: fsp_broadwell_de: Add fixed VT-d MMIO range to the resources
......................................................................
fsp_broadwell_de: Add fixed VT-d MMIO range to the resources
FSP initializes the VT-d feature on Broadwell-DE and assigns an
address space to the MMIO range. coreboots resource allocator needs to
be aware of this fixed resource as otherwise the address can be assigned
to a different PCI device. In this case addresses are overlapped and the
VT-d range is not accessible any more.
To deal with it the right way add a fixed MMIO resource to the resources
list if VT-d BAR is enabled.
Change-Id: I626ac17420eadc0b49031e850f0f40b3b221a098
Signed-off-by: Werner Zeh <werner.zeh(a)siemens.com>
---
M src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h
M src/soc/intel/fsp_broadwell_de/vtd.c
2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/28672/1
diff --git a/src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h b/src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h
index dc1ec19..670a68f 100644
--- a/src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h
+++ b/src/soc/intel/fsp_broadwell_de/include/soc/broadwell_de.h
@@ -20,6 +20,7 @@
#define VTBAR_OFFSET 0x180
#define VTBAR_MASK 0xffffe000
+#define VTBAR_SIZE 0x2000
#define SMM_FEATURE_CONTROL 0x58
#define SMM_CPU_SAVE_EN (1 << 1)
diff --git a/src/soc/intel/fsp_broadwell_de/vtd.c b/src/soc/intel/fsp_broadwell_de/vtd.c
index eccfdfb..9fb46c1 100644
--- a/src/soc/intel/fsp_broadwell_de/vtd.c
+++ b/src/soc/intel/fsp_broadwell_de/vtd.c
@@ -20,12 +20,22 @@
#include <device/pci_ids.h>
#include <soc/pci_devs.h>
#include <soc/acpi.h>
+#include <soc/broadwell_de.h>
static void vtd_read_resources(struct device *dev)
{
+ uint32_t vtbar;
+
/* Call the normal read_resources */
pci_dev_read_resources(dev);
+ /* Add fixed MMIO resource for VT-d which was set up by the FSP. */
+ vtbar = pci_read_config32(dev, VTBAR_OFFSET);
+ /* Make sure VT-d is enabled before adding the resource. */
+ if (vtbar & 0x01) {
+ mmio_resource(dev, VTBAR_OFFSET,
+ (vtbar & VTBAR_MASK) >> 10, VTBAR_SIZE >> 10);
+ }
}
static struct device_operations vtd_ops = {
--
To view, visit https://review.coreboot.org/28672
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I626ac17420eadc0b49031e850f0f40b3b221a098
Gerrit-Change-Number: 28672
Gerrit-PatchSet: 1
Gerrit-Owner: Werner Zeh <werner.zeh(a)siemens.com>
Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/28671
Change subject: fsp_broadwell_de: Move DMAR table generation to belonging VT-d device
......................................................................
fsp_broadwell_de: Move DMAR table generation to belonging VT-d device
The DMAR table generation depends on the VT-d feature which is
implemented in its own PCI device (for Broadwell-DE it is PCI:00:05.0).
Add a new PCI driver for this device and move DMAR table generation to
this device driver.
Change-Id: I103257c73f5e745e996a441a2535b885270bc204
Signed-off-by: Werner Zeh <werner.zeh(a)siemens.com>
---
M src/soc/intel/fsp_broadwell_de/Makefile.inc
M src/soc/intel/fsp_broadwell_de/acpi.c
M src/soc/intel/fsp_broadwell_de/include/soc/acpi.h
M src/soc/intel/fsp_broadwell_de/northcluster.c
A src/soc/intel/fsp_broadwell_de/vtd.c
5 files changed, 47 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/28671/1
diff --git a/src/soc/intel/fsp_broadwell_de/Makefile.inc b/src/soc/intel/fsp_broadwell_de/Makefile.inc
index 386adc1..9312663 100644
--- a/src/soc/intel/fsp_broadwell_de/Makefile.inc
+++ b/src/soc/intel/fsp_broadwell_de/Makefile.inc
@@ -34,6 +34,7 @@
ramstage-y += iou_complto.c
ramstage-$(CONFIG_HAVE_SMI_HANDLER) += smmrelocate.c
ramstage-$(CONFIG_HAVE_SMI_HANDLER) += pmutil.c
+ramstage-y += vtd.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += pmutil.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += tsc_freq.c
diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c
index 5d65477..b99cc49 100644
--- a/src/soc/intel/fsp_broadwell_de/acpi.c
+++ b/src/soc/intel/fsp_broadwell_de/acpi.c
@@ -390,15 +390,14 @@
return current;
}
-unsigned long northcluster_write_acpi_tables(struct device *const dev,
+unsigned long vtd_write_acpi_tables(struct device *const dev,
unsigned long current,
struct acpi_rsdp *const rsdp)
{
acpi_dmar_t *const dmar = (acpi_dmar_t *)current;
- struct device *vtdev = dev_find_slot(0, PCI_DEVFN(5, 0));
/* Create DMAR table only if virtualization is enabled */
- if (!(pci_read_config32(vtdev, 0x180) & 0x01))
+ if (!(pci_read_config32(dev, VTBAR_OFFSET) & 0x01))
return current;
printk(BIOS_DEBUG, "ACPI: * DMAR\n");
diff --git a/src/soc/intel/fsp_broadwell_de/include/soc/acpi.h b/src/soc/intel/fsp_broadwell_de/include/soc/acpi.h
index da552cc..dce267a 100644
--- a/src/soc/intel/fsp_broadwell_de/include/soc/acpi.h
+++ b/src/soc/intel/fsp_broadwell_de/include/soc/acpi.h
@@ -24,7 +24,7 @@
void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt);
unsigned long acpi_madt_irq_overrides(unsigned long current);
uint16_t get_pmbase(void);
-unsigned long northcluster_write_acpi_tables(struct device *const dev,
+unsigned long vtd_write_acpi_tables(struct device *const dev,
unsigned long current,
struct acpi_rsdp *const rsdp);
diff --git a/src/soc/intel/fsp_broadwell_de/northcluster.c b/src/soc/intel/fsp_broadwell_de/northcluster.c
index 7090370..8da41d4 100644
--- a/src/soc/intel/fsp_broadwell_de/northcluster.c
+++ b/src/soc/intel/fsp_broadwell_de/northcluster.c
@@ -137,7 +137,6 @@
static struct device_operations nc_ops = {
.read_resources = nc_read_resources,
.acpi_fill_ssdt_generator = generate_cpu_entries,
- .write_acpi_tables = northcluster_write_acpi_tables,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = NULL,
diff --git a/src/soc/intel/fsp_broadwell_de/vtd.c b/src/soc/intel/fsp_broadwell_de/vtd.c
new file mode 100644
index 0000000..eccfdfb
--- /dev/null
+++ b/src/soc/intel/fsp_broadwell_de/vtd.c
@@ -0,0 +1,43 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2013 Google Inc.
+ * Copyright (C) 2015-2016 Intel Corp.
+ * Copyright (C) 2016 Siemens AG
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <arch/acpi.h>
+#include <device/pci.h>
+#include <device/pci_ids.h>
+#include <soc/pci_devs.h>
+#include <soc/acpi.h>
+
+
+static void vtd_read_resources(struct device *dev)
+{
+ /* Call the normal read_resources */
+ pci_dev_read_resources(dev);
+}
+
+static struct device_operations vtd_ops = {
+ .read_resources = vtd_read_resources,
+ .write_acpi_tables = vtd_write_acpi_tables,
+ .set_resources = pci_dev_set_resources,
+ .scan_bus = 0,
+ .ops_pci = 0,
+};
+
+static const struct pci_driver vtd_driver __pci_driver = {
+ .ops = &vtd_ops,
+ .vendor = PCI_VENDOR_ID_INTEL,
+ .device = VTD_DEVID,
+};
--
To view, visit https://review.coreboot.org/28671
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I103257c73f5e745e996a441a2535b885270bc204
Gerrit-Change-Number: 28671
Gerrit-PatchSet: 1
Gerrit-Owner: Werner Zeh <werner.zeh(a)siemens.com>
Peichao Li has uploaded a new patch set (#5). ( https://review.coreboot.org/28669 )
Change subject: mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
......................................................................
mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
Since I2C bus 7 attached the touchscreen device however Phaser units
that haven't it. So for avoiding side effects, we need close I2C bus
7 SCL and SDA respectilvely.
BUG=
TEST=according to sku_id(Phaser: 0x1, Phaser360: 0x2, Phaser360s: 0x3)
distinguish whether close these gpios.
Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Signed-off-by: peichao.wang <peichao.wang(a)bitland.corp-partner.google.com>
---
M src/mainboard/google/octopus/variants/phaser/gpio.c
1 file changed, 49 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/28669/5
--
To view, visit https://review.coreboot.org/28669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Gerrit-Change-Number: 28669
Gerrit-PatchSet: 5
Gerrit-Owner: Peichao Li <peichao.wang(a)bitland.corp-partner.google.com>
Peichao Li has uploaded a new patch set (#4). ( https://review.coreboot.org/28669 )
Change subject: mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
......................................................................
mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
Since I2C bus 7 attached the touchscreen device however Phaser units
that haven't it. So for avoiding side effects, we need close I2C bus
7 SCL and SDA respectilvely.
BUG=
TEST=according to sku_id(Phaser: 0x1, Phaser360: 0x2, Phaser360s: 0x3)
distinguish whether close these gpios.
Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Signed-off-by: peichao.wang <peichao.wang(a)bitland.corp-partner.google.com>
---
M src/mainboard/google/octopus/variants/phaser/gpio.c
1 file changed, 50 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/28669/4
--
To view, visit https://review.coreboot.org/28669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Gerrit-Change-Number: 28669
Gerrit-PatchSet: 4
Gerrit-Owner: Peichao Li <peichao.wang(a)bitland.corp-partner.google.com>
Peichao Li has uploaded a new patch set (#3). ( https://review.coreboot.org/28669 )
Change subject: mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
......................................................................
mb/google/octopus: Close unused I2C bus 7 include SCL and SDA for Phaseer
Since I2C bus 7 attached the touchscreen device however Phaser units
that haven't it. So for avoiding side effects, we need close I2C bus
7 SCL and SDA respectilvely.
BUG=
TEST=according to sku_id(Phaser: 0x1, Phaser360: 0x2, Phaser360s: 0x3)
distinguish whether close these gpios.
Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Signed-off-by: peichao.wang <peichao.wang(a)bitland.corp-partner.google.com>
---
M src/mainboard/google/octopus/variants/phaser/gpio.c
1 file changed, 50 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/28669/3
--
To view, visit https://review.coreboot.org/28669
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8ad17761f2a053dc329bbec0a0a3284d47289666
Gerrit-Change-Number: 28669
Gerrit-PatchSet: 3
Gerrit-Owner: Peichao Li <peichao.wang(a)bitland.corp-partner.google.com>