summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/tigerlake/include/soc/pci_devs.h
diff options
context:
space:
mode:
authorJohn Zhao <john.zhao@intel.com>2020-05-01 22:04:00 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-07-07 17:29:56 +0000
commit5d16a25e0cece666e9275a1c627050bfd918b6ac (patch)
tree2f6bbc3a8bcf9ddce34ae8dac94cdff20eea9e35 /src/soc/intel/tigerlake/include/soc/pci_devs.h
parentcb01c2a315d20ca0eb0269b7917a9884d7f4c2fd (diff)
downloadcoreboot-5d16a25e0cece666e9275a1c627050bfd918b6ac.tar.gz
coreboot-5d16a25e0cece666e9275a1c627050bfd918b6ac.tar.bz2
coreboot-5d16a25e0cece666e9275a1c627050bfd918b6ac.zip
soc/intel/tigerlake: Disable Thunderbolt PCIe root ports bus master
This change disables Thunderbolt PCIe root ports bus master before handing over to payload in order to mitigate the threat from the unauthorized external DMA. In this state, the PCIe root ports would be considered as trusted to not forward any DMA transactions to downstream endpoint devices. BUG=b:141609884 TEST=Verified PCIe resource has been allocated properly and USB behind Thunderbolt dock is enumerated successfully. Change-Id: I9650b9dd4df1f9bee53ae3737b7bf60b2ef8017b Signed-off-by: John Zhao <john.zhao@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40968 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/tigerlake/include/soc/pci_devs.h')
-rw-r--r--src/soc/intel/tigerlake/include/soc/pci_devs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/include/soc/pci_devs.h b/src/soc/intel/tigerlake/include/soc/pci_devs.h
index ee3e894a922d..82d836052489 100644
--- a/src/soc/intel/tigerlake/include/soc/pci_devs.h
+++ b/src/soc/intel/tigerlake/include/soc/pci_devs.h
@@ -35,6 +35,8 @@
#define SA_DEV_IPU PCI_DEV(0, SA_DEV_SLOT_IPU, 0)
#define SA_DEV_SLOT_TBT 0x07
+#define SA_DEVFN_TBT(x) PCI_DEVFN(SA_DEV_SLOT_TBT, (x))
+#define NUM_TBT_FUNCTIONS 4
#define SA_DEVFN_TBT0 PCI_DEVFN(SA_DEV_SLOT_TBT, 0)
#define SA_DEVFN_TBT1 PCI_DEVFN(SA_DEV_SLOT_TBT, 1)
#define SA_DEVFN_TBT2 PCI_DEVFN(SA_DEV_SLOT_TBT, 2)