1. 14 8月, 2013 1 次提交
    • V
      iommu/fsl: Freescale PAMU driver and iommu implementation. · 695093e3
      Varun Sethi 提交于
      Following is a brief description of the PAMU hardware:
      PAMU determines what action to take and whether to authorize the action on
      the basis of the memory address, a Logical IO Device Number (LIODN), and
      PAACT table (logically) indexed by LIODN and address. Hardware devices which
      need to access memory must provide an LIODN in addition to the memory address.
      
      Peripheral Access Authorization and Control Tables (PAACTs) are the primary
      data structures used by PAMU. A PAACT is a table of peripheral access
      authorization and control entries (PAACE).Each PAACE defines the range of
      I/O bus address space that is accessible by the LIOD and the associated access
      capabilities.
      
      There are two types of PAACTs: primary PAACT (PPAACT) and secondary PAACT
      (SPAACT).A given physical I/O device may be able to act as one or more
      independent logical I/O devices (LIODs). Each such logical I/O device is
      assigned an identifier called logical I/O device number (LIODN). A LIODN is
      allocated a contiguous portion of the I/O bus address space called the DSA window
      for performing DSA operations. The DSA window may optionally be divided into
      multiple sub-windows, each of which may be used to map to a region in system
      storage space. The first sub-window is referred to as the primary sub-window
      and the remaining are called secondary sub-windows.
      
      This patch provides the PAMU driver (fsl_pamu.c) and the corresponding IOMMU
      API implementation (fsl_pamu_domain.c). The PAMU hardware driver (fsl_pamu.c)
      has been derived from the work done by Ashish Kalra and Timur Tabi.
      
      [For iommu group support]
      Acked-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NTimur Tabi <timur@tabi.org>
      Signed-off-by: NVarun Sethi <Varun.Sethi@freescale.com>
      Signed-off-by: NJoerg Roedel <joro@8bytes.org>
      695093e3
  2. 31 7月, 2013 1 次提交
  3. 16 3月, 2013 1 次提交
  4. 06 3月, 2013 1 次提交
  5. 16 2月, 2013 1 次提交
    • V
      powerpc/fsl_pci: Store the pci ctlr device ptr in the pci ctlr struct · 52c5affc
      Varun Sethi 提交于
      The pci controller structure has a provision to store the device structure
      pointer of the corresponding platform device. Currently this information is
      not stored during fsl pci controller initialization. This information is
      required while dealing with iommu groups for pci devices connected to the
      fsl pci controller. For the case where the pci devices can't be paritioned,
      they would fall under the same device group as the pci controller.
      
      This patch stores the platform device information in the pci controller
      structure during initialization.
      Signed-off-by: NVarun Sethi <Varun.Sethi@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      52c5affc
  6. 13 9月, 2012 2 次提交
  7. 11 7月, 2012 1 次提交
    • S
      powerpc/fsl-pci: get PCI init out of board files · 07e4f801
      Scott Wood 提交于
      As an alternative incremental starting point to Jia Hongtao's patchset,
      get the FSL PCI init out of the board files, but do not yet convert to a
      platform driver.
      
      Rather than having each board supply a magic register offset for
      determining the "primary" bus, we look for which PCI host bridge
      contains an ISA node within its subtree.  If there is no ISA node,
      normally that would mean there is no primary bus, but until certain
      bugs are fixed we arbitrarily designate a primary in this case.
      
      Conversion to a platform driver and related improvements can happen
      after this, as the ordering issues are sorted out.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      07e4f801
  8. 15 3月, 2011 1 次提交
  9. 14 10月, 2010 1 次提交
    • K
      powerpc/fsl-pci: Fix MSI support on 83xx platforms · b8f44ec2
      Kumar Gala 提交于
      The following commit broke 83xx because it assumed the 83xx platforms
      exposed the "IMMR" address in BAR0 like the 85xx/86xx/QoriQ devices do:
      
      commit 3da34aae
      Author: Kumar Gala <galak@kernel.crashing.org>
      Date:   Tue May 12 15:51:56 2009 -0500
      
          powerpc/fsl: Support unique MSI addresses per PCIe Root Complex
      
      However that is not true, so we have to search through the inbound
      window settings on 83xx to find which one matches the IMMR address to
      determine its PCI address.
      Reported-by: NIlya Yanok <yanok@emcraft.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      b8f44ec2
  10. 19 5月, 2009 1 次提交
  11. 17 7月, 2008 1 次提交
  12. 23 7月, 2007 3 次提交
  13. 27 3月, 2007 1 次提交