Re: [PATCH 1/5] leds: core: Drivers shouldn't enforce SYNC/ASYNC brightness setting

2015-10-09 Thread Pavel Machek
On Fri 2015-10-09 08:28:44, Jacek Anaszewski wrote: > On 10/08/2015 05:50 PM, Pavel Machek wrote: > >On Mon 2015-09-21 16:29:26, Jacek Anaszewski wrote: > >>This patch removes SET_BRIGHTNESS_ASYNC and SET_BRIGHTNESS flags. > > s/SET_BRIGHTNESS/SET_BRIGHTNESS_SYNC/ > > >>led_set_brightness now cal

Re: [RFC/PATCH 17/38] perf tools: Maintain map groups list in a leader thread

2015-10-09 Thread Namhyung Kim
On Thu, Oct 08, 2015 at 02:58:00PM +0200, Jiri Olsa wrote: > On Fri, Oct 02, 2015 at 02:18:58PM +0900, Namhyung Kim wrote: > > SNIP > > > int __thread__set_comm(struct thread *thread, const char *str, u64 > > timestamp, > >bool exec) > > { > > @@ -182,6 +257,40 @@ int __thr

Re: [PATCH 05/10] clk: iproc: Add PLL base write function

2015-10-09 Thread Stephen Boyd
On 10/02, Jon Mason wrote: > diff --git a/drivers/clk/bcm/clk-iproc-pll.c b/drivers/clk/bcm/clk-iproc-pll.c > index e029ab3..a4602aa 100644 > --- a/drivers/clk/bcm/clk-iproc-pll.c > +++ b/drivers/clk/bcm/clk-iproc-pll.c > @@ -137,6 +137,18 @@ static int pll_wait_for_lock(struct iproc_pll *pll) >

Re: [PATCH 02/10] Drivers: hv: utils: run polling callback always in interrupt context

2015-10-09 Thread Olaf Hering
On Thu, Oct 08, KY Srinivasan wrote: > > yes, but after doing fcopy_respond_to_host(). I'd suggest we leave the > > check in place, better safe than sorry. > > Agreed; Olaf, if it is ok with you, I can fix it up and send. I will retest with this part reverted. I think without two code paths ente

Re: [PATCH v2 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-09 Thread Jisheng Zhang
Hi Antoine, On Thu, 8 Oct 2015 18:46:53 +0800 Jisheng Zhang wrote: > Hi Antoine, > > On Fri, 2 Oct 2015 15:21:39 +0200 > Antoine Tenart wrote: > > > Hi Jisheng, > > > > Sorry for the delay, I was quite busy these days... > > > > Thanks for the nice comments! > > > > I saw your using pin na

[PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the normal zone will be created firstly. Bu

containers: how to limit pagecache size?

2015-10-09 Thread Yuzhou
Hi, all How to limit and reclaim container's pagecache? Thanks, Zhang Haoyu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH RESEND] rtsx_usb_ms: Use msleep_interruptible() in polling loop

2015-10-09 Thread Lee Jones
On Thu, 08 Oct 2015, Ben Hutchings wrote: > On Thu, 2015-10-08 at 08:19 +0100, Lee Jones wrote: > > On Mon, 28 Sep 2015, Ben Hutchings wrote: > > > > > rtsx_usb_ms creates a task that mostly sleeps, but tasks in > > > uninterruptible sleep still contribute to the load average (for > > > bug-compa

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Hillf Danton
> @@ -109,8 +109,8 @@ static void ext4_finish_bio(struct bio *bio) > if (bio->bi_error) > buffer_io_error(bh); > } while ((bh = bh->b_this_page) != head); > - bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); >

efficient way to verify one memory block is only readable?

2015-10-09 Thread mudongliang
When I did some experiments about vtable, and modified the virtual method address myself, I found error report : "Segment fault". When I see the /proc/self/maps, vtable is in the readonly text segment. I almost forget the fact that vtables have been stored in readonly segment. So I have a quest

Re: [PATCH v2 10/36] x86/vdso: Define BUILD_VDSO while building and emit .eh_frame in asm

2015-10-09 Thread Ingo Molnar
* Andy Lutomirski wrote: > For the vDSO, user code wants runtime unwind info. Make sure that, > if we use .cfi directives, we generate it. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/entry/vdso/Makefile | 4 ++-- > arch/x86/include/asm/dwarf2.h | 13 ++--- > 2 files changed

Re: [PATCH v2 0/3] hwrng: st: Couple of improvements

2015-10-09 Thread Lee Jones
On Thu, 08 Oct 2015, Herbert Xu wrote: > On Wed, Oct 07, 2015 at 01:23:26PM +0100, Lee Jones wrote: > > This set contains a minor documentation fix, greater clarification > > with how the FIFO depth/size is represented and finally a fix to > > prevent early timeout during data acquisition. > > >

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Nikolay Borisov
On 10/09/2015 10:19 AM, Hillf Danton wrote: >> @@ -109,8 +109,8 @@ static void ext4_finish_bio(struct bio *bio) >> if (bio->bi_error) >> buffer_io_error(bh); >> } while ((bh = bh->b_this_page) != head); >> -bit_spin_unlock

Re: [PATCH v4 8/8] ARM: multi_v7_defconfig: Add rockchip audio support

2015-10-09 Thread Lee Jones
Thanks an awful lot of people you've spammed there. Are you sure they all care about your Rockchip changes? Hint: I'm sure that they don't. Please be careful and only send patches to relevant people. > Enable support for audio device found on rockchip boards. > > Signed-off-by: Sjoerd Simons

Re: [PATCH 00/44] kdbus cleanups

2015-10-09 Thread Sergei Zviagintsev
Hi David, On Thu, Oct 08, 2015 at 05:20:34PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Hi all, > > > > This is a set of various kdbus code cleanups. Patches are ordered by > > increasing complexity, starting with docs and comments fixes a

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-09 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 02:44:39PM -0700, Paul E. McKenney wrote: > > > > I am with Peter -- we do need the benchmark results for PPC. > > > > > > Urgh, sorry guys. I have been slowly doing some benchmarks, but time is > > > not > > > plentiful at the moment. > > > > > > If we do a straight lws

Re: [PATCH v2 32/36] x86/entry: Micro-optimize compat fast syscall arg fetch

2015-10-09 Thread Ingo Molnar
* Andy Lutomirski wrote: > we're following a 32-bit pointer, and the uaccess code isn't smart > enough to figure out that the access_ok check isn't needed. > > This saves about three cycles on a cache-hot fast syscall. Another request: could you please stick the benchmarking code of the variou

Re: [PATCH 07/44] kdbus: Fix comment on translation of caps between namespaces

2015-10-09 Thread Sergei Zviagintsev
Hi, On Fri, Oct 09, 2015 at 11:43:22AM +0800, Hillf Danton wrote: > > @@ -730,15 +730,21 @@ static void kdbus_meta_export_caps(struct > > kdbus_meta_caps *out, > > > > /* > > * This translates the effective capabilities of 'cred' into the given > > -* user-namespace. If the given us

Re: [PATCH 04/10] ARM: dts: enable clock support for BCM5301X

2015-10-09 Thread Stephen Boyd
On 10/02, Jon Mason wrote: > Replace current device tree dummy clocks with real clock support for > Broadcom Northstar SoCs. > > Signed-off-by: Jon Mason > --- I'd rather not take any dts changes through clk tree. > arch/arm/boot/dts/bcm5301x.dtsi | 67 > --

Re: [PATCH 02/10] clk: nsp: add clock support for Broadcom Northstar Plus SoC

2015-10-09 Thread Stephen Boyd
On 10/02, Jon Mason wrote: > diff --git a/drivers/clk/bcm/clk-nsp.c b/drivers/clk/bcm/clk-nsp.c > new file mode 100644 > index 000..708961a > --- /dev/null > +++ b/drivers/clk/bcm/clk-nsp.c > @@ -0,0 +1,139 @@ > +/* > + * Copyright (C) 2015 Broadcom Corporation > + * > + * This program is free

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Hillf Danton
> >> @@ -109,8 +109,8 @@ static void ext4_finish_bio(struct bio *bio) > >>if (bio->bi_error) > >>buffer_io_error(bh); > >>} while ((bh = bh->b_this_page) != head); > >> - bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); > >>

Re: [PATCH] ALSA: seq_oss: fix waitqueue_active without memory barrier in snd-seq-oss

2015-10-09 Thread Takashi Iwai
On Fri, 09 Oct 2015 02:35:54 +0200, Kosuke Tatsukawa wrote: > > snd_seq_oss_readq_put_event() seems to be missing a memory barrier which > might cause the waker to not notice the waiter and miss sending a > wake_up as in the following figure. > > snd_seq_oss_readq_put_event

[PATCH] ARM: imx: add cpufreq device for imx6ul

2015-10-09 Thread Bai Ping
Add cpufreq device for i.MX6UL. Using the common cpufreq of i.MX6 SOC. Signed-off-by: Bai Ping --- arch/arm/mach-imx/mach-imx6ul.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index be832b9..acaf705 100644 --- a/arch

[RFC V3] regmap: change bool to 1 bit variable in struct regmap

2015-10-09 Thread yalin wang
This patch change some bool variables in struct regmap { } to be u8 v : 1 type, so that we can shrink the sizeof of struct regmap. Signed-off-by: yalin wang --- drivers/base/regmap/internal.h | 39 +++ 1 file changed, 19 insertions(+), 20 deletions(-) diff -

Re: [PATCH v2 3/5] ARM: mvebu: set SW polling as SDHCI card detection on A388-GP

2015-10-09 Thread Thomas Petazzoni
Dear Marcin Wojtas, On Fri, 9 Oct 2015 03:03:53 +0200, Marcin Wojtas wrote: > The newest revisions of A388-GP (v1.5 and higher) support only > DAT3-based card detection. Revisions < v1.5 based on GPIO detection > via I2C expander, but this solution is supposed to be deprecated on > new boards. In

Re: [RFC/PATCH 03/38] perf tools: Move auxtrace_mmap field to struct perf_evlist

2015-10-09 Thread Namhyung Kim
Hi Adrian, On Thu, Oct 08, 2015 at 07:07:43PM +0300, Adrian Hunter wrote: > On 7/10/2015 12:06 p.m., Namhyung Kim wrote: > >Hi Adrian, > > > >On Tue, Oct 6, 2015 at 6:26 PM, Adrian Hunter > >wrote: > >>On 06/10/15 12:03, Namhyung Kim wrote: > >>>Hi Adrian, > >>> > >>>On Mon, Oct 5, 2015 at 8:29

Re: [PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread Tang Chen
Hi, I don't mean to offend, but I really think it is not necessary to do this. hot-added memory will be added to ZONE_NORMAL by default. You can modify it when you online memory. I think it is enough for users. And a sysctl interface is also unnecessary. I think one default behaviour is enough

Re: [PATCH v2] mmc: core: Fix init_card in 52Mhz

2015-10-09 Thread Adrian Hunter
On 08/10/15 16:35, Ulf Hansson wrote: > On 8 October 2015 at 15:03, Adrian Hunter wrote: >> On 08/10/15 13:59, Ulf Hansson wrote: >>> On 8 October 2015 at 09:09, Chaotian Jing >>> wrote: Suppose that we got a data crc error, and it triggers the mmc_reset. mmc_reset will call mmc_send_s

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Nikolay Borisov
On 10/09/2015 10:37 AM, Hillf Danton wrote: @@ -109,8 +109,8 @@ static void ext4_finish_bio(struct bio *bio) if (bio->bi_error) buffer_io_error(bh); } while ((bh = bh->b_this_page) != head); - bit_spin_unlock

Re: Hard lockup in ext4_finish_bio

2015-10-09 Thread Nikolay Borisov
On 10/08/2015 09:56 PM, John Stoffel wrote: >> "Nikolay" == Nikolay Borisov writes: > > Nikolay> On 10/08/2015 05:34 PM, John Stoffel wrote: >>> Great bug report, but you're missing the info on which kernel >>> you're > > Nikolay> This is on 3.12.47 (self compiled). It was evident on my >

Re: [PATCH 1/5] leds: core: Drivers shouldn't enforce SYNC/ASYNC brightness setting

2015-10-09 Thread Jacek Anaszewski
On 10/09/2015 09:02 AM, Pavel Machek wrote: On Fri 2015-10-09 08:28:44, Jacek Anaszewski wrote: On 10/08/2015 05:50 PM, Pavel Machek wrote: On Mon 2015-09-21 16:29:26, Jacek Anaszewski wrote: This patch removes SET_BRIGHTNESS_ASYNC and SET_BRIGHTNESS flags. s/SET_BRIGHTNESS/SET_BRIGHTNESS_SY

Re: [PATCH 2/3] slab_common: clear pointers to per memcg caches on destroy

2015-10-09 Thread Vladimir Davydov
On Thu, Oct 08, 2015 at 02:17:35PM -0700, Andrew Morton wrote: > On Thu, 8 Oct 2015 19:02:40 +0300 Vladimir Davydov > wrote: > > > Currently, we do not clear pointers to per memcg caches in the > > memcg_params.memcg_caches array when a global cache is destroyed with > > kmem_cache_destroy. It i

Re: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Marc Zyngier
On 09/10/15 06:11, Bharat Kumar Gogada wrote: +struct nwl_msi { /* struct nwl_msi - MSI information >> */ + struct msi_controller chip; /* chip: MSI controller */ >>> We're moving away from msi_controller altogether, as the kernel now has all the necessary

Re: [PATCH] string: Improve the generic strlcpy() implementation

2015-10-09 Thread Rasmus Villemoes
On Thu, Oct 08 2015, Ingo Molnar wrote: > * Linus Torvalds wrote: > >> So I really refuse to worry about the snprintf() family of functions wrt >> this >> race. I don't think it was hugely important for strlcpy() either - more of a >> "quality of implementation" issue rather than anything fun

spoluprace

2015-10-09 Thread 4email
Muzete me kontaktovat na e-mailovou adresu nize pro vysvetlení prospesny spoluprace. e-mail: chn.j...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majord

RE: [PATCH] [v2] ACPI / PM: Fix incorrect wakeup irq setting before suspend-to-idle

2015-10-09 Thread Chen, Yu C
Hi, Rafael Sorry for my late response, just came back from home:) > -Original Message- > From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki > Sent: Thursday, October 01, 2015 9:11 AM > To: Chen, Yu C > Cc: l...@kernel.org; Zhang,

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 09:14:33 Anand Moon wrote: > As long as we use correct exynos5422-odroidxu4.dtb is used in the > boot.scr/boot.ini ethernet come up, > build and tested using CONFIG_USB_RTL8152=m using multi_v7_defconfig. > > Not sure what is the policy for NFS booting. > > Do you want C

[PATCH][v3] ACPI / PM: Fix incorrect wakeup irq setting before suspend-to-idle

2015-10-09 Thread Chen Yu
For ACPI compatible system, SCI(ACPI System Control Interrupt) is used to wake system up from suspend-to-idle. Once CPU is woken up by SCI, interrupt handler will firstly checks if current interrupt is legal to wake up the whole system, thus irq_pm_check_wakeup is invoked to validate the irq number

Re: [PATCHv2] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Manjeet Pawar
>> This looks correct now. A few more points though: >> >> * My first thought would have been to do this by first defining the >> two symbols before the #include, and then adding an #ifdef in >> the generic file. Both approaches work though, any other opinions >> on this? >That's what I

Re: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 09:10:17 Marc Zyngier wrote: > > Please let me know whether we require a separate msi file as > > suggested in your previous comments to separate MSI controller and > > PCIE controller in two files, if we don't have separate node. If we > > do not need a separate node do w

Re: [Patch v6 4/7] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-10-09 Thread Jiang Liu
On 2015/10/8 21:20, Bjorn Helgaas wrote: > On Thu, Oct 08, 2015 at 01:32:04PM +0800, Jiang Liu wrote: >> On 2015/10/7 1:47, Bjorn Helgaas wrote: +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, + struct acpi_pci_root_ops *ops, +

Re: [PATCH v2 01/12] leds: core: Use EXPORT_SYMBOL_GPL consistently

2015-10-09 Thread Jacek Anaszewski
On 10/08/2015 05:51 PM, Pavel Machek wrote: On Mon 2015-09-28 17:13:39, Jacek Anaszewski wrote: This patch isn't going to be applied since it can cause legal implications for existing users. Are there any? Best do this ASAP :-). Current non-GPL users of led_set_brightness would be affected

[PATCH v4 5/6] arm64: dts: berlin4ct: add the pinctrl node

2015-10-09 Thread Jisheng Zhang
Add the avio, soc, sm pinctrl nodes for Marvell berlin4ct SoC. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi

[PATCH v4 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-09 Thread Jisheng Zhang
Add the pin-controller driver for Marvell Berlin BG4CT SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig| 5 + drivers/pinctrl/berlin/Makefile | 1 + drivers/pinctrl/berlin

[PATCH v4 4/6] pinctrl: dt-binding: document berlin4ct SoC pinctrl

2015-10-09 Thread Jisheng Zhang
Add berlin4ct to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b/Docu

[PATCH v4 1/6] pinctrl: berlin: introduce berlin_pinctrl_probe_regmap()

2015-10-09 Thread Jisheng Zhang
This is to prepare for the next berlin4ct support, where we won't use simple-mfd any more. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/berlin.c | 26 +- drivers/pinctrl/berlin/berlin.h | 4 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/

[PATCH v4 0/6] arm64: berlin: add pinctrl support

2015-10-09 Thread Jisheng Zhang
This series adds support for Marvell berlin4ct pin-controller, allowing to configure the pin muxing from the device tree. Since v3: - fix stupid build error: I missed local changes to berlin-bg4ct.c Since v2: - introduce new berlin_pinctrl_probe_regmap() to avoid duplicated code - renaming suc

[PATCH v4 6/6] arm64: dts: berlin4ct: add default pinmux for uart0

2015-10-09 Thread Jisheng Zhang
Add urt0 txd and rxd muxing setup in the dtsi because uart0 always uses them to work, no other possibilities. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/

[PATCH v4 3/6] arm64: berlin: add the pinctrl dependency for Marvell Berlin SoCs

2015-10-09 Thread Jisheng Zhang
This is to add the pinctrl dependency for Marvell Berlin SoCs. Signed-off-by: Jisheng Zhang --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index c6e2c75..3d17ee2 100644 --- a/arch/arm64/Kconfig.plat

PROBLEM: Concurrency issue in sem_lock

2015-10-09 Thread Felix Hübner
Hi all, I have just reported a concurrency issue in the implementation of sem_lock, see https://bugzilla.kernel.org/show_bug.cgi?id=105651 Please set me to CC for answers/comments. [1.] One line summary of the problem: Concurrency issue in sem_lock [2.] Full description of the problem/report:

[RESEND PATCH] timerfd: Allow TFD_TIMER_CANCEL_ON_SET with relative timeouts

2015-10-09 Thread Jesper Nilsson
Allow TFD_TIMER_CANCEL_ON_SET on timerfd_settime() with relative as well as absolute timeout. Signed-off-by: Jesper Nilsson --- Resending after some discussion with Thomas Gleixner at ELCE, and Cc:ing John Stultz and Michael Kerrisk who may have comments. Longer background: One of the uses for

[GIT PULL] sound fixes for 4.3-rc5

2015-10-09 Thread Takashi Iwai
Linus, please pull sound fixes for v4.3-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.3-rc5 The topmost commit is 601d62959d08a450d4666c728ddd2f47c5ba1cfe sound fixes for 4.3-rc5 We see

Re: [PATCH v2] mmc: core: Fix init_card in 52Mhz

2015-10-09 Thread Ulf Hansson
[...] >>> Then you need to remove the hw_reset test from mmc_test. Refer: >>> >>> http://marc.info/?l=linux-mmc&m=144360165906544&w=2 >>> >> >> I realize that the test becomes a bit different, but I don't think it's >> useless. >> >> If we add a check for MMC_CAP_HW_RESET and verify that

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-09 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 02:44:39PM -0700, Paul E. McKenney wrote: > On Thu, Oct 08, 2015 at 01:16:38PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 08, 2015 at 02:50:36PM +1100, Michael Ellerman wrote: > > > On Wed, 2015-10-07 at 08:25 -0700, Paul E. McKenney wrote: > > > > > > Currently, we do ne

RE: [PATCH][v3] ACPI / PM: Fix incorrect wakeup irq setting before suspend-to-idle

2015-10-09 Thread Zheng, Lv
Hi, Yu > From: Chen, Yu C > Sent: Friday, October 09, 2015 4:20 PM > > For ACPI compatible system, SCI(ACPI System Control > Interrupt) is used to wake system up from suspend-to-idle. > Once CPU is woken up by SCI, interrupt handler will > firstly checks if current interrupt is legal to wake up >

PROBLEM: Concurrency issue in sem_lock

2015-10-09 Thread Felix Hübner
Hi all, I have just reported a concurrency issue in the implementation of sem_lock, see https://bugzilla.kernel.org/show_bug.cgi?id=105651 Please set me to CC for answers/comments. [1.] One line summary of the problem: Concurrency issue in sem_lock [2.] Full description of the problem/report:

Re: [PATCH 4/4] arm64: dts: apq8016-sbc: enable spi buses on LS and HS

2015-10-09 Thread Srinivas Kandagatla
On 08/10/15 19:16, Stephen Boyd wrote: On 10/08/2015 04:19 AM, Srinivas Kandagatla wrote: This patch enables spi buses on low speed and high speed expansion connectors on DB410C Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 10 ++ 1 file change

Re: [PATCHv2] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Arnd Bergmann
On Tuesday 06 October 2015 12:51:24 Arnd Bergmann wrote: > > I think it makes sense to stick with the traditional definition > of MINSIGSTKSZ == "the minimum amount that you will always need, > add whatever you require yourself" and SIGSTKSZ == "Should be > enough for a couple of function calls".

Re: [PATCH 2/4] arm64: dts: qcom: Add msm8916 I2C nodes.

2015-10-09 Thread Srinivas Kandagatla
On 08/10/15 19:17, Stephen Boyd wrote: On 10/08/2015 04:19 AM, Srinivas Kandagatla wrote: diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 85f7bee..d49ac37 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916

[PATCH v3 3/5] ARM: sun5i: dt: Move uart3 pinctrl node to common DTSI

2015-10-09 Thread Maxime Ripard
The uart3 pins are shared between the A10s and A13, move the pinctrl node to the common DTSI to avoid duplication. Signed-off-by: Maxime Ripard Reviewed-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s.dtsi | 7 --- arch/arm/boot/dts/sun5i.dtsi | 7 +++ 2 files changed, 7 inserti

[PATCH v3 1/5] ARM: sunxi: Add R8 support

2015-10-09 Thread Maxime Ripard
The R8 is a new Allwinner SoC based on the A13. While both are very similar, there's still a few differences. Introduce a new compatible to deal with them. In order to have a consistent naming, instead of mentionning the allwinner A series as the machine name, switch to sun4i/sun5i like what is do

[PATCH v3 0/5] ARM: sunxi: Introduce CHIP support

2015-10-09 Thread Maxime Ripard
Hi, Here is a serie introducing the support for the Allwinner R8 and the Nextthing's CHIP. Support is almost complete for the CHIP itself, the only missing part for now is the WiFi chip that needs to be powered through two combined regulators (AXP209's LDO3 and LDO4). The audio codec is also miss

[PATCH v3 4/5] ARM: sun5i: dt: Add UART3 CTS and RTS pins

2015-10-09 Thread Maxime Ripard
Add a separate pinctrl node for the UART3 CTS and RTS pins shared between the A10s and A13. Signed-off-by: Maxime Ripard Reviewed-by: Hans de Goede --- arch/arm/boot/dts/sun5i.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.

[PATCH v3 5/5] ARM: sun5i: Add C.H.I.P DTS

2015-10-09 Thread Maxime Ripard
The C.H.I.P. is a small SBC with an Allwinner R8, 8GB of NAND, 512MB of RAM, USB host and OTG, a wifi / bluetooth combo chip, an audio/video jack and two connectors to plug additional boards on top of it. Signed-off-by: Maxime Ripard Reviewed-by: Hans de Goede --- arch/arm/boot/dts/Makefile

Re: [PATCH tip/core/rcu 02/18] rcu: Move rcu_report_exp_rnp() to allow consolidation

2015-10-09 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 05:10:21PM -0700, Paul E. McKenney wrote: > > Note that there are rnp->lock acquires without the extra barrier though, > > so you seem somewhat inconsistent with your own rule. > > > > See for example: > > > > rcu_dump_cpu_stacks() > > print_other_cpu_stall() > >

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Paolo Bonzini
On 09/10/2015 02:35, Kosuke Tatsukawa wrote: > async_pf_executekvm_vcpu_block > > spin_lock(&vcpu->async_pf.lock); > if (waitqueue_active(&vcpu->wq)) > /* The CPU might reorder the test for >t

[PATCH 1/2] i2c: designware: add High-speed mode support

2015-10-09 Thread wangxfdu
From: Xiang Wang 1. Add High-speed mode support in designware core 2. Add function i2c_dw_acpi_setup_speed to determine the bus speed from ACPI table. Signed-off-by: Xiang Wang --- drivers/i2c/busses/i2c-designware-core.c | 88 drivers/i2c/busses/i2c-designware

[PATCH 2/2] i2c: designware: enable High-speed mode for pcidrv

2015-10-09 Thread wangxfdu
From: Xiang Wang 1. Support setting hs_hcnt and hs_lcnt 2. Get bus speed mode from ACPI companion of the i2c controller. Signed-off-by: Xiang Wang --- drivers/i2c/busses/i2c-designware-pcidrv.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.

Re: [PATCH 2/4] i2c: rcar: enable RuntimePM before registering to the core

2015-10-09 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, Oct 9, 2015 at 8:54 AM, Wolfram Sang wrote: > The core may register clients attached to this master which may use > funtionality from the master. So, RuntimePM must be enabled before, otherwise > this will fail. While here, move drvdata, too. Thanks for your patch! > Reporte

Re: [PATCH] ath6kl: remove redundant null pointer check on send_pkt

2015-10-09 Thread Kalle Valo
Colin King writes: > From: Colin Ian King > > The check for send_pkt being NULL is redundant before the call > to htc_reclaim_txctrl_buf, therefore it should be removed. This was > detected by static analysis by cppcheck. > > Signed-off-by: Colin Ian King Applied, thanks. -- Kalle Valo -- To

[PATCH v3 2/5] ARM: sun5i: Add R8 DTSI

2015-10-09 Thread Maxime Ripard
The R8 is very close to the A13, but it still has a few differences, notably a composite output, which the A13 lacks. Add a DTSI based on the A13's to hold those differences. Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Reviewed-by: Hans de Goede --- arch/arm/boot/dts/sun5i-r8.dtsi

Re: [PATCH 4/4] arm64: dts: enable idle states for Hi6220

2015-10-09 Thread Sudeep Holla
On 09/10/15 05:36, Leo Yan wrote: Add cpu and cluster level's low power state for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/a

Re: [PATCH v2] ath6kl: drop unlikely behind WARN_ON()

2015-10-09 Thread Kalle Valo
Geliang Tang writes: > WARN_ON() already contain an unlikely compiler flag. Drop it. > > Signed-off-by: Geliang Tang Applied, thanks. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo i

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Nikolay Borisov
On 10/09/2015 11:41 AM, Gilad Ben-Yossef wrote: > On Oct 8, 2015 18:31, "Nikolay Borisov" wrote: >> >> Currently when bios are being finished in ext4_finish_bio this is done by >> first disabling interrupts and then acquiring a bit_spin_lock. > ... >> >> To fix the situation this patch changes t

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2015 at 10:45:32AM +0200, Paolo Bonzini wrote: > So you need another smp_mb() after prepare_to_wait(). I'm not sure > if it's needed also for your original tty report, but I think it is > for https://lkml.org/lkml/2015/10/8/989 ("mei: fix waitqueue_active > without memory barrier i

RE: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Bharat Kumar Gogada
> On 09/10/15 06:11, Bharat Kumar Gogada wrote: > +struct nwl_msi { /* struct nwl_msi - MSI information > >> */ > + struct msi_controller chip; /* chip: MSI controller */ > >>> > We're moving away from msi_controller altogether, as the kernel now > has all

Re: [PATCH v2] HID: multitouch: Fetch feature reports on demand for Win8 devices

2015-10-09 Thread Mika Westerberg
On Thu, Oct 08, 2015 at 06:10:23PM -0700, Andrew Duggan wrote: > No, this touchpad doesn't have HID_QUIRK_NO_INIT_REPORTS set and > usbhid/hid-core.c is calling usbhid_init_reports() which is retrieving > feature 8. But, I did some additional testing and I wasn't able to reproduce > this issue on o

[GIT PULL] MMC fixes for v.4.3 rc5

2015-10-09 Thread Ulf Hansson
Hi Linus, Here are some mmc fixes intended for v4.3 rc5 and it's based on v4.3-rc4. Details are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46: Linux 4.3-rc4 (2015-10-04 16:57:17 +010

[PATCH v2 0/4] arm64: dts: qcom: add support to LS and HS connectors

2015-10-09 Thread Srinivas Kandagatla
Hi Andy, This patchset adds support for i2c and spi on High-Speed and Low speed connectors on DB410c. One of the patch fixes the sleep state of existing i2c node. thanks, srini Changes since v1: - removed useless comment spotted by Stephen Boyd. - Use absolute names instead of l

Re: [PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-09 Thread Dan Carpenter
On Thu, Oct 08, 2015 at 03:55:12PM +0800, Chen Feng wrote: > Signed-off-by: Chen Feng > Signed-off-by: Yu Dongbin > --- > drivers/staging/android/ion/Kconfig| 7 + > drivers/staging/android/ion/Makefile | 1 + > drivers/staging/android/ion/hisilicon/Kconfig

[PATCH v2 1/4] arm64: dts: fix i2c pinconf sleep state function

2015-10-09 Thread Srinivas Kandagatla
This patch fixes the i2c pinctrl sleep state by changing the pinconf function to be in gpio mode rather than i2c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916

[PATCH v2 2/4] arm64: dts: qcom: Add msm8916 I2C nodes.

2015-10-09 Thread Srinivas Kandagatla
This patch adds missing support for i2c0 and i2c6, this support is required to connect the i2c slaves on LS expansion on DB410c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 48 ++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 30

[PATCH v2 3/4] arm64: dts: apq8016-sbc: enable i2c buses on LS and HS

2015-10-09 Thread Srinivas Kandagatla
This patch enables i2c buses on low speed and high speed expansion connectors on DB410C. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/b

[PATCH v2 4/4] arm64: dts: apq8016-sbc: enable spi buses on LS and HS

2015-10-09 Thread Srinivas Kandagatla
This patch enables spi buses on low speed and high speed expansion connectors on DB410C Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dt

Re: [PATCH 4/4] arm64: dts: enable idle states for Hi6220

2015-10-09 Thread Leo Yan
Hi Sudeep, On Fri, Oct 09, 2015 at 09:48:17AM +0100, Sudeep Holla wrote: > > > On 09/10/15 05:36, Leo Yan wrote: > >Add cpu and cluster level's low power state for Hi6220. > > > >Signed-off-by: Leo Yan > >--- > > arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 > > +

Re: [PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-09 Thread Dan Carpenter
On Fri, Oct 09, 2015 at 11:53:32AM +0300, Dan Carpenter wrote: > > +out: > > Labels named "out" are bug prone because handling everything is harder > than using named labels and unwinding one step at a time. The bug here > is that we don't call ion_device_destroy(). > > > + for (i = 0; i < num

Re: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Marc Zyngier
On 09/10/15 09:51, Bharat Kumar Gogada wrote: >> On 09/10/15 06:11, Bharat Kumar Gogada wrote: >> +struct nwl_msi { /* struct nwl_msi - MSI information */ >> + struct msi_controller chip; /* chip: MSI controller */ > >> We're moving away from msi_controlle

Re: [PATCH v4 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-09 Thread Antoine Tenart
Hi Jisheng, On Fri, Oct 09, 2015 at 04:17:05PM +0800, Jisheng Zhang wrote: > diff --git a/drivers/pinctrl/berlin/Kconfig b/drivers/pinctrl/berlin/Kconfig > index b18322b..c13f6d2 100644 > --- a/drivers/pinctrl/berlin/Kconfig > +++ b/drivers/pinctrl/berlin/Kconfig > @@ -17,4 +17,9 @@ config PINCTRL

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Kosuke Tatsukawa
Paolo Bonzini wrote: > On 09/10/2015 02:35, Kosuke Tatsukawa wrote: >> async_pf_executekvm_vcpu_block >> >> spin_lock(&vcpu->async_pf.lock); >> if (waitqueue_active(&vcpu->wq)) >> /* The CPU might r

Re: [PATCH v4 3/6] arm64: berlin: add the pinctrl dependency for Marvell Berlin SoCs

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:06PM +0800, Jisheng Zhang wrote: > This is to add the pinctrl dependency for Marvell Berlin SoCs. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/Kconfig.platforms | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/K

Re: [PATCH v4 1/6] pinctrl: berlin: introduce berlin_pinctrl_probe_regmap()

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:04PM +0800, Jisheng Zhang wrote: > This is to prepare for the next berlin4ct support, where we won't use > simple-mfd any more. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > drivers/pinctrl/berlin/berlin.c | 26 +- > dr

Re: [v3 PATCH] arm64: replace read_lock to rcu lock in call_break_hook

2015-10-09 Thread Will Deacon
On Thu, Oct 08, 2015 at 04:55:38PM -0700, Paul E. McKenney wrote: > On Mon, Oct 05, 2015 at 02:32:51PM -0700, Yang Shi wrote: > > BUG: sleeping function called from invalid context at > > kernel/locking/rtmutex.c:917 > > in_atomic(): 0, irqs_disabled(): 128, pid: 342, name: perf > > 1 lock held by

Re: [PATCH v4 4/6] pinctrl: dt-binding: document berlin4ct SoC pinctrl

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:07PM +0800, Jisheng Zhang wrote: > Add berlin4ct to existing berlin pinctrl device tree binding. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 5 - > 1 file changed, 4 insertio

Re: Re: Re: Re: Re: Re: [PATCH v3] arm: Adding support for atomic half word exchange

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 02:41:54AM +, Sarbojit Ganguly wrote: > Thank you Will, I will make the required corrections and mail it to > patchesAtarm.linux.co.uk and mark [1] as "superseded". Thanks. Also, you don't need to continually prepend "Re: " to your mail subject every time you reply and/

Re: [PATCH v4 5/6] arm64: dts: berlin4ct: add the pinctrl node

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:08PM +0800, Jisheng Zhang wrote: > Add the avio, soc, sm pinctrl nodes for Marvell berlin4ct SoC. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 15 +++ > 1 file changed, 15 insertions(+)

Re: [RFC]: Possible race condition in kernel futex code

2015-10-09 Thread Thomas Gleixner
On Mon, 5 Oct 2015, Jaccon Bastiaansen wrote: > We did some tests with different compilers, kernel versions and kernel > configs, with the following results: > > Linux 3.12.48, x86_64_defconfig, GCC 4.6.1 : > copy_user_generic_unrolled being used, so race condition possible > Linux 3.12.48, x86_64

Re: [PATCH v4 6/6] arm64: dts: berlin4ct: add default pinmux for uart0

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:09PM +0800, Jisheng Zhang wrote: > Add urt0 txd and rxd muxing setup in the dtsi because uart0 always uses > them to work, no other possibilities. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 7 +++

Re: crazy idea: big percpu lock (Re: task isolation)

2015-10-09 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 02:25:23PM -0700, Andy Lutomirski wrote: > I want to propose a new primitive that might go a long way toward > solving this issue. The new primitive would be called the "big percpu > lock". Never, ever, combine big and lock :-) You want small granular locks, big locks ar

Re: [Intel-wired-lan] [Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

2015-10-09 Thread Kamezawa Hiroyuki
On 2015/10/09 14:52, Jiang Liu wrote: On 2015/10/9 4:20, Andrew Morton wrote: On Wed, 19 Aug 2015 17:18:15 -0700 (PDT) David Rientjes wrote: On Wed, 19 Aug 2015, Patil, Kiran wrote: Acked-by: Kiran Patil Where's the call to preempt_disable() to prevent kernels with preemption from makin

[RFC 0/3] eliminate potential race in string() (was: [PATCH] string: Improve the generic strlcpy() implementation)

2015-10-09 Thread Rasmus Villemoes
On Fri, Oct 09 2015, Rasmus Villemoes wrote: > It's hard not to agree with the overall "let's make it more robust if it > can be done sanely+cheaply+cleanly". I was a bit skeptical about whether > those three requirements could be met, since we'd have to do > byte-by-byte traversal of the string,

  1   2   3   4   5   6   7   8   >