1. 21 Oct, 2020 6 commits
    • Bjorn Helgaas's avatar
      Merge branch 'pci/misc' · 8b28a3f3
      Bjorn Helgaas authored
      - Remove unnecessary #includes (Gustavo Pimentel)
      
      - Fix intel_mid_pci.c build error when !CONFIG_ACPI (Randy Dunlap)
      
      - Use scnprintf(), not snprintf(), in sysfs "show" functions (Krzysztof
        Wilczyński)
      
      - Simplify pci-pf-stub by using module_pci_driver() (Liu Shixin)
      
      - Print IRQ used by Link Bandwidth Notification (Dongdong Liu)
      
      - Update sysfs mmap-related #ifdef comments (Clint Sbisa)
      
      - Simplify pci_dev_reset_slot_function() (Lukas Wunner)
      
      - Use "NULL" instead of "0" to fix sparse warnings (Gustavo Pimentel)
      
      - Simplify bool comparisons (Krzysztof Wilczyński)
      
      - Drop double zeroing for P2PDMA sg_init_table() (Julia Lawall)
      
      * pci/misc:
        PCI: v3-semi: Remove unneeded break
        PCI/P2PDMA: Drop double zeroing for sg_init_table()
        PCI: Simplify bool comparisons
        PCI: endpoint: Use "NULL" instead of "0" as a NULL pointer
        PCI: Simplify pci_dev_reset_slot_function()
        PCI: Update mmap-related #ifdef comments
        PCI/LINK: Print IRQ number used by port
        PCI/IOV: Simplify pci-pf-stub with module_pci_driver()
        PCI: Use scnprintf(), not snprintf(), in sysfs "show" functions
        x86/PCI: Fix intel_mid_pci.c build error when ACPI is not enabled
        PCI: Remove unnecessary header includes
      8b28a3f3
    • Bjorn Helgaas's avatar
      Merge branch 'pci/pm' · 0d2493ab
      Bjorn Helgaas authored
      - Remove unused pcibios_pm_ops (Vaibhav Gupta)
      
      - Rename pci_dev.d3_delay to d3hot_delay (Krzysztof Wilczyński)
      
      - Apply D2 transition delay as microseconds, not milliseconds (Bjorn
        Helgaas)
      
      * pci/pm:
        PCI/PM: Revert "PCI/PM: Apply D2 delay as milliseconds, not microseconds"
        PCI/PM: Remove unused PCI_PM_BUS_WAIT
        PCI/PM: Rename pci_dev.d3_delay to d3hot_delay
        PCI/PM: Remove unused pcibios_pm_ops
      0d2493ab
    • Bjorn Helgaas's avatar
      Merge branch 'pci/hotplug' · 5cfdc750
      Bjorn Helgaas authored
      - Use for_each_child_of_node() and for_each_node_by_name() instead of
        open-coding them (Qinglang Miao)
      
      - Reduce pciehp noisiness on hot removal (Lukas Wunner)
      
      - Remove unused assignment in shpchp (Krzysztof Wilczyński)
      
      * pci/hotplug:
        PCI: shpchp: Remove unused 'rc' assignment
        PCI: pciehp: Reduce noisiness on hot removal
        PCI: rpadlpar: Use for_each_child_of_node() and for_each_node_by_name()
      5cfdc750
    • Bjorn Helgaas's avatar
      Merge branch 'pci/enumeration' · 28a18aec
      Bjorn Helgaas authored
      - Tone down message about missing optional MCFG (Jeremy Linton)
      
      - Add schedule point in pci_read_config() (Jiang Biao)
      
      - Add Ampere Altra SOC MCFG quirk (Tuan Phan)
      
      - Add Kconfig options for MPS/MRRS strategy (Jim Quinlan)
      
      * pci/enumeration:
        PCI: Add Kconfig options for MPS/MRRS strategy
        PCI/ACPI: Add Ampere Altra SOC MCFG quirk
        PCI: Add schedule point in pci_read_config()
        PCI/ACPI: Tone down missing MCFG message
      28a18aec
    • Bjorn Helgaas's avatar
      Merge branch 'pci/aspm' · a9f37906
      Bjorn Helgaas authored
      - Remove struct aspm_register_info (Saheed O. Bolarinwa)
      
      - Remove struct pcie_link_state.l1ss (Saheed O. Bolarinwa)
      
      * pci/aspm:
        PCI/ASPM: Remove struct pcie_link_state.l1ss
        PCI/ASPM: Remove struct aspm_register_info.l1ss_cap
        PCI/ASPM: Pass L1SS Capabilities value, not struct aspm_register_info
        PCI/ASPM: Remove struct aspm_register_info.l1ss_ctl1
        PCI/ASPM: Remove struct aspm_register_info.l1ss_ctl2 (unused)
        PCI/ASPM: Remove struct aspm_register_info.l1ss_cap_ptr
        PCI/ASPM: Remove struct aspm_register_info.latency_encoding
        PCI/ASPM: Remove struct aspm_register_info.enabled
        PCI/ASPM: Remove struct aspm_register_info.support
        PCI/ASPM: Use 'parent' and 'child' for readability
        PCI/ASPM: Move LTR path check to where it's used
        PCI/ASPM: Move pci_clear_and_set_dword() earlier
      a9f37906
    • Bjorn Helgaas's avatar
      Merge branch 'pci/acs' · 97d0260b
      Bjorn Helgaas authored
      - Enable Translation Blocking for external devices (Rajat Jain)
      
      * pci/acs:
        PCI/ACS: Enable Translation Blocking for external devices
      97d0260b
  2. 20 Oct, 2020 1 commit
  3. 16 Oct, 2020 12 commits
  4. 30 Sep, 2020 5 commits
  5. 29 Sep, 2020 2 commits
  6. 28 Sep, 2020 1 commit
  7. 17 Sep, 2020 9 commits
  8. 16 Sep, 2020 1 commit
    • Rajat Jain's avatar
      PCI/ACS: Enable Translation Blocking for external devices · 76fc8e85
      Rajat Jain authored
      Translation Blocking is a required feature for Downstream Ports (Root
      Ports or Switch Downstream Ports) that implement ACS.  When enabled, the
      Port checks the Address Type (AT) of each upstream Memory Request it
      receives.
      
      The default AT (00b) means "untranslated" and the IOMMU can decide whether
      to treat the address as I/O virtual or physical.
      
      If AT is not the default, i.e., if the Memory Request contains an
      already-translated (physical) address, the Port blocks the request and
      reports an ACS error.
      
      When enabling ACS, enable Translation Blocking for external-facing ports
      and untrusted (external) devices.  This is to help prevent attacks from
      external devices that initiate DMA with physical addresses that bypass the
      IOMMU.
      
      [bhelgaas: commit log, simplify setting bit and drop warning; TB is
      required for Downstream Ports with ACS, so we should never see the warning]
      Link: https://lore.kernel.org/r/20200707224604.3737893-4-rajatja@google.comSigned-off-by: default avatarRajat Jain <rajatja@google.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      76fc8e85
  9. 15 Sep, 2020 1 commit
  10. 01 Sep, 2020 2 commits