1. 22 1月, 2019 2 次提交
  2. 11 1月, 2019 1 次提交
    • R
      iommu/of: Fix probe-deferral · e8e683ae
      Robin Murphy 提交于
      Whilst iommu_probe_device() does check for non-NULL ops as the previous
      code did, it does not do so in the same order relative to the other
      checks, and as a result means that -EPROBE_DEFER returned by of_xlate()
      (plus any real error condition too) gets overwritten with -EINVAL and
      leads to various misbehaviour.
      
      Reinstate the original logic, but without implicitly relying on ops
      being set to infer !err as the initial condition (now that the validity
      of ops for its own sake is checked elsewhere).
      
      Fixes: 641fb0ef ("iommu/of: Don't call iommu_ops->add_device directly")
      Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      e8e683ae
  3. 20 12月, 2018 1 次提交
  4. 17 12月, 2018 14 次提交
  5. 14 12月, 2018 1 次提交
  6. 11 12月, 2018 13 次提交
  7. 10 12月, 2018 7 次提交
  8. 07 12月, 2018 1 次提交
    • Y
      iommu/amd: Fix amd_iommu=force_isolation · c12b08eb
      Yu Zhao 提交于
      The parameter is still there but it's ignored. We need to check its
      value before deciding to go into passthrough mode for AMD IOMMU v2
      capable device.
      
      We occasionally use this parameter to force v2 capable device into
      translation mode to debug memory corruption that we suspect is
      caused by DMA writes.
      
      To address the following comment from Joerg Roedel on the first
      version, v2 capability of device is completely ignored.
      > This breaks the iommu_v2 use-case, as it needs a direct mapping for the
      > devices that support it.
      
      And from Documentation/admin-guide/kernel-parameters.txt:
        This option does not override iommu=pt
      
      Fixes: aafd8ba0 ("iommu/amd: Implement add_device and remove_device")
      Signed-off-by: NYu Zhao <yuzhao@google.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      c12b08eb