1. 15 11月, 2011 1 次提交
    • A
      iommu: Add iommu_device_group callback and iommu_group sysfs entry · 1460432c
      Alex Williamson 提交于
      An IOMMU group is a set of devices for which the IOMMU cannot
      distinguish transactions.  For PCI devices, a group often occurs
      when a PCI bridge is involved.  Transactions from any device
      behind the bridge appear to be sourced from the bridge itself.
      We leave it to the IOMMU driver to define the grouping restraints
      for their platform.
      
      Using this new interface, the group for a device can be retrieved
      using the iommu_device_group() callback.  Users will compare the
      value returned against the value returned for other devices to
      determine whether they are part of the same group.  Devices with
      no group are not translated by the IOMMU.  There should be no
      expectations about the group numbers as they may be arbitrarily
      assigned by the IOMMU driver and may not be persistent across boots.
      
      We also provide a sysfs interface to the group numbers here so
      that userspace can understand IOMMU dependencies between devices
      for managing safe, userspace drivers.
      
      [Some code changes by Joerg Roedel <joerg.roedel@amd.com>]
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
      1460432c
  2. 21 10月, 2011 5 次提交
  3. 30 9月, 2011 1 次提交
  4. 26 9月, 2011 1 次提交
  5. 14 9月, 2011 1 次提交
    • O
      iommu/core: Add fault reporting mechanism · 4f3f8d9d
      Ohad Ben-Cohen 提交于
      Add iommu fault report mechanism to the IOMMU API, so implementations
      could report about mmu faults (translation errors, hardware errors,
      etc..).
      
      Fault reports can be used in several ways:
      - mere logging
      - reset the device that accessed the faulting address (may be necessary
        in case the device is a remote processor for example)
      - implement dynamic PTE/TLB loading
      
      A dedicated iommu_set_fault_handler() API has been added to allow
      users, who are interested to receive such reports, to provide
      their handler.
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
      4f3f8d9d
  6. 06 9月, 2011 1 次提交
  7. 05 9月, 2011 1 次提交
  8. 14 6月, 2011 1 次提交
  9. 08 3月, 2010 4 次提交
  10. 07 5月, 2009 1 次提交
  11. 24 3月, 2009 1 次提交
  12. 05 3月, 2009 1 次提交
  13. 03 1月, 2009 1 次提交