1. Sep 23, 2014
    • Bjorn Helgaas's avatar
      Merge branches 'pci/enumeration', 'pci/misc' and 'pci/virtualization' into next · 134cd00d
      Bjorn Helgaas authored
      * pci/enumeration:
        PCI: Enable CRS Software Visibility for root port if it is supported
        PCI: Check only the Vendor ID to identify Configuration Request Retry
      
      * pci/misc:
        PCI: Parenthesize PCI_DEVID and PCI_VPD_LRDT_ID parameters
        PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size
        PCI/AER: Make <linux/aer.h> standalone includable
      
      * pci/virtualization:
        PCI: Use device flag helper functions
        xen/pciback: Use PCI device flag helper functions
        KVM: Use PCI device flag helper functions
        PCI: Add device flag helper functions
        PCI: Assume all Mellanox devices have broken INTx masking
      134cd00d
  2. Sep 17, 2014
  3. Sep 09, 2014
    • Rajat Jain's avatar
      PCI: Enable CRS Software Visibility for root port if it is supported · f3dbd802
      Rajat Jain authored
      Per PCIe r3.0, sec 2.3.2, an endpoint may respond to a Configuration
      Request with a Completion with Configuration Request Retry Status (CRS).
      This terminates the Configuration Request.
      
      When the CRS Software Visibility feature is disabled (as it is by default),
      a Root Complex must handle a CRS Completion by re-issuing the Configuration
      Request.  This is invisible to software.  From the CPU's point of view, an
      endpoint that always responds with CRS causes a hang because the Root
      Complex never supplies data to complete the CPU read.
      
      When CRS Software Visibility is enabled, a Root Complex that receives a CRS
      Completion for a read of the Vendor ID must return data of 0x0001.  The
      Vendor ID of 0x0001 indicates to software that the endpoint is not ready.
      
      We now have more devices that require CRS Software Visibility.  For
      example, a PLX 8713 NT bridge may respond with CRS until it has been
      configured via I2C, and the I2C configuration is completely independent of
      PCI enumeration.
      
      Enable CRS Software Visibility if it is supported.  This allows a system
      with such a device to work (though the PCI core times out waiting for it to
      become ready, and we have to rescan the bus after it is ready).
      
      This essentially reverts ad7edfe0 ("[PCI] Do not enable CRS Software
      Visibility by default").  The failures that led to ad7edfe0 should be
      addressed by 89665a6a ("PCI: Check only the Vendor ID to identify
      Configuration Request Retry").
      
      [bhelgaas: changelog]
      Link: http://lkml.kernel.org/r/20071029061532.5d10dfc6@snowcone
      Link: http://lkml.kernel.org/r/alpine.LFD.0.9999.0712271023090.21557@woody.linux-foundation.org
      
      
      Signed-off-by: default avatarRajat Jain <rajatxjain@gmail.com>
      Signed-off-by: default avatarRajat Jain <rajatjain@juniper.net>
      Signed-off-by: default avatarGuenter Roeck <groeck@juniper.net>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      f3dbd802
    • Rajat Jain's avatar
      PCI: Check only the Vendor ID to identify Configuration Request Retry · 89665a6a
      Rajat Jain authored
      Per PCIe r3.0, sec 2.3.2, if a Root Complex
      
        - has Configuration Request Retry Status Software Visibility enabled,
        - issues a Configuration Read of both bytes of the Vendor ID, and
        - receives a Completion with Configuration Request Retry Status (CRS),
      
      it must complete the request to the host by fabricating data of 0x0001 for
      the Vendor ID and 0xff for any additional bytes in the request.
      
      Linux issues a single config read for the four bytes containing the Vendor
      ID and the Device ID.  Previously we checked all four bytes for 0xffff0001
      to identify CRS.
      
      However, it is only the Vendor ID that really indicates CRS, because it's
      sufficient to read only those two bytes.  Checking the Device ID verifies
      spec compliance but doesn't add any information.
      
      Some Root Complexes appear to indicate CRS by returning 0x0001 for the
      Vendor ID along with the actual the Device ID.  Previously we interpreted
      that as a valid Vendor/Device ID pair, although 0x0001 is reserved and
      cannot be a valid Vendor ID.
      
      [bhelgaas: changelog]
      Link: http://lkml.kernel.org/r/4729FC36.3040000@gmail.com
      
      
      Signed-off-by: default avatarRajat Jain <rajatxjain@gmail.com>
      Signed-off-by: default avatarRajat Jain <rajatjain@juniper.net>
      Signed-off-by: default avatarGuenter Roeck <groeck@juniper.net>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      89665a6a
    • Gavin Shan's avatar
      PCI: Assume all Mellanox devices have broken INTx masking · 11e42532
      Gavin Shan authored
      
      
      The VFIO driver routes LSI interrupts by capturing, masking, and then
      delivering.  When passing though Mellanox adapters from host to guest,
      interrupt storm are reported from host and guest.  That's because the PCI
      command register INTx Disable bit doesn't work on Mellanox devices.
      
        # lspci | grep Mellanox
        0001:05:00.0 Ethernet controller: Mellanox Technologies MT27500 Family [ConnectX-3]
        0005:01:00.0 Ethernet controller: Mellanox Technologies MT26448 [ConnectX EN 10GigE, PCIe 2.0 5GT/s] (rev b0)
      
      Amir Vadai confirmed that all Mellanox devices have same problem.
      The patch marks broken INTx masking for all Mellanox adapters.
      
      Suggested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-By: default avatarAmir Vadai <amirv@mellanox.com>
      11e42532
  4. Sep 06, 2014
    • Bjorn Helgaas's avatar
      Merge branches 'pci/misc', 'pci/pm', 'pci/host-designware', 'pci/host-imx6',... · a2351efe
      Bjorn Helgaas authored
      Merge branches 'pci/misc', 'pci/pm', 'pci/host-designware', 'pci/host-imx6', 'pci/host-keystone', 'pci/host-tegra' and 'pci/host-xilinx' into next
      
      * pci/misc:
        PCI/AER: Make <linux/aer.h> standalone includable
        PCI: Remove unnecessary variable in pci_add_dynid()
      
      * pci/pm:
        PCI/PM: Allow PCI devices to be put into D3cold during system suspend
        PCI/PM: Drop unused runtime PM support code for PCIe ports
      
      * pci/host-designware:
        PCI: designware: Check private_data validity in single place
        PCI: designware: Remove pci_assign_unassigned_resources() from dw_pcie_host_init()
        PCI: designware: Use pci_create_root_bus() instead of pci_scan_root_bus()
        PCI: designware: Parse bus-range property from devicetree
        PCI: designware: Add support for v3.65 hardware
      
      * pci/host-imx6:
        PCI: imx6: Probe in module_init(), not fs_initcall()
        PCI: designware: Remove pci_assign_unassigned_resources() from dw_pcie_host_init()
        PCI: designware: Use pci_create_root_bus() instead of pci_scan_root_bus()
        PCI: designware: Parse bus-range property from devicetree
        PCI: imx6: Put LTSSM in "Detect" state before disabling it
        MAINTAINERS: Add Lucas Stach as co-maintainer for i.MX6 PCI driver
        PCI: designware: Add support for v3.65 hardware
      
      * pci/host-keystone:
        PCI: keystone: Add TI Keystone PCIe driver
        PCI: designware: Add support for v3.65 hardware
      
      * pci/host-tegra:
        PCI: tegra: Implement a proper resource hierarchy
        PCI: tegra: Add missing cleanup in error path and tegra_msi_teardown_irq()
        resources: Add device-managed request/release_resource()
      
      * pci/host-xilinx:
        PCI: xilinx: Add Xilinx AXI PCIe Host Bridge IP driver
      
      Conflicts:
      	drivers/pci/host/Kconfig
      	drivers/pci/host/Makefile
      a2351efe
  5. Sep 05, 2014
  6. Sep 04, 2014
  7. Sep 03, 2014
    • Murali Karicheri's avatar
      PCI: designware: Add support for v3.65 hardware · b14a3d17
      Murali Karicheri authored
      
      
      The Keystone PCI controller is based on v3.65 DesignWare hardware.  This
      version differs from newer versions of the hardware in functional areas
      discussed below that make it necessary to change dw_pcie_host_init() to
      support v3.65 based PCI controller.
      
          1. No support for ATU port.  Any ATU-specific resource handling code is
             to be bypassed for v3.65 h/w.
      
          2. MSI controller uses application space to implement MSI and 32 MSI
             interrupts are multiplexed over 8 IRQs to the host.  Hence the code
             to process MSI IRQ needs to be different.  This patch allows
             platform driver to provide its own irq_domain_ops ptr to
             irq_domain_add_linear() through an API callback from the DesignWare
             core driver.
      
          3. MSI interrupt generation requires EP to write to the RC's
             application register.  So enhance the driver to allow setup of
             inbound access to MSI IRQ register as a post scan bus API callback.
      
      Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: default avatarPratyush Anand <pratyush.anand@st.com>
      Acked-by: default avatarMohit KUMAR <mohit.kumar@st.com>
      Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
      CC: Santosh Shilimkar <santosh.shilimkar@ti.com>
      CC: Russell King <linux@arm.linux.org.uk>
      CC: Grant Likely <grant.likely@linaro.org>
      CC: Rob Herring <robh+dt@kernel.org>
      CC: Jingoo Han <jg1.han@samsung.com>
      CC: Richard Zhu <r65037@freescale.com>
      CC: Kishon Vijay Abraham I <kishon@ti.com>
      CC: Marek Vasut <marex@denx.de>
      CC: Arnd Bergmann <arnd@arndb.de>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Randy Dunlap <rdunlap@infradead.org>
      CC: Grant Likely <grant.likely@linaro.org>
      b14a3d17
    • Rafael J. Wysocki's avatar
      PCI/PM: Allow PCI devices to be put into D3cold during system suspend · 385321e2
      Rafael J. Wysocki authored
      Commit 448bd857
      
       ("PCI/PM: add PCIe runtime D3cold support") added a
      check to prevent PCI devices from being put into D3cold during system
      suspend without giving any particular reason.
      
      Also the check isn't really necessary, because acpi_pci_set_power_state()
      maps PCI_D3hot to ACPI_STATE_D3_COLD anyway.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      385321e2
    • Rafael J. Wysocki's avatar
      PCI/PM: Drop unused runtime PM support code for PCIe ports · fe9a743a
      Rafael J. Wysocki authored
      Since commit de7d5f72
      
       ("PCI/PM: Disable runtime PM of PCIe ports") the
      runtime PM support code for PCIe ports in portdrv_pci.c has never been
      used, so drop it entirely.
      
      If we are to support runtime PM of PCIe ports, it will have to be done in a
      different way most likely anyway.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      fe9a743a
  8. Aug 26, 2014
    • Linus Torvalds's avatar
      Linux 3.17-rc2 · 52addcf9
      Linus Torvalds authored
      52addcf9
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.17-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · f01bfc97
      Linus Torvalds authored
      Pull NFS client fixes from Trond Myklebust:
       "Highlights:
      
         - more fixes for read/write codepath regressions
           * sleeping while holding the inode lock
           * stricter enforcement of page contiguity when coalescing requests
           * fix up error handling in the page coalescing code
      
         - don't busy wait on SIGKILL in the file locking code"
      
      * tag 'nfs-for-3.17-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        nfs: Don't busy-wait on SIGKILL in __nfs_iocounter_wait
        nfs: can_coalesce_requests must enforce contiguity
        nfs: disallow duplicate pages in pgio page vectors
        nfs: don't sleep with inode lock in lock_and_join_requests
        nfs: fix error handling in lock_and_join_requests
        nfs: use blocking page_group_lock in add_request
        nfs: fix nonblocking calls to nfs_page_group_lock
        nfs: change nfs_page_group_lock argument
      f01bfc97
    • Linus Torvalds's avatar
      Merge tag 'renesas-sh-drivers-for-v3.17' of... · dd5957b7
      Linus Torvalds authored
      Merge tag 'renesas-sh-drivers-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas
      
      Pull SH driver fix from Simon Horman:
       "Confine SH_INTC to platforms that need it"
      
      * tag 'renesas-sh-drivers-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
        sh: intc: Confine SH_INTC to platforms that need it
      dd5957b7
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 497c01dd
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "Pretty much all across the field so with this we should be in
        reasonable shape for the upcoming -rc2"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: OCTEON: make get_system_type() thread-safe
        MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores
        MIPS: Malta: EVA: Rename 'eva_entry' to 'platform_eva_init'
        MIPS: EVA: Add new EVA header
        MIPS: scall64-o32: Fix indirect syscall detection
        MIPS: syscall: Fix AUDIT value for O32 processes on MIPS64
        MIPS: Loongson: Fix COP2 usage for preemptible kernel
        MIPS: NL: Fix nlm_xlp_defconfig build error
        MIPS: Remove race window in page fault handling
        MIPS: Malta: Improve system memory detection for '{e, }memsize' >= 2G
        MIPS: Alchemy: Fix db1200 PSC clock enablement
        MIPS: BCM47XX: Fix reboot problem on BCM4705/BCM4785
        MIPS: Remove duplicated include from numa.c
        MIPS: Add common plat_irq_dispatch declaration
        MIPS: MSP71xx: remove unused plat_irq_dispatch() argument
        MIPS: GIC: Remove useless parens from GICBIS().
        MIPS: perf: Mark pmu interupt IRQF_NO_THREAD
      497c01dd
    • Linus Torvalds's avatar
      Merge tag 'trace-fixes-v3.17-rc1' of... · 01e9982a
      Linus Torvalds authored
      Merge tag 'trace-fixes-v3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
      
      Pull fix for ftrace function tracer/profiler conflict from Steven Rostedt:
       "The rewrite of the ftrace code that makes it possible to allow for
        separate trampolines had a design flaw with the interaction between
        the function and function_graph tracers.
      
        The main flaw was the simplification of the use of multiple tracers
        having the same filter (like function and function_graph, that use the
        set_ftrace_filter file to filter their code).  The design assumed that
        the two tracers could never run simultaneously as only one tracer can
        be used at a time.  The problem with this assumption was that the
        function profiler could be implemented on top of the function graph
        tracer, and the function profiler could run at the same time as the
        function tracer.  This caused the assumption to be broken and when
        ftrace detected this failed assumpiton it would spit out a nasty
        warning and shut itself down.
      
        Instead of using a single ftrace_ops that switches between the
        function and function_graph callbacks, the two tracers can again use
        their own ftrace_ops.  But instead of having a complex hierarchy of
        ftrace_ops, the filter fields are placed in its own structure and the
        ftrace_ops can carefully use the same filter.  This change took a bit
        to be able to allow for this and currently only the global_ops can
        share the same filter, but this new design can easily be modified to
        allow for any ftrace_ops to share its filter with another ftrace_ops.
      
        The first four patches deal with the change of allowing the ftrace_ops
        to share the filter (and this needs to go to 3.16 as well).
      
        The fifth patch fixes a bug that was also caused by the new changes
        but only for archs other than x86, and only if those archs implement a
        direct call to the function_graph tracer which they do not do yet but
        will in the future.  It does not need to go to stable, but needs to be
        fixed before the other archs update their code to allow direct calls
        to the function_graph trampoline"
      
      * tag 'trace-fixes-v3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        ftrace: Use current addr when converting to nop in __ftrace_replace_code()
        ftrace: Fix function_profiler and function tracer together
        ftrace: Fix up trampoline accounting with looping on hash ops
        ftrace: Update all ftrace_ops for a ftrace_hash_ops update
        ftrace: Allow ftrace_ops to use the hashes from other ops
      01e9982a
  9. Aug 25, 2014
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7be141d0
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "A couple of EFI fixes, plus misc fixes all around the map"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/arm64: Store Runtime Services revision
        firmware: Do not use WARN_ON(!spin_is_locked())
        x86_32, entry: Clean up sysenter_badsys declaration
        x86/doc: Fix the 'tlb_single_page_flush_ceiling' sysconfig path
        x86/mm: Fix sparse 'tlb_single_page_flush_ceiling' warning and make the variable read-mostly
        x86/mm: Fix RCU splat from new TLB tracepoints
      7be141d0
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 44744bb3
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "A kprobes and a perf compat ioctl fix"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf: Handle compat ioctl
        kprobes: Skip kretprobe hit in NMI context to avoid deadlock
      44744bb3
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 959dc258
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "A collection of fixes from this week, it's been pretty quiet and
        nothing really stands out as particularly noteworthy here -- mostly
        minor fixes across the field:
      
         - ODROID booting was fixed due to PMIC interrupts missing in DT
         - a collection of i.MX fixes
         - minor Tegra fix for regulators
         - Rockchip fix and addition of SoC-specific mailing list to make it
           easier to find posted patches"
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        bus: arm-ccn: Fix warning message
        ARM: shmobile: koelsch: Remove non-existent i2c6 pinmux
        ARM: tegra: apalis/colibri t30: fix on-module 5v0 supplies
        MAINTAINERS: add new Rockchip SoC list
        ARM: dts: rockchip: readd missing mmc0 pinctrl settings
        ARM: dts: ODROID i2c improvements
        ARM: dts: Enable PMIC interrupts on ODROID
        ARM: dts: imx6sx: fix the pad setting for uart CTS_B
        ARM: dts: i.MX53: fix apparent bug in VPU clks
        ARM: imx: correct gpu2d_axi and gpu3d_axi clock setting
        ARM: dts: imx6: edmqmx6: change enet reset pin
        ARM: dts: vf610-twr: Fix pinctrl_esdhc1 pin definitions.
        ARM: imx: remove unnecessary ARCH_HAS_OPP select
        ARM: imx: fix TLB missing of IOMUXC base address during suspend
        ARM: imx6: fix SMP compilation again
        ARM: dt: sun6i: Add #address-cells and #size-cells to i2c controller nodes
      959dc258
    • Linus Torvalds's avatar
      Merge tag 'gpio-v3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · fa7f78e0
      Linus Torvalds authored
      Pull gpio fixes from Linus Walleij:
      
       - a largeish fix for the IRQ handling in the new Zynq driver.  The
         quite verbose commit message gives the exact details.
       - move some defines for gpiod flags outside an ifdef to make stub
         functions work again.
       - various minor fixes that we can accept for -rc1.
      
      * tag 'gpio-v3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio-lynxpoint: enable input sensing in resume
        gpio: move GPIOD flags outside #ifdef
        gpio: delete unneeded test before of_node_put
        gpio: zynq: Fix IRQ handlers
        gpiolib: devres: use correct structure type name in sizeof
        MAINTAINERS: Change maintainer for gpio-bcm-kona.c
      fa7f78e0
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 5e30ca1e
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Intel and radeon fixes.
      
        Post KS/LC git requests from i915 and radeon stacked up.  They are all
        fixes along with some new pci ids for radeon, and one maintainers file
        entry.
      
         - i915: display fixes and irq fixes
         - radeon: pci ids, and misc gpuvm, dpm and hdp cache"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (29 commits)
        MAINTAINERS: Add entry for Renesas DRM drivers
        drm/radeon: add additional SI pci ids
        drm/radeon: add new bonaire pci ids
        drm/radeon: add new KV pci id
        Revert "drm/radeon: Use write-combined CPU mappings of ring buffers with PCIe"
        drm/radeon: fix active_cu mask on SI and CIK after re-init (v3)
        drm/radeon: fix active cu count for SI and CIK
        drm/radeon: re-enable selective GPUVM flushing
        drm/radeon: Sync ME and PFP after CP semaphore waits v4
        drm/radeon: fix display handling in radeon_gpu_reset
        drm/radeon: fix pm handling in radeon_gpu_reset
        drm/radeon: Only flush HDP cache for indirect buffers from userspace
        drm/radeon: properly document reloc priority mask
        drm/i915: don't try to retrain a DP link on an inactive CRTC
        drm/i915: make sure VDD is turned off during system suspend
        drm/i915: cancel hotplug and dig_port work during suspend and unload
        drm/i915: fix HPD IRQ reenable work cancelation
        drm/i915: take display port power domain in DP HPD handler
        drm/i915: Don't try to enable cursor from setplane when crtc is disabled
        drm/i915: Skip load detect when intel_crtc->new_enable==true
        ...
      5e30ca1e