Skip to content
  1. Aug 11, 2017
  2. Aug 08, 2017
  3. Aug 06, 2017
  4. Aug 01, 2017
    • Caesar Wang's avatar
      arm64: dts: rockchip: update dynamic-power-coefficient for rk3399 · 45a995c0
      Caesar Wang authored
      
      
      This patch updates the dynamic-power-coefficient for big cluster on
      rk3399 SoCs.
      
      The dynamic power consumption of the CPU is proportional to the square of
      the Voltage (V) and the clock frequency (f). The coefficient is used to
      calculate the dynamic power as below -
      Pdyn = dynamic-power-coefficient * V^2 * f
      Where Voltage is in uV, frequency is in MHz.
      
      As the following is the tested data on rk3399's big cluster.
      frequency(MHz)  Voltage(V)  Current(mA) Dynamic-power-coefficient
      24              0.8         15
      48              0.8         23          ~417
      96              0.8         40          ~443
      216             0.8         82          ~438
      312             0.8         115         ~430
      408             0.8         150         ~455
      So the dynamic-power-coefficient average value is about 436.
      
      Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      45a995c0
  5. Jul 30, 2017
  6. Jul 26, 2017
  7. Jul 23, 2017
  8. Jul 16, 2017
    • Shawn Lin's avatar
      arm64: dts: rockchip: remove num-slots from all platforms · 6fc496ed
      Shawn Lin authored
      
      
      We deprecated the "num-slots" property now and plan to get
      rid of it finally. Just move a step to cleanup it from DT.
      
      Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
      Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      6fc496ed
    • Shawn Lin's avatar
      arm64: dts: rockchip: change clkreq mode for rk3399-evb · 0e01eca3
      Shawn Lin authored
      
      
      pcie_clkreqn actually doesn't work at all, so replace it with
      pcie_clkreqn_cpm.
      
      Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      0e01eca3
    • Caesar Wang's avatar
      arm64: dts: rockchip: add SdioAudio pd control for rk3399 · b0f2110a
      Caesar Wang authored
      
      
      The SdioAudio power domain includes the i2s/spdif/spi5/sdio.
      
      So this patch adds the pd control for rk3399 i2s/spdif/spi5/sdio, in order
      to save more power consumption.
      
      Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      b0f2110a
    • William Wu's avatar
      arm64: dts: rockchip: enable usb2 for RK3328 evaluation board · d4446793
      William Wu authored
      
      
      Rockchip's RK3328 evaluation board has one usb2 otg controller
      and one usb2 host controller which consist of EHCI and OHCI.
      Each usb controller connects with one usb2 phy port through
      UTMI+ interface. Let's enable them to support usb2 on RK3328
      evaluation board.
      
      Signed-off-by: default avatarWilliam Wu <william.wu@rock-chips.com>
      [restructured enablement of u2phy subnodes]
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      d4446793
    • William Wu's avatar
      arm64: dts: rockchip: add usb2 nodes for RK3328 SoCs · c60c0373
      William Wu authored
      
      
      This patch adds usb2 otg/host controllers and phys nodes
      for Rockchip RK3328 SoCs.
      
      Signed-off-by: default avatarWilliam Wu <william.wu@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      c60c0373
    • Brian Norris's avatar
      arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients · f4697bd7
      Brian Norris authored
      
      
      Provide the dynamic power coefficient of the big and little CPU
      clusters. These numbers are currently in use on the Samsung Chromebook
      Plus ("Kevin").
      
      The power allocator thermal governor doesn't know how to do anything if
      it doesn't get power parameters from its cooling devices (in this case,
      CPUfreq). So this effectively enables the power-allocator governor.
      
      Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
      [set the property in each core node]
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      f4697bd7
    • Matthias Kaehlcke's avatar
      arm64: dts: rockchip: Use vctrl regulators for dynamic CPU voltages on Gru/Kevin · 6f07176f
      Matthias Kaehlcke authored
      
      
      The Gru device tree currently contains entries for the regulators
      ppvar_bigcpu, ppvar_litcpu, ppvar_gpu and ppvar_centerlogic; however,
      the regulators have not been enabled, due to the lack of binding and driver
      support for keeping the over-voltage protection (OVP) at bay and
      preventing unintended regulator shutdowns on voltage downshifts.
      
      Now, the vctrl regulator driver has been merged, along with new bindings
      for asymmetric settling time. The driver is OVP aware, it splits larger
      voltage decreases in multiple steps when necessary and adds required
      delays.
      
      This change renames each of the aforementioned regulators to
      <orig_name>_pwm and adds a new vctrl regulator named <orig_name>.
      The vctrl regulators use the voltage of their corresponding PWM regulator
      as control voltage. The OVP related values are empirical and stem from
      the Chrome OS kernel tree.
      
      Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
      Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
      [fixed node names and parent supplies of gpu and centerlogic]
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      6f07176f
    • Matthias Kaehlcke's avatar
      arm64: dts: rockchip: Update CPU regulator voltage ranges for Gru · 2fb634de
      Matthias Kaehlcke authored
      
      
      Gru derivatives besides Kevin have slightly different voltage ranges for
      their CPU regulators. Let's keep the base Gru file accurate and let
      Kevin override.
      
      Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
      Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      2fb634de
    • Klaus Goger's avatar
      arm64: dts: rockchip: fix typo in mmc pinctrl · 6122308e
      Klaus Goger authored
      
      
      replace all occurrences of sdmcc with sdmmc in the arm64 rockchip
      devicetree files.
      
      Signed-off-by: default avatarKlaus Goger <klaus.goger@theobroma-systems.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      6122308e
    • Linus Torvalds's avatar
      Linux v4.13-rc1 · 5771a8c0
      Linus Torvalds authored
      5771a8c0
    • Linus Torvalds's avatar
      Merge tag 'standardize-docs' of git://git.lwn.net/linux · 486088bc
      Linus Torvalds authored
      Pull documentation format standardization from Jonathan Corbet:
       "This series converts a number of top-level documents to the RST format
        without incorporating them into the Sphinx tree. The hope is to bring
        some uniformity to kernel documentation and, perhaps more importantly,
        have our existing docs serve as an example of the desired formatting
        for those that will be added later.
      
        Mauro has gone through and fixed up a lot of top-level documentation
        files to make them conform to the RST format, but without moving or
        renaming them in any way. This will help when we incorporate the ones
        we want to keep into the Sphinx doctree, but the real purpose is to
        bring a bit of uniformity to our documentation and let the top-level
        docs serve as examples for those writing new ones"
      
      * tag 'standardize-docs' of git://git.lwn.net/linux: (84 commits)
        docs: kprobes.txt: Fix whitespacing
        tee.txt: standardize document format
        cgroup-v2.txt: standardize document format
        dell_rbu.txt: standardize document format
        zorro.txt: standardize document format
        xz.txt: standardize document format
        xillybus.txt: standardize document format
        vfio.txt: standardize document format
        vfio-mediated-device.txt: standardize document format
        unaligned-memory-access.txt: standardize document format
        this_cpu_ops.txt: standardize document format
        svga.txt: standardize document format
        static-keys.txt: standardize document format
        smsc_ece1099.txt: standardize document format
        SM501.txt: standardize document format
        siphash.txt: standardize document format
        sgi-ioc4.txt: standardize document format
        SAK.txt: standardize document format
        rpmsg.txt: standardize document format
        robust-futexes.txt: standardize document format
        ...
      486088bc
    • Linus Torvalds's avatar
      Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random · 52f6c588
      Linus Torvalds authored
      Pull random updates from Ted Ts'o:
       "Add wait_for_random_bytes() and get_random_*_wait() functions so that
        callers can more safely get random bytes if they can block until the
        CRNG is initialized.
      
        Also print a warning if get_random_*() is called before the CRNG is
        initialized. By default, only one single-line warning will be printed
        per boot. If CONFIG_WARN_ALL_UNSEEDED_RANDOM is defined, then a
        warning will be printed for each function which tries to get random
        bytes before the CRNG is initialized. This can get spammy for certain
        architecture types, so it is not enabled by default"
      
      * tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
        random: reorder READ_ONCE() in get_random_uXX
        random: suppress spammy warnings about unseeded randomness
        random: warn when kernel uses unseeded randomness
        net/route: use get_random_int for random counter
        net/neighbor: use g...
      52f6c588
    • Linus Torvalds's avatar
      Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 78dcf734
      Linus Torvalds authored
      Pull ->s_options removal from Al Viro:
       "Preparations for fsmount/fsopen stuff (coming next cycle). Everything
        gets moved to explicit ->show_options(), killing ->s_options off +
        some cosmetic bits around fs/namespace.c and friends. Basically, the
        stuff needed to work with fsmount series with minimum of conflicts
        with other work.
      
        It's not strictly required for this merge window, but it would reduce
        the PITA during the coming cycle, so it would be nice to have those
        bits and pieces out of the way"
      
      * 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        isofs: Fix isofs_show_options()
        VFS: Kill off s_options and helpers
        orangefs: Implement show_options
        9p: Implement show_options
        isofs: Implement show_options
        afs: Implement show_options
        affs: Implement show_options
        befs: Implement show_options
        spufs: Implement show_options
        bpf: Implement show_options
        ramfs: Implement show...
      78dcf734
    • Linus Torvalds's avatar
      Merge branch 'work.__copy_to_user' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 93ff8185
      Linus Torvalds authored
      Pull more __copy_.._user elimination from Al Viro.
      
      * 'work.__copy_to_user' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        drm_dp_aux_dev: switch to read_iter/write_iter
      93ff8185
    • Linus Torvalds's avatar
      Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 89cbec71
      Linus Torvalds authored
      Pull uacess-unaligned removal from Al Viro:
       "That stuff had just one user, and an exotic one, at that - binfmt_flat
        on arm and m68k"
      
      * 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        kill {__,}{get,put}_user_unaligned()
        binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail
      89cbec71
    • Linus Torvalds's avatar
      Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 2173bd06
      Linus Torvalds authored
      Pull network field-by-field copy-in updates from Al Viro:
       "This part of the misc compat queue was held back for review from
        networking folks and since davem has jus ACKed those..."
      
      * 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        get_compat_bpf_fprog(): don't copyin field-by-field
        get_compat_msghdr(): get rid of field-by-field copyin
        copy_msghdr_from_user(): get rid of field-by-field copyin
      2173bd06
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 568d135d
      Linus Torvalds authored
      Pull MIPS updates from Ralf Baechle:
       "Boston platform support:
         - Document DT bindings
         - Add CLK driver for board clocks
      
        CM:
         - Avoid per-core locking with CM3 & higher
         - WARN on attempt to lock invalid VP, not BUG
      
        CPS:
         - Select CONFIG_SYS_SUPPORTS_SCHED_SMT for MIPSr6
         - Prevent multi-core with dcache aliasing
         - Handle cores not powering down more gracefully
         - Handle spurious VP starts more gracefully
      
        DSP:
         - Add lwx & lhx missaligned access support
      
        eBPF:
         - Add MIPS support along with many supporting change to add the
           required infrastructure
      
        Generic arch code:
         - Misc sysmips MIPS_ATOMIC_SET fixes
         - Drop duplicate HAVE_SYSCALL_TRACEPOINTS
         - Negate error syscall return in trace
         - Correct forced syscall errors
         - Traced negative syscalls should return -ENOSYS
         - Allow samples/bpf/tracex5 to access syscall arguments for sane
           traces
         - Cleanup from old Kconfig options in defconfigs
         - Fix PREF instruction usage by memcpy for MIPS R6
         - Fix various special cases in the FPU eulation
         - Fix some special cases in MIPS16e2 support
         - Fix MIPS I ISA /proc/cpuinfo reporting
         - Sort MIPS Kconfig alphabetically
         - Fix minimum alignment requirement of IRQ stack as required by
           ABI / GCC
         - Fix special cases in the module loader
         - Perform post-DMA cache flushes on systems with MAARs
         - Probe the I6500 CPU
         - Cleanup cmpxchg and add support for 1 and 2 byte operations
         - Use queued read/write locks (qrwlock)
         - Use queued spinlocks (qspinlock)
         - Add CPU shared FTLB feature detection
         - Handle tlbex-tlbp race condition
         - Allow storing pgd in C0_CONTEXT for MIPSr6
         - Use current_cpu_type() in m4kc_tlbp_war()
         - Support Boston in the generic kernel
      
        Generic platform:
         - yamon-dt: Pull YAMON DT shim code out of SEAD-3 board
         - yamon-dt: Support > 256MB of RAM
         - yamon-dt: Use serial* rather than uart* aliases
         - Abstract FDT fixup application
         - Set RTC_ALWAYS_BCD to 0
         - Add a MAINTAINERS entry
      
        core kernel:
         - qspinlock.c: include linux/prefetch.h
      
        Loongson 3:
         - Add support
      
        Perf:
         - Add I6500 support
      
        SEAD-3:
         - Remove GIC timer from DT
         - Set interrupt-parent per-device, not at root node
         - Fix GIC interrupt specifiers
      
        SMP:
         - Skip IPI setup if we only have a single CPU
      
        VDSO:
         - Make comment match reality
         - Improvements to time code in VDSO"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (86 commits)
        locking/qspinlock: Include linux/prefetch.h
        MIPS: Fix MIPS I ISA /proc/cpuinfo reporting
        MIPS: Fix minimum alignment requirement of IRQ stack
        MIPS: generic: Support MIPS Boston development boards
        MIPS: DTS: img: Don't attempt to build-in all .dtb files
        clk: boston: Add a driver for MIPS Boston board clocks
        dt-bindings: Document img,boston-clock binding
        MIPS: Traced negative syscalls should return -ENOSYS
        MIPS: Correct forced syscall errors
        MIPS: Negate error syscall return in trace
        MIPS: Drop duplicate HAVE_SYSCALL_TRACEPOINTS select
        MIPS16e2: Provide feature overrides for non-MIPS16 systems
        MIPS: MIPS16e2: Report ASE presence in /proc/cpuinfo
        MIPS: MIPS16e2: Subdecode extended LWSP/SWSP instructions
        MIPS: MIPS16e2: Identify ASE presence
        MIPS: VDSO: Fix a mismatch between comment and preprocessor constant
        MIPS: VDSO: Add implementation of gettimeofday() fallback
        MIPS: VDSO: Add implementation of clock_gettime() fallback
        MIPS: VDSO: Fix conversions in do_monotonic()/do_monotonic_coarse()
        MIPS: Use current_cpu_type() in m4kc_tlbp_war()
        ...
      568d135d
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 4ecd4ff5
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
       "Mostly fixes for UML:
      
         - First round of fixes for PTRACE_GETRESET/SETREGSET
      
         - A printf vs printk cleanup
      
         - Minor improvements"
      
      * 'for-linus-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: Correctly check for PTRACE_GETRESET/SETREGSET
        um: v2: Use generic NOTES macro
        um: Add kerneldoc for userspace_tramp() and start_userspace()
        um: Add kerneldoc for segv_handler
        um: stub-data.h: remove superfluous include
        um: userspace - be more verbose in ptrace set regs error
        um: add dummy ioremap and iounmap functions
        um: Allow building and running on older hosts
        um: Avoid longjmp/setjmp symbol clashes with libpthread.a
        um: console: Ignore console= option
        um: Use os_warn to print out pre-boot warning/error messages
        um: Add os_warn() for pre-boot warning/error messages
        um: Use os_info for the messages on normal path
        um: Add os_info() for pre-boot information messages
        um: Use printk instead of printf in make_uml_dir
      4ecd4ff5