Skip to content
  1. Dec 05, 2014
    • Olof Johansson's avatar
      Merge branch 'clocksource/physical-timers' into next/drivers · 6b34df9e
      Olof Johansson authored
      * clocksource/physical-timers:
        clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers
        clocksource: arch_timer: Fix code to use physical timers when requested
      6b34df9e
    • Doug Anderson's avatar
      clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers · 65b5732d
      Doug Anderson authored
      
      
      Some 32-bit (ARMv7) systems are architected like this:
      
      * The firmware doesn't know and doesn't care about hypervisor mode and
        we don't want to add the complexity of hypervisor there.
      
      * The firmware isn't involved in SMP bringup or resume.
      
      * The ARCH timer come up with an uninitialized offset (CNTVOFF)
        between the virtual and physical counters.  Each core gets a
        different random offset.
      
      * The device boots in "Secure SVC" mode.
      
      * Nothing has touched the reset value of CNTHCTL.PL1PCEN or
        CNTHCTL.PL1PCTEN (both default to 1 at reset)
      
      On systems like the above, it doesn't make sense to use the virtual
      counter.  There's nobody managing the offset and each time a core goes
      down and comes back up it will get reinitialized to some other random
      value.
      
      This adds an optional property which can inform the kernel of this
      situation, and firmware is free to remove the property if it is going
      to initialize the CNTVOFF registers when each CPU comes out of reset.
      
      Currently, the best course of action in this case is to use the
      physical timer, which is why it is important that CNTHCTL hasn't been
      changed from its reset value and it's a reasonable assumption given
      that the firmware has never entered HYP mode.
      
      Note that it's been said that on ARMv8 systems the firmware and
      kernel really can't be architected as described above.  That means
      using the physical timer like this really only makes sense for ARMv7
      systems.
      
      Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
      Signed-off-by: default avatarSonny Rao <sonnyrao@chromium.org>
      Reviewed-by: default avatarMark Rutland <mark.rutland@arm.com>
      Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      65b5732d
    • Sonny Rao's avatar
      clocksource: arch_timer: Fix code to use physical timers when requested · 0b46b8a7
      Sonny Rao authored
      This is a bug fix for using physical arch timers when
      the arch_timer_use_virtual boolean is false.  It restores the
      arch_counter_get_cntpct() function after removal in
      
      0d651e4e "clocksource: arch_timer: use virtual counters"
      
      We need this on certain ARMv7 systems which are architected like this:
      
      * The firmware doesn't know and doesn't care about hypervisor mode and
        we don't want to add the complexity of hypervisor there.
      
      * The firmware isn't involved in SMP bringup or resume.
      
      * The ARCH timer come up with an uninitialized offset between the
        virtual and physical counters.  Each core gets a different random
        offset.
      
      * The device boots in "Secure SVC" mode.
      
      * Nothing has touched the reset value of CNTHCTL.PL1PCEN or
        CNTHCTL.PL1PCTEN (both default to 1 at reset)
      
      One example of such as system is RK3288 where it is much simpler to
      use the physical counter since there's nobody managing the offset and
      each time a core goes down and comes back up it will get reinitialized
      to some other random value.
      
      Fixes: 0d651e4e
      
       ("clocksource: arch_timer: use virtual counters")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarSonny Rao <sonnyrao@chromium.org>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      0b46b8a7
    • Arnd Bergmann's avatar
      Merge tag 'tegra-for-3.19-iommu' of... · e58e501a
      Arnd Bergmann authored
      
      Merge tag 'tegra-for-3.19-iommu' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers
      
      Pull "ARM: tegra: IOMMU support for v3.19" from Thierry Reding:
      
      This adds the driver pieces required for IOMMU support on Tegra30,
      Tegra114 and Tegra124.
      
      * tag 'tegra-for-3.19-iommu' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
        memory: Add NVIDIA Tegra memory controller support
        of: Add NVIDIA Tegra memory controller binding
        ARM: tegra: Move AHB Kconfig to drivers/amba
        amba: Add Kconfig file
        clk: tegra: Implement memory-controller clock
        powerpc/iommu: Rename iommu_[un]map_sg functions
        iommu: Improve error handling when setting bus iommu
        iommu: Do more input validation in iommu_map_sg()
        iommu: Add iommu_map_sg() function
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e58e501a
  2. Dec 04, 2014
    • Arnd Bergmann's avatar
      Merge tag 'reset-for-3.19-2' of git://git.pengutronix.de/git/pza/linux into next/drivers · a8afa264
      Arnd Bergmann authored
      
      
      Pull "Reset controller changes for v3.19" from Philipp Zabel:
      
      This adds a new driver for the sti soc family, and creates
      a reset_control_status interface, which is added to the existing
      drivers.
      
      * tag 'reset-for-3.19-2' of git://git.pengutronix.de/git/pza/linux:
        reset: add socfpga_reset_status
        reset: sti: Document sti-picophyreset controllers bindings.
        reset: stih407: Add softreset, powerdown and picophy controllers
        reset: stih407: Add reset controllers DT bindings
        reset: add reset_control_status helper function
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      a8afa264
    • Arnd Bergmann's avatar
      Merge tag 'arm-soc/for-3.19/brcmstb-drivers' of https://github.com/brcm/linux into next/drivers · 136a713d
      Arnd Bergmann authored
      
      
      This pull request contains the following changes to the Broadcom GISB bus
      arbiter from Kevin Cernekee:
      
      - Extend brcmstb GISB bus driver to work on MIPS (currently ARM-only) and support
        65nm and 40nm MIPS-based chips such as: BCM7038, BCM7400 and BCM7435
      
      * tag 'arm-soc/for-3.19/brcmstb-drivers' of https://github.com/brcm/linux:
        bus: brcmstb_gisb: Add register offset tables for older chips
        bus: brcmstb_gisb: Look up register offsets in a table
        bus: brcmstb_gisb: Introduce wrapper functions for MMIO accesses
        bus: brcmstb_gisb: Make the driver buildable on MIPS
      
      Conflicts:
      	drivers/bus/brcmstb_gisb.c
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      136a713d
    • Thierry Reding's avatar
      memory: Add NVIDIA Tegra memory controller support · 89184651
      Thierry Reding authored
      
      
      The memory controller on NVIDIA Tegra exposes various knobs that can be
      used to tune the behaviour of the clients attached to it.
      
      Currently this driver sets up the latency allowance registers to the HW
      defaults. Eventually an API should be exported by this driver (via a
      custom API or a generic subsystem) to allow clients to register latency
      requirements.
      
      This driver also registers an IOMMU (SMMU) that's implemented by the
      memory controller. It is supported on Tegra30, Tegra114 and Tegra124
      currently. Tegra20 has a GART instead.
      
      The Tegra SMMU operates on memory clients and SWGROUPs. A memory client
      is a unidirectional, special-purpose DMA master. A SWGROUP represents a
      set of memory clients that form a logical functional unit corresponding
      to a single device. Typically a device has two clients: one client for
      read transactions and one client for write transactions, but there are
      also devices that have only read clients, but many of them (such as the
      display controllers).
      
      Because there is no 1:1 relationship between memory clients and devices
      the driver keeps a table of memory clients and the SWGROUPs that they
      belong to per SoC. Note that this is an exception and due to the fact
      that the SMMU is tightly integrated with the rest of the Tegra SoC. The
      use of these tables is discouraged in drivers for generic IOMMU devices
      such as the ARM SMMU because the same IOMMU could be used in any number
      of SoCs and keeping such tables for each SoC would not scale.
      
      Acked-by: default avatarJoerg Roedel <jroedel@suse.de>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      89184651
  3. Nov 29, 2014
  4. Nov 28, 2014
    • Arnd Bergmann's avatar
      Merge tag 'samsung-driver' of... · 0cef9ab5
      Arnd Bergmann authored
      
      Merge tag 'samsung-driver' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/drivers
      
      Pull "Samsung driver update for v3.19" from Kukjin Kim:
      
      - Change samsung serial dependencies for exynos7 (ARMv8)
      
      * tag 'samsung-driver' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
        serial: samsung: Fix serial config dependencies for exynos7
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      0cef9ab5
  5. Nov 26, 2014
  6. Nov 21, 2014
  7. Nov 20, 2014
    • Arnd Bergmann's avatar
      Merge branch 'at91/cleanup' into next/drivers · 4b3d4d3d
      Arnd Bergmann authored
      
      
      This resolves some of the obvious conflicts between the at91 cleanup and
      drivers branches.
      
      Conflicts:
      	arch/arm/mach-at91/at91sam9g45.c
      	arch/arm/mach-at91/at91sam9rl.c
      	drivers/rtc/Kconfig
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      4b3d4d3d
    • Arnd Bergmann's avatar
      Merge tag 'arm-perf-3.19' of... · b9e0e5a9
      Arnd Bergmann authored
      
      Merge tag 'arm-perf-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into next/drivers
      
      Pull "ARM: perf: updates for 3.19" from Will Deacon:
      
      This patch series takes us slightly further on the road to big.LITTLE
      support in perf. The main change enabling this is moving the CCI PMU
      driver away from the arm-pmu abstraction, allowing the arch code to
      focus specifically on support for CPU PMUs.
      
      * tag 'arm-perf-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux:
        arm: perf: fold hotplug notifier into arm_pmu
        arm: perf: dynamically allocate cpu hardware data
        arm: perf: fold percpu_pmu into pmu_hw_events
        arm: perf: kill get_hw_events()
        arm: perf: limit size of accounting data
        arm: perf: use IDR types for CPU PMUs
        arm: perf: make PMU probing data-driven
        arm: perf: add missing pr_info newlines
        arm: perf: factor out callchain code
        ARM: perf: use pr_* instead of printk
        ARM: perf: remove useless return and check of idx in counter handling
        bus: cci: move away from arm_pmu framework
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      b9e0e5a9
    • Arnd Bergmann's avatar
      Merge tag 'at91-drivers' of... · c3e6dc65
      Arnd Bergmann authored
      
      Merge tag 'at91-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91 into next/drivers
      
      Pull "First batch of drivers for 3.19" from Nicolas Ferre:
      
      It is only about a not so recent driver for old platforms: RTT as RTC driver:
      - RTT as RTC driver enhancements and machine specific include files removal
      - RTT as RTC driver conversion to device tree
      
      * tag 'at91-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91:
        rtc: at91sam9: add DT bindings documentation
        rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK
        ARM: at91: add clk_lookup entry for RTT devices
        rtc: at91sam9: rework the Kconfig description
        rtc: at91sam9: make use of syscon/regmap to access GPBR registers
        rtc: at91sam9: add DT support
        rtc: at91sam9: replace devm_ioremap by devm_ioremap_resource
        rtc: at91sam9: use standard readl/writel functions instead of raw versions
        rtc: at91sam9: remove references to mach specific headers
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      c3e6dc65
    • Arnd Bergmann's avatar
      Merge tag 'keystone-driver-soc' of... · 27bc375a
      Arnd Bergmann authored
      
      Merge tag 'keystone-driver-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone into next/drivers
      
      Pull "Keystone SOC Navigator driver non critical fixes frm Alex for 3.19" from Santosh Shilimkar:
      
      	- Use list_for_each_entry_safe to prevent use after free
      	- Return proper error if devm_kzalloc fails
      	- Use list_first_entry_or_null() at appropriate places
      
      * tag 'keystone-driver-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone:
        soc: ti: knav_qmss_queue: Use list_for_each_entry_safe to prevent use after free
        soc: ti: knav_qmss_queue: Return proper error if devm_kzalloc fails
        soc: ti: knav_qmss_queue: Fix unbalanced locking ins knav_pool_create()
        soc: ti: Use list_first_entry_or_null() at appropriate places
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      27bc375a
    • Arnd Bergmann's avatar
      Merge tag 'omap-for-v3.19/w1-and-l3-noc' of... · 22b7db80
      Arnd Bergmann authored
      
      Merge tag 'omap-for-v3.19/w1-and-l3-noc' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/drivers
      
      Pull "omap driver changes for v3.19" from Tony Lindgren:
      
      Few omap driver changes to add minimal device tree support
      for the omap 1w driver, and to fix resume and interrupt issues
      on the l3-noc driver.
      
      * tag 'omap-for-v3.19/w1-and-l3-noc' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler
        bus: omap_l3_noc: Add resume hook to restore context
        w1: omap-hdq: support device probing with device-tree
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      22b7db80
  8. Nov 18, 2014
  9. Nov 13, 2014
  10. Nov 12, 2014
  11. Nov 11, 2014