[GIT PULL] power-supply changes for 4.8-rc

2016-08-17 Thread Sebastian Reichel
Hi Linus, The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-07 18:18:00 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v4.8-rc for you to fetch changes up

Re: [PATCH v3 3/8] usb: dwc3: ulpi: use new api

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:48PM +0300, Tal Shorer wrote: > The old read, write callbacks in struct ulpi_ops have been deprecated > in favor of new callbacks that pass the parent device directly. > Replace the used callbacks in dwc3's ulpi component with the new api. > > Signed-off-by: Tal

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-17 Thread Vignesh R
On Monday 15 August 2016 09:15 PM, Jonathan Cameron wrote: > On 08/08/16 12:05, Vignesh R wrote: >> It is possible that two or more ADC channels can be simultaneously >> requested for raw samples, in which case there can be race in access to >> FIFO data resulting in loss of samples. >> If

Applied "spi: Add support to handle kmap'd buffers in spi_map_buf()" to the spi tree

2016-08-17 Thread Mark Brown
The patch spi: Add support to handle kmap'd buffers in spi_map_buf() has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "spi: spi-ti-qspi: Add DMA support for QSPI mmap read" to the spi tree

2016-08-17 Thread Mark Brown
The patch spi: spi-ti-qspi: Add DMA support for QSPI mmap read has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Use of copy_from_user in msm_gem_submit.c while holding a spin_lock

2016-08-17 Thread Vaishali Thakkar
Hello, I was wondering about the call to copy_from_user in function submit_lookup_objects for drive /gpu/drm/msm/msm_gem_submit.c It calls copy_from_user[1] in a spin_lock, which is not normally allowed, due to the possibility of a deadlock. Is there some reason that I am overlooking why it

Re: [PATCH v5 3/7] power: act8945a_charger: Add status change update support

2016-08-17 Thread Sebastian Reichel
Hi, On Tue, Aug 16, 2016 at 04:59:54PM +0800, Wenyou Yang wrote: > Add the charger status change interrupt support, it will report > the power supply changed event. > > This interrupt is generated by one of the conditions as below: > - the state machine jumps out of or into the EOC state > -

[PATCH 14/18] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-08-17 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 28 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 09/18] arm64: introduce binfmt_elf32.c

2016-08-17 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig

[PATCH 06/18] thread: move thread bits accessors to separated file

2016-08-17 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added by Al Viro in patch [edd63a27] "set_restore_sigmask() is never called without SIGPENDING (and never should be)"

[PATCH 01/18] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-08-17 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for 64-bit and new 32-bit architectures. All existing 32-bit architectures enable it

[PATCH 03/18] arm64: ensure the kernel is compiled for LP64

2016-08-17 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski

[RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Yury Norov
This series enables aarch64 with ilp32 mode, and as supporting work, introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t is is used by new userspace). This version is based on kernel v4.8-rc2. It works

[PATCH 4/5] input: misc: max77693: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Change my email address to kernel.org instead of Samsung one for the purpose of any future contact. The copyrights remain untouched and are attributed to Samsung. Signed-off-by: Krzysztof Kozlowski --- drivers/input/misc/max77693-haptic.c | 4 ++-- 1 file changed, 2

[x86/uaccess] 5b710f34e1: kernel BUG at mm/usercopy.c:75!

2016-08-17 Thread kernel test robot
kp-wsx03-quantal-i386-6/boot-1-quantal-core-i386.cgz-5b710f34e194c6b7710f69fdb5d798fdf35b98c1-20160817-52554-1cf9h0a-0.yaml ARCH=i386 kconfig=i386-randconfig-w0-08170631 branch=linus/master commit=5b710f34e194c6b7710f69fdb5d798fdf35b98c1 BOOT_IMAGE=/pkg/linux/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf

Re: [PATCH v3 7/8] usb: ulpi: make ops struct constant

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:52PM +0300, Tal Shorer wrote: > None of the core ulpi functions perform any changes to the operations > struct, and logically as a struct that contains function pointers > there's no reason it shouldn't be constant. > > Signed-off-by: Tal Shorer

Re: [PATCH v3 6/8] usb: ulpi: remove "dev" field from struct ulpi_ops

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:51PM +0300, Tal Shorer wrote: > Operations now use ulpi->dev.parent directly instead of via the > ulpi_ops struct, making this field unused. Remove it. > > Signed-off-by: Tal Shorer Acked-by: Heikki Krogerus

Re: [RFC RESEND] serial: 8250: fix regression in 8250 uart driver

2016-08-17 Thread Heikki Krogerus
On Wed, Aug 17, 2016 at 02:14:26PM +0300, Andy Shevchenko wrote: > On Sat, 2016-07-02 at 13:53 +0200, Thorsten Leemhuis wrote: > > On 14.06.2016 18:00, Andy Shevchenko wrote: > > > > > > On Tue, 2016-06-14 at 10:27 -0500, dinh.li...@anniebear.net wrote: > > > > > > > > > > > > > > On Mon,

Re: [PATCH] drm/hisilicon: add back missing } on ade_dc_ops

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 12:09:24PM +0100, Colin King wrote: > From: Colin Ian King > > Fix build error by adding back the closing } on ade_dc_ops which > got accidentally removed from an earlier commit. > > Fixes: d25bcfb8c2e18b9b36 ("Don't set

Re: [PATCH v2 4/6] net: ethernet: bgmac: convert to feature flags

2016-08-17 Thread Rafał Miłecki
On 8 July 2016 at 01:08, Jon Mason wrote: > mode = (bgmac_read(bgmac, BGMAC_DEV_STATUS) & BGMAC_DS_MM_MASK) >> > BGMAC_DS_MM_SHIFT; > - if (ci->id != BCMA_CHIP_ID_BCM47162 || mode != 0) > + if (bgmac->feature_flags & BGMAC_FEAT_CLKCTLST

Re: [PATCH v11 0/7] Make cpuid <-> nodeid mapping persistent

2016-08-17 Thread Dou Liyang
Ping ... May I ask for some community attention to this series? My purpose is fixing the memory allocation failure sometimes when hot-plugging it. Thanks in advance. dou At 08/08/2016 04:37 PM, Dou Liyang wrote: [Problem] cpuid <-> nodeid mapping is firstly established at boot time. And

Re: [PATCH v5 6/7] power: act8945a_charger: Add max current property

2016-08-17 Thread Sebastian Reichel
Hi, On Tue, Aug 16, 2016 at 04:59:57PM +0800, Wenyou Yang wrote: > Add the power supply's current max property, > POWER_SUPPLY_PROP_CURRENT_MAX. Please also switch chgin_level to gpiod API. -- Sebastian signature.asc Description: PGP signature

[PATCH 1/1] ARM: dma: fix dma_max_pfn()

2016-08-17 Thread Roger Quadros
Since commit 6ce0d2001692 ("ARM: dma: Use dma_pfn_offset for dma address translation"), dma_to_pfn() already returns the PFN with the physical memory start offset so we don't need to add it again. This fixes USB mass storage lock-up problem on systems that can't do DMA over the entire physical

[PATCH 0/1] ARM: Keystone: Fix USB Mass storage on K2E

2016-08-17 Thread Roger Quadros
Hi, USB mass storage devices lock up on K2E or any Keystone2 system with more than 2GB RAM. Test case: 1) Plug in USB pen drive 2) mount udisks --mount /dev/sda1 Mounted /org/freedesktop/UDisks/devices/sda at /media/PENDRIVE 3) write to medium cp blobs/1M.bin /media/PENDRIVE 4)

[PATCH 02/18] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-08-17 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 57 +++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git

Re: [PATCH] irqchip/gic-pm: Update driver to use of_pm_clk_add_clk

2016-08-17 Thread Jon Hunter
Hi Marc, On 17/08/16 10:59, Marc Zyngier wrote: > Hi Jon, > > On 16/08/16 11:14, Jon Hunter wrote: >> Commit 498b5fdd40dd ("PM / clk: Add support for adding a specific clock >> from device-tree") add a new helper function for adding a clock from >> device-tree to a device. Update the GIC-PM

Re: [RFC] ftrace / perf 'recursion'

2016-08-17 Thread Peter Zijlstra
On Wed, Aug 17, 2016 at 11:19:53AM +0200, Peter Zijlstra wrote: > > blergh, now with LKML added... > > --- > > Much like: d525211f9d1b ("perf: Fix irq_work 'tail' recursion") > > I found another infinite recursion problem with irq_work: > >[] ? perf_output_begin_forward+0x5/0x1e0 > [] ?

Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card

2016-08-17 Thread Karl Beldan
On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote: > On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote: > > The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog > > audio. This relies on the 'dummy' regulator as the codec is always on. > > Quality is good with

Re: [PACTH v3] mmc: sdhci: Do not allow tuning procedure to be interrupted

2016-08-17 Thread Adrian Hunter
On 17/08/16 00:25, robert.f...@collabora.com wrote: > From: Christopher Freeman > > wait_event_interruptible_timeout() will return early if the blocked > process receives a signal, causing the driver to abort the tuning > procedure and possibly leaving the controller in a

Re: [PATCH 2/2] iio: adc: ti_am335x_adc: Increase timeout value waiting for ADC sample

2016-08-17 Thread Vignesh R
On Monday 15 August 2016 09:17 PM, Jonathan Cameron wrote: > On 08/08/16 12:05, Vignesh R wrote: >> Now that open delay and sample delay for each channel is configurable >> via DT, the default IDLE_TIMEOUT value is not enough as this is >> calculated based on hardcoded macros. This results in

Re: [PATCH v2] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-17 Thread Vignesh R
On Wednesday 17 August 2016 02:58 PM, Catalin Marinas wrote: > Some of the kmemleak_*() callbacks in memblock, bootmem, CMA convert a > physical address to a virtual one using __va(). However, such physical > addresses may sometimes be located in highmem and using __va() is > incorrect, leading

Re: [PATCH 01/15 RESEND] staging: dgnc: remove redundant NULL checks in

2016-08-17 Thread DaeSeok Youn
2016-08-17 15:25 GMT+09:00 Greg KH : > On Wed, Aug 17, 2016 at 10:05:03AM +0900, DaeSeok Youn wrote: >> 2016-08-16 2:05 GMT+09:00 Greg KH : >> > On Wed, Jul 06, 2016 at 03:11:13PM +0900, Daeseok Youn wrote: >> >> The dgnc_block_til_ready() is

Re: mm: kswapd struggles reclaiming the pages on 64GB server

2016-08-17 Thread Michal Hocko
[CCing linux-mm and Johannes] On Fri 12-08-16 21:52:20, Andriy Tkachuk wrote: > Hi, > > our user-space application uses large amount of anon pages (private > mapping of the large file, more than 64GB RAM available in the system) > which are rarely accessible and are supposed to be swapped out. >

[PATCH 10/18] arm64: ilp32: introduce binfmt_ilp32.c

2016-08-17 Thread Yury Norov
binfmt_ilp32.c is needed to handle ILP32 binaries Signed-off-by: Yury Norov --- arch/arm64/include/asm/elf.h | 6 +++ arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 96 3 files changed, 103

[PATCH 15/18] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-08-17 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski

[PATCH 2/5] power: supply: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Change my email address to kernel.org instead of Samsung one for the purpose of any future contact. The copyrights remain untouched and are attributed to Samsung. Signed-off-by: Krzysztof Kozlowski --- Documentation/ABI/testing/sysfs-class-power | 8

[PATCH 5/5] regulator: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Change my email address to kernel.org instead of Samsung one for the purpose of any future contact. The copyrights remain untouched and are attributed to Samsung. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/max14577-regulator.c | 4 ++--

[PATCH 3/5] extcon: max14577: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Change my email address to kernel.org instead of Samsung one for the purpose of any future contact. The copyrights remain untouched and are attributed to Samsung. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max14577.c | 4 ++-- 1 file changed, 2

[PATCH 1/5] mfd: max14577: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Change my email address to kernel.org instead of Samsung one for the purpose of any future contact. The copyrights remain untouched and are attributed to Samsung. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max14577.c | 4 ++--

[PATCH] cpu/hotplug: get rid of CPU_STARTING reference

2016-08-17 Thread Sebastian Andrzej Siewior
CPU_STARTING is scheduled for removal. There is no use of it in drivers and just compatibility use core code. This patch removes it from an RCU related comment. Signed-off-by: Sebastian Andrzej Siewior --- Paul, this "CPU_STARTING" refrences got in via "rcu: Exact

[PULL] : clockevents/clocksource fixes for 4.8

2016-08-17 Thread Daniel Lezcano
Hi Ingo, this pull request for tip/timers/urgent contains two critical fixes and one spurious compiler warning. - Change the get_counter error handling function in order to prevent a warning generated by gcc for the kona driver (Arnd Bergman) - Fix a wrong clock reference leading to a

[PATCH 3/4] zswap: Zero-filled pages handling

2016-08-17 Thread Srividya Desireddy
From: Srividya Desireddy Date: Wed, 17 Aug 2016 14:34:14 +0530 Subject: [PATCH 3/4] zswap: Zero-filled pages handling This patch adds a check in zswap_frontswap_store() to identify zero-filled page before compression of the page. If the page is a zero-filled page, set

Re: [PATCH] ARM: dts: exynos: Use stdout non-deprecated property and add serial options to Odroid XU/XU3/XU4

2016-08-17 Thread Krzysztof Kozlowski
On 08/17/2016 12:25 PM, Mark Rutland wrote: > On Wed, Aug 17, 2016 at 09:34:58AM +0200, Krzysztof Kozlowski wrote: >> The "linux,stdout-path" is deprecated. >> >> Add serial options so the console can be properly configured when >> bootloader does not pass "console" parameter to command line.

[PATCH v5 2/2] usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY

2016-08-17 Thread Heikki Krogerus
This adds driver for the USB Type-C PHY on Intel WhiskeyCove PMIC which is available on some of the Intel Broxton SoC based platforms. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/Kconfig | 14 ++ drivers/usb/typec/Makefile | 1 +

[PATCH v5 1/2] usb: USB Type-C connector class

2016-08-17 Thread Heikki Krogerus
The purpose of USB Type-C connector class is to provide unified interface for the user space to get the status and basic information about USB Type-C connectors on a system, control over data role swapping, and when the port supports USB Power Delivery, also control over power role swapping and

[PATCH 0/1] ARM: Keystone: Fix USB on v4.8-rc

2016-08-17 Thread Roger Quadros
Hi Santosh, USB ports are broken on Keystone2 boards since v4.8-rc1. This is because CONFIG_KEYSTONE_USB_PHY is no longer being enabled by keystone_defconfig. Fix that. Please pick this for the v4.8-rc cycle. Thanks. cheers, -roger Roger Quadros (1): ARM: keystone: defconfig: Fix USB

[PATCH 1/1] ARM: keystone: defconfig: Fix USB configuration

2016-08-17 Thread Roger Quadros
Simply enabling CONFIG_KEYSTONE_USB_PHY doesn't work anymore as it depends on CONFIG_NOP_USB_XCEIV. We need to enable that as well. This fixes USB on Keystone boards from v4.8-rc1 onwards. Signed-off-by: Roger Quadros --- arch/arm/configs/keystone_defconfig | 1 + 1 file

Re: [PATCH v3 1/8] usb: ulpi: move setting of ulpi->dev parent up in ulpi_register()

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:46PM +0300, Tal Shorer wrote: > Once ulpi operations use the parent device directly, this will be > needed during the operations used in ulpi_register() itself, so set > the parent field before calling any ulpi operations. > > Signed-off-by: Tal Shorer

Re: [PATCH v3 2/8] usb: ulpi: add new api functions, {read|write}_dev()

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:47PM +0300, Tal Shorer wrote: > Add these two new api callbacks to struct ulpi_ops. These are different > than read, write in that they pass the parent device directly instead > of via the ops argument. > They are intended to replace the old api functions. > > If the

Re: [PATCH] arm64: Expose TASK_SIZE to userspace via auxv

2016-08-17 Thread Christopher Covington
On August 17, 2016 6:30:06 AM EDT, Catalin Marinas wrote: >On Tue, Aug 16, 2016 at 02:32:29PM -0400, Christopher Covington wrote: >> Some userspace applications need to know the maximum virtual address >they can >> use (TASK_SIZE). > >Just curious, what are the cases

[PATCH] drm/hisilicon: add back missing } on ade_dc_ops

2016-08-17 Thread Colin King
From: Colin Ian King Fix build error by adding back the closing } on ade_dc_ops which got accidentally removed from an earlier commit. Fixes: d25bcfb8c2e18b9b36 ("Don't set drm_device->platformdev") Signed-off-by: Colin Ian King ---

Re: [tip:x86/boot] x86/mm: Enable KASLR for physical mapping memory regions

2016-08-17 Thread Borislav Petkov
On Wed, Aug 17, 2016 at 12:19:48PM +0200, Ingo Molnar wrote: > So I really hate this pattern, and we already have it in > arch/x86/kernel/cpu/microcode/intel.c as well: > > start += PAGE_OFFSET - __PAGE_OFFSET_BASE; > > and note that it's not #ifdefed there - I think it's safe

Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card

2016-08-17 Thread Sekhar Nori
On Wednesday 17 August 2016 04:03 PM, Karl Beldan wrote: > On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote: >> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote: >>> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog >>> audio. This relies on the 'dummy'

[PATCH 17/18] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-08-17 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports next symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres; What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in

[PATCH 04/18] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-17 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, ARM64_ILP32 -

[PATCH 07/18] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-08-17 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong

[PATCH 11/18] arm64: ilp32: share aarch32 syscall handlers

2016-08-17 Thread Yury Norov
off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S| 65 --

[PATCH 12/18] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-08-17 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov

usercopy: kernel memory exposure attempt detected

2016-08-17 Thread Geert Uytterhoeven
Hi Kees, Al, Saw this when using NFS root on r8a7791/koelsch, using a tree based on renesas-drivers-2016-08-16-v4.8-rc2: usercopy: kernel memory exposure attempt detected from c01ff000 () (4096 bytes) [ cut here ] kernel BUG at mm/usercopy.c:75! Internal error: Oops -

[PATCH v2 0/2] ti_am335x_adc: Fix bugs related to oneshot read

2016-08-17 Thread Vignesh R
This series fixes a couple of bugs related to simultaneous read of multiple ADC channels in oneshot mode. Since, all channels share FIFO1, it has to be protected using a mutex, implemented by patch 1. Patch 2 increases the timeout waiting for a ADC sample. Vignesh R (2): iio: adc:

[PATCH 13/18] arm64: signal: share lp64 signal routines to ilp32

2016-08-17 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 93 +- 2 files changed, 92 insertions(+), 34

Re: [PATCH 3/4] zswap: Zero-filled pages handling

2016-08-17 Thread Pekka Enberg
On Wed, Aug 17, 2016 at 1:18 PM, Srividya Desireddy wrote: >> This patch adds a check in zswap_frontswap_store() to identify zero-filled >> page before compression of the page. If the page is a zero-filled page, set >> zswap_entry.zeroflag and skip the compression of the

[PATCH v5 0/2] USB Type-C Connector class

2016-08-17 Thread Heikki Krogerus
Hi, The USB Type-C class is meant to provide unified interface to the userspace to present the USB Type-C ports in a system. Changes since v4: - Remove the port lock completely Changes since v3: - Documentation cleanup as proposed by Roger Quadros - Setting partner altmodes member to NULL on

Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK

2016-08-17 Thread Sekhar Nori
On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote: > On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote: >> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote: >>> This is the minimal set of additional modules required to support audio >>> on the LCDK. >>> >>> Signed-off-by:

[PATCH] i40e: Remove XSTRINGIFY macro definitions and uses

2016-08-17 Thread Joe Perches
Use __stringify instead. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/i40e/i40e.h| 4 drivers/net/ethernet/intel/i40e/i40e_client.h | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e.h

Re: [PATCH] ARM: dts: exynos: Use stdout non-deprecated property and add serial options to Odroid XU/XU3/XU4

2016-08-17 Thread Mark Rutland
On Wed, Aug 17, 2016 at 12:28:48PM +0200, Krzysztof Kozlowski wrote: > On 08/17/2016 12:25 PM, Mark Rutland wrote: > > On Wed, Aug 17, 2016 at 09:34:58AM +0200, Krzysztof Kozlowski wrote: > >> The "linux,stdout-path" is deprecated. > >> > >> Add serial options so the console can be properly

Re: [RFC] ftrace / perf 'recursion'

2016-08-17 Thread Peter Zijlstra
On Wed, Aug 17, 2016 at 12:33:06PM +0200, Peter Zijlstra wrote: > So how to extend the same to function tracer we'd have to mark > exiting_irq() -> irq_exit() and everything from that as notrace, which > seems somewhat excessive, fragile and undesired because tracing those > functions is

Partnership Cooperation

2016-08-17 Thread Sheikh Maktoum Hasher Al Maktoum
Dear Friend, Your contact details came to me by recommendation, I am interested in investing in your country and I believe you have the capabilities of providing the needed assistance, solutions and advise in actualizing this, Let me know if you are willing to understake this task for me so we

Re: [PATCH v3 5/8] usb: ulpi: rename operations {read|write}_dev to simply {read|write}

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:50PM +0300, Tal Shorer wrote: > With the removal of the old {read|write} operations, we can now safely > rename the new api operations {read|write}_dev to use the shorter and > clearer names {read|write}, respectively. > > Signed-off-by: Tal Shorer

Re: [PATCH v3 4/8] usb: ulpi: remove calls to old api callbacks

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:49PM +0300, Tal Shorer wrote: > Now that all users use the new api callbacks, remove the old api > callbacks and force new interface drivers to use the new api. > > Signed-off-by: Tal Shorer Acked-by: Heikki Krogerus

Re: [RFC RESEND] serial: 8250: fix regression in 8250 uart driver

2016-08-17 Thread Andy Shevchenko
On Sat, 2016-07-02 at 13:53 +0200, Thorsten Leemhuis wrote: > On 14.06.2016 18:00, Andy Shevchenko wrote: > > > > On Tue, 2016-06-14 at 10:27 -0500, dinh.li...@anniebear.net wrote: > > > > > > > > > > > On Mon, 2016-06-13 at 21:59 -0500, Dinh Nguyen wrote: > > > Does this mean that the

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 12:19:02PM +0200, Noralf Trønnes wrote: > > Den 17.08.2016 11:30, skrev Daniel Vetter: > > On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: > > > > That's still a lot for what amounts to reimplementing mmap on shmem, but > > > > badly. What I

Re: [PATCH v3 8/8] usb: dwc3: ulpi: make dwc3_ulpi_ops constant

2016-08-17 Thread Heikki Krogerus
On Tue, Aug 16, 2016 at 07:04:53PM +0300, Tal Shorer wrote: > ulpi_register_interface() accepts a const struct ulpi_ops and dwc3 > doesn't perform any changes to this struct at runtime, so there's no > reason it shouldn't be constant. > > Signed-off-by: Tal Shorer

Re: [PATCH v5 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-17 Thread Sebastian Reichel
Hi, On Tue, Aug 16, 2016 at 04:59:52PM +0800, Wenyou Yang wrote: > [...] > > -static int act8945a_get_battery_health(struct act8945a_charger *charger, > -struct regmap *regmap, int *val) > +static int act8945a_get_battery_health(struct regmap *regmap, int *val)

[PATCH 0/5] Change my email to kernel.org

2016-08-17 Thread Krzysztof Kozlowski
Hi, I will be leaving Samsung R Institute Poland soon so the Samsung email will stop working at some point. Change it to kernel.org in case someone would like to reach the author of the code. Maintainers are updated separately [1]. There are no dependencies between patches, please pick up

Re: [PATCH 2/5] power: supply: Change Krzysztof Kozlowski's email to kernel.org

2016-08-17 Thread Sebastian Reichel
Hi, On Wed, Aug 17, 2016 at 02:07:43PM +0200, Krzysztof Kozlowski wrote: > Change my email address to kernel.org instead of Samsung one for the > purpose of any future contact. The copyrights remain untouched and are > attributed to Samsung. Thanks, queued. -- Sebastian signature.asc

[PATCH 3/3] clocksource/drivers/mips-gic-timer: Make gic_clocksource_of_init return int

2016-08-17 Thread Daniel Lezcano
From: Paul Gortmaker In commit d8152bf85d2c057fc39c3e20a4d623f524d9f09c: ("clocksource/drivers/mips-gic-timer: Convert init function to return error") several return values were added to a void function resulting in: clocksource/mips-gic-timer.c: In function

[PATCH 2/3] clocksource/drivers/kona: Fix get_counter error handling

2016-08-17 Thread Daniel Lezcano
From: Arnd Bergmann I could not figure out why, but gcc cannot prove that the kona_timer_init function always initializes its two outputs, and we get a warning for the use of the 'lsw' variable later, which is obviously correct. drivers/clocksource/bcm_kona_timer.c: In function

[PATCH 1/3] clocksource/drivers/time-armada-370-xp: Fix the clock reference

2016-08-17 Thread Daniel Lezcano
From: Gregory CLEMENT While converting the init function to return an error, the wrong clock was get. This lead to wrong clock rate and slow down the kernel. For example, before the patch a typical boot was around 15s after it was 1 minute slower. Fixes:

[PATCH 1/4] zswap: Share zpool memory of duplicate pages

2016-08-17 Thread Srividya Desireddy
From: Srividya Desireddy Date: Wed, 17 Aug 2016 14:31:01 +0530 Subject: [PATCH 1/4] zswap: Share zpool memory of duplicate pages This patch shares the compressed pool memory of duplicate pages and reduces compressed pool memory utilized by zswap. For each page requested

[PATCH 2/4] zswap: Enable or disable sharing of duplicate pages at runtime

2016-08-17 Thread Srividya Desireddy
From: Srividya Desireddy Date: Wed, 17 Aug 2016 14:32:24 +0530 Subject: [PATCH 2/4] zswap: Enable or disable sharing of duplicate pages at runtime Enable or disable the sharing of duplicate zswap pages at runtime. To enable sharing of duplicate zswap pages set

Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK

2016-08-17 Thread Karl Beldan
On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote: > On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote: > > This is the minimal set of additional modules required to support audio > > on the LCDK. > > > > Signed-off-by: Karl Beldan > > This patch does not

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Noralf Trønnes
Den 17.08.2016 11:30, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: That's still a lot for what amounts to reimplementing mmap on shmem, but badly. What I mean with redirecting is pointing the entire ->mmap operation to the mmap implementation

Re: [PATCH] arm64: Expose TASK_SIZE to userspace via auxv

2016-08-17 Thread Catalin Marinas
On Tue, Aug 16, 2016 at 02:32:29PM -0400, Christopher Covington wrote: > Some userspace applications need to know the maximum virtual address they can > use (TASK_SIZE). Just curious, what are the cases needing TASK_SIZE in user space? -- Catalin

RE: [PATCH v2] mtd: spi-nor: Add s25fs256s1 spi-nor flash support

2016-08-17 Thread Yunhui Cui
On Monday, August 08, 2016 3:22 AM, Jagan Teki wrote: > Add Spansion s25fs256s1 spi-nor flash to the list of spi_nor_ids. > > In spansion S25FS-S family the physical sectors are grouped as normal and > parameter sectors. Parameter sectors are 4kB in size with 8 set located > at the bottom or

[PATCH 2/2] drivers/clocksource/pistachio: improve register offset calculation

2016-08-17 Thread Marcin Nowakowski
There are 4 general purpose timers, each configurable with a set of 7 registers that start at 0x20 intervals. Register offsets have been defined as an offset from the block beginning and not from the single timer's first register. This leads to a confusing definition where register offsets

[PATCH 1/2] drivers/clocksource/pistachio: fix memory corruption in init

2016-08-17 Thread Marcin Nowakowski
Driver init code incorrectly uses the block base address and as a result clears clocksource structure's fields instead of the hardware registers. Commit 09a998201649 ("timekeeping: Lift clocksource cacheline restriction") has changed the offsets within pistachio_clocksource structure and what has

Re: [tip:x86/boot] x86/mm: Enable KASLR for physical mapping memory regions

2016-08-17 Thread Ingo Molnar
* Borislav Petkov wrote: > On Tue, Aug 16, 2016 at 08:31:28PM -0400, Brian Gerst wrote: > > These fixes work for my system. > > Thanks Brian. > > Ingo, please queue this into x86/urgent. > > Thanks! > > --- > From: Borislav Petkov > Date: Wed, 17 Aug 2016

Re: [PATCH] phy: rockchip-inno-usb2: add COMMON_CLK dependency

2016-08-17 Thread Heiko Stübner
Am Dienstag, 16. August 2016, 09:31:50 schrieb Guenter Roeck: > On Tue, Aug 16, 2016 at 02:02:00PM +0800, Frank Wang wrote: > > On kernel builds without COMMON_CLK, the newly added rockchip-inno-usb2 > > driver fails to build: > > > > drivers/phy/phy-rockchip-inno-usb2.c:124:16: error: field

Re: [PATCH] ARM: dts: exynos: Use stdout non-deprecated property and add serial options to Odroid XU/XU3/XU4

2016-08-17 Thread Mark Rutland
On Wed, Aug 17, 2016 at 09:34:58AM +0200, Krzysztof Kozlowski wrote: > The "linux,stdout-path" is deprecated. > > Add serial options so the console can be properly configured when > bootloader does not pass "console" parameter to command line. Without > options and lack of "console", the serial

Re: [PATCHv6 1/2] add basic register-field manipulation macros

2016-08-17 Thread Kalle Valo
Jakub Kicinski writes: > Common approach to accessing register fields is to define > structures or sets of macros containing mask and shift pair. > Operations on the register are then performed as follows: > > field = (reg >> shift) & mask; > > reg &= ~(mask <<

[PATCH 4/4] zswap: Update document with sharing of duplicate pages feature

2016-08-17 Thread Srividya Desireddy
From: Srividya Desireddy Date: Wed, 17 Aug 2016 14:34:41 +0530 Subject: [PATCH 4/4] zswap: Update document with sharing of duplicate pages feature Updated zswap document with details on the sharing of duplicate swap pages feature. The usage of zswap.same_page_sharing

[PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-08-17 Thread Yury Norov
Here new aarch32 ptrace syscall handler is introsuced to avoid run-time detection of the task type. Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/ptrace.c| 91 ++-

Re: [PATCH 3/4] zswap: Zero-filled pages handling

2016-08-17 Thread Pekka Enberg
On Wed, Aug 17, 2016 at 1:18 PM, Srividya Desireddy wrote: > This patch adds a check in zswap_frontswap_store() to identify zero-filled > page before compression of the page. If the page is a zero-filled page, set > zswap_entry.zeroflag and skip the compression of the

[PATCH 18/18] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-08-17 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Alexander Graf
> On 17 Aug 2016, at 13:46, Yury Norov wrote: > > This series enables aarch64 with ilp32 mode, and as supporting work, > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > existing 32-bit architectures but disabled for new arches (so 64-bit > off_t

[PATCH 05/18] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-08-17 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski

[PATCH 08/18] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-08-17 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY is changed here

Re: [PATCH v5 5/7] power: act8945a_charger: Add capacity level property

2016-08-17 Thread Sebastian Reichel
Hi, On Tue, Aug 16, 2016 at 04:59:56PM +0800, Wenyou Yang wrote: > Add the power supply capacity level property, it corresponds to > POWER_SUPPLY_CAPACITY_LEVEL_*. > > It also utilizes the precision voltage detector function module > to catch the low battery voltage. Please use gpiod API

[PATCH v2 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-17 Thread Vignesh R
It is possible that two or more ADC channels can be simultaneously requested for raw samples, in which case there can be race in access to FIFO data resulting in loss of samples. If am335x_tsc_se_set_once() is called again from tiadc_read_raw(), when ADC is still acquired to sample one of the

  1   2   3   4   5   6   7   8   9   10   >