Re: [PATCH v2 09/10] netns: Add a limit on the number of net namespaces

2016-07-26 Thread Andrei Vagin
On Thu, Jul 21, 2016 at 9:40 AM, Eric W. Biederman wrote: > Signed-off-by: "Eric W. Biederman" > --- > include/linux/user_namespace.h | 1 + > kernel/user_namespace.c| 1 + > net/core/net_namespace.c | 15 +++ > 3 files changed, 17 insertions(+) > > diff --git

Re: [PATCH] power:bq27xxx: 27000/10 read FLAGS register as single

2016-07-26 Thread H. Nikolaus Schaller
ping > Am 18.07.2016 um 18:12 schrieb H. Nikolaus Schaller : > > The bq27000 and bq27010 have a single byte FLAGS register. > Other gauges have 16 bit FLAGS registers. > > For reading the FLAGS register it is sufficient to read the single > register instead of reading RSOC at the next higher

[PATCH v10 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Dou Liyang
[Problem] cpuid <-> nodeid mapping is firstly established at boot time. And workqueue caches the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. When doing node online/offline, cpuid <-> nodeid mapping is established/destroyed, which means, cpuid <-> nodeid mapping will

[PATCH v10 3/7] x86, acpi, cpu-hotplug: Introduce cpuid_to_apicid[] array to store persistent cpuid <-> apicid mapping.

2016-07-26 Thread Dou Liyang
From: Gu Zheng The whole patch-set aims at making cpuid <-> nodeid mapping persistent. So that, when node online/offline happens, cache based on cpuid <-> nodeid mapping such as wq_numa_possible_cpumask will not cause any problem. It contains 4 steps: 1. Enable apic registeration flow to handle

[PATCH v10 1/7] x86, memhp, numa: Online memory-less nodes at boot time.

2016-07-26 Thread Dou Liyang
From: Tang Chen For now, x86 does not support memory-less node. A node without memory will not be onlined, and the cpus on it will be mapped to the other online nodes with memory in init_cpu_to_node(). The reason of doing this is to ensure each cpu has mapped to a node with memory, so that it

[PATCH v10 7/7] acpi: Provide the interface to validate the proc_id

2016-07-26 Thread Dou Liyang
When we want to identify whether the proc_id is unreasonable or not, we can call the "acpi_processor_validate_proc_id" function. It will search in the duplicate IDs. If we find the proc_id in the IDs, we return true to the call function. Conversely, the false represents available. When we

[PATCH 4/4] arm: dts: rockchip: add reset node for the exist saradc SoCs

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3066a.dtsi | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 2 ++ arch/arm/boot/dts/rk3xxx.dtsi | 2 ++ 3 files changed, 6 insertions(+) diff --git

[PATCH 3/4] arm64: dts: rockchip: add reset saradc node for rk3368 SoCs

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi

[PATCH v10 6/7] acpi: Provide the mechanism to validate processors in the ACPI tables

2016-07-26 Thread Dou Liyang
[Problem] When we set cpuid <-> nodeid mapping to be persistent, it will use the DSDT As we know, the ACPI tables are just like user's input in that respect, and we don't crash if user's input is unreasonable. Such as, the mapping of the proc_id and pxm in some machine's ACPI table is like this:

[PATCH 2/4] arm64: dts: rockchip: add the saradc for rk3399

2016-07-26 Thread Caesar Wang
This patch adds saradc needed information on rk3399 SoCs. Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index

[PATCH v10 4/7] x86, acpi, cpu-hotplug: Enable MADT APIs to return disabled apicid.

2016-07-26 Thread Dou Liyang
From: Gu Zheng The whole patch-set aims at making cpuid <-> nodeid mapping persistent. So that, when node online/offline happens, cache based on cpuid <-> nodeid mapping such as wq_numa_possible_cpumask will not cause any problem. It contains 4 steps: 1. Enable apic registeration flow to handle

[PATCH v10 5/7] x86, acpi, cpu-hotplug: Set persistent cpuid <-> nodeid mapping when booting.

2016-07-26 Thread Dou Liyang
From: Gu Zheng The whole patch-set aims at making cpuid <-> nodeid mapping persistent. So that, when node online/offline happens, cache based on cpuid <-> nodeid mapping such as wq_numa_possible_cpumask will not cause any problem. It contains 4 steps: 1. Enable apic registeration flow to handle

[PATCH resent] w1:omap_hdq: fix regression

2016-07-26 Thread H. Nikolaus Schaller
commit ("w1: masters: omap_hdq: add support for 1-wire mode") did add a statement to clear the hdq_irqstatus flags in hdq_read_byte(). If the hdq reading process is scheduled slowly or interrupts are disabled for a while the hardware read activity might already be finished on entry of

[PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux-...@vger.kernel.org Cc: linux-rockc...@lists.infradead.org ---

[PATCH v10 2/7] x86, acpi, cpu-hotplug: Enable acpi to register all possible cpus at boot time.

2016-07-26 Thread Dou Liyang
From: Gu Zheng [Problem] cpuid <-> nodeid mapping is firstly established at boot time. And workqueue caches the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. When doing node online/offline, cpuid <-> nodeid mapping is established/destroyed, which means, cpuid <-> nodeid

[PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-26 Thread Chunhui He
NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, the entry state should not be changed. Currently the code puts an extra "NUD_CONNECTED" condition. So if old state was NUD_DELAY or NUD_PROBE (they are

RE: [PATCH 4.6 143/203] memory: omap-gpmc: Fix omap gpmc EXTRADELAY timing

2016-07-26 Thread SebastienOcquidant
 - Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital

Re: staging: wilc1000: Reduce scope for a few variables in mac_ioctl()

2016-07-26 Thread SF Markus Elfring
>> -if (strncasecmp(buff, "RSSI", length) == 0) { >> +if (strncasecmp(buff, "RSSI", 0) == 0) { >> +s8 rssi; >> + > > Um, please think a second about if it makes any sense at all to compare > zero chars of two strings. Under

Re: [GIT PULL] perf changes for v4.8

2016-07-26 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi Linus, > > On Mon, 25 Jul 2016 14:45:53 -0700 Linus Torvalds > wrote: > > > > On Mon, Jul 25, 2016 at 2:21 PM, Stephen Rothwell > > wrote: > > > > > > Actually, the perf tree on its own was enough to trigger the build > > > problem, the luto-next tree was

[PATCH 2/2] ARM: dts: imx7d: fix GIC nodes interrupt and register specification

2016-07-26 Thread Stefan Agner
The i.MX 7 as a GICv2, hence its CPU interface register map (the second register region) is 8kB long. Add the VGIC maintenance interrupt which allows to use the new VGIC driver. Signed-off-by: Stefan Agner Suggested-by: Marc Zyngier --- arch/arm/boot/dts/imx7s.dtsi | 3 ++- 1 file changed, 2

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Chen-Yu Tsai
On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard wrote: > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: >> The bootloader (U-boot) sometimes uses this timer for various delays. >> It uses it as a ongoing counter, and does comparisons on the current >> counter value. The timer

[PATCH 1/2] ARM: dts: imx7d: move ARM platform peripherals inside soc node

2016-07-26 Thread Stefan Agner
Since we have a SoC level node we should make use of it and have all nodes which are within the SoC, inside that node. This also saves an extra interrupt-parent properties. While at it, also order the Coresight nodes according to register addresses. Signed-off-by: Stefan Agner --- Hi Shawn, Not

Re: [PATCH] staging: ks7010: fix wait_for_completion_interruptible_timeout return handling

2016-07-26 Thread Nicholas Mc Guire
On Mon, Jul 25, 2016 at 10:54:03PM +0200, Wolfram Sang wrote: > On Mon, Jul 25, 2016 at 09:21:50PM +0200, Nicholas Mc Guire wrote: > > wait_for_completion_interruptible_timeout return 0 on timeout and > > -ERESTARTSYS if interrupted. The check for > > !wait_for_completion_interruptible_timeout()

Re: [PATCH 1/1 linux-next] kbuild: add make force=1 for testing

2016-07-26 Thread Robert Jarzmik
Andrew Morton writes: > On Sun, 24 Jul 2016 15:28:18 +0200 Fabian Frederick wrote: > >> Commit 51193b76bfff >> ("kbuild: forbid kernel directory to contain spaces and colons") >> >> makes it impossible to build kernel on default SD labels like >> "SD Card" for instance. >> >> Makefile:133:

Re: [GIT PULL] perf changes for v4.8

2016-07-26 Thread Ingo Molnar
* Stephen Rothwell wrote: > > > That is why I sent this without mentioning the conflict. Is there any > > > other > > > complication that I missed? > > > > Actually, the perf tree on its own was enough to trigger the build problem, > > the luto-next tree was just what initially triggered

Re: [PATCH] ceph: Correctly return NXIO errors from ceph_llseek.

2016-07-26 Thread Yan, Zheng
> On Jul 22, 2016, at 01:43, Phil Turnbull wrote: > > ceph_llseek does not correctly return NXIO errors because the 'out' path > always returns 'offset'. > > Fixes: 06222e491e66 ("fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's > that define their own llseek") > Signed-off-by: Phil

Re: [PATCH] staging: ks7010: declare private functions static

2016-07-26 Thread Nicholas Mc Guire
On Mon, Jul 25, 2016 at 11:04:18PM +0200, Wolfram Sang wrote: > On Mon, Jul 25, 2016 at 09:22:27PM +0200, Nicholas Mc Guire wrote: > > Private functions in ks_hostif.c can be declared static. > > > > Fixes: 13a9930d15b4 ("staging: ks7010: add driver from Nanonote > > extra-repository") > > > >

Re: [PATCH] iio: adc: rockchip_saradc: Explicitly disable ADC on probe

2016-07-26 Thread Caesar Wang
On 2016年07月26日 11:22, Guenter Roeck wrote: On 07/25/2016 07:51 PM, Caesar Wang wrote: Hi Guenter, Thanks for fixing it. On 2016年07月26日 03:39, Guenter Roeck wrote: If the ADC is read for the first time, the caller gets a timeout error, and the kernel log shows read channel() error: -110

Re: [PATCH] i2c: i801: use IS_ENABLED() instead of checking for built-in or module

2016-07-26 Thread Wolfram Sang
On Thu, Jul 21, 2016 at 12:11:01PM -0400, Javier Martinez Canillas wrote: > The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either > built-in or as a module, use that macro instead of open coding the same. > > Using the macro makes the code more readable by helping abstract

Re: [PATCH] staging: ks7010: declare private functions static

2016-07-26 Thread Wolfram Sang
On Tue, Jul 26, 2016 at 06:48:00AM +, Nicholas Mc Guire wrote: > On Mon, Jul 25, 2016 at 11:04:18PM +0200, Wolfram Sang wrote: > > On Mon, Jul 25, 2016 at 09:22:27PM +0200, Nicholas Mc Guire wrote: > > > Private functions in ks_hostif.c can be declared static. > > > > > > Fixes: 13a9930d15b4

Re: [PATCH] staging: ks7010: declare private functions static

2016-07-26 Thread Nicholas Mc Guire
On Tue, Jul 26, 2016 at 08:51:14AM +0200, Wolfram Sang wrote: > On Tue, Jul 26, 2016 at 06:48:00AM +, Nicholas Mc Guire wrote: > > On Mon, Jul 25, 2016 at 11:04:18PM +0200, Wolfram Sang wrote: > > > On Mon, Jul 25, 2016 at 09:22:27PM +0200, Nicholas Mc Guire wrote: > > > > Private functions in

Re: [PATCH] s390/perf: fix 'start' address of module's map

2016-07-26 Thread Jiri Olsa
On Fri, Jul 22, 2016 at 10:47:34AM +0800, Songshan Gong wrote: > Has the patch been accepted by upstream? > > 在 7/21/2016 11:10 AM, Song Shan Gong 写道: > > At preset, when creating module's map, perf gets 'start' address by parsing > > '/proc/modules', but it's module base address, isn't the start

Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-07-26 Thread Maxime Ripard
On Thu, Jul 21, 2016 at 11:52:15AM +0200, Ondřej Jirman wrote: > >>> If so, then yes, trying to switch to the 24MHz oscillator before > >>> applying the factors, and then switching back when the PLL is stable > >>> would be a nice solution. > >>> > >>> I just checked, and all the SoCs we've had so

Re: [Cluster-devel] [PATCH 1/1 linux-next] GFS2: use BIT() macro

2016-07-26 Thread Andreas Gruenbacher
Fabian, On Sun, Jul 24, 2016 at 4:24 PM, Fabian Frederick wrote: > Replace 1 << value shift by more explicit BIT() macro > > Also fixes two bare unsigned definitions: > > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > + unsigned hsize = BIT(ip->i_depth); this patch is

[PATCH 3/9] clk: sunxi-ng: mux: Increase fixed pre-divider div size

2016-07-26 Thread Chen-Yu Tsai
Some clocks have a predivider value that is larger than what u8 can store. One such example is the OUT clk found on A20/A31, which has a /750 pre-divider on one of the osc24M parents. Increase the size of the div field to u16. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_mux.c | 2

[PATCH 0/9] clk: sunxi-ng: Support A31/A31s CCU

2016-07-26 Thread Chen-Yu Tsai
Hi everyone, This series adds support for the A31/A31s CCU (clock control unit) with the new sunxi-ng binding/driver. This is a near complete driver, with a few features unimplemented or might need reworking: - The HDMI mode of the PLL-MIPI clock is unsupported. - The EMAC clock is

[PATCH 2/9] clk: sunxi-ng: nk: Make ccu_nk_find_best static

2016-07-26 Thread Chen-Yu Tsai
make C=2 reports: CHECK drivers/clk/sunxi-ng/ccu_nk.c drivers/clk/sunxi-ng/ccu_nk.c:17:6: warning: symbol 'ccu_nk_find_best' was not declared. Should it be static? ccu_nk_find_best is only used within ccu_nk.c. So make it static to get rid of this warning. Fixes: adbfb0056e03 ("clk:

[PATCH 6/9] clk: sunxi-ng: nkm: Add mux to support multiple parents

2016-07-26 Thread Chen-Yu Tsai
The MIPI mode of the MIPI-PLL on A31 is an NKM-style PLL with 2 selectable parents. Add mux support to the NKM clock. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_nkm.c | 40 ++-- drivers/clk/sunxi-ng/ccu_nkm.h | 23 +++ 2

[PATCH resend 1/9] clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock

2016-07-26 Thread Chen-Yu Tsai
The condition passed to read*_poll_timeout() is the break condition, i.e. wait for this condition to happen and return success. The original code assumed the opposite, resulting in a warning when the PLL clock rate was changed but never lost it's lock as far as the readout indicated. This was

[PATCH 7/9] clk: sunxi-ng: mux: Add clk notifier functions

2016-07-26 Thread Chen-Yu Tsai
On sunxi we support cpufreq by changing the clock rate of PLL-CPU. It's possible the clock output of the PLL goes out of the CPU's operational limits when the PLL's multipliers / dividers are changed and it hasn't stabilized yet. This would result in the CPU hanging. To circumvent this, we

[PATCH 9/9] ARM: dts: sun6i: switch A31/A31s to new CCU clock bindings

2016-07-26 Thread Chen-Yu Tsai
Now that we have a different clock representation, switch to it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 424 +-- 1 file changed, 97 insertions(+), 327 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi

[PATCH 8/9] clk: sunxi-ng: Add A31/A31s clocks

2016-07-26 Thread Chen-Yu Tsai
Add a new style driver for the clock control unit in Allwinner A31/A31s. A few clocks are still missing: - EMAC clock Signed-off-by: Chen-Yu Tsai --- .../devicetree/bindings/clock/sunxi-ccu.txt|3 +- drivers/clk/sunxi-ng/Kconfig | 10 +

[PATCH 5/9] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-07-26 Thread Chen-Yu Tsai
Some clocks on the A31 have fixed pre-dividers on multiple parents. Add support for them. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 + drivers/clk/sunxi-ng/ccu_mux.c | 6 -- drivers/clk/sunxi-ng/ccu_mux.h | 10 ++ 3 files changed, 15

[PATCH 4/9] clk: sunxi-ng: mux: Add support for mux tables

2016-07-26 Thread Chen-Yu Tsai
Some clock muxes have holes, i.e. invalid or unconnected inputs, between parent mux values. Add support for specifying a mux table to map clock parents to mux values. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_mux.c | 12 drivers/clk/sunxi-ng/ccu_mux.h | 12

Re: [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-26 Thread Michal Hocko
On Mon 25-07-16 21:23:44, Michal Hocko wrote: > [CC Marcelo who might remember other details for the loads which made > him to add this code - see the patch changelog for more context] > > On Mon 25-07-16 10:32:47, Michal Hocko wrote: [...] > From 0d950d64e3c59061f7cca71fe5877d4e430499c9 Mon Sep

RE: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-26 Thread Dexuan Cui
> From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > Behalf Of Dexuan Cui > ... > > From: David Miller [mailto:da...@davemloft.net] > > ... > > From: Dexuan Cui > > Date: Tue, 26 Jul 2016 03:09:16 + > > > > > BTW, during the past month, at least 7 other people also

Re: [PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-26 Thread Julian Anastasov
Hello, On Tue, 26 Jul 2016, Chunhui He wrote: > NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee > neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, > the entry state should not be changed. > > Currently the code puts an extra

Re: [patch] hwmon: (pmbus) Add explicit support for DPS-460, DPS-800, and SGD009

2016-07-26 Thread Jean Delvare
On Mon, 25 Jul 2016 10:55:53 +, Vadim Pasternak wrote: > Provide support for PSU DPS-460, DPS-800 from Delta Electronics, INC and for > SGD009 from Acbel Polytech, INC. > These devices do not support the STATUS_CML register, and reports a > communication error in response to this command. >

Re: [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-26 Thread Michal Hocko
On Mon 25-07-16 17:52:17, Mikulas Patocka wrote: > > > On Sat, 23 Jul 2016, NeilBrown wrote: > > > "dirtying ... from the reclaim context" ??? What does that mean? > > According to > > Commit: 26eecbf3543b ("[PATCH] vm: pageout throttling") > > From the history tree, the purpose of

Re: [PATCH] power:bq27xxx: 27000/10 read FLAGS register as single

2016-07-26 Thread Pali Rohár
On Monday 18 July 2016 18:12:09 H. Nikolaus Schaller wrote: > The bq27000 and bq27010 have a single byte FLAGS register. > Other gauges have 16 bit FLAGS registers. > > For reading the FLAGS register it is sufficient to read the single > register instead of reading RSOC at the next higher address

Re: staging: ks7010: Rename jump labels

2016-07-26 Thread SF Markus Elfring
> I have a lot of other things to work on, of much greater interest (to me.) This is fine. Thanks for your feedback. >>> Personally I see no value in such statistics. >> >> Do they indicate any code smells eventually? > > I have no idea what you mean, sorry. How do you think about to take

Re: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-26 Thread Andreas Noever
On Wed, Jul 20, 2016 at 12:02 AM, Bjorn Helgaas wrote: > On Mon, Jul 18, 2016 at 01:00:33PM +0300, Amir Levy wrote: >> This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. >> >> Changes since v3: >> - Moved new Thunderbolt device IDs from pci_ids.h to icm_nhi.h. >> - Cleanup and

[PATCH v2] arm64: mm: convert __dma_* routines to use start, size

2016-07-26 Thread Kwangwoo Lee
v2) change __dma_* routine names using the terminoloy guidance: area: takes a start and size range: takes a start and end use __dma_flush_area() instead of __dma_flush_range() in dma-mapping.c v1) __dma_* routines have been converted to use start and size instread of start and end

Re: [RFC] User-defined leds

2016-07-26 Thread Jacek Anaszewski
Hi David, On 07/25/2016 08:36 PM, David Lechner wrote: short version: I have a use case for leds where I want to be able to use the triggers in the leds subsystem without having a physical hardware led. long version: I am working on a program to make one embedded system

Re: [RFC] User-defined leds

2016-07-26 Thread Jacek Anaszewski
Hi Marcel, On 07/25/2016 08:45 PM, Marcel Holtmann wrote: Hi David, short version: I have a use case for leds where I want to be able to use the triggers in the leds subsystem without having a physical hardware led. long version: I am working on a program to make one embedded system

Re: [PATCH v4 2/7] thunderbolt: Updating the register definitions

2016-07-26 Thread Andreas Noever
On Mon, Jul 18, 2016 at 12:00 PM, Amir Levy wrote: > Adding more Thunderbolt(TM) register definitions > and some helper macros. > > Signed-off-by: Amir Levy > --- > drivers/thunderbolt/nhi_regs.h | 109 > + > 1 file changed, 109 insertions(+) > > diff

Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering

2016-07-26 Thread Jean Delvare
Hi Viresh, On Mon, 25 Jul 2016 15:31:40 -0700, Viresh Kumar wrote: > On 25-07-16, 11:39, Jean Delvare wrote: > > The problem is that the patch proposed by Viresh has nothing to do with > > this. It's not adding notifications, just changing the time frame during > > which user-space holds a

Re: [PATCH -next] rtc: at91sam9: Fix missing spin_lock_init()

2016-07-26 Thread Alexandre Belloni
On 25/07/2016 at 07:05:11 +, Wei Yongjun wrote : > The driver allocates the spinlock but not initialize it. > Use spin_lock_init() on it to initialize it correctly. > > This is detected by Coccinelle semantic patch. > > Signed-off-by: Wei Yongjun > --- > drivers/rtc/rtc-at91sam9.c | 1 + >

[PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. This patch adds the ADC driver which is based on the MFD for the same SoCs ADC. This also registers the thermal adc channel in the iio map array so iio_hwmon could use it without modifying the

[PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
iio_channel_get_all returns -ENODEV when it cannot find either phandles and properties in the Device Tree or channels whose consumer_dev_name matches iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers which might be probed after iio_hwmon. This makes sure iio_hwmon is probed

[PATCH v3 0/4] add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in

Re: [zer0...@yahoo.com: [oss-security] panic at big_key_preparse #4.7-r6/rc7 & master]

2016-07-26 Thread David Howells
wrote: > If you will have no luck to repro issue, I will take a deeper look at it at > Friday and let you know asap Can you find out the line on which the crash happens? Load vmlinux into gdb and do: i li *0x If it says it's in some header file somewhere in an inline function, try

[PATCH v3 2/4] mfd: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. For now, only the ADC and the thermal sensor drivers are probed by the MFD, the touchscreen controller support will be added later. Signed-off-by: Quentin Schulz --- v3: - use defines in

[PATCH v3 3/4] mfd: mfd-core: reattach mfd of_node to cells without of_compatible

2016-07-26 Thread Quentin Schulz
When an MFD cell has an of_compatible (meaning it is present in the Device Tree), other nodes can reference it using a phandle. However when the MFD cell is not declared in the Device Tree, the only way other nodes can reference it are by using a phandle to the MFD. Then when this MFD cell tries

[PATCH 2/3] drm/rockchip: vop: support multi area plane

2016-07-26 Thread Mark Yao
The series vop of VOP_FULL framework support area plane, such as RK3288 and RK3399, one group of area planes share same hardware, reuse the hardware on different scanout time, this design is useful to support mulit planes with low hardware consume. Signed-off-by: Mark Yao ---

Re: [RFC] mm: bail out in shrin_inactive_list

2016-07-26 Thread Mel Gorman
On Tue, Jul 26, 2016 at 10:21:57AM +0900, Minchan Kim wrote: > > > I believe proper fix is to modify get_scan_count. IOW, I think > > > we should introduce lruvec_reclaimable_lru_size with proper > > > classzone_idx but I don't know how we can fix it with memcg > > > which doesn't have zone stat

[PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Mark Yao
What is share plane: Plane hardware only be used when the display scanout run into plane active scanout, that means we can reuse the plane hardware resources on plane non-active scanout. -- | scanout |

[PATCH 3/3] drm/rockchip: vop: rk3288: add area plane

2016-07-26 Thread Mark Yao
Change-Id: Iac8fde019020d8f1a671d52c1a4d91ad2d050d43 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 52 - 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c

[PATCH] hwmon: iio_hwmon: fix memory leak in name attribute

2016-07-26 Thread Quentin Schulz
The "name" variable's memory is now freed when the device is destructed thanks to devm function. Signed-off-by: Quentin Schulz Reported-by: Guenter Roeck --- drivers/hwmon/iio_hwmon.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Thomas Petazzoni
Hello, On Tue, 26 Jul 2016 09:43:44 +0200, Quentin Schulz wrote: > -module_platform_driver(iio_hwmon_driver); > +static struct platform_driver * const drivers[] = { > + _hwmon_driver, > +}; > + > +static int __init iio_hwmon_late_init(void) > +{ > + return

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
Hi, On 26/07/2016 09:48, Thomas Petazzoni wrote: > Hello, > > On Tue, 26 Jul 2016 09:43:44 +0200, Quentin Schulz wrote: > >> -module_platform_driver(iio_hwmon_driver); >> +static struct platform_driver * const drivers[] = { >> +_hwmon_driver, >> +}; >> + >> +static int __init

Re: [PATCH 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler

2016-07-26 Thread Scott Wood
On Mon, 2016-07-25 at 21:25 -0700, Andrey Smirnov wrote: > Convert fsl_rstcr_restart into a function to be registered with > register_reset_handler() API and introduce fls_rstcr_restart_register() > function that can be added as an initcall that would do aforementioned > registration. > >

[PATCH] MAINTAINER: alpine: add a mailing list

2016-07-26 Thread Antoine Tenart
Add the linux-arm-kernel mailing list for the Alpine SoCs. Signed-off-by: Antoine Tenart --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 452beeeb7fbd..969727a168ec 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -981,6 +981,7 @@ N: meson

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-26 Thread Michael Kerrisk (man-pages)
On 07/26/2016 04:54 AM, Andrew Vagin wrote: On Mon, Jul 25, 2016 at 09:59:43AM -0500, Eric W. Biederman wrote: "Michael Kerrisk (man-pages)" writes: [snip] [snip] So, from my point of view, the important piece that was missing from your commit message was the note to use

Re: [PATCH v2 3/3] x86/apic: Improved the setting of interrupt mode for bsp

2016-07-26 Thread Wei, Jiangang
Hi Eric, Thanks for your response. But I have some different ideas... On Mon, 2016-07-25 at 22:53 -0500, Eric W. Biederman wrote: > Wei Jiangang writes: > > > If we specify the 'notsc' parameter for the dump-capture kernel, > > and then trigger a crash(panic) by using "ALT-SysRq-c" or > >

Re: [PATCH 0/5] Candidate fixes for premature OOM kills with node-lru v2

2016-07-26 Thread Joonsoo Kim
On Thu, Jul 21, 2016 at 03:10:56PM +0100, Mel Gorman wrote: > Both Joonsoo Kim and Minchan Kim have reported premature OOM kills. > The common element is a zone-constrained allocation failings. Two factors > appear to be at fault -- pgdat being considered unreclaimable prematurely > and

Re: [PATCH] iio: orientation: Add BNO055 9-axis Absolute Orientation Sensor driver

2016-07-26 Thread Peter Meerwald-Stadler
> BNO055 provides the following motion sensors data: > > * Gyroscope > * Accelerometer > * Magnetometer > * Absolute Orientation (Quaternion) comments below > Signed-off-by: navin patidar > --- > drivers/iio/orientation/Kconfig | 10 + > drivers/iio/orientation/Makefile | 1 + >

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-26 Thread Clemens Ladisch
Ruslan Bilovol wrote: > On Fri, Jul 15, 2016 at 10:43 AM, Clemens Ladisch wrote: On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol wrote: > it may break current usecase for some people >> >> And what are the benefits that justify breaking the kernel API? > > Main limitation with

Re: [PATCH 5/5] mm, vmscan: Account for skipped pages as a partial scan

2016-07-26 Thread Joonsoo Kim
On Thu, Jul 21, 2016 at 03:11:01PM +0100, Mel Gorman wrote: > Page reclaim determines whether a pgdat is unreclaimable by examining how > many pages have been scanned since a page was freed and comparing that to > the LRU sizes. Skipped pages are not reclaim candidates but contribute to > scanned.

Re: [PATCH 5/5] mm, vmscan: Account for skipped pages as a partial scan

2016-07-26 Thread Joonsoo Kim
On Tue, Jul 26, 2016 at 05:16:22PM +0900, Joonsoo Kim wrote: > On Thu, Jul 21, 2016 at 03:11:01PM +0100, Mel Gorman wrote: > > Page reclaim determines whether a pgdat is unreclaimable by examining how > > many pages have been scanned since a page was freed and comparing that to > > the LRU sizes.

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > iio_channel_get_all returns -ENODEV when it cannot find either phandles and > properties in the Device Tree or channels whose consumer_dev_name matches > iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers > which might

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 10:21, Alexander Stein wrote: > On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: >> iio_channel_get_all returns -ENODEV when it cannot find either phandles and >> properties in the Device Tree or channels whose consumer_dev_name matches >> iio_hwmon in iio_map_list. The

Re: [RFC] mm: bail out in shrin_inactive_list

2016-07-26 Thread Minchan Kim
On Tue, Jul 26, 2016 at 08:46:50AM +0100, Mel Gorman wrote: > On Tue, Jul 26, 2016 at 10:21:57AM +0900, Minchan Kim wrote: > > > > I believe proper fix is to modify get_scan_count. IOW, I think > > > > we should introduce lruvec_reclaimable_lru_size with proper > > > > classzone_idx but I don't

Re: [PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Daniel Vetter
On Tue, Jul 26, 2016 at 03:46:32PM +0800, Mark Yao wrote: > What is share plane: > Plane hardware only be used when the display scanout run into plane active > scanout, that means we can reuse the plane hardware resources on plane > non-active scanout. > >

Re: [Xen-devel] [PATCH linux v2 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-26 Thread Vitaly Kuznetsov
Stefano Stabellini writes: > On Mon, 25 Jul 2016, Vitaly Kuznetsov wrote: >> >> While we're not obliged to have the same type for xen_vcpu_id on all >> arches I see no point in diverging without a reason. I can do v3 making >> the mapping uint32 > > I agree that making the mapping uint32_t

[PATCH] README: Mention when 386 support ended + update obsolete 386 paths

2016-07-26 Thread Øyvind A . Holm
The paragraph about i386 could be misinterpreted as if 386 still is a valid processor type. Mention when 386 support ended, and change two "arch/i386/" paths to one that exists, "arch/x86/". Signed-off-by: Øyvind A. Holm --- README | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

Re: [PATCH 8/9] clk: sunxi-ng: Add A31/A31s clocks

2016-07-26 Thread Jean-Francois Moine
On Tue, 26 Jul 2016 15:04:30 +0800 Chen-Yu Tsai wrote: > +static const struct ccu_mux_fixed_prediv clk_out_predivs[] = { > + { .index = 0, .div = 750, }, > + { .index = 3, .div = 4, }, > + { .index = 4, .div = 4, }, > +}; No end of table. -- Ken ar c'hentañ | ** Breizh

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-26 Thread Cyrill Gorcunov
On Mon, Jul 25, 2016 at 02:56:43PM -0500, Eric W. Biederman wrote: ... > >> > >> Also there is a big fat bug in prctl_set_mm_exe_file. It doesn't > >> validate that the new file is a actually mmaped executable. We would > >> definitely need that to be fixed before even considering removing the >

[PATCH] mtd: spi-nor: Add at25df321 spi-nor flash support

2016-07-26 Thread Jagan Teki
Add Atmel at25df321 spi-nor flash to the list of spi_nor_ids. Cc: Brian Norris Cc: Wenyou Yang Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index d0fc165..ec47451

Re: [PATCH v2 3/3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-26 Thread Roger Pau Monné
On Tue, Jul 26, 2016 at 01:19:37PM +0800, Bob Liu wrote: > The current VBD layer reserves buffer space for each attached device based on > three statically configured settings which are read at boot time. > * max_indirect_segs: Maximum amount of segments. > * max_ring_page_order: Maximum order

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-26 Thread Jassi Brar
On Tue, Jul 26, 2016 at 7:01 AM, Ruslan Bilovol wrote: > On Fri, Jul 15, 2016 at 10:43 AM, Clemens Ladisch wrote: On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol wrote: > it may break current usecase for some people >> >> And what are the benefits that justify breaking the kernel

Re: [PATCH 2/9] clk: sunxi-ng: nk: Make ccu_nk_find_best static

2016-07-26 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 03:04:24PM +0800, Chen-Yu Tsai wrote: > make C=2 reports: > > CHECK drivers/clk/sunxi-ng/ccu_nk.c > drivers/clk/sunxi-ng/ccu_nk.c:17:6: warning: symbol 'ccu_nk_find_best' was > not declared. Should it be static? > > ccu_nk_find_best is only used within ccu_nk.c. So

Re: [PATCH resend 1/9] clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock

2016-07-26 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 03:04:23PM +0800, Chen-Yu Tsai wrote: > The condition passed to read*_poll_timeout() is the break condition, > i.e. wait for this condition to happen and return success. > > The original code assumed the opposite, resulting in a warning when > the PLL clock rate was

[PATCH] powerpc: set used_vsr/used_vr/used_spe in sigreturn path when MSR bits are active

2016-07-26 Thread wei . guo . simon
From: Simon Guo Normally, when MSR[VSX/VR/SPE] bits = 1, the used_vsr/used_vr/used_spe bit have already been set. However signal frame locates at user space and it is controlled by user application. It is up to kernel to make sure used_vsr/used_vr/used_spe(in kernel)=1 and consistent with MSR

Re: [PATCH v2 3/3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-26 Thread Bob Liu
On 07/26/2016 04:44 PM, Roger Pau Monné wrote: > On Tue, Jul 26, 2016 at 01:19:37PM +0800, Bob Liu wrote: >> The current VBD layer reserves buffer space for each attached device based on >> three statically configured settings which are read at boot time. >> * max_indirect_segs: Maximum amount

Re: [PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread John Keeping
On Tue, 26 Jul 2016 14:11:47 +0800, Caesar Wang wrote: > SARADC controller needs to be reset before programming it, otherwise > it will not function properly. > > Signed-off-by: Caesar Wang > Cc: Jonathan Cameron > Cc: Heiko Stuebner > Cc: Rob Herring > Cc: linux-...@vger.kernel.org > Cc:

Re: [PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-26 Thread Hannes Frederic Sowa
On 26.07.2016 08:16, Chunhui He wrote: > NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee > neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, > the entry state should not be changed. > > Currently the code puts an extra "NUD_CONNECTED" condition. So

Re: [PATCH 2/2] dt-bindings: add simple-panel-dsi and simple-panel

2016-07-26 Thread Thierry Reding
On Tue, Jul 26, 2016 at 10:01:32AM +0800, Mark yao wrote: > On 2016年07月25日 23:21, Thierry Reding wrote: > > On Wed, Jul 20, 2016 at 11:18:50AM +0800, Mark Yao wrote: > > Allow user add display timing on device tree with simple-panel-dsi > or simple-panel. > > Cc:

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Thomas Gleixner
B1;2802;0cEric, On Mon, 25 Jul 2016, Auger Eric wrote: > On 20/07/2016 11:04, Thomas Gleixner wrote: > > On Tue, 19 Jul 2016, Eric Auger wrote: > >> + if (ret) { > >> + for (; i >= 0; i--) { > >> + struct irq_data *d = irq_get_irq_data(virq + i);

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: > On 26/07/2016 10:21, Alexander Stein wrote: > > On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > >> iio_channel_get_all returns -ENODEV when it cannot find either phandles > >> and > >> properties in the Device Tree or channels

<    3   4   5   6   7   8   9   10   11   12   >