Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-23 Thread Jiri Pirko
Fri, Jan 22, 2016 at 08:11:22PM CET, ja...@redhat.com wrote: >The network core tries to keep track of dropped packets, but some packets >you wouldn't really call dropped, so much as intentionally ignored, under >certain circumstances. One such case is that of bonding and team device >slaves that ar

[RFC][PATCH v3 1/4] printk: move can_use_console out of console_trylock_for_printk

2016-01-23 Thread Sergey Senozhatsky
vprintk_emit() disables preemption around console_trylock_for_printk() and console_unlock() calls for a strong reason -- can_use_console() check. The thing is that vprintl_emit() can be called on a CPU that is not fully brought up yet (!cpu_online()), which potentially can cause problems if console

[RFC][PATCH v3 0/4] let printk()/console_trylock() callers to cond_resched()

2016-01-23 Thread Sergey Senozhatsky
[was: cond_resched() some of console_trylock callers] Hello, console_unlock() allows to cond_resched() if its caller has set `console_may_schedule' to 1 (this functionality present since commit 'printk: do cond_resched() between lines while outputting to consoles'). The rules are: -- console_loc

[RFC][PATCH v3 2/4] printk: do not console_cont_flush() on every jump to again

2016-01-23 Thread Sergey Senozhatsky
Every jump to `again' label will call console_cont_flush(), which is not really something big -- it just adds one extra raw_spin_lock_irqsave/raw_spin_unlock_irqrestore. However, to keep the previous behaviour we can call console_cont_flush() only when `retry' is false -- which happens once, all ju

[RFC][PATCH v3 4/4] printk: set may_schedule for some of console_trylock callers

2016-01-23 Thread Sergey Senozhatsky
console_unlock() allows to cond_resched() if its caller has set `console_may_schedule' to 1, since 'commit 8d91f8b15361 ("printk: do cond_resched() between lines while outputting to consoles")'. The rules are: -- console_lock() always sets `console_may_schedule' to 1 -- console_trylock() always se

Re: [PATCH v2 3/3] mtd: nand: sunxi: add randomizer support

2016-01-23 Thread Boris Brezillon
Hi Brian, On Fri, 22 Jan 2016 18:57:13 -0800 Brian Norris wrote: > All three look good, so pushed to l2-mtd.git/next. One comment below: Thanks. > > On Wed, Dec 02, 2015 at 12:01:07PM +0100, Boris Brezillon wrote: > > ... > > > +static u16 sunxi_nfc_randomizer_state(struct mtd_info *mtd, in

[RFC][PATCH v3 3/4] printk: remove console_trylock_for_printk

2016-01-23 Thread Sergey Senozhatsky
Remove console_trylock_for_printk() function, it can be replaced with console_trylock() in vprintk_emit(). Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.

[PATCH v2 2/2] f2fs: enhance foreground GC

2016-01-23 Thread Chao Yu
If we configure section consist of multiple segments, foreground GC will do the garbage collection with following approach: for each segment in victim section blk_start_plug for each valid block in segment write out by OPU method

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-23 Thread Jiri Pirko
Fri, Jan 22, 2016 at 09:59:12PM CET, jay.vosbu...@canonical.com wrote: >Jarod Wilson wrote: > >>The network core tries to keep track of dropped packets, but some packets >>you wouldn't really call dropped, so much as intentionally ignored, under >>certain circumstances. One such case is that of bo

Re: [PATCH v6 5/5] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-01-23 Thread Balbir Singh
On Fri, 22 Jan 2016 12:49:05 +0530 Shilpasri G Bhat wrote: > Create sysfs attributes to export throttle information in > /sys/devices/system/cpu/cpufreq/chipN. The newly added sysfs files are as > follows: > > 1)/sys/devices/system/cpu/cpufreq/chip0/throttle_frequencies > This gives the thrott

[PATCH] ARM: tegra: remove redundant ARM_L1_CACHE_SHIFT_6 select

2016-01-23 Thread Masahiro Yamada
These two are both ARMv7 SoCs. They need not explicitly select ARM_L1_CACHE_SHIFT_6 because it is enabled along with CPU_V7. Refer to commit a092f2b15399 ("ARM: 7291/1: cache: assume 64-byte L1 cachelines for ARMv7 CPUs"). Signed-off-by: Masahiro Yamada --- drivers/soc/tegra/Kconfig | 2 -- 1

Re: [PATCH v6 2/5] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-01-23 Thread Balbir Singh
On Fri, 22 Jan 2016 12:49:02 +0530 Shilpasri G Bhat wrote: > cpu_to_chip_id() does a DT walk through to find out the chip id by > taking a contended device tree lock. This adds an unnecessary overhead > in a hot path. So instead of calling cpu_to_chip_id() everytime cache > the chip ids for all c

[PATCH] arm64: defconfig: enable UniPhier I2C (FIFO-builtin) driver

2016-01-23 Thread Masahiro Yamada
This driver is used by the UniPhier PH1-LD10 SoC (arch/arm64/boot/dts/socionext/uniphier-ph1-ld10.dtsi). Signed-off-by: Masahiro Yamada --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 18ca9fb.

[PATCH] Revert "Staging: panel: usleep_range is preferred over udelay"

2016-01-23 Thread Sudip Mukherjee
This reverts commit ebd43516d3879f882a403836bba8bc5791f26a28. We should not be sleeping inside spin_lock. Fixes: ebd43516d387 ("Staging: panel: usleep_range is preferred over udelay") Cc: Sirnam Swetha Signed-off-by: Sudip Mukherjee --- drivers/staging/panel/panel.c | 34 +++---

Re: RCU lockup? (was: Re: [PATCH v2 tip/core/rcu 10/14] rcu: Don't redundantly disable irqs in rcu_irq_{enter,exit}())

2016-01-23 Thread Geert Uytterhoeven
Hi Paul, On Fri, Jan 22, 2016 at 9:44 PM, Paul E. McKenney wrote: > On Fri, Jan 22, 2016 at 09:55:44AM +0100, Geert Uytterhoeven wrote: >> On Thu, Jan 21, 2016 at 5:06 PM, Paul E. McKenney >> wrote: >> > On Thu, Jan 21, 2016 at 02:22:56PM +0100, Geert Uytterhoeven wrote: >> >> On Thu, Dec 10, 20

[PATCH v3 03/12] acpi, numa: remove duplicate NULL check

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo The argument "header" for acpi_table_print_srat_entry() is always checked before the function is called, it's duplicate to check it again, remove it. Signed-off-by: Hanjun Guo --- drivers/acpi/numa.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/numa.c b/d

[PATCH v3 10/12] acpi, numa: move bad_srat() and srat_disabled() to common place

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo bad_srat() and srat_disabled() are shared by arm64 and x86, move it to common place to reduce duplication. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/acpi_numa.c | 12 arch/x86/include/asm/acpi.h | 1 - arch/x86/mm/numa.c| 2 +- arch/x86/mm/sr

[PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Introduce a new file to hold ACPI based NUMA information parsing from SRAT and SLIT. SRAT includes the CPU ACPI ID to Proximity Domain mappings and memory ranges to Proximity Domain mapping. SLIT has the information of inter node distances(relative number for access latency). S

[PATCH v3 11/12] acpi, numa: remove unneeded acpi_numa=1

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo acpi_numa is default to 0, it's set to -1 when disable acpi numa or when a bad SRAT is parsed, and it's only consumed in srat_disabled() (compare it with 0) to continue parse the SRAT or not, so we don't need to set acpi_numa to 1 when we get a valid SRAT entry. Signed-off-by: H

[PATCH v3 07/12] acpi, numa: move acpi_numa_slit_init() to common place

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo acpi_numa_slit_init() is used by both x86 and arm64, and the code is the same, move it to common place to simplify the code, and mark it as __weak because the different implimentation for ia64. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/acpi_numa.c | 31 --

[PATCH v3 08/12] arm64, numa: rework numa_add_memblk()

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Rework numa_add_memblk() to update the parameter "u64 size" to "u64 end", this will make it consistent with x86 and can simplify the code later. Updates for arch/arm64/mm/numa.c should squash to core NUMA patches from Ganapat. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/a

[PATCH v3 06/12] acpi, numa: Enable ACPI based NUMA on ARM64

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Add function needed for cpu to node mapping, and enable ACPI based NUMA for ARM64 in Kconfig Signed-off-by: Hanjun Guo --- drivers/acpi/Kconfig | 2 +- drivers/acpi/numa.c | 35 +++ include/linux/acpi.h | 17 - 3 files changed,

[PATCH v3 12/12] acpi, numa: reuse acpi_numa_memory_affinity_init()

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo After the cleanup for acpi_numa_memory_affinity_init(), it can be used for architetures both x86 and arm64, since CONFIG_MEMORY_HOTPLUG is not enabled for arm64, so no worry about that. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/acpi_numa.c | 42 --

[PATCH v3 02/12] acpi, numa: Replace ACPI_DEBUG_PRINT() with pr_debug()

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo ACPI_DEBUG_PRINT is a bit fragile in acpi/numa.c, the first thing is that component ACPI_NUMA(0x8000) is not described in the Documentation/acpi/debug.txt, and even not defined in the struct acpi_dlayer acpi_debug_layers which we can not dynamically enable/disable it with /sy

[PATCH v3 09/12] x86, acpi, numa: cleanup acpi_numa_processor_affinity_init()

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Cleanup acpi_numa_processor_affinity_init() and prepare move it to common palce then it can be reused by other arch, this should no functional change. Signed-off-by: Hanjun Guo --- arch/x86/mm/srat.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-)

[PATCH v3 00/12] ACPI NUMA support for ARM64

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Based on Ganapat's v9 dt based NUMA patch set [1] for ARM64, this patch set introduce the ACPI based configuration to provide NUMA information. ACPI 5.1 already introduced NUMA support for ARM64, which can get the NUMA domain information from SRAT and SLIT table, so parse those

[PATCH v3 01/12] acpi, numa: Use pr_fmt() instead of printk

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Just do some cleanups to replace printk with pr_fmt(). Signed-off-by: Hanjun Guo --- drivers/acpi/numa.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 72b6e9e..4e427fc 100644 --- a/drivers

[PATCH v3 04/12] acpi, numa: introduce ACPI_HAS_NUMA_ARCH_FIXUP

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo acpi_numa_arch_fixup() is only used for IA64, x86 introduce a dummy function for it, when we came to a new architecture (such as ARM64), we need to introduce another dummy one to make the code compile. That's pretty boring so introduce ACPI_HAS_NUMA_ARCH_FIXUP and select it for

Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory

2016-01-23 Thread Geert Uytterhoeven
Hi Kees, On Fri, Jan 22, 2016 at 8:57 PM, Kees Cook wrote: > On Fri, Jan 22, 2016 at 11:16 AM, Laura Abbott wrote: >> Kees had previously pushed a patch to do so but it exposed a couple of >> underlying issues, mostly with low power paths >> (c.f. http://article.gmane.org/gmane.linux.ports.arm.k

[PATCH v2] mm: warn about VmData over RLIMIT_DATA

2016-01-23 Thread Konstantin Khlebnikov
This patch fixes 84638335900f ("mm: rework virtual memory accounting") Before that commit RLIMIT_DATA have control only over size of the brk region. But that change have caused problems with all existing versions of valgrind, because it set RLIMIT_DATA to zero. This patch fixes RLIMIT_DATA check

Re: [PATCH 1/5] x86/fpu: Fix math emulation in eager fpu mode

2016-01-23 Thread Borislav Petkov
On Fri, Jan 22, 2016 at 04:56:02PM -0800, Andy Lutomirski wrote: > Systems without an FPU are generally old and therefore use lazy FPU > switching. Unsurprisingly, math emulation in eager FPU mode is a > bit buggy. Fix it. > > There were two bugs involving kernel code trying to use the FPU > reg

Re: [PATCH 4/5] x86/fpu: Speed up lazy FPU restores slightly

2016-01-23 Thread Borislav Petkov
On Fri, Jan 22, 2016 at 04:56:05PM -0800, Andy Lutomirski wrote: > If we have an FPU, there's no need to check CR0 for FPU emulation. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/kernel/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/traps

Re: [PATCH 5/5] x86/fpu: Default eagerfpu=on on all CPUs

2016-01-23 Thread Borislav Petkov
On Fri, Jan 22, 2016 at 04:56:06PM -0800, Andy Lutomirski wrote: > To try to shake out any latent issues on old hardware, this changes > the default to eager on all CPUs. If no performance or functionality > problems show up, a subsequent patch could remove lazy mode entirely. Yes, I think we sho

Re: [PATCH v3 04/12] acpi, numa: introduce ACPI_HAS_NUMA_ARCH_FIXUP

2016-01-23 Thread Robert Richter
On 23.01.16 17:39:19, Hanjun Guo wrote: > From: Hanjun Guo > > acpi_numa_arch_fixup() is only used for IA64, x86 introduce a dummy > function for it, when we came to a new architecture (such as ARM64), > we need to introduce another dummy one to make the code compile. > > That's pretty boring so

[PATCH 2/2] Use usb_skelswitch module to switch Logitech G920 Racing Wheel to HID mode.

2016-01-23 Thread Michal Malý
Tested-by: Elias Vanderstuyft Signed-off-by: Michal Malý --- drivers/usb/common/Kconfig | 2 ++ drivers/usb/common/usb-skelswitch.c | 60 + 2 files changed, 62 insertions(+) diff --git a/drivers/usb/common/Kconfig b/drivers/usb/common/Kconfig index

[PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-23 Thread Michal Malý
This mini series adds a simple skeleton module whose only purpose is to bring devices that at first appear as a generic USB device into another mode that can be handled by a more specific subsystem. This patch was originally requested by Dmitry, reasoning that loading the entire xpad module just t

[PATCH 1/2] Add usb_skelswitch skeleton module to do basic initialization of devices that at first appear as a generic USB device.

2016-01-23 Thread Michal Malý
This gets rid of the need to handle such devices in more specific drivers that will be loaded for no purpose other than to do some basic initialization on the device. Signed-off-by: Michal Malý --- drivers/usb/Kconfig | 2 + drivers/usb/common/Kconfig | 15 +++ driv

[PATCH] m68k: Wire up copy_file_range

2016-01-23 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/m68k/include/asm/unistd.h | 2 +- arch/m68k/include/uapi/asm/unistd.h | 1 + arch/m68k/kernel/syscalltable.S | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h ind

Re: [PATCH RFC 12/15] ARM: dts: sun9i: Use sun9i specific mmc compatible

2016-01-23 Thread Chen-Yu Tsai
On Sat, Jan 23, 2016 at 4:44 AM, Maxime Ripard wrote: > On Thu, Jan 21, 2016 at 01:26:39PM +0800, Chen-Yu Tsai wrote: >> sun9i/A80 MMC controllers have a larger FIFO, and the FIFO DMA >> trigger levels can be increased. Also, the mmc module clock parent >> has a higher clock rate, and the sample a

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2016-01-23 Thread Wolfram Sang
Hi Uwe, > That's equivalent to > > if (dev->of_node) > return of_driver_match_device(dev, drv); > > and was already suggested in the thread referenced from my reply to > http://article.gmane.org/gmane.linux.kernel/2083641 :-) Did you make a proper patch out of it? Can't find

Re: [PATCH RFC 08/15] ARM: dts: sun6i: Add mmc3 pins for 8 bit emmc

2016-01-23 Thread Chen-Yu Tsai
Hi, On Sat, Jan 23, 2016 at 4:31 AM, Maxime Ripard wrote: > Hi, > > On Thu, Jan 21, 2016 at 01:26:35PM +0800, Chen-Yu Tsai wrote: >> mmc2 and mmc3 are available on the same pins, with different mux values. >> However, only mmc3 supports 8 bit DDR transfer modes. >> >> Since preference for mmc3 ov

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2016-01-23 Thread Wolfram Sang
> Perhaps is it better that I resent a version which use > of_device_get_match_data() ? I'd like that for both of your patches anyhow. It is more concise and better to read IMO. signature.asc Description: Digital signature

Linux 3.2.76

2016-01-23 Thread Ben Hutchings
I'm announcing the release of the 3.2.76 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v2 1/4] lib/string_helpers: export string_units_{2,10} for others

2016-01-23 Thread Andy Shevchenko
On Sat, Jan 23, 2016 at 7:13 AM, James Bottomley wrote: > On Thu, 2016-01-21 at 17:22 +0200, Andy Shevchenko wrote: >> There is one user coming which would like to use those string arrays. >> It might >> be useful for any other user in the future. > > Well, let's not do it until we have an actual

Re: 4.5-rc0: n900 battery charging reverts to 100mA, indicator turns back on

2016-01-23 Thread Pavel Machek
On Thu 2016-01-21 20:34:07, Pali Rohár wrote: > On Thursday 21 January 2016 19:42:34 Pavel Machek wrote: > > Hi! > > > > In 4.4, n900 battery charging works. If indicator is turned off, it > > stays off, and if I select 1.8A charge, it sticks. (There may be > > problems after system suspend and re

N900 sleep mode (in 4.5-rc0, if that matters)

2016-01-23 Thread Pavel Machek
Hi! I enabled the sleep leds, and am using following script to set the machine up for power management: #!/bin/bash uarts=$(find /sys/class/tty/ttyO*/device/power/ -type d) for uart in $uarts; do echo 3000 > $uart/autosuspend_delay_ms done uarts=$(find /sys/class/tty/ttyO*/power/ -typ

Re: [PATCH V2 1/1] gpio-f7188x: Add F81866 GPIO supports

2016-01-23 Thread Simon Guinot
On Fri, Jan 22, 2016 at 05:45:20PM +0800, Peter Hung wrote: > Hi Simon, > > Simon Guinot 於 2016/1/22 下午 04:58 寫道: > >On Fri, Jan 22, 2016 at 03:23:33PM +0800, Peter Hung wrote: > >Acked-by: Simon Guinot > > > >Thanks, > > > > Should I resend patch V3 to add Acked-by? Hi Peter, I am pretty sure

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-23 Thread H. Nikolaus Schaller
Am 22.01.2016 um 21:12 schrieb One Thousand Gnomes : >> I would have expected that the main (and IMO sufficient) reason why >> the kernel should do it is because the particular bus used to connect >> a BT chip to the CPU is a hw detail that a kernel that does its job >> should keep to itself. Same

Re: [PATCH 4/5] scripts/gdb: Add mount point list command

2016-01-23 Thread Jan Kiszka
On 2016-01-20 12:15, Kieran Bingham wrote: > lx-mounts will identify current mount points based on the 'init_task' > namespace by default, as we do not yet have a kernel thread list > implementation to select the current running thread. > > Optionally, a user can specify a PID to list from that pr

[PATCH v2 1/4] MIPS: zboot: Fix the build with XZ compression on older GCC versions

2016-01-23 Thread Alban Bedel
Some older GCC version (at least 4.6) emits calls to __bswapsi2() when building the XZ decompressor. The link of the compressed image then fails with the following error: arch/mips/boot/compressed/decompress.o: In function '__fswab32': include/uapi/linux/swab.h:60: undefined reference to '__bswaps

[PATCH v2 2/4] MIPS: zboot: Avoid useless rebuilds

2016-01-23 Thread Alban Bedel
dummy.o is missing from the targets list which cause useless rebuilds. Instead of adding it to the target list we now fill the list automatically from $(vmlinuzobjs) to avoid having to maintain two lists. Building with XZ compression also lead to useless rebuilds because it reuse source files from

[PATCH v2 4/4] MIPS: ath79: Add zboot debug serial support

2016-01-23 Thread Alban Bedel
Reuse the early printk code to support the serial in zboot. We copy early_printk.c instead of referencing it because we need to build a different object file for the normal kernel and zboot. Signed-off-by: Alban Bedel --- Changelog: v2: * Properly delete the copied source files on clean --- arch

[PATCH v2 3/4] MIPS: zboot: Add support for serial debug using the PROM

2016-01-23 Thread Alban Bedel
As most platforms implement the PROM serial interface prom_putchar() add a simple bridge to allow re-using this code for zboot. Signed-off-by: Alban Bedel --- Changelog: v2: * Added a license header to uart-prom.c --- arch/mips/Kconfig | 4 arch/mips/boot/compressed/Mak

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-23 Thread Bjørn Mork
Michal Malý writes: > This mini series adds a simple skeleton module whose only purpose is to bring > devices that at first appear as a generic USB device into another mode that > can be handled by a more specific subsystem. > > This patch was originally requested by Dmitry, reasoning that loadin

Re: Nokia N900: musb is in wrong state after boot

2016-01-23 Thread Pali Rohár
On Thursday 21 January 2016 20:21:13 Tony Lindgren wrote: > * joerg Reisenweber [160121 10:45]: > > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > > Then for supporting the USB host mode.. We should add regulator > > > support to the USB PHY driver so if the ID pin is grounded, the > > >

[PATCH v2 1/2] MIPS: ath79: irq: Move the MISC driver to drivers/irqchip

2016-01-23 Thread Alban Bedel
The driver stays the same but the initialization changes a bit. For OF boards we now get the memory map from the OF node and use a linear mapping instead of the legacy mapping. For legacy boards we still use a legacy mapping and just pass down all the parameters from the board init code. Signed-of

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 700 to no_hw_rfkill dmi list

2016-01-23 Thread Josh Boyer
On Sat, Jan 23, 2016 at 2:27 AM, Darren Hart wrote: > On Mon, Jan 18, 2016 at 02:32:53PM -0500, Josh Boyer wrote: >> Like the Yoga 900 models the Lenovo Yoga 700 does not have a >> hw rfkill switch, and trying to read the hw rfkill switch through the >> ideapad module causes it to always reported

[PATCH v2 2/2] MIPS: ath79: irq: Move the CPU IRQ driver to drivers/irqchip

2016-01-23 Thread Alban Bedel
Signed-off-by: Alban Bedel Acked-by: Marc Zyngier --- arch/mips/ath79/irq.c| 81 ++ arch/mips/include/asm/mach-ath79/ath79.h | 1 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ath79-cpu.c | 97

[PATCH] Staging:lustre:lustre:llite:Remove explicit NULL comparision

2016-01-23 Thread Bhumika Goyal
Replaced explicit NULL comparision with its simplier form. Found using coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/llite/dcache.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/driver

Re: [PATCH v3] kallsyms: add support for relative offsets in kallsyms address table

2016-01-23 Thread Balbir Singh
On Fri, 22 Jan 2016 22:54:44 +0100 Ard Biesheuvel wrote: > > """ > kallsyms: add support for relative offsets in kallsyms address table > > Similar to how relative extables are implemented, it is possible to emit > the kallsyms table in such a way that it contains offsets relative to some > anc

[PATCH 2/4] perf hists browser: Check socket context menu

2016-01-23 Thread Namhyung Kim
Show socket filter context menu only if sort key has socket. Otherwise the info will be incorrect. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hi

[PATCH 1/4] perf hists browser: Check DSO related context menu

2016-01-23 Thread Namhyung Kim
Show DSO filter and map browser context menu only if sort key has dso. Otherwise those info will be incorrect. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 14 -- tools/perf/util/sort.h | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a

[PATCH 4/4] perf hists browser: Check script context menu

2016-01-23 Thread Namhyung Kim
The script and data-switch context menu are only meaningful when it deals with a data file. So add a check so that it cannot be shown when perf-top is run. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --g

[PATCH 3/4] perf hists browser: Relax context menu check for symbol sort key

2016-01-23 Thread Namhyung Kim
When sort key doesn't contain 'symbol', it shows nothing but 'Exit' menu. However it can show other menu like thread, DSO, map and so on. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/perf/ui/browser

Re: [PATCH] [media] media: Kconfig: add dependency of HAS_DMA

2016-01-23 Thread Geert Uytterhoeven
On Wed, Dec 30, 2015 at 2:26 PM, Sudip Mukherjee wrote: > The build of m32r allmodconfig fails with the error: > drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: > error: implicit declaration of function 'dma_get_cache_alignment' > > The build of videobuf2-dma-contig.c depends on HAS_

[PATCH] bus: uniphier-system-bus: revive tristate prompt

2016-01-23 Thread Masahiro Yamada
At first, commit 4b7f48d395a7 ("bus: uniphier-system-bus: add UniPhier System Bus driver") introduced this driver as a tristate one. Then, commit 326ea45aa827 ("bus: uniphier: allow only built-in driver") temporarily made it boolean in order to fix a link error in case it is compiled as a module.

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-23 Thread Andy Gospodarek
On Fri, Jan 22, 2016 at 02:11:22PM -0500, Jarod Wilson wrote: > The network core tries to keep track of dropped packets, but some packets > you wouldn't really call dropped, so much as intentionally ignored, under > certain circumstances. One such case is that of bonding and team device > slaves th

[PATCH 2.6.32 31/42] mISDN: fix a loop count

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 40d24c4d8a7430aa4dfd7a665fa3faf3b05b673f upstream. There are two issue here. 1) cnt starts as maxloop + 1 so all these loops iterate one more time than intended.

[PATCH 2.6.32 42/42] kvm: x86: only channel 0 of the i8254 is linked to the HPET

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit e5e57e7a03b1cdcb98e4aed135def2a08cbf3257 upstream. While setting the KVM PIT counters in 'kvm_pit_load_count', if 'hpet_legacy_start' is set, the function disables the

[PATCH 2.6.32 21/42] sched/core: Remove false-positive warning from wake_up_process()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Sasha Levin commit 119d6f6a3be8b424b200dcee56e74484d5445f7e upstream. Because wakeups can (fundamentally) be late, a task might not be in the expected state. Therefore testing against a ta

[PATCH 2.6.32 34/42] s390/dis: Fix handling of format specifiers

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Michael Holzheu commit 272fa59ccb4fc802af28b1d699c2463db6a71bf7 upstream. The print_insn() function returns strings like "lghi %r1,0". To escape the '%' character in sprintf() a second '%'

[PATCH 2.6.32 12/42] bluetooth: Validate socket address length in sco_sock_bind().

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" commit 5233252fce714053f0151680933571a2da9cbfb4 upstream. Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings Signed-off-by: Willy Tarreau --- net/bluetooth/s

[PATCH 2.6.32 20/42] ipv4: igmp: Allow removing groups from a removed interface

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Andrew Lunn commit 4eba7bb1d72d9bde67d810d09bf62dc207b63c5c upstream. When a multicast group is joined on a socket, a struct ip_mc_socklist is appended to the sockets mc_list containing in

[PATCH 2.6.32 22/42] ipmi: move timer init to before irq is setup

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Jan Stancek commit 27f972d3e00b50639deb4cc1392afaeb08d3cecc upstream. We encountered a panic on boot in ipmi_si on a dell per320 due to an uninitialized timer as follows. static int smi_s

[PATCH 2.6.32 35/42] USB: ipaq.c: fix a timeout loop

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit abdc9a3b4bac97add99e1d77dc6d28623afe682b upstream. The code expects the loop to end with "retries" set to zero but, because it is a post-op, it will end set to -1. I

[PATCH 2.6.32 06/42] ext4: Fix null dereference in ext4_fill_super()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Fix failure paths in ext4_fill_super() that can lead to a null dereference. This was designated CVE-2015-8324. Mostly extracted from commit 744692dc0598 ("ext4: use ext4_get

[PATCH 2.6.32 19/42] wan/x25: Fix use-after-free in x25_asy_open_tty()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Peter Hurley commit ee9159ddce14bc1dec9435ae4e3bd3153e783706 upstream. The N_X25 line discipline may access the previous line discipline's closed and already-freed private data on open [1]

Re: [Xen-devel] [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-23 Thread Andrew Cooper
On 23/01/2016 00:55, Luis R. Rodriguez wrote: > On Fri, Jan 22, 2016 at 4:30 PM, Andrew Cooper > wrote: >> the DMLite boot >> protocol is OS agnostic, and will be staying that way. > What's the DMLite boot protocol? It is a statement of the initial state of a DMLite container. > Is that the pro

[PATCH 2.6.32 18/42] nfs: if we have no valid attrs, then dont declare the attribute cache valid

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Jeff Layton commit c812012f9ca7cf89c9e1a1cd512e6c3b5be04b85 upstream. If we pass in an empty nfs_fattr struct to nfs_update_inode, it will (correctly) not update any of the attributes, but

[PATCH 2.6.32 05/42] unix: avoid use-after-free in ep_remove_wait_queue

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Rainer Weikusat commit 7d267278a9ece963d77eefec61630223fce08c6c upstream. Rainer Weikusat writes: An AF_UNIX datagram socket being the client in an n:1 association with some server socket

[PATCH 2.6.32 11/42] net: fix warnings in make htmldocs by moving macro definition out of field declaration

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Hannes Frederic Sowa commit 7bbadd2d1009575dad675afc16650ebb5aa10612 upstream. Docbook does not like the definition of macros inside a field declaration and adds a warning. Move the defini

[PATCH 2.6.32 27/42] rfkill: copy the name into the rfkill struct

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit b7bb110008607a915298bf0f47d25886ecb94477 upstream. Some users of rfkill, like NFC and cfg80211, use a dynamic name when allocating rfkill, in those cases dev_name(). T

[PATCH 2.6.32 25/42] sctp: update the netstamp_needed counter when copying sockets

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Marcelo Ricardo Leitner [ Upstream commit 01ce63c90170283a9855d1db4fe81934dddce648 ] Dmitry Vyukov reported that SCTP was triggering a WARN on socket destroy related to disabling sock time

[PATCH 2.6.32 28/42] ses: Fix problems with simple enclosures

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: James Bottomley commit 3417c1b5cb1fdc10261dbed42b05cc93166a78fd upstream. Simple enclosure implementations (mostly USB) are allowed to return only page 8 to every diagnostic query. That r

[PATCH 2.6.32 07/42] Revert "net: add length argument to skb_copy_and_csum_datagram_iovec"

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau This reverts commit c507639ba963bb47e3f515670a7cace76af76ab6. As reported by Michal Kubecek, this fix doesn't handle truncated reads correctly. Next patch from Eric fixes it b

[PATCH 2.6.32 16/42] vfs: Avoid softlockups with sendfile(2)

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit c2489e07c0a71a56fb2c84bc0ee66cddfca7d068 upstream. The following test program from Dmitry can cause softlockups or RCU stalls as it copies 1GB from tmpfs into eventfd and w

[PATCH 2.6.32 26/42] af_unix: fix a fatal race with bit fields

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 60bc851ae59bfe99be6ee89d6bc50008c85ec75d upstream. Using bit fields is dangerous on ppc64/sparc64, as the compiler [1] uses 64bit instructions to manipulate them. If th

[PATCH 2.6.32 02/42] isdn_ppp: Add checks for allocation failure in isdn_ppp_open()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 0baa57d8dc32db78369d8b5176ef56c5e2e18ab3 upstream. Compile-tested only. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Willy Tarreau --

[PATCH 2.6.32 09/42] KEYS: Fix race between read and revoke

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: David Howells commit b4a1b4f5047e4f54e194681125c74c0aa64d637d upstream. This fixes CVE-2015-7550. There's a race between keyctl_read() and keyctl_revoke(). If the revoke happens between

[PATCH 2.6.32 40/42] mm/memory_hotplug.c: check for missing sections in test_pages_in_a_zone()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Andrew Banman commit 5f0f2887f4de9508dcf438deab28f1de8070c271 upstream. test_pages_in_a_zone() does not account for the possibility of missing sections in the given pfn range. pfn_valid_w

[PATCH 2.6.32 30/42] tty: Fix GPF in flush_to_ldisc()

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Peter Hurley commit 9ce119f318ba1a07c29149301f1544b6c4bea52a upstream. A line discipline which does not define a receive_buf() method can can cause a GPF if data is ever received [1]. Oddl

[PATCH 2.6.32 41/42] KVM: x86: Reload pit counters for all channels when restoring state

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Andrew Honig commit 0185604c2d82c560dab2f2933a18f797e74ab5a8 upstream. Currently if userspace restores the pit counters with a count of 0 on channels 1 or 2 and the guest attempts to read

[PATCH 2.6.32 33/42] spi: fix parent-device reference leak

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 157f38f993919b648187ba341bfb05d0e91ad2f6 upstream. Fix parent-device reference leak due to SPI-core taking an unnecessary reference to the parent when allocating the ma

[PATCH 2.6.32 15/42] fix sysvfs symlinks

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 0ebf7f10d67a70e120f365018f1c5fce9ddc567d upstream. The thing got broken back in 2002 - sysvfs does *not* have inline symlinks; even short ones have bodies stored in the firs

Re: PCI device driver broken between 4.2 and 4.3

2016-01-23 Thread Bjorn Helgaas
[+cc linux-kernel] Hi Олег, On Sat, Jan 23, 2016 at 1:08 AM, Олег Мороз wrote: > Hello. I've got a device driver for MIL-1553b card called TA1-PCI, which > could be found at > https://github.com/qmor/elcus-1553-driver-linux > Card is using PLX_PCI9030 PCI controller. > Today i've found that this

[PATCH 2.6.32 38/42] parisc: Fix syscall restarts

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 71a71fb5374a23be36a91981b5614590b9e722c3 upstream. On parisc syscalls which are interrupted by signals sometimes failed to restart and instead returned -ENOSYS which in

[PATCH 2.6.32 24/42] net, scm: fix PaX detected msg_controllen overflow in scm_detach_fds

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit 6900317f5eff0a7070c5936e5383f589e0de7a09 ] David and HacKurx reported a following/similar size overflow triggered in a grsecurity kernel, thanks to PaX's

[PATCH 2.6.32 13/42] sctp: translate host order to network order when setting a hmacid

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: lucien commit ed5a377d87dc4c87fb3e1f7f698cba38cd893103 upstream. now sctp auth cannot work well when setting a hmacid manually, which is caused by that we didn't use the network order for

Re: [Xen-devel] [PATCH 1/3] xen-netback: fix license ident used in MODULE_LICENSE

2016-01-23 Thread Wei Liu
On Fri, Jan 22, 2016 at 08:25:21PM +, One Thousand Gnomes wrote: > > The fact what include/linux/license.h:license_is_gpl_compatible includes > > "Dual MIT/GPL" as an option seems to suggest that it is enough of a thing > > to be validly used as the contents of a MODULE_LICENSE() thing. > > Ye

[PATCH 2.6.32 17/42] ext4: Fix handling of extended tv_sec

2016-01-23 Thread Willy Tarreau
2.6.32-longterm review patch. If anyone has any objections, please let me know. -- From: David Turner commit a4dad1ae24f850410c4e60f22823cba1289b8d52 upstream. In ext4, the bottom two bits of {a,c,m}time_extra are used to extend the {a,c,m}time fields, deferring the year 2038

  1   2   3   4   >