1. 07 10月, 2021 1 次提交
  2. 02 9月, 2021 1 次提交
    • R
      PCI: VMD: ACPI: Make ACPI companion lookup work for VMD bus · 59dc3325
      Rafael J. Wysocki 提交于
      On some systems, in order to get to the deepest low-power state of
      the platform (which may be necessary to save significant enough
      amounts of energy while suspended to idle. for example), devices on
      the PCI bus exposed by the VMD driver need to be power-managed via
      ACPI.  However, the layout of the ACPI namespace below the VMD
      controller device object does not reflect the layout of the PCI bus
      under the VMD host bridge, so in order to identify the ACPI companion
      objects for the devices on that bus, it is necessary to use a special
      _ADR encoding on the ACPI side.  In other words, acpi_pci_find_companion()
      does not work for these devices, so it needs to be amended with a
      special lookup logic specific to the VMD bus.
      
      Address this issue by allowing the VMD driver to temporarily install
      an ACPI companion lookup hook containing the code matching the devices
      on the VMD PCI bus with the corresponding objects in the ACPI
      namespace.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NJon Derrick <jonathan.derrick@intel.com>
      59dc3325
  3. 22 3月, 2021 1 次提交
  4. 11 12月, 2020 2 次提交
  5. 23 11月, 2020 1 次提交
  6. 29 10月, 2020 1 次提交
  7. 21 10月, 2020 5 次提交
  8. 16 9月, 2020 2 次提交
  9. 23 7月, 2020 1 次提交
  10. 14 7月, 2020 1 次提交
  11. 06 7月, 2020 1 次提交
  12. 30 5月, 2020 1 次提交
  13. 30 1月, 2020 1 次提交
  14. 29 1月, 2020 1 次提交
  15. 25 1月, 2020 2 次提交
  16. 22 11月, 2019 1 次提交
  17. 21 11月, 2019 2 次提交
  18. 18 9月, 2019 2 次提交
  19. 09 7月, 2019 1 次提交
  20. 24 4月, 2019 1 次提交
  21. 30 1月, 2019 1 次提交
  22. 14 12月, 2018 1 次提交
  23. 06 12月, 2018 1 次提交
  24. 19 10月, 2018 1 次提交
    • J
      PCI: vmd: Detach resources after stopping root bus · dc8af3a8
      Jon Derrick 提交于
      The VMD removal path calls pci_stop_root_busi(), which tears down the pcie
      tree, including detaching all of the attached drivers. During driver
      detachment, devices may use pci_release_region() to release resources.
      This path relies on the resource being accessible in resource tree.
      
      By detaching the child domain from the parent resource domain prior to
      stopping the bus, we are preventing the list traversal from finding the
      resource to be freed. If we instead detach the resource after stopping
      the bus, we will have properly freed the resource and detaching is
      simply accounting at that point.
      
      Without this order, the resource is never freed and is orphaned on VMD
      removal, leading to a warning:
      
      [  181.940162] Trying to free nonexistent resource <e5a10000-e5a13fff>
      
      Fixes: 2c2c5c5c ("x86/PCI: VMD: Attach VMD resources to parent domain's resource tree")
      Signed-off-by: NJon Derrick <jonathan.derrick@intel.com>
      [lorenzo.pieralisi@arm.com: updated commit log]
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Reviewed-by: NKeith Busch <keith.busch@intel.com>
      dc8af3a8
  25. 01 10月, 2018 1 次提交
  26. 29 6月, 2018 1 次提交
  27. 08 6月, 2018 1 次提交
  28. 25 5月, 2018 4 次提交