1. 16 1月, 2016 2 次提交
    • B
      Merge branches 'pci/host', 'pci/host-designware', 'pci/host-hisi',... · c111e8bf
      Bjorn Helgaas 提交于
      Merge branches 'pci/host', 'pci/host-designware', 'pci/host-hisi', 'pci/host-qcom' and 'pci/host-rcar' into next
      
      * pci/host:
        PCI: host: Add of_pci_get_host_bridge_resources() stub
        PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD
      
      * pci/host-designware:
        PCI: designware: Make config accessor override checking symmetric
        PCI: designware: Simplify control flow
      
      * pci/host-hisi:
        PCI: hisi: Add support for HiSilicon Hip06 PCIe host controllers
      
      * pci/host-qcom:
        ARM: dts: ifc6410: enable PCIe DT node for this board
        ARM: dts: apq8064: add PCIe devicetree node
        PCI: qcom: Add Qualcomm PCIe controller driver
        PCI: qcom: Document PCIe devicetree bindings
        PCI: designware: Ensure ATU is enabled before IO/conf space accesses
      
      * pci/host-rcar:
        PCI: rcar: Add Gen2 PHY setup to pcie-rcar
        PCI: rcar: Add runtime PM support to pcie-rcar
        PCI: rcar: Remove unused pci_sys_data struct from pcie-rcar
      c111e8bf
    • A
      PCI: host: Add of_pci_get_host_bridge_resources() stub · 40704b12
      Arnd Bergmann 提交于
      The pcie-rcar driver can be built for any ARM platform (for COMPILE_TEST)
      including those without CONFIG_OF enabled, and that results in a
      compile-time error:
      
        drivers/pci/host/pcie-rcar.c: In function 'rcar_pcie_parse_request_of_pci_ranges':
        drivers/pci/host/pcie-rcar.c:939:8: error: implicit declaration of function 'of_pci_get_host_bridge_resources' [-Werror=implicit-function-declaration]
          err = of_pci_get_host_bridge_resources(np, 0, 0xff, &pci->resources, &iobase);
      
      Add a of_pci_get_host_bridge_resources() stub function defined when
      CONFIG_OF_ADDRESS is disabled to allow compile-testing on all platforms.
      This mirrors what we do for other OF-specific functions.
      
      Fixes: 5d2917d4 ("PCI: rcar: Convert to DT resource parsing API")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Acked-by: NSimon Horman <horms+renesas@verge.net.au>
      40704b12
  2. 11 1月, 2016 5 次提交
  3. 09 1月, 2016 2 次提交
  4. 07 1月, 2016 3 次提交
    • B
      Merge branches 'pci/host-generic', 'pci/host-imx6', 'pci/host-iproc' and 'pci/host-rcar' into next · 65d5b109
      Bjorn Helgaas 提交于
      * pci/host-generic:
        PCI: generic,versatile: Remove unused pci_sys_data structures
      
      * pci/host-imx6:
        PCI: imx6: Add support for active-low reset GPIO
        PCI: imx6: Use gpio_set_value_cansleep()
      
      * pci/host-iproc:
        PCI: iproc: Add iProc PCIe MSI support
        PCI: iproc: Add iProc PCIe MSI device tree binding
        PCI: iproc: Add PAXC interface support
        PCI: iproc: Update iProc PCIe device tree binding
        PCI: iproc: Do not use 0x in front of %pap
        PCI: iproc: Hide CONFIG_PCIE_IPROC
      
      * pci/host-rcar:
        PCI: rcar: Add gen2 fallback compatibility string for pcie-rcar
        PCI: rcar: Add gen2 fallback compatibility string for pci-rcar-gen2
        PCI: rcar: Add support for R-Car H3 to pcie-rcar
        Revert "PCI: rcar: Build pcie-rcar.c only on ARM"
        PCI: rcar: Convert to DT resource parsing API
        PCI: rcar: Allow DT to override default window settings
      65d5b109
    • R
      PCI: iproc: Add iProc PCIe MSI support · 3bc2b234
      Ray Jui 提交于
      Add PCIe MSI support for both PAXB and PAXC interfaces on all iProc-based
      platforms.
      
      The iProc PCIe MSI support deploys an event queue-based implementation.
      Each event queue is serviced by a GIC interrupt and can support up to 64
      MSI vectors.  Host memory is allocated for the event queues, and each event
      queue consists of 64 word-sized entries.  MSI data is written to the lower
      16-bit of each entry, whereas the upper 16-bit of the entry is reserved for
      the controller for internal processing.
      
      Each event queue is tracked by a head pointer and tail pointer.  Head
      pointer indicates the next entry in the event queue to be processed by
      the driver and is updated by the driver after processing is done.
      The controller uses the tail pointer as the next MSI data insertion
      point.  The controller ensures MSI data is flushed to host memory before
      updating the tail pointer and then triggering the interrupt.
      
      MSI IRQ affinity is supported by evenly distributing the interrupts to each
      CPU core.  MSI vector is moved from one GIC interrupt to another in order
      to steer to the target CPU.
      
      Therefore, the actual number of supported MSI vectors is:
      
        M * 64 / N
      
      where M denotes the number of GIC interrupts (event queues), and N denotes
      the number of CPU cores.
      
      This iProc event queue-based MSI support should not be used with newer
      platforms with integrated MSI support in the GIC (e.g., giv2m or
      gicv3-its).
      
      [bhelgaas: fold in Kconfig fixes from Arnd Bergmann <arnd@arndb.de>]
      Signed-off-by: NRay Jui <rjui@broadcom.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NAnup Patel <anup.patel@broadcom.com>
      Reviewed-by: NVikram Prakash <vikramp@broadcom.com>
      Reviewed-by: NScott Branden <sbranden@broadcom.com>
      Reviewed-by: NMarc Zyngier <marc.zyngier@arm.com>
      3bc2b234
    • G
      PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD · 8ff0ef99
      Grygorii Strashko 提交于
      On -RT and if kernel is booting with "threadirqs" cmd line parameter,
      PCIe/PCI (MSI) IRQ cascade handlers (like dra7xx_pcie_msi_irq_handler())
      will be forced threaded and, as result, will generate warnings like this:
      
        WARNING: CPU: 1 PID: 82 at kernel/irq/handle.c:150 handle_irq_event_percpu+0x14c/0x174()
        irq 460 handler irq_default_primary_handler+0x0/0x14 enabled interrupts
        Backtrace:
         (warn_slowpath_common) from (warn_slowpath_fmt+0x38/0x40)
         (warn_slowpath_fmt) from (handle_irq_event_percpu+0x14c/0x174)
         (handle_irq_event_percpu) from (handle_irq_event+0x84/0xb8)
         (handle_irq_event) from (handle_simple_irq+0x90/0x118)
         (handle_simple_irq) from (generic_handle_irq+0x30/0x44)
         (generic_handle_irq) from (dra7xx_pcie_msi_irq_handler+0x7c/0x8c)
         (dra7xx_pcie_msi_irq_handler) from (irq_forced_thread_fn+0x28/0x5c)
         (irq_forced_thread_fn) from (irq_thread+0x128/0x204)
      
      This happens because all of them invoke generic_handle_irq() from the
      requested handler.  generic_handle_irq() grabs raw_locks and thus needs to
      run in raw-IRQ context.
      
      This issue was originally reproduced on TI dra7-evem, but, as was
      identified during discussion [1], other hosts can also suffer from this
      issue.  Fix all them at once by marking PCIe/PCI (MSI) IRQ cascade handlers
      IRQF_NO_THREAD explicitly.
      
      [1] http://lkml.kernel.org/r/1448027966-21610-1-git-send-email-grygorii.strashko@ti.com
      
      [bhelgaas: add stable tag, fix typos]
      Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: Lucas Stach <l.stach@pengutronix.de> (for imx6)
      CC: stable@vger.kernel.org
      CC: Kishon Vijay Abraham I <kishon@ti.com>
      CC: Jingoo Han <jingoohan1@gmail.com>
      CC: Kukjin Kim <kgene@kernel.org>
      CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
      CC: Richard Zhu <Richard.Zhu@freescale.com>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: Simon Horman <horms@verge.net.au>
      CC: Pratyush Anand <pratyush.anand@gmail.com>
      CC: Michal Simek <michal.simek@xilinx.com>
      CC: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
      CC: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      8ff0ef99
  5. 06 1月, 2016 4 次提交
  6. 11 12月, 2015 9 次提交
  7. 10 12月, 2015 2 次提交
  8. 09 12月, 2015 3 次提交
  9. 08 12月, 2015 3 次提交
  10. 05 12月, 2015 1 次提交
  11. 04 12月, 2015 1 次提交
    • A
      PCI/ASPM: Make sysfs link_state_store() consistent with link_state_show() · 57d86a04
      Andy Lutomirski 提交于
      If CONFIG_PCIEASPM_DEBUG is set, then PCI devices have a link_state
      attribute.  Reading that attribute shows the state as a bit mask: 1
      means L0S upstream, 2 means L0S downstream, and 4 means L1.
      
      Oddly, writing to link_state is inconsistent and gets translated, leading
      to mysterious results in which the value you store isn't comparable the
      value you load back out.
      
      Fix it by making link_state_store() match link_state_show().
      
      [bhelgaas: Check "aspm_disabled" *before* validating input.  When
      "aspm_disabled" is set, this changes the error for invalid input from
      -EINVAL to -EPERM.]
      Signed-off-by: NAndy Lutomirski <luto@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      57d86a04
  12. 01 12月, 2015 2 次提交
  13. 26 11月, 2015 3 次提交