Re: [RFC PATCH] softirq: fix tasklet_kill() usage and users

2016-08-06 Thread Greg Kroah-Hartman
On Sat, Aug 06, 2016 at 11:07:14AM -0700, Santosh Shilimkar wrote: > ping !! ping on a "RFC" after only 5 days in the middle of the merge window? That's bold... Personally, I rarely respond to RFC patches as obviously the submitter doesn't think they solve the issue at hand :)

include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc'

2016-08-06 Thread kbuild test robot
Hi Linus, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: 7d4defe21c682c934a19fce1ba8b54b7bde61b08 gpio: include in gpiolib-of date: 9 weeks ago config: um-allyesc

drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap'

2016-08-06 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: 4fcd504edbf7c793325511c2df8dcd083958e28a power: reset: add reboot mode driver date: 5 weeks ago config: um-allyesconfig (attached as .config) compiler: gcc-

drivers/media/v4l2-core/videobuf2-dma-contig.c:486:2: error: implicit declaration of function 'dma_get_cache_alignment'

2016-08-06 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: c1023ba74fc77dc56dc317bd98f5060aab889ac1 [media] drivers/media/platform/Kconfig: fix VIDEO_MEDIATEK_VCODEC dependency date: 4 weeks ago config: m32r-allmodc

Re: [PATCH] drm: Don't prepare or cleanup unchanging frame buffers [v2]

2016-08-06 Thread Keith Packard
Daniel Vetter writes: > Hm, I can't see v1 anywhere, but I think it'd be better. You can't store > any transient state related to the current update in struct drm_plane. In > this case the cleanup_buffers from a previous update might overlap (for > nonblocking atomic commits) with the prepare_pla

Re: Traceback seen once when running x86 qemu emulation with latest kernel

2016-08-06 Thread Borislav Petkov
On Sat, Aug 06, 2016 at 03:41:23PM -0700, Guenter Roeck wrote: > Hi, I have seen the following traceback once when running the latest mainline > in qemu. > > Starting udev > random: crng init done > udevd[117]: starting version 182 > Starting Bootlog daemon: bootlogd. > > EXT4-fs (hda): re-mount

Re: [PATCH v2] x86/power/64: Support unaligned addresses for temporary mapping

2016-08-06 Thread Yinghai Lu
On Sat, Aug 6, 2016 at 6:03 PM, Rafael J. Wysocki wrote: > On Wednesday, August 03, 2016 11:28:48 PM Rafael J. Wysocki wrote: > > On a second thought, it seems to be better to follow your suggestion to simply > provide a special version of kernel_ident_mapping_init() for hibernation, > because it

[git pull] vfs pile 3

2016-08-06 Thread Al Viro
Assorted cleanups and fixes; in "trivial API change" department - ->d_compare() losing 'parent' argument. I'm not sure if I'd taken the right approach with the last commit; the thing is, fs/namei.c part has a trivial conflict with the userns changes already in mainline *and* the posted patch had b

Re: [PATCH] ARM: dts: add rk3288-firefly-reload

2016-08-06 Thread Shawn Lin
On 2016/7/19 3:46, Heiko Stübner wrote: Am Montag, 18. Juli 2016, 23:32:32 schrieb Randy Li: The Firefly RK3288 Reload is a combination Firefly rk3288 core board with the Reload baseboard. Add a dtsi for the Firefly rk3288 core which can be included into the dts for the various baseboards in the

Re: [PATCH] proc: faster /proc/*/status

2016-08-06 Thread Andi Kleen
Alexey Dobriyan writes: > - > + seq_printf(m, "State:\t%s", get_task_state(p)); > + > + seq_puts(m, "\nTgid:\t"); The only different should be the format string. Scanning the format string really shouldn't be that expensive?!? It would be better if you could find out why that is slow an

[PATCH v2 0/4] remove unnecessary IPI reading uncore events

2016-08-06 Thread David Carrillo-Cisneros
This patch series adds a new flag to the struct perf_event (and a flag field to store it) to allow a PMU to tag a CPU or cgroup event as readable from any CPU in the same package and not just the CPU where the is currently active. This capability is used with uncore events to potentially avoid an

[PATCH v2 2/4] perf/core: generalize event->group_flags

2016-08-06 Thread David Carrillo-Cisneros
Currently, PERF_GROUP_SOFTWARE is used in the group_flags field of a group's leader to indicate that is_software_event(event) is true for all events in a group. This is the only usage of event->group_flags. This pattern of setting a group level flags when all events in the group share a property i

[PATCH v2 1/4] perf/core: check return value of perf_event_read IPI

2016-08-06 Thread David Carrillo-Cisneros
The call to smp_call_function_single in perf_event_read() may fail and, when it does, its error value is the one to return. Signed-off-by: David Carrillo-Cisneros Reviewed-by: Stephane Eranian --- kernel/events/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ker

[PATCH v2 4/4] perf/x86: use PMUEF_READ_CPU_PKG in uncore events

2016-08-06 Thread David Carrillo-Cisneros
Add flag to Intel's uncore and RAPL. Signed-off-by: David Carrillo-Cisneros Reviewed-by: Stephane Eranian --- arch/x86/events/intel/rapl.c | 2 ++ arch/x86/events/intel/uncore.c | 2 ++ arch/x86/events/intel/uncore_snb.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/x86/

[PATCH v2 3/4] perf/core: introduce PMU_EV_CAP_READ_ACTIVE_PKG

2016-08-06 Thread David Carrillo-Cisneros
Introduce the flag PMU_EV_CAP_READ_ACTIVE_PKG, useful for uncore events, that allows a PMU to signal the generic perf code that an event is readable in the current CPU if the event is active in a CPU in the same package as the current CPU. This is an optimization that avoids a unnecessary IPI for

Re: [PATCH v2 02/10] mfd: stmpe: Add reset support for all STMPE variant

2016-08-06 Thread Stefan Agner
On 2016-04-28 05:13, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Reset was only implemented for STMPE1801 variant despite > all variant have a SOFT_RESET bit. > > For STMPE2401/2403/801/1601/1801 SOFT_RESET bit is bit 7 > of SYS_CTRL register. > For STMPE610/811 (which have the sam

include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'

2016-08-06 Thread kbuild test robot
Hi Vincent, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support date: 10 months ago

make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.o', needed by 'arch/sh/boot/dts/built-in.o'.

2016-08-06 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: 190fe191cfbead9fe089453dd092869c9469c6d4 sh: add support for linking a builtin device tree blob in the kernel date: 7 days ago config: sh-allyesconfig (atta

vgacon.c:undefined reference to `screen_info'

2016-08-06 Thread kbuild test robot
Hi Chen, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6c84239d595dc6ffe39f0f03dae2f64ed200db95 commit: f69405ce6c0fc9f4a039011007371b31f80b470d openrisc: include: asm: Kbuild: add default "vga.h"

[PATCH v2 4/6] mmc: dw_mmc: split out dw_mci_set_power_reg

2016-08-06 Thread Shawn Lin
Splite out dw_mci_set_power_reg to set PWREN register in case that we need more complicated power control. Signed-off-by: Shawn Lin --- Changes in v2: None drivers/mmc/host/dw_mmc.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host

[PATCH v2 2/6] mmc: dw_mmc: cleanup power setting of set_ios callback

2016-08-06 Thread Shawn Lin
Remove the ret variable and combine the condition check to simplify the code. Signed-off-by: Shawn Lin --- Changes in v2: None drivers/mmc/host/dw_mmc.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/ho

[PATCH v2 6/6] mmc: dw_mmc-rockchip: add parsing of power control from DT

2016-08-06 Thread Shawn Lin
By default, the power io of dw_mmc is fixed which means we could only output high level voltage to indicate the power-on state. But that is not always correct as the usage of power io should be board specific. Let's expose it to dt for supporting this kind of specific design. Signed-off-by: Shawn

[PATCH v2 1/6] dt-bindings: rockchip-dw-mshc: add description of rockchip,power-invert

2016-08-06 Thread Shawn Lin
rockchip,power-invert is used for rockchip to introduce the flag DW_MMC_CARD_PWR_INVERT from DT which should make the power control of dw_mmc more flexible according to different hw design. Signed-off-by: Shawn Lin --- Changes in v2: None Documentation/devicetree/bindings/mmc/rockchip-dw-mshc

[PATCH v2 3/6] mmc: dw_mmc: split out dw_mci_set_power

2016-08-06 Thread Shawn Lin
The dw_mci_set_ios is a little complicated and lengthy, let's split out the setting of power part. No functionality change. Signed-off-by: Shawn Lin --- Changes in v2: None drivers/mmc/host/dw_mmc.c | 87 ++- 1 file changed, 49 insertions(+), 38 dele

[PATCH v2 5/6] mmc: dw_mmc: support inverted power control

2016-08-06 Thread Shawn Lin
If DW_MMC_CARD_PWR_INVERT is set, we should configure PWREN register on the opposite way as it means we need to output high level from the power io to indicate the off state. Signed-off-by: Shawn Lin --- Changes in v2: None drivers/mmc/host/dw_mmc.c | 3 +++ drivers/mmc/host/dw_mmc.h | 1 + 2

[PATCH v2 0/6] Add support of inverting power control and some minor cleanup

2016-08-06 Thread Shawn Lin
By default, dw_mmc outputs high level voltage to indicate powering up the card and outputs low level vcltage to indicate powering off the card. But that is not always correct. The power io should be able to control different kind of hw components to supply or cutoff power to the card. We have boar

Re: [PATCH] proc: much faster /proc/vmstat

2016-08-06 Thread Al Viro
On Sat, Aug 06, 2016 at 03:54:56PM +0300, Alexey Dobriyan wrote: [sprintf sucks, let's convert numbers manually] > --- a/mm/vmstat.c > +++ b/mm/vmstat.c > @@ -1592,7 +1592,10 @@ static int vmstat_show(struct seq_file *m, void *arg) > { > unsigned long *l = arg; > unsigned long off =

Re: [PATCH v2] x86/power/64: Support unaligned addresses for temporary mapping

2016-08-06 Thread Rafael J. Wysocki
On Wednesday, August 03, 2016 11:28:48 PM Rafael J. Wysocki wrote: > On Wed, Aug 3, 2016 at 8:23 PM, Yinghai Lu wrote: > > From: Thomas Garnier > > > > Correctly setup the temporary mapping for hibernation. Previous > > implementation assumed the offset between KVA and PA was aligned on the PGD

Re: [PATCH 2/4] irqchip: irq-mvebu-pic: new driver for Marvell Armada 7K/8K PIC

2016-08-06 Thread Paul Gortmaker
On Fri, Aug 5, 2016 at 10:55 AM, Thomas Petazzoni wrote: > The Marvell Armada 7K/8K integrates a secondary interrupt controller > very originally named "PIC". It is connected to the main GIC via a > PPI. Amongst other things, this PIC is used for the ARM PMU. > > This commit adds a simple irqchip

Re: [PATCH v2 2/3] drm: simpledrm: add fbdev fallback support

2016-08-06 Thread Paul Gortmaker
On Fri, Aug 5, 2016 at 11:44 AM, Noralf Trønnes wrote: > Create a simple fbdev device during SimpleDRM setup so legacy user-space > and fbcon can use it. > > Original work by David Herrmann. > > Cc: dh.herrm...@gmail.com > Signed-off-by: Noralf Trønnes > --- > > Changes from version 1: > No cha

RE: [PATCH 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-06 Thread Alex Ng (LIS)
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, August 5, 2016 3:49 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; Haiyang Zhang ; > KY Srinivasan ; Alex Ng (LIS) > Subject: [PATCH 2/4] Drivers: hv: balloon: account for

Re: [PATCH 2/4] irqchip: irq-mvebu-pic: new driver for Marvell Armada 7K/8K PIC

2016-08-06 Thread Paul Gortmaker
On Fri, Aug 5, 2016 at 7:00 PM, Paul Gortmaker wrote: >> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig >> index fa33c50..a6f90c5 100644 >> --- a/drivers/irqchip/Kconfig >> +++ b/drivers/irqchip/Kconfig >> @@ -246,6 +246,9 @@ config MVEBU_ODMI >> bool >> select GEN

Re: [RFC][PATCH 3/4] power: reset: Add sram-reboot-mode driver

2016-08-06 Thread Paul Gortmaker
On Wed, Aug 3, 2016 at 7:05 PM, John Stultz wrote: > Add sram-reboot-mode driver, which enables > reboot modes to be specified from sram subnodes. > > Cc: Andy Yan > Cc: Rob Herring > Cc: Arnd Bergmann > Cc: Thierry Reding > Cc: Heiko Stübner > Cc: Caesar Wang > Cc: Kees Cook > Cc: Guodong

[PATCH] exynos-drm: Fix unsupported GEM memory type error message to be clear

2016-08-06 Thread Shuah Khan
Fix unsupported GEM memory type error message to include the memory type information. Signed-off-by: Shuah Khan --- drivers/gpu/drm/exynos/exynos_drm_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exyn

[GIT PULL] platform-drivers-x86 for 4.8-2

2016-08-06 Thread Darren Hart
Hi Linus, The following changes since commit 332e081225fc2a657aa587c42943d5f5a7dae88b: intel-vbtn: new driver for Intel Virtual Button (2016-07-22 13:17:40 -0700) are available in the git repository at: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git tags/platform-drive

Re: [PATCH] asus-laptop: get rid of parse_arg()

2016-08-06 Thread Darren Hart
On Fri, Aug 05, 2016 at 11:57:10PM +0300, Giedrius Statkevičius wrote: > parse_arg() duplicates the funcionality of kstrtoint() so use the latter > function instead. There is no funcionality change except that in the > case of input being too big -ERANGE will be returned instead of -EINVAL > which

Re: [PATCH 0857/1285] Replace numeric parameter like 0444 with macro

2016-08-06 Thread Darren Hart
On Tue, Aug 02, 2016 at 02:34:07PM -0300, Henrique de Moraes Holschuh wrote: > (cc list trimmed) > > On Tue, 02 Aug 2016, Baole Ni wrote: > > I find that the developers often just specified the numeric value > > when calling a macro which is defined with a parameter for access > > permission. > >

Re: [PATCH v2 2/2] soc: qcom: add l2 cache perf events driver

2016-08-06 Thread Paul Gortmaker
On Thu, Aug 4, 2016 at 5:11 PM, Neil Leeder wrote: > Adds perf events support for L2 cache PMU. > > The L2 cache PMU driver is named 'l2cache_0' and can be used > with perf events to profile L2 events such as cache hits > and misses. > > Signed-off-by: Neil Leeder > --- > drivers/soc/qcom/Kconfi

[git pull] vfs pile 2

2016-08-06 Thread Al Viro
Fairly self-contained bunch - surprising lot of places passes struct qstr * as an argument when const struct qstr * would suffice; it complicates analysis for no good reason. I'd prefer to feed that separately from the assorted fixes (those are in #for-linus and with somewhat trickier topo

Re: [PATCH v2 04/22] usb: chipidea: Only read/write OTGSC from one place

2016-08-06 Thread Peter Chen
On Fri, Aug 05, 2016 at 02:41:37PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-07-08 02:14:57) > > On Thu, Jul 07, 2016 at 03:20:55PM -0700, Stephen Boyd wrote: > > > diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c > > > index 03b6743461d1..a6fc60934297 100644 > > > -

Re: [PATCH] Revert "irqdomain: Don't set type when mapping an IRQ"

2016-08-06 Thread kbuild test robot
Hi Linus, [auto build test ERROR on tip/irq/core] [also build test ERROR on next-20160805] [cannot apply to v4.7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Linus-Walleij/Revert-irqdomain-Do

[PATCH] powerpc: vdso: Add missing include file

2016-08-06 Thread Guenter Roeck
Some powerpc builds fail with the following buld error. In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0, from arch/powerpc/kernel/vdso.c:28: arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr': arch/powerpc/include/asm/cputhreads.h:101:2: error:

[git pull] Input updates for 4.8-rc0 (round 2)

2016-08-06 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates more for the input subsystem. You will get 2 more new drivers for touchscreen controllers: - Silead touchscreen controllers - SiS 9200 family touchscreen controllers an

Traceback seen once when running x86 qemu emulation with latest kernel

2016-08-06 Thread Guenter Roeck
Hi, I have seen the following traceback once when running the latest mainline in qemu. Starting udev random: crng init done udevd[117]: starting version 182 Starting Bootlog daemon: bootlogd. EXT4-fs (hda): re-mounted. Opts: errors=remount-ro,data=ordered [ cut here ] WA

Re: [PATCH] proc: faster /proc/*/status

2016-08-06 Thread Joe Perches
On Sat, 2016-08-06 at 15:56 +0300, Alexey Dobriyan wrote: > top(1) opens the following files for every PID: > > /proc/*/stat > /proc/*/statm > /proc/*/status > > This patch switches /proc/*/status away from seq_printf(). > The result is 13.5% speedup. If this is really an impor

[GIT PULL] perf updates

2016-08-06 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: f282f7a0ecc3e0b8fd8532a6c3e9401534cb907c Merge tag 'perf-core-for-mingo-20160803' of git://git.kernel.org/pub/scm/linux/kernel/git/a

Re: [PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-06 Thread Bart Van Assche
On 08/05/16 16:09, Bart Van Assche wrote: If delivery of a signal and __wake_up_common() happen concurrently it is possible that the signal is delivered after __wake_up_common() woke up the affected task and before bit_wait_io() checks whether a signal is pending. Avoid that the next waiter is no

[PATCH v2 09/14] net: ethernet: ti: cpsw: move cpdma resources to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
Every net device private struct holds links to shared cpdma resources. No need to save and every time synchronize these resources per net dev. So, move it to common driver struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 97 +- 1

[PATCH] proc: much faster /proc/vmstat

2016-08-06 Thread Alexey Dobriyan
Every current KDE system has process named ksysguardd polling files below once in several seconds: $ strace -e trace=open -p $(pidof ksysguardd) Process 1812 attached open("/etc/mtab", O_RDONLY|O_CLOEXEC) = 8 open("/etc/mtab", O_RDONLY|O_CLOEXEC) = 8 ope

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Brian Gerst
On Sat, Aug 6, 2016 at 1:25 AM, Borislav Petkov wrote: > On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: >> The 8 should be changed to SIZEOF_PTREGS in a later patch >> ("x86/asm/head: standardize the end of the stack for idle tasks"). > > But SIZEOF_PTREGS is 21*8. I don't underst

Re: Dirty/Writeback fields in /proc/meminfo affected by 20d74bf29c

2016-08-06 Thread Tomas Vondra
On 08/04/2016 10:55 PM, Andrew Morton wrote: On Mon, 1 Aug 2016 04:36:28 +0200 Tomas Vondra wrote: Hi, While investigating a strange OOM issue on the 3.18.x branch (which turned out to be already fixed by 52c84a95), I've noticed a strange difference in Dirty/Writeback fields in /proc/meminfo

[PATCH] Revert "irqdomain: Don't set type when mapping an IRQ"

2016-08-06 Thread Linus Walleij
This reverts commit 1e2a7d78499ec8859d2b469051b7b80bad3b08aa. When using the APQ8060 Dragonboard I have lost all interrupts from the PMIC after this commit: power button, keypad, RTC alarm and all GPIOs. Reverting the commit solves the issue. The affected irqchip driver is drivers/mfd/pm8921-core

[PATCH v2 00/14] net: ethernet: ti: cpsw: split driver data and per ndev data

2016-08-06 Thread Ivan Khoronzhuk
In dual_emac mode the driver can handle 2 network devices. Each of them can use its own private data and common data/resources. This patchset splits common driver data/resources and private per net device data. It leads to: - reduce memory usage - increase code readability - allows add a bunch of

Re: problem with 731c7d3, "main drm pull request for 4.8"

2016-08-06 Thread Mike Marshall
Hello everyone... I was out of the office yesterday, so I came in today to do the bisect... # git bisect bad c61b93fe51b1330cfc4d73084b924931bd65c8f0 is the first bad commit commit c61b93fe51b1330cfc4d73084b924931bd65c8f0 Author: Boris Brezillon Date: Tue Jun 7 13:47:56 2016 +0200 drm/ato

change in xhci result in soft lockup

2016-08-06 Thread Kui Zhang
Hello After this patch # first bad commit: [86065c2719a5685cef36945f09def3f0658c7860] xhci: don't rely on precalculated value of needed trbs in the enqueue loop My system would hang while installing android packages over USB adb install -r VLC-Android-2.1.0-ARMv7.apk Log: Aug 01 01:49:17 k

[PATCH] ACPICA: Remove unnecessary '\n' in the end of ACPI_INFO output

2016-08-06 Thread Alexander Kuleshov
as the ACPI_INFO already prints `\n` in the end itself. Signed-off-by: Alexander Kuleshov --- drivers/acpi/acpica/tbxfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/tbxfload.c b/drivers/acpi/acpica/tbxfload.c index ac71abc..e7119b7 100644 --- a/dri

[GIT PULL] xfs: reverse mapping support for 4.8-rc1

2016-08-06 Thread Dave Chinner
Hi Linus, This is the second part of the XFS updates for this merge cycle. This pullreq contains the new reverse block mapping feature for XFS, and can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git tags/xfs-rmap-for-linus-4.8-rc1 The full request-pull output is at

[PATCH v2 02/14] net: ethernet: ti: cpsw: remove redundant check in napi poll

2016-08-06 Thread Ivan Khoronzhuk
No need to check number of handled packets, when in most cases (> 99%) it's not 0. It can be 0 only in rare cases, even in this case it's not bad to print just 0. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff

[GIT PULL] x86 fixes

2016-08-06 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: f7d665627e103e82d34306c7d3f6f46f387c0d8b x86/syscalls/64: Add compat_sys_keyctl for 32-bit userspace Two fixes and a cleanup-fix, to t

[PATCH] proc: faster /proc/*/status

2016-08-06 Thread Alexey Dobriyan
top(1) opens the following files for every PID: /proc/*/stat /proc/*/statm /proc/*/status This patch switches /proc/*/status away from seq_printf(). The result is 13.5% speedup. Benchmark is open("/proc/self/status")+read+close 1.000.000 million times.

[PATCH v2 03/14] net: ethernet: ti: cpsw: remove priv from cpsw_get_slave_port() parameters list

2016-08-06 Thread Ivan Khoronzhuk
There is no need in priv here. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 85ee9f5..30e1ddb 100644 --- a/drivers/net/ethernet

[PATCH v2 10/14] net; ethernet: ti: cpsw: move irq stuff under cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The irq data are common per net device. So no need to hold these data per net dev, move it under cpsw_common. Also delete irq_num var, as after optimization it's not needed. Correct number of irqs to 2, as anyway, driver is using only 2, at least for now. Signed-off-by: Ivan Khoronzhuk --- drive

[PATCH v2 04/14] net: ethernet: ti: cpsw: remove clk var from priv

2016-08-06 Thread Ivan Khoronzhuk
There is no need to hold link to clk, it's used only once while probe. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 30e1ddb..7

Re: [PATCH 3/3] locking/rwsem: Scan the wait_list for readers only once

2016-08-06 Thread Ingo Molnar
* Davidlohr Bueso wrote: > When wanting to wakeup readers, __rwsem_mark_wakeup() currently > iterates the wait_list twice while looking to wakeup the first N > queued reader-tasks. While this can be quite inefficient, it was > there such that a awoken reader would be first and foremost > acknowl

Re: [RFC][PATCH 7/7] cpufreq: intel_pstate: Change P-state selection algorithm for Core

2016-08-06 Thread Rafael J. Wysocki
On Wednesday, August 03, 2016 11:53:23 PM Doug Smythies wrote: > On 2016.08.03 21:19 Doug Smythies wrote: > > Re-sending without the previously attached graph. > > Hi Rafael, > > Hope this feedback and test results help. > > On 2016.07.31 16:49 Rafael J. Wysocki wrote: > > > The PID-base P-sta

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-06 Thread John Stultz
On Mon, Aug 1, 2016 at 3:26 AM, Jon Hunter wrote: > Hi John, > > On 30/07/16 05:39, John Stultz wrote: >> Hey Jon, >> So after rebasing my nexus7 patch stack onto pre-4.8-rc1 tree, I >> noticed the power/volume buttons stopped working. >> >> I did a manual rebased bisection and chased it down to

[PATCH v2 13/14] net: ethernet: ti: cpsw: move napi struct to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The napi structs are common for both net devices in dual_emac mode, In order to not hold duplicate links to them, move to cpsw_common. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 50 +++--- 1 file changed, 22 insertions(+), 28 deletions

[PATCH v2 12/14] net: ethernet: ti: cpsw: fix int dbg message

2016-08-06 Thread Ivan Khoronzhuk
While poll handlers there is no possibility to figure out which network device is handling packets, as cpdma channels are common for both network devices in dual_emac mode. Currently, the messages are printed only for one device, in fact, there is two. So, better to print integrated num_tx value fo

Re: [PATCH v3] Coccinelle: Script to replace NULL test with IS_ERR test for devm_ioremap_resource

2016-08-06 Thread SF Markus Elfring
> +@err depends on context || org || report@ > +statement S; > +expression e; > +position j0; How do you think about to omit the number from this variable name? > +@@ > + > + e = devm_ioremap_resource(...); > +* if (!e@j0) S Are there any more functions to consider for such a source code searc

Re: [GIT PULL] platform-drivers-x86 for 4.8-2

2016-08-06 Thread Linus Torvalds
On Fri, Aug 5, 2016 at 6:51 PM, Darren Hart wrote: > > Minor platform specific event handling updates and a Kconfig cleanup. No. You already sent a *different* copy of all of these except for the dell-wmi one in a previous pull requests. This pull request gets me four new commits, but three of t

[PATCH v2 06/14] net: ethernet: ti: cpsw: create common struct to hold shared driver data

2016-08-06 Thread Ivan Khoronzhuk
This patch simply create holder for common data and as a start moves pdev var to it. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 62 ++ 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b

[PATCH v2 01/14] net: ethernet: ti: cpsw: simplify submit routine

2016-08-06 Thread Ivan Khoronzhuk
As second net dev is created only in case of dual_emac mode, port number can be figured out in simpler way. Also no need to pass redundant ndev struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) dif

Re: [PATCH v4 0/6] power: add power sequence library

2016-08-06 Thread Oscar
El 2016-08-02 05:30, Peter Chen escribió: Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2], I use a generic power sequence library for parsing the power sequence elements on DT, and implement generic power s

Re: [PATCH] asus-laptop: get rid of parse_arg()

2016-08-06 Thread Giedrius Statkevičius
On Fri, Aug 05, 2016 at 04:15:07PM -0700, Darren Hart wrote: > On Fri, Aug 05, 2016 at 11:57:10PM +0300, Giedrius Statkevičius wrote: > > parse_arg() duplicates the funcionality of kstrtoint() so use the latter > > function instead. There is no funcionality change except that in the > > case of inp

Re: [RFC][PATCH 5/7] cpufreq / sched: UUF_IO flag to indicate iowait condition

2016-08-06 Thread Rafael J. Wysocki
On Thursday, August 04, 2016 03:09:08 PM Steve Muckle wrote: > On Thu, Aug 04, 2016 at 11:19:00PM +0200, Rafael J. Wysocki wrote: [cut] > > > This is also an issue for the remote wakeup case where I currently have > > > another invocation of the hook in check_preempt_curr(), so I can know if > >

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-06 Thread Arnd Bergmann
On Saturday, August 6, 2016 2:17:16 PM CEST Nicholas Piggin wrote: > On Fri, 05 Aug 2016 21:16:00 +0200 > Arnd Bergmann wrote: > > > On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > > > b/include/asm-generic/vm

Re: [RFC PATCH] softirq: fix tasklet_kill() usage and users

2016-08-06 Thread Santosh Shilimkar
ping !! On 8/1/2016 9:13 PM, Santosh Shilimkar wrote: Semantically the expectation from the tasklet init/kill API should be as below. tasklet_init() == Init and Enable scheduling tasklet_kill() == Disable scheduling and Destroy tasklet_init() API exibit above behavior but not the tasklet_kill(

[PATCH] Staging: wlan-ng: fixed "block comments" warnings

2016-08-06 Thread Claudiu Beznea
This patch fix "block comments use *" warning returned by checkpatch.pl script. Signed-off-by: Claudiu Beznea --- drivers/staging/wlan-ng/hfa384x.h | 234 +++-- drivers/staging/wlan-ng/hfa384x_usb.c | 172 drivers/staging/wlan-ng/p80211n

[PATCH] Added perf functionality to mmdc driver

2016-08-06 Thread Zhengyu Shen
$ perf stat -e mmdc/busy-cycles/,mmdc/read-accesses/,mmdc/read-bytes/,mmdc/total-cycles/,mmdc/write-accesses/,mmdc/write-bytes/ dd if=/dev/zero of=/dev/null bs=1M count=5000 Performance counter stats for 'dd if=/dev/zero of=/dev/null bs=1M count=5000': 898021787 mmdc/busy-cycles/

Re: [PATCH v3 4/9] usb: gadget: f_midi: defaults buflen sizes to 512

2016-08-06 Thread Michal Nazarewicz
On Fri, Aug 05 2016, Felipe F. Tonello wrote: > 512 is the value used by wMaxPacketSize, as specified by the USB Spec. This > makes sure this driver uses, by default, the most optimal value for IN and OUT > endpoint requests. > > Signed-off-by: Felipe F. Tonello Acked-by: Michal Nazarewicz > --

Re: perf test BPF failing on f24: fix

2016-08-06 Thread Masami Hiramatsu
On Fri, 5 Aug 2016 11:35:32 -0300 Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 05, 2016 at 06:45:50PM +0900, Masami Hiramatsu escreveu: > > On Thu, 4 Aug 2016 18:47:24 -0300 > > Arnaldo Carvalho de Melo wrote: > > > > > Em Thu, Aug 04, 2016 at 04:36:56PM -0300, Arnaldo Carvalho de Melo > > >

Re: [PATCH 3/6] fs: befs: remove useless initialization to zero

2016-08-06 Thread Salah Triki
On Mon, Aug 01, 2016 at 02:44:18PM +0100, Luis de Bethencourt wrote: > On 31/07/16 21:34, Salah Triki wrote: > > node_off is unconditionally set to bt_super.root_node_ptr, so no need to > > init it to zero. > > > > Signed-off-by: Salah Triki > > --- > > fs/befs/btree.c | 2 +- > > 1 file changed

Re: [PATCH v2 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-08-06 Thread Peter Chen
On Fri, Aug 05, 2016 at 02:46:00PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-07-08 02:25:35) > > On Thu, Jul 07, 2016 at 03:20:57PM -0700, Stephen Boyd wrote: > > > The ULPI phy on qcom platforms needs to be initialized and > > > powered on after a USB reset and before we toggle the run

Re: [PATCH v2 2/2] befs: fix typo in befs_find_key

2016-08-06 Thread Salah Triki
On Fri, Aug 05, 2016 at 01:41:21PM +0100, Luis de Bethencourt wrote: > Fixing skeep to skip. > > Signed-off-by: Luis de Bethencourt > --- > fs/befs/btree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/befs/btree.c b/fs/befs/btree.c > index bc7efb0..784688c 100644

Re: [PATCH v2 08/22] usb: chipidea: Remove locking in ci_udc_start()

2016-08-06 Thread Peter Chen
On Fri, Aug 05, 2016 at 02:53:56PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-07-08 02:45:28) > > On Thu, Jul 07, 2016 at 03:20:59PM -0700, Stephen Boyd wrote: > > > We don't call hw_device_reset() with the ci->lock held, so it > > > doesn't seem like this lock here is protecting anythin

Re: [PATCH v2 1/2] befs: remove unused BEFS_BT_MATCH

2016-08-06 Thread Salah Triki
On Fri, Aug 05, 2016 at 01:41:20PM +0100, Luis de Bethencourt wrote: > befs_btree_find(), the only caller of befs_find_key(), only cares about if > the return from that function is BEFS_BT_MATCH or not. It never uses the > partial match given with BEFS_BT_MATCH. Removing that return and don't set >

core.c:undefined reference to `fpu_save'

2016-08-06 Thread kbuild test robot
Hi Andrew, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cbbc422d56668528f6efd1234fe908010284082 commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h d

[GIT PULL] first round of SCSI updates for the 4.7+ merge window

2016-08-06 Thread James Bottomley
This is seven basic fixes (plus one MAINTAINERS update) which came in close to the merge window. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-misc The short changelog is: Brian King (1): ipr: Wait to do async scan until scsi host is initial

Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey

2016-08-06 Thread Rob Herring
On Fri, Aug 5, 2016 at 7:46 AM, Vladimir Zapolskiy wrote: > Hi John, > > On 08/04/2016 02:05 AM, John Stultz wrote: >> >> Now that Andy's reboot reason core driver has landed, I wanted >> to resubmit a reworked version of my SRAM based reboot reason >> driver. >> >> This allows the kernel to commu

Re: [PATCH] x86/power/64: Do not refer to __PAGE_OFFSET from assembly code

2016-08-06 Thread Rafael J. Wysocki
On Friday, August 05, 2016 08:21:31 AM Thomas Garnier wrote: > On Fri, Aug 5, 2016 at 7:44 AM, Rafael J. Wysocki wrote: > > On Friday, August 05, 2016 12:37:13 PM Pavel Machek wrote: > >> On Wed 2016-08-03 01:19:26, Rafael J. Wysocki wrote: > >> > From: Rafael J. Wysocki > >> > > >> > When CONFIG

Re: [PATCH v3 1/9] usb: gadget: fix usb_ep_align_maybe endianness and new usb_ep_align

2016-08-06 Thread Michal Nazarewicz
On Fri, Aug 05 2016, Felipe F. Tonello wrote: > USB spec specifies wMaxPacketSize to be little endian (as other properties), > so when using this variable in the driver we should convert to the current > CPU endianness if necessary. > > This patch also introduces usb_ep_align() which does always re

[PATCH v2] clocksource: Defer override invalidation unless clock is unstable

2016-08-06 Thread Kyle Walker
Clocksources don't get the VALID_FOR_HRES flag until they have been checked by a watchdog. However, when using an override, the clocksource_select logic will clear the override value if the clocksource is not marked VALID_FOR_HRES during that inititial check. When using the boot arguments clocksour

Re: [PATCH v3 2/3] drm: Add API for capturing frame CRCs

2016-08-06 Thread Daniel Stone
Hi Tomeu, On 22 July 2016 at 15:10, Tomeu Vizoso wrote: > +/** > + * DOC: CRC ABI > + * > + * DRM device drivers can provide to userspace CRC information of each frame > as > + * it reached a given hardware component (a "source"). > + * > + * Userspace can control generation of CRCs in a given C

[PATCH] Map in physical addresses in efi_map_region_fixed

2016-08-06 Thread Alex Thorlton
This is a simple change to add in the physical mappings as well as the virtual mappings in efi_map_region_fixed. The motivation here is to get access to EFI runtime code that is only available via the 1:1 mappings on a kexec'd kernel. The added call is essentially the kexec analog of the first __

Re: [PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support

2016-08-06 Thread kbuild test robot
Hi Matthias, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.7] [cannot apply to next-20160805] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Matthias-Brugger/arm64-

Regression: commit 12549e2 clocksource/drivers/time-armada-370-xp: Convert init function to return error

2016-08-06 Thread Ralph Sennhauser
Dear list, dear Daniel Commit 12549e27c63c61d76bb059bfafce0a4ee05c7e90 breaks booting a Linksys WRT1900ACS for me. I filed bug [1] and John Stultz asked me to get the lists and in particular the author of the commit Daniel Lezcano's attention. More details in the original report [1]. Regards Ralp

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Josh Poimboeuf
On Sat, Aug 06, 2016 at 09:15:30AM -0400, Brian Gerst wrote: > On Sat, Aug 6, 2016 at 1:25 AM, Borislav Petkov wrote: > > On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: > >> The 8 should be changed to SIZEOF_PTREGS in a later patch > >> ("x86/asm/head: standardize the end of the s

Re: [PATCH v2 03/44] x86/asm/head: rename 'stack_start' -> 'initial_stack'

2016-08-06 Thread Borislav Petkov
On Fri, Aug 05, 2016 at 11:01:57AM -0500, Josh Poimboeuf wrote: > The 8 should be changed to SIZEOF_PTREGS in a later patch > ("x86/asm/head: standardize the end of the stack for idle tasks"). But SIZEOF_PTREGS is 21*8. I don't understand. -- Regards/Gruss, Boris. ECO tip #101: Trim your ma

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-06 Thread Nicholas Piggin
On Fri, 05 Aug 2016 21:16:00 +0200 Arnd Bergmann wrote: > On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > > b/include/asm-generic/vmlinux.lds.h > > > index 0ec807d69f18..7a3ad269fa23 100644 > > > --- a/include/asm

Re: [lkdtm] 9a49a528dc: WARNING: CPU: 0 PID: 404 at kernel/trace/ftrace.c:2005 ftrace_bug

2016-08-06 Thread Kees Cook
; > git bisect start 5eb7f58ccb08a2822f20afb2f4341474e1dece30 > 523d939ef98fd712632d93a5a2b588e477a7565e -- > git bisect bad 3b760b613b1536578a4576a73e9ba9ac359d3dfd # 15:06151- > 59 Merge > 'linux-review/Wei-Yongjun/IB-core-Fix-possible-memory-leak-in-cma_resolve_iboe_route/20

  1   2   >