1. 05 4月, 2019 2 次提交
  2. 01 3月, 2019 3 次提交
  3. 15 2月, 2019 1 次提交
  4. 01 2月, 2019 1 次提交
  5. 18 12月, 2018 1 次提交
    • S
      PCI: dwc: Don't hard-code DBI/ATU offset · 6d6b05e3
      Stephen Warren 提交于
      The DWC PCIe core contains various separate register spaces: DBI, DBI2,
      ATU, DMA, etc. The relationship between the addresses of these register
      spaces is entirely determined by the implementation of the IP block, not
      by the IP block design itself. Hence, the DWC driver must not make
      assumptions that one register space can be accessed at a fixed offset from
      any other register space. To avoid such assumptions, introduce an
      explicit/separate register pointer for the ATU register space. In
      particular, the current assumption is not valid for NVIDIA's T194 SoC.
      
      The ATU register space is only used on systems that require unrolled ATU
      access. This property is detected at run-time for host controllers, and
      when this is detected, this patch provides a default value for atu_base
      that matches the previous assumption re: register layout. An alternative
      would be to update all drivers for HW that requires unrolled access to
      explicitly set atu_base. However, it's hard to tell which drivers would
      require atu_base to be set. The unrolled property is not detected for
      endpoint systems, and so any endpoint driver that requires unrolled access
      must explicitly set the iatu_unroll_enabled flag (none do at present), and
      so a check is added to require the driver to also set atu_base while at
      it.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Acked-by: NGustavo Pimentel <gustavo.pimentel@synopsys.com>
      Acked-by: NVidya Sagar <vidyas@nvidia.com>
      6d6b05e3
  6. 17 10月, 2018 1 次提交
  7. 21 9月, 2018 1 次提交
  8. 19 7月, 2018 4 次提交
  9. 08 6月, 2018 1 次提交
  10. 15 5月, 2018 1 次提交
  11. 06 3月, 2018 3 次提交
  12. 29 1月, 2018 1 次提交
  13. 21 12月, 2017 6 次提交
  14. 19 12月, 2017 2 次提交
    • K
      PCI: designware-ep: Fix ->get_msi() to check MSI_EN bit · a134a457
      Kishon Vijay Abraham I 提交于
      ->get_msi() now checks MSI_EN bit in the MSI CAPABILITY register to
      find whether the host supports MSI instead of using the
      MSI ADDRESS in the MSI CAPABILITY register.
      
      This fixes the issue with the following sequence
        'modprobe pci_endpoint_test' enables MSI
        'rmmod pci_endpoint_test' disables MSI but MSI address (in EP's
      	capability register) has a valid value
        'modprobe pci_endpoint_test no_msi=1' - Since MSI address (in EP's
      	capability register) has a valid value (set during the previous
      	insertion of the module), EP thinks host supports MSI.
      
      Fixes: f8aed6ec ("PCI: dwc: designware: Add EP mode support")
      Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      a134a457
    • N
      PCI: designware-ep: Fix find_first_zero_bit() usage · ad4a5bec
      Niklas Cassel 提交于
      find_first_zero_bit()'s parameter 'size' is defined in bits,
      not in bytes.
      
      find_first_zero_bit() is called with size in bytes rather than bits,
      which thus defines a too low upper limit, causing
      dw_pcie_ep_inbound_atu() to assign iatu index #4 to both bar 4
      and bar 5, which makes bar 5 overwrite the settings set by bar 4.
      
      Since the sizes of the bitmaps are known, dynamically allocate the
      bitmaps, and use the correct size when calling find_first_zero_bit().
      
      Additionally, make sure that ep->num_ob_windows and ep->num_ib_windows,
      which are obtained from device tree, are smaller than the maximum number
      of iATUs (MAX_IATU_IN/MAX_IATU_OUT).
      
      Fixes: f8aed6ec ("PCI: dwc: designware: Add EP mode support")
      Signed-off-by: NNiklas Cassel <niklas.cassel@axis.com>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Acked-by: NKishon Vijay Abraham I <kishon@ti.com>
      ad4a5bec
  15. 02 9月, 2017 1 次提交
  16. 30 8月, 2017 2 次提交
  17. 04 8月, 2017 1 次提交
  18. 03 7月, 2017 1 次提交
  19. 28 4月, 2017 2 次提交
  20. 04 4月, 2017 3 次提交
  21. 22 2月, 2017 2 次提交