Attention is currently required from: Arthur Heymans.
Marc Jones has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/68572 )
Change subject: include/cpu/msr.h: transform into an union
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/68572
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1b026cd3807fd68d805051a74b3d31fcde1c5626
Gerrit-Change-Number: 68572
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:41:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Matt DeVillier, Fred Reitberger.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69074 )
Change subject: soc/amd/*/data_fabric: Move register offsets to soc
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9e5e7c85f99a9afa873764ade9734831fb5cfe69
Gerrit-Change-Number: 69074
Gerrit-PatchSet: 2
Gerrit-Owner: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:41:24 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Matt DeVillier, Fred Reitberger.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69073 )
Change subject: soc/amd/common/block/data_fabric: Use register bitslice structs
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69073
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia5566f7af6cf5444fc8c627e004dd08185468c77
Gerrit-Change-Number: 69073
Gerrit-PatchSet: 2
Gerrit-Owner: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:30:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Fred Reitberger.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69072 )
Change subject: soc/amd/glinda/data_fabric: Add register bitslice struct
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69072
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I509eaf5910d8d65ce0956200d7c00451ff9ce864
Gerrit-Change-Number: 69072
Gerrit-PatchSet: 2
Gerrit-Owner: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:30:17 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Matt DeVillier, Fred Reitberger.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69071 )
Change subject: soc/amd/morgana/data_fabric: Add register bitslice struct
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69071
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If64c875026b643c584975f7abffad9b35f1a7b44
Gerrit-Change-Number: 69071
Gerrit-PatchSet: 2
Gerrit-Owner: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:30:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Matt DeVillier, Felix Held.
Fred Reitberger has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69174 )
Change subject: soc/amd/*/data_fabric: Use common device ops
......................................................................
soc/amd/*/data_fabric: Use common device ops
Use the common device ops instead of an soc-specific device ops.
TEST=builds for each soc
Signed-off-by: Fred Reitberger <reitbergerfred(a)gmail.com>
Change-Id: I1804200c3c3f5ab492d237f4b03484c383862caf
---
M src/soc/amd/cezanne/Makefile.inc
M src/soc/amd/cezanne/chipset.cb
D src/soc/amd/cezanne/data_fabric.c
M src/soc/amd/glinda/Makefile.inc
M src/soc/amd/glinda/chipset.cb
D src/soc/amd/glinda/data_fabric.c
M src/soc/amd/mendocino/Makefile.inc
M src/soc/amd/mendocino/chipset_mendocino.cb
M src/soc/amd/mendocino/chipset_rembrandt.cb
D src/soc/amd/mendocino/data_fabric.c
M src/soc/amd/morgana/Makefile.inc
M src/soc/amd/morgana/chipset.cb
D src/soc/amd/morgana/data_fabric.c
M src/soc/amd/picasso/Makefile.inc
M src/soc/amd/picasso/chipset.cb
D src/soc/amd/picasso/data_fabric.c
16 files changed, 62 insertions(+), 260 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/69174/1
diff --git a/src/soc/amd/cezanne/Makefile.inc b/src/soc/amd/cezanne/Makefile.inc
index cdbbcfe..1f2bb6d 100644
--- a/src/soc/amd/cezanne/Makefile.inc
+++ b/src/soc/amd/cezanne/Makefile.inc
@@ -31,7 +31,6 @@
ramstage-y += agesa_acpi.c
ramstage-y += chip.c
ramstage-y += cpu.c
-ramstage-y += data_fabric.c
ramstage-y += fch.c
ramstage-y += fsp_s_params.c
ramstage-y += gpio.c
diff --git a/src/soc/amd/cezanne/chipset.cb b/src/soc/amd/cezanne/chipset.cb
index 3b6e0d8..f0a3d86 100644
--- a/src/soc/amd/cezanne/chipset.cb
+++ b/src/soc/amd/cezanne/chipset.cb
@@ -97,14 +97,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
- device pci 18.0 alias data_fabric_0 on ops cezanne_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops cezanne_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops cezanne_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops cezanne_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops cezanne_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops cezanne_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops cezanne_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops cezanne_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/cezanne/data_fabric.c b/src/soc/amd/cezanne/data_fabric.c
deleted file mode 100644
index 6a34a07..0000000
--- a/src/soc/amd/cezanne/data_fabric.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <acpi/acpi_device.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-
-static const char *data_fabric_acpi_name(const struct device *dev)
-{
- switch (dev->device) {
- case PCI_DID_AMD_FAM17H_MODEL60H_DF0:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF0:
- return "DFD0";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF1:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF1:
- return "DFD1";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF2:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF2:
- return "DFD2";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF3:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF3:
- return "DFD3";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF4:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF4:
- return "DFD4";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF5:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF5:
- return "DFD5";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF6:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF6:
- return "DFD6";
- case PCI_DID_AMD_FAM17H_MODEL60H_DF7:
- case PCI_DID_AMD_FAM19H_MODEL51H_DF7:
- return "DFD7";
- default:
- printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
- }
-
- return NULL;
-}
-
-struct device_operations cezanne_data_fabric_ops = {
- .read_resources = noop_read_resources,
- .set_resources = noop_set_resources,
- .acpi_name = data_fabric_acpi_name,
- .acpi_fill_ssdt = acpi_device_write_pci_dev,
-};
diff --git a/src/soc/amd/glinda/Makefile.inc b/src/soc/amd/glinda/Makefile.inc
index 2f5d9a9..e00421d 100644
--- a/src/soc/amd/glinda/Makefile.inc
+++ b/src/soc/amd/glinda/Makefile.inc
@@ -35,7 +35,6 @@
ramstage-y += agesa_acpi.c
ramstage-y += chip.c
ramstage-y += cpu.c
-ramstage-y += data_fabric.c
ramstage-y += fch.c
ramstage-y += fsp_s_params.c
ramstage-y += gpio.c
diff --git a/src/soc/amd/glinda/chipset.cb b/src/soc/amd/glinda/chipset.cb
index 33bab512..3b095aa 100644
--- a/src/soc/amd/glinda/chipset.cb
+++ b/src/soc/amd/glinda/chipset.cb
@@ -76,14 +76,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
- device pci 18.0 alias data_fabric_0 on ops glinda_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops glinda_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops glinda_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops glinda_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops glinda_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops glinda_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops glinda_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops glinda_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/glinda/data_fabric.c b/src/soc/amd/glinda/data_fabric.c
deleted file mode 100644
index 3bc0b6d..0000000
--- a/src/soc/amd/glinda/data_fabric.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-/* TODO: Update for Glinda */
-
-#include <acpi/acpi_device.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-
-static const char *data_fabric_acpi_name(const struct device *dev)
-{
- switch (dev->device) {
- case PCI_DID_AMD_FAM17H_MODELA0H_DF0:
- return "DFD0";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF1:
- return "DFD1";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF2:
- return "DFD2";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF3:
- return "DFD3";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF4:
- return "DFD4";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF5:
- return "DFD5";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF6:
- return "DFD6";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF7:
- return "DFD7";
- default:
- printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
- }
-
- return NULL;
-}
-
-struct device_operations glinda_data_fabric_ops = {
- .read_resources = noop_read_resources,
- .set_resources = noop_set_resources,
- .acpi_name = data_fabric_acpi_name,
- .acpi_fill_ssdt = acpi_device_write_pci_dev,
-};
diff --git a/src/soc/amd/mendocino/Makefile.inc b/src/soc/amd/mendocino/Makefile.inc
index 44a0e29..e1dda83 100644
--- a/src/soc/amd/mendocino/Makefile.inc
+++ b/src/soc/amd/mendocino/Makefile.inc
@@ -34,7 +34,6 @@
ramstage-y += agesa_acpi.c
ramstage-y += chip.c
ramstage-y += cpu.c
-ramstage-y += data_fabric.c
ramstage-y += fch.c
ramstage-y += fsp_s_params.c
ramstage-y += gpio.c
diff --git a/src/soc/amd/mendocino/chipset_mendocino.cb b/src/soc/amd/mendocino/chipset_mendocino.cb
index 23afdba..2900279 100644
--- a/src/soc/amd/mendocino/chipset_mendocino.cb
+++ b/src/soc/amd/mendocino/chipset_mendocino.cb
@@ -74,14 +74,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
- device pci 18.0 alias data_fabric_0 on ops mendocino_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops mendocino_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops mendocino_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops mendocino_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops mendocino_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops mendocino_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops mendocino_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops mendocino_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/mendocino/chipset_rembrandt.cb b/src/soc/amd/mendocino/chipset_rembrandt.cb
index 23afdba..2900279 100644
--- a/src/soc/amd/mendocino/chipset_rembrandt.cb
+++ b/src/soc/amd/mendocino/chipset_rembrandt.cb
@@ -74,14 +74,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
- device pci 18.0 alias data_fabric_0 on ops mendocino_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops mendocino_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops mendocino_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops mendocino_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops mendocino_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops mendocino_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops mendocino_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops mendocino_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/mendocino/data_fabric.c b/src/soc/amd/mendocino/data_fabric.c
deleted file mode 100644
index e0942f2..0000000
--- a/src/soc/amd/mendocino/data_fabric.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <acpi/acpi_device.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <soc/pci_devs.h>
-
-static const char *data_fabric_acpi_name(const struct device *dev)
-{
- const char *df_acpi_names[8] = {
- "DFD0",
- "DFD1",
- "DFD2",
- "DFD3",
- "DFD4",
- "DFD5",
- "DFD6",
- "DFD7"
- };
-
- if (dev->path.type == DEVICE_PATH_PCI &&
- PCI_SLOT(dev->path.pci.devfn) == DF_DEV)
- return df_acpi_names[PCI_FUNC(dev->path.pci.devfn)];
-
- printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
- return NULL;
-}
-
-struct device_operations mendocino_data_fabric_ops = {
- .read_resources = noop_read_resources,
- .set_resources = noop_set_resources,
- .acpi_name = data_fabric_acpi_name,
- .acpi_fill_ssdt = acpi_device_write_pci_dev,
-};
diff --git a/src/soc/amd/morgana/Makefile.inc b/src/soc/amd/morgana/Makefile.inc
index a0065b8..a88e1a5 100644
--- a/src/soc/amd/morgana/Makefile.inc
+++ b/src/soc/amd/morgana/Makefile.inc
@@ -35,7 +35,6 @@
ramstage-y += agesa_acpi.c
ramstage-y += chip.c
ramstage-y += cpu.c
-ramstage-y += data_fabric.c
ramstage-y += fch.c
ramstage-y += fsp_s_params.c
ramstage-y += gpio.c
diff --git a/src/soc/amd/morgana/chipset.cb b/src/soc/amd/morgana/chipset.cb
index ffea57d..9b8d446 100644
--- a/src/soc/amd/morgana/chipset.cb
+++ b/src/soc/amd/morgana/chipset.cb
@@ -76,14 +76,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
- device pci 18.0 alias data_fabric_0 on ops morgana_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops morgana_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops morgana_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops morgana_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops morgana_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops morgana_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops morgana_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops morgana_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/morgana/data_fabric.c b/src/soc/amd/morgana/data_fabric.c
deleted file mode 100644
index 6c02d21..0000000
--- a/src/soc/amd/morgana/data_fabric.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-/* TODO: Update for Morgana */
-
-#include <acpi/acpi_device.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-
-static const char *data_fabric_acpi_name(const struct device *dev)
-{
- switch (dev->device) {
- case PCI_DID_AMD_FAM17H_MODELA0H_DF0:
- return "DFD0";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF1:
- return "DFD1";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF2:
- return "DFD2";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF3:
- return "DFD3";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF4:
- return "DFD4";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF5:
- return "DFD5";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF6:
- return "DFD6";
- case PCI_DID_AMD_FAM17H_MODELA0H_DF7:
- return "DFD7";
- default:
- printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
- }
-
- return NULL;
-}
-
-struct device_operations morgana_data_fabric_ops = {
- .read_resources = noop_read_resources,
- .set_resources = noop_set_resources,
- .acpi_name = data_fabric_acpi_name,
- .acpi_fill_ssdt = acpi_device_write_pci_dev,
-};
diff --git a/src/soc/amd/picasso/Makefile.inc b/src/soc/amd/picasso/Makefile.inc
index 397c54d..ab18e3b 100644
--- a/src/soc/amd/picasso/Makefile.inc
+++ b/src/soc/amd/picasso/Makefile.inc
@@ -31,7 +31,6 @@
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += agesa_acpi.c
ramstage-y += chip.c
ramstage-y += cpu.c
-ramstage-y += data_fabric.c
ramstage-y += fch.c
ramstage-y += fsp_s_params.c
ramstage-y += gpio.c
diff --git a/src/soc/amd/picasso/chipset.cb b/src/soc/amd/picasso/chipset.cb
index e44ca8d..99b025e 100644
--- a/src/soc/amd/picasso/chipset.cb
+++ b/src/soc/amd/picasso/chipset.cb
@@ -37,14 +37,14 @@
device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function
device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end
device pci 14.6 alias sdhci off end
- device pci 18.0 alias data_fabric_0 on ops picasso_data_fabric_ops end
- device pci 18.1 alias data_fabric_1 on ops picasso_data_fabric_ops end
- device pci 18.2 alias data_fabric_2 on ops picasso_data_fabric_ops end
- device pci 18.3 alias data_fabric_3 on ops picasso_data_fabric_ops end
- device pci 18.4 alias data_fabric_4 on ops picasso_data_fabric_ops end
- device pci 18.5 alias data_fabric_5 on ops picasso_data_fabric_ops end
- device pci 18.6 alias data_fabric_6 on ops picasso_data_fabric_ops end
- device pci 18.7 alias data_fabric_7 on ops picasso_data_fabric_ops end
+ device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end
+ device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end
+ device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end
+ device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end
+ device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end
+ device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end
+ device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end
+ device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end
end
device mmio 0xfedc4000 alias i2c_2 off ops soc_amd_i2c_mmio_ops end
diff --git a/src/soc/amd/picasso/data_fabric.c b/src/soc/amd/picasso/data_fabric.c
deleted file mode 100644
index a251158..0000000
--- a/src/soc/amd/picasso/data_fabric.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <acpi/acpi_device.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-
-static const char *data_fabric_acpi_name(const struct device *dev)
-{
- switch (dev->device) {
- case PCI_DID_AMD_FAM17H_MODEL18H_DF0:
- return "DFD0";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF1:
- return "DFD1";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF2:
- return "DFD2";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF3:
- return "DFD3";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF4:
- return "DFD4";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF5:
- return "DFD5";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF6:
- return "DFD6";
- case PCI_DID_AMD_FAM17H_MODEL18H_DF7:
- return "DFD7";
- default:
- printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device);
- }
-
- return NULL;
-}
-
-struct device_operations picasso_data_fabric_ops = {
- .read_resources = noop_read_resources,
- .set_resources = noop_set_resources,
- .acpi_name = data_fabric_acpi_name,
- .acpi_fill_ssdt = acpi_device_write_pci_dev,
-};
--
To view, visit https://review.coreboot.org/c/coreboot/+/69174
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1804200c3c3f5ab492d237f4b03484c383862caf
Gerrit-Change-Number: 69174
Gerrit-PatchSet: 1
Gerrit-Owner: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Attention is currently required from: Jonathan Zhang, Johnny Lin, Christian Walter, Arthur Heymans, Tim Chu.
Marc Jones has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69144 )
Change subject: soc/intel/xeon_sp/cpx: Add get_ewl_hob() utility function
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69144
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8f949e9c881099c3723fca056e2c4732ca8b64cf
Gerrit-Change-Number: 69144
Gerrit-PatchSet: 2
Gerrit-Owner: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Attention: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-Comment-Date: Thu, 03 Nov 2022 19:23:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment