[PATCH v6 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-19 Thread Brendan Higgins
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Reviewed-by: Joel Stanley Tested-by: Tomer Maimon Tested-by: Avi Fishman --- ...

[PATCH v6 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-19 Thread Brendan Higgins
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Brendan Higgins --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-npcm/Kconfig | 48 arch/arm/mach-npcm/Makefile | 3 ++ arch/arm/mach-npcm/headsmp.S | 17 +++

[PATCH v6 0/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-19 Thread Brendan Higgins
Addressed comments from: - Rob: https://www.spinics.net/lists/arm-kernel/msg606616.html Changes since previous update: - Addressed some device tree issues pointed out by Rob. - No changes to mach-npcm since v5 - No changes to MAINTAINERS since v5 Changes have been tested on the NPCM750 ev

[PATCH v6 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2017-09-19 Thread Brendan Higgins
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44cb004c765d..ec0d35384a16 10064

Re: [PATCH 2/2] mm: oom: show unreclaimable slab info when kernel panic

2017-09-19 Thread David Rientjes
On Wed, 20 Sep 2017, Yang Shi wrote: > > > --- a/mm/slab_common.c > > > +++ b/mm/slab_common.c > > > @@ -35,6 +35,8 @@ > > > static DECLARE_WORK(slab_caches_to_rcu_destroy_work, > > > slab_caches_to_rcu_destroy_workfn); > > > +#define K(x) ((x)/1024) > > > + > > > /* >

Re: [PATCH V3 8/8] drivers: boot_constraint: Add Qualcomm display controller constraints

2017-09-19 Thread Viresh Kumar
On 04-09-17, 18:25, Pavel Machek wrote: > Hmm. I know this is not for merge, but should this go to device tree > somewhere? Eventually yes. It should come from the boot loader in some way, which includes DT, ACPI, etc. This is just trying to get the core in first and once we have it merged, we c

Re: [PATCH V3 1/8] drivers: Add boot constraints core

2017-09-19 Thread Viresh Kumar
On 04-09-17, 11:38, Greg Kroah-Hartman wrote: > On Mon, Sep 04, 2017 at 11:15:47AM +0200, Viresh Kumar wrote: > > On 29-08-17, 14:03, Greg Kroah-Hartman wrote: > > > Who couldn't reach an agreement? > > > > Rob Herring (DT Maintainer) didn't like the first set of bindings and wasn't > > convinced

Re: [PATCH] net: ethernet: aquantia: default to no in config

2017-09-19 Thread David Miller
From: Vito Caputo Date: Tue, 19 Sep 2017 15:43:15 -0700 > NET_VENDOR_AQUANTIA was "default y" for some reason, which seems > obviously inappropriate. It is appropriate. We make all vendor guards default to yes.

Re: [PATCH v3] membarrier: Document scheduler barrier requirements

2017-09-19 Thread Paul E. McKenney
On Tue, Sep 19, 2017 at 06:02:05PM -0400, Mathieu Desnoyers wrote: > Document the membarrier requirement on having a full memory barrier in > __schedule() after coming from user-space, before storing to rq->curr. > It is provided by smp_mb__after_spinlock() in __schedule(). > > Document that memba

Re: [PATCH 0/7] PM / OPP: per OPP node clock support and imx7ulp cpufreq driver

2017-09-19 Thread Viresh Kumar
On 11-09-17, 15:28, Dong Aisheng wrote: > Do you have any comments about this series? I wasn't around for last 3-4 weeks and so couldn't get to these. -- viresh

Re: [PATCH] net: ethernet: aquantia: default to no in config

2017-09-19 Thread vcaputo
On Tue, Sep 19, 2017 at 03:52:31PM -0700, David Miller wrote: > From: Vito Caputo > Date: Tue, 19 Sep 2017 15:43:15 -0700 > > > NET_VENDOR_AQUANTIA was "default y" for some reason, which seems > > obviously inappropriate. > > It is appropriate. > > We make all vendor guards default to yes. Tha

Re: [PATCH 1/7] PM / OPP: Add platform specific set_clk function

2017-09-19 Thread Viresh Kumar
On 24-08-17, 00:10, Dong Aisheng wrote: > This is useful to support platforms which only the clk setting is > different from the generic OPP set rate but others like voltage > setting are still the same. > > Users can use this function to register a custom OPP set clk helper > working in place of

Re: [PATCH] memory-barriers.txt: Fix typo in pairing example

2017-09-19 Thread Paul E. McKenney
On Wed, Sep 20, 2017 at 02:16:00AM +0800, Scott Tsai wrote: > In the "general barrier pairing with implicit control depdendency" > example, the last write by CPU 1 was meant to change variable x and not > y. The example would be pretty uninteresting if no CPU ever changes x > and the variable was i

Re: [PATCH] net: ethernet: aquantia: default to no in config

2017-09-19 Thread David Miller
From: vcap...@pengaru.com Date: Tue, 19 Sep 2017 16:02:49 -0700 > Out of curiosity, what's the rationale for that decision? So that you don't need to know what special vendor knob needs to be switched in order to even be offered the config knob for the driver you are interested in.

Re: [PATCH 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-19 Thread Sean Paul
On Thu, Sep 14, 2017 at 11:43:23AM +0800, Sandy Huang wrote: > Like rockchip rv1108 crtc can directly output parallel and serial > RGB data to panel or conversion chip, so we add this driver to > probe encoder and connector. > > Signed-off-by: Sandy Huang > --- > drivers/gpu/drm/rockchip/Kconfig

Re: [PATCH 3/3] drm/rockchip: vop: Add more RGB output interface type

2017-09-19 Thread Sean Paul
On Thu, Sep 14, 2017 at 11:43:28AM +0800, Sandy Huang wrote: > This patch add serial RGB output interface for rockchip vop, the > more info about serial RGB output interface described at the > following file: > > Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt > > Signed-off-b

Re: [PATCH 2/2] mm: oom: show unreclaimable slab info when kernel panic

2017-09-19 Thread Yang Shi
On 9/19/17 3:41 PM, David Rientjes wrote: On Wed, 20 Sep 2017, Yang Shi wrote: --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -35,6 +35,8 @@ static DECLARE_WORK(slab_caches_to_rcu_destroy_work, slab_caches_to_rcu_destroy_workfn); +#define K(x) ((x)/1024) + /*

Re: [PATCH net-next 0/4] net: dsa: move master ethtool code

2017-09-19 Thread David Miller
From: Florian Fainelli Date: Tue, 19 Sep 2017 13:04:56 -0700 > On 09/19/2017 08:56 AM, Vivien Didelot wrote: >> The DSA core overrides the master device's ethtool_ops structure so that >> it can inject statistics and such of its dedicated switch CPU port. >> >> This ethtool code is currently cal

Re: [PATCH V2 net 0/7] Bug fixes for the HNS3 Ethernet Driver for Hip08 SoC

2017-09-19 Thread David Miller
From: Salil Mehta Date: Tue, 19 Sep 2017 17:17:09 +0100 > This patch set presents some bug fixes for the HNS3 Ethernet driver identified > during internal testing & stabilization efforts. > > Change Log: > Patch V2: Resolved comments from Leon Romanovsky > Patch V1: Initial Submit Series applie

Re: [PATCH 6/7] cpufreq: make cpufreq_generic_init transition_latency default to CPUFREQ_ETERNAL

2017-09-19 Thread Viresh Kumar
On 24-08-17, 00:10, Dong Aisheng wrote: > If no valid transition_latency specified, let's make it default to > CPUFREQ_ETERNAL which is consistent with its definition. > > This can save some of the same checkings like this: > transition_latency = dev_pm_opp_get_max_transition_latency(cpu_d

[PATCH 6/5] x86/intel_rdt: Add documentation for "info/last_cmd_status"

2017-09-19 Thread Luck, Tony
From: Tony Luck New file in the "info" directory helps diagnose what went wrong when using the /sys/fs/resctrl file system Signed-off-by: Tony Luck --- Oops ... forgot the Documentation ... here it is. Documentation/x86/intel_rdt_ui.txt | 11 +++ 1 file changed, 11 insertions(+) diff

Re: [GIT PULL] brown paper bag fix for SIGPOLL si_codes

2017-09-19 Thread Eric W. Biederman
Vince Weaver writes: > On Tue, 19 Sep 2017, Eric W. Biederman wrote: > >> When sorting out the si_code ambiguity fcntl I accidentally overshot and >> included SIGPOLL as well. Ooops! This is my trivial fix for that. >> >> Vince Weaver caught this when it landed in your tree with his >> perf_ev

DAX error inject/page poison

2017-09-19 Thread Mike Kravetz
We were trying to simulate pmem errors in an environment where a DAX filesystem is used (ext4 although I suspect it does not matter). The sequence attempted on a DAX filesystem is: - Populate a file in the DAX filesystem - mmap the file - madvise(MADV_HWPOISON) The madvise operation fails with E

Re: Filter option should follow a tracer option

2017-09-19 Thread Kim Phillips
On Wed, 23 Aug 2017 10:22:51 -0300 Arnaldo Carvalho de Melo wrote: Hi Arnaldo, [adding tools/perf/util/evsel.c maintainers to cc] > Em Wed, Aug 23, 2017 at 02:11:16PM +0200, Jack Henschel escreveu: > > > Adrian Hunter hat am 23. August 2017 um 12:33 > > > geschrieben: > > > On 23/08/17 11:51,

Re: Read-only `slaves` with shared subtrees?

2017-09-19 Thread Dawid Ciezarkiewicz
On Mon, Sep 18, 2017 at 1:47 PM, Ram Pai wrote: > It is possible to make a slave mount readonly, by remounting it with > 'ro' flags. > > something like > > mount -o bind,remount,ro > > Any mount-propagation events reaching a read-only-slave does > inherit the slave attribute. However it does not

Re: [patch net-next] team: fall back to hash if table entry is empty

2017-09-19 Thread David Miller
From: Jim Hanko Date: Tue, 19 Sep 2017 11:33:39 -0700 > If the hash to port mapping table does not have a valid port (i.e. when > a port goes down), fall back to the simple hashing mechanism to avoid > dropping packets. > > Signed-off-by: Jim Hanko > Acked-by: Jiri Pirko Applied, thanks.

[PATCH] MAINTAINERS: add backup maintainer

2017-09-19 Thread Alan Tull
Add Moritz as a maintainer of the kernel FGPGA framework. Signed-off-by: Alan Tull --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b87c6989e82d..2d3d855ee6e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5441,7 +5441,7 @@ K:

[PATCH] ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-09-19 Thread Brian Norris
For devices where the FW supports WoWLAN but user-space has not configured it, we don't do any PCI-specific suspend/resume operations, because mac80211 doesn't call drv_suspend() when !wowlan. This has particularly bad effects for some platforms, because we don't stop the power-save timer, and if t

Re: linux-next: error while fetching the microblaze tree

2017-09-19 Thread Stephen Rothwell
Hi Michal, On Thu, 7 Jan 2016 09:38:56 +1100 Stephen Rothwell wrote: > > Fetching the microblaze tree > (git://git.monstr.eu/linux-2.6-microblaze.git#next) produces this error. > > fatal: read error: Connection reset by peer > > I will use the previously fetched version for today. I have been

[PATCH] MAINTAINERS: add backup maintainer

2017-09-19 Thread Alan Tull
Add Moritz as a maintainer of the kernel FPGA framework. Signed-off-by: Alan Tull --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b87c6989e82d..2d3d855ee6e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5441,7 +5441,7 @@ K:

Re: [PATCH] MAINTAINERS: add backup maintainer

2017-09-19 Thread Alan Tull
On Tue, Sep 19, 2017 at 6:24 PM, Alan Tull wrote: > Add Moritz as a maintainer of the kernel FGPGA framework. Argh! I fixed this and then didn't do 'git format-patch' to regenerate the patch! Resending... Alan > > Signed-off-by: Alan Tull > --- > MAINTAINERS | 2 +- > 1 file changed, 1 inser

Re: [PATCH] isdn/i4l: check the message proto does not change across fetches

2017-09-19 Thread David Miller
From: Meng Xu Date: Tue, 19 Sep 2017 14:52:58 -0400 > In isdn_ppp_write(), the header (i.e., protobuf) of the buffer is fetched > twice from userspace. The first fetch is used to peek at the protocol > of the message and reset the huptimer if necessary; while the second > fetch copies in the whol

Re: [PATCH] MAINTAINERS: add backup maintainer

2017-09-19 Thread Moritz Fischer
Hi Alan, On Tue, Sep 19, 2017 at 06:25:06PM -0500, Alan Tull wrote: > Add Moritz as a maintainer of the kernel FPGA framework. > > Signed-off-by: Alan Tull Acked-by: Moritz Fischer > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINT

Re: [PATCH v7] PCI: Workaround wrong flags completions for IDT switch

2017-09-19 Thread Sinan Kaya
On 9/18/2017 4:05 PM, James Puthukattukaran wrote: > Subject: [PATCH v7] PCI: Workaround wrong flags completions for IDT switch > From: James Puthukattukaran > > The IDT switch incorrectly flags an ACS source violation on a read config > request to an end point device on the completion (IDT 89H32

[GIT PULL] SCSI fixes for 4.14-rc1

2017-09-19 Thread James Bottomley
This is a set of five small fixes: one is a null deref fix which is pretty critical for the fc transport class and one fixes a potential security issue of sg leaking kernel information. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short

[PATCH v3 4/6] x86, asm/rwsem: Use named operands in __up_read()

2017-09-19 Thread Miguel Bernal Marin
Since GCC version 3.1, it is possible to specify input and output operands using symbolic names which can be referenced within the assembler code. Convert to named operands makes easy to understand and maintain for future changes. Signed-off-by: Miguel Bernal Marin --- arch/x86/include/asm/rwse

[PATCH v3 1/6] locking/rwsem/x86: Add stack frame dependency for __up_read()

2017-09-19 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: up_read()+0x11: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __up_read() inline asm (and its call instruction) before the frame pointer setup in up_read(), which breaks frame pointer convention and can result in incorrect s

[PATCH v3 5/6] x86, asm/rwsem: Use named operands in __up_write()

2017-09-19 Thread Miguel Bernal Marin
Since GCC version 3.1, it is possible to specify input and output operands using symbolic names which can be referenced within the assembler code. Convert to named operands makes easy to understand and maintain for future changes. Signed-off-by: Miguel Bernal Marin --- arch/x86/include/asm/rwse

[PATCH v3 3/6] locking/rwsem/x86: Add stack frame dependency for __downgrade_write()

2017-09-19 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: downgrade_write()+0x22: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __downgrade_write() inline asm (and its call instruction) before the frame pointer setup in downgrade_write(), which breaks frame pointer convention and c

[PATCH v3 6/6] x86, asm/rwsem: Use named operands in __downgrade_write()

2017-09-19 Thread Miguel Bernal Marin
Since GCC version 3.1, it is possible to specify input and output operands using symbolic names which can be referenced within the assembler code. Convert to named operands makes easy to understand and maintain for future changes. Signed-off-by: Miguel Bernal Marin --- arch/x86/include/asm/rwse

[PATCH v3 2/6] locking/rwsem/x86: Add stack frame dependency for __up_write()

2017-09-19 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: up_write()+0x17: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __up_write() inline asm (and its call instruction) before the frame pointer setup in up_write(), which breaks frame pointer convention and can result in incorrec

[PATCH v3 0/6] locking/rwsem/x86: Add stack frame dependency for some inline asm

2017-09-19 Thread Miguel Bernal Marin
Some warning were showed by objtool using gcc 7.2.0 kernel/locking/rwsem.o: warning: objtool: up_read()+0x11: call without frame pointer save/setup kernel/locking/rwsem.o: warning: objtool: up_write()+0x17: call without frame pointer save/setup kernel/locking/rwsem.o: warning: objtool: downgrade

Development Setup

2017-09-19 Thread sdnlabs Janakaraj
Dear all, I am new a newbie, I am curious to know what development tools with Ubuntu as Host OS, will best fit for people entering into linux kernel development focusing on Netlink, Netdev and Wireless MAC. I have read many blogs describing the basic setup and things like that. But I felt input f

Re: DAX error inject/page poison

2017-09-19 Thread Dan Williams
On Tue, Sep 19, 2017 at 4:15 PM, Mike Kravetz wrote: > > We were trying to simulate pmem errors in an environment where a DAX > filesystem is used (ext4 although I suspect it does not matter). The > sequence attempted on a DAX filesystem is: > - Populate a file in the DAX filesystem > - mmap the

RE: [RFC] watchdog: iTCO_wdt: Introduce panic_on_timeout module param

2017-09-19 Thread Julius Hemanth Pitti -X (jpitti - MONTA VISTA SOFTWARE INC at Cisco)
Hi Philip, I learned about "unknown_nmi_panic", which servers the same purpose, hence I stopped working on this patch. BTW, I tested it on Xeon C3539 and Xeon L5238. -Original Message- From: Philip Prindeville [mailto:philipp_s...@redfish-solutions.com] Sent: Monday, September 18, 201

Re: Regression in virtio block driver with 4.13.2

2017-09-19 Thread Laura Abbott
On 09/17/2017 04:57 PM, Christoph Hellwig wrote: On Sat, Sep 16, 2017 at 04:16:06PM -0700, Laura Abbott wrote: Yes, the issue goes away when CONFIG_VIRTIO_BLK_SCSI is disabled. Ok, so it's probably related to follow ups to the scsi_request split. That being said, I would highly recommend tur

Re: [PATCH] of: overlay: Fix uninitialized vars in dup_and_fixup_symbol_prop()

2017-09-19 Thread Frank Rowand
On 09/19/17 13:16, Geert Uytterhoeven wrote: > Hi Frank, > > On Tue, Sep 19, 2017 at 8:27 PM, Frank Rowand wrote: >> On 09/10/17 03:26, Geert Uytterhoeven wrote: >>> With gcc 4.1.2: >>> >>> drivers/of/overlay.c: In function ‘dup_and_fixup_symbol_prop’: >>> drivers/of/overlay.c:108: warnin

Re: [PATCH] reset: Restrict RESET_HSDK_V1 to ARC_SOC_HSDK or COMPILE_TEST

2017-09-19 Thread Vineet Gupta
On 09/11/2017 05:22 AM, Geert Uytterhoeven wrote: The HSDK reset driver is only useful when building for an ARC HSDK platform. While at it, drop the "default n", as that is the default. Fixes: e0be864f14240cb1 ("ARC: reset: introduce HSDKv1 reset driver") Signed-off-by: Geert Uytterhoeven ---

Re: [PATCH 2/2] tee: optee: allow selection of ti-smc as a calling method

2017-09-19 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc1 next-20170919] [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/Andrew-F-Davis/ARM-smccc-call-Use-r12-to

Re: [regression 4.14rc] 74def747bcd0 (genirq: Restrict effective affinity to interrupts actually using it)

2017-09-19 Thread Chuck Ebbert
On Tue, 19 Sep 2017 16:51:06 +0100 Marc Zyngier wrote: > On 19/09/17 16:40, Yanko Kaneti wrote: > > On Tue, 2017-09-19 at 16:33 +0100, Marc Zyngier wrote: > >> On 19/09/17 16:12, Yanko Kaneti wrote: > >>> Hello, > >>> > >>> Fedora rawhide config here. > >>> AMD FX-8370E > >>> > >>> Bisected

[PATCH] PM: Document rules on using pm_runtime_resume() in system suspend callbacks

2017-09-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It quite often is necessary to resume devices from runtime suspend during system suspend for various reasons (for example, if their wakeup settings need to be changed), but that requires middle-layer or subsystem code to follow additional rules which currently are not clea

Re: [PATCH 2/2] tee: optee: allow selection of ti-smc as a calling method

2017-09-19 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc1 next-20170919] [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/Andrew-F-Davis/ARM-smccc-call-Use-r12-to

Re: [PATCH 0/5] [RFC] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-19 Thread Sergey Senozhatsky
On (09/19/17 22:03), Helge Deller wrote: [..] > Your implementation of dereference_module_function_descriptor() in > arch/parisc/kernel/module.c is faulty. > mod->arch.fdesc_offset is relative to the base address of the module, > so you need to add to mod->core_layout.base. aha, got it. I should h

[PATCH v2 0/3] x86/fpu: prevent leaking FPU registers via invalid FPU state

2017-09-19 Thread Eric Biggers
From: Eric Biggers This is a second attempt to fix the bug found by syzkaller where the ptrace syscall can be used to set invalid bits in a task's FPU state. I also found that an equivalent bug was reachable using the sigreturn syscall, so the first patch fixes the bug in both cases. The other t

[PATCH v2 1/3] x86/fpu: don't let userspace set bogus xcomp_bv

2017-09-19 Thread Eric Biggers
From: Eric Biggers On x86, userspace can use the ptrace() or rt_sigreturn() system calls to set a task's extended state (xstate) or "FPU" registers. ptrace() can set them for any task using the PTRACE_SETREGSET request with NT_X86_XSTATE, while rt_sigreturn() can set them for the current task. I

[PATCH v2 3/3] x86/fpu: reinitialize FPU registers if restoring FPU state fails

2017-09-19 Thread Eric Biggers
From: Eric Biggers Userspace can change the FPU state of a task using the ptrace() or rt_sigreturn() system calls. Because reserved bits in the FPU state can cause the XRSTOR instruction to fail, the kernel has to carefully validate that no reserved bits or other invalid values are being set. U

[PATCH v2 2/3] x86/fpu: tighten validation of user-supplied xstate_header

2017-09-19 Thread Eric Biggers
From: Eric Biggers Move validation of user-supplied xstate_headers into a helper function and call it from both the ptrace and sigreturn syscall paths. The new function also considers it to be an error if *any* reserved bits are set, whereas before we were just clearing most of them. This shoul

[no subject]

2017-09-19 Thread timothy.sodini
<>

[PATCH net-next] net: dsa: Utilize dsa_slave_dev_check()

2017-09-19 Thread Florian Fainelli
Instead of open coding the check. Signed-off-by: Florian Fainelli --- net/dsa/slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index d51b10450e1b..6fc9eb094267 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1294,7 +1294,7 @@ st

Re: [PATCH v2 2/2] staging: ion: create one device entry per heap

2017-09-19 Thread Laura Abbott
On 09/19/2017 04:55 AM, Benjamin Gaignard wrote: 2017-09-19 13:02 GMT+02:00 Greg KH : On Tue, Sep 19, 2017 at 12:25:38PM +0200, Benjamin Gaignard wrote: Instead a getting one common device "/dev/ion" for all the heaps this patch allow to create one device entry ("/dev/ionX") per heap. Getting a

Re: [tip:timers/core] kselftests: timers: set-timer-lat: Tweak reporting when timer fires early

2017-09-19 Thread Shuah Khan
Hi Greg, On 08/20/2017 03:56 AM, tip-bot for Greg Hackmann wrote: > Commit-ID: a524b1184b8e86141d689fa78ad150fbf2db9b4c > Gitweb: http://git.kernel.org/tip/a524b1184b8e86141d689fa78ad150fbf2db9b4c > Author: Greg Hackmann > AuthorDate: Tue, 25 Jul 2017 14:36:25 -0700 > Committer: John St

Re: [PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-19 Thread CK Hu
Hi, Ryder: Mode comment inline. On Tue, 2017-09-19 at 14:27 +0800, Ryder Lee wrote: > This patch adds the device nodes for the display function block. > Also, we add some missing pin macros in mt7623-pinfunc.h. > > Signed-off-by: Ryder Lee > CC: Linus Walleij > Acked-by: Linus Walleij > --- >

linux-next: manual merge of the net-next tree with the driver-core.current tree

2017-09-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: lib/kobject_uevent.c between commit: 6878e7de6af7 ("driver core: suppress sending MODALIAS in UNBIND uevents") from the driver-core.current tree and commit: 16dff336b33d ("kobject: add kobject_uevent_net_broadcast(

Re: [PATCH 2/2] x86/asm: Fix inline asm call constraints for clang

2017-09-19 Thread Josh Poimboeuf
On Tue, Sep 19, 2017 at 01:45:28PM -0500, Josh Poimboeuf wrote: > For inline asm statements which have a CALL instruction, we list the > stack pointer as a constraint to convince GCC to ensure the frame > pointer is set up first: > > static inline void foo() > { > register void *__sp asm

Re: [kernel-hardening] Re: [PATCH v4] security/keys: rewrite all of big_key crypto

2017-09-19 Thread Theodore Ts'o
On Tue, Sep 19, 2017 at 03:04:29PM -0400, Sandy Harris wrote: > On the other hand, I do not see why the driver should not > use a FIPS-compliant PRNG where it can. This would make > things easier for anyone who does seek certification. One > of the big distro vendors? A gov't department or contract

[PATCH] ALSA: usb-audio: Add sample rate quirk for Plantronics C310/C520-M

2017-09-19 Thread Kai-Heng Feng
Like other Plantronics devices, C310 and C520-M do not support sample rate reading. Add them to the sample rate quirk accordingly. BugLink: https://bugs.launchpad.net/bugs/1708499 BugLink: https://bugs.launchpad.net/bugs/1709282 Signed-off-by: Kai-Heng Feng --- sound/usb/quirks.c | 2 ++ 1 file

[PATCH] siano: fix a potential integer overflow

2017-09-19 Thread Gustavo A. R. Silva
Add suffix ULL to constant 65535 in order to avoid a potential integer overflow. This constant is used in a context that expects an expression of type u64. Addresses-Coverity-ID: 1056806 Signed-off-by: Gustavo A. R. Silva --- drivers/media/common/siano/smsdvb-main.c | 2 +- 1 file changed, 1 ins

[PATCH] HID: hidraw: fix power sequence when closing device

2017-09-19 Thread Dmitry Torokhov
We should not try to bring HID device out of full power state before calling hid_hw_close(), so that transport driver operates on powered up device (making this inverse of the opening sequence). Signed-off-by: Dmitry Torokhov --- drivers/hid/hidraw.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 1/1] ARM: add stacktrace support for non current tasks on SMP

2017-09-19 Thread Zhen Lei
1. An invalid frame.xx can not lead kernel to crash, this should be guaranteed by function unwind_frame itself. Otherwise, walk the stack trace of current is also at risk. 2. There is no way to prevent the walked task becoming rq->curr during walk_stackframe. This means some entries traced maybe in

Re: [PATCH] block: move sanity checking ahead of bi_front/back_seg_size updating

2017-09-19 Thread jianchao.wang
On 09/19/2017 10:36 PM, Christoph Hellwig wrote: > On Tue, Sep 19, 2017 at 08:55:59AM +0800, jianchao.wang wrote: >>> But can you elaborate a little more on how this found and if there >>> is a way to easily reproduce it, say for a blktests test case? >>> >> It is found when I made the patch of

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2017-09-19 Thread Dmitry Torokhov
On Mon, Sep 11, 2017 at 4:29 PM, Benson Leung wrote: > Hi Oliver, > > On Mon, Sep 11, 2017 at 01:02:52PM -0700, Benson Leung wrote: >> Thanks for the pointer. I'll respin the patch with the no_resume version of >> usb_autopm_get_interface and retest. >> > > I went and tried this patch but with usb

Re: [PATCH v2 0/5] thermal: imx: Add nvmem-cells binding on imx6sx

2017-09-19 Thread Zhang Rui
On Thu, 2017-08-31 at 21:11 +0800, Zhang Rui wrote: > On Thu, 2017-08-31 at 16:48 +0800, Shawn Guo wrote: > > > > On Fri, Jul 14, 2017 at 05:11:05PM +0300, Leonard Crestez wrote: > > > > > > > > > Leonard Crestez (5): > > >   thermal: imx: Add nvmem-cells alternate binding for OCOTP > > > access

[RFC PATCH] fs: don't flush pagecahce when expanding block device

2017-09-19 Thread Shunki Fujita
I have a trouble with my service and have two questions and an RFC patch. I run a web service as follows. - Its data is on a multipath device which size is sometimes grown. - It uses many page caches - It's response time is usually about 0.2 s. When I grow the multipath device, kernel flushes th

Re: [PATCH] HID: hidraw: fix power sequence when closing device

2017-09-19 Thread Guenter Roeck
On Tue, Sep 19, 2017 at 6:37 PM, Dmitry Torokhov wrote: > We should not try to bring HID device out of full power state before > calling hid_hw_close(), so that transport driver operates on powered up > device (making this inverse of the opening sequence). > > Signed-off-by: Dmitry Torokhov Revi

Re: [PATCH 2/2] x86/asm: Fix inline asm call constraints for clang

2017-09-19 Thread Josh Poimboeuf
On Tue, Sep 19, 2017 at 03:25:59PM -0700, Alexander Potapenko wrote: > On Tue, Sep 19, 2017 at 2:55 PM, Alexander Potapenko > wrote: > > On Tue, Sep 19, 2017 at 11:45 AM, Josh Poimboeuf > > wrote: > >> For inline asm statements which have a CALL instruction, we list the > >> stack pointer as a

Re: [PATCH 1/4] watchdog: aspeed: Retain watchdog enabled state

2017-09-19 Thread Joel Stanley
On Mon, Sep 18, 2017 at 3:19 PM, Andrew Jeffery wrote: > An unintended post-condition of probe() is that the watchdog is > disabled. Rework probe() such that we retain the value of the "enabled" > bit from the control register, and take the appropriate actions with > respect to the watchdog core i

[PATCH] isdn/i4l: fetch the ppp_write buffer in one shot

2017-09-19 Thread Meng Xu
In isdn_ppp_write(), the header (i.e., protobuf) of the buffer is fetched twice from userspace. The first fetch is used to peek at the protocol of the message and reset the huptimer if necessary; while the second fetch copies in the whole buffer. However, given that buf resides in userspace memory,

Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-19 Thread Michael Ellerman
Sergey Senozhatsky writes: > On (09/19/17 20:22), Michael Ellerman wrote: >> > On 2017/09/16 12:53PM, Sergey Senozhatsky wrote: >> >> We are moving towards separate kernel and module function descriptor >> >> dereference callbacks. This patch enables it for powerpc64. >> >> >> >> For pointers th

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-19 Thread Sandy Huang
Hi rob, thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- .../bindings/display/rockchip/rockchip-rgb.txt | 80 +++

Re: [PATCH 6/6] fs-writeback: only allow one inflight and pending !nr_pages flush

2017-09-19 Thread Jens Axboe
On 09/19/2017 01:53 PM, Jens Axboe wrote: > @@ -948,15 +949,25 @@ static void wb_start_writeback(struct bdi_writeback > *wb, long nr_pages, > bool range_cyclic, enum wb_reason reason) > { > struct wb_writeback_work *work; > + bool zero_pages = false; > >

[lkp-robot] [drivers] ceed73a2cf: drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c:#suspicious_rcu_dereference_check()usage

2017-09-19 Thread kernel test robot
FYI, we noticed the following commit: commit: ceed73a2cf4aff2921802aa3d21d45280677547d ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu

linux-next: build failure after merge of the sound-asoc tree

2017-09-19 Thread Stephen Rothwell
'MODULE_DESCRIPTION' MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); ^ sound/soc/codecs/wm9712.c:741:1: error: expected declaration or statement at end of input MODULE_LICENSE("GPL"); ^ sound/soc/codecs/wm9712.c: At top level: sound/soc/codecs/wm9712.c:637:12: warning: 'wm9712_soc_probe' defined but not used [-Wunused-function] static int wm9712_soc_probe(struct snd_soc_codec *codec) ^ Caused by commit 2ed1a8e0ce8d ("ASoC: wm9712: add ac97 new bus support") I have used the sound-asoc tree from next-20170919 for today. -- Cheers, Stephen Rothwell

linux-next: manual merge of the devicetree tree with the rockchip and sunxi trees

2017-09-19 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/vendor-prefixes.txt between commit: 50544f39018f ("dt-bindings: Add vendor prefix for Amarula Solutions") from the rockchip tree, commit: 912620c02c31 ("dt-bindings: add vendor p

Re: [PATCH 1/4] watchdog: aspeed: Retain watchdog enabled state

2017-09-19 Thread Andrew Jeffery
On Wed, 2017-09-20 at 11:17 +0930, Joel Stanley wrote: > > On Mon, Sep 18, 2017 at 3:19 PM, Andrew Jeffery wrote: > > An unintended post-condition of probe() is that the watchdog is > > disabled. Rework probe() such that we retain the value of the "enabled" > > bit from the control register, and t

[PATCH] kbuild/mkspec: remove firmware from rpm package

2017-09-19 Thread shuwang
From: Shu Wang Commit 5620a0d1aacd ("firmware: delete in-kernel firmware") deleted in-kernel firmware support, including the firmware install command. So make binrpm-pkg will failed as no firmware_install make target. Signed-off-by: Shu Wang --- scripts/package/mkspec | 4 1 file changed

Re: [PATCH][drm-next] drm/i915/gvt: ensure -ve return value is handled correctly

2017-09-19 Thread Joe Perches
On Wed, 2017-09-20 at 05:46 +0800, Zhenyu Wang wrote: > On 2017.09.19 16:55:34 +0100, Colin King wrote: > > From: Colin Ian King > > > > An earlier fix changed the return type from find_bb_size however the > > integer return is being assigned to a unsigned int so the -ve error > > check will neve

Re: [PATCH] nvdimm: fix potential double-fetch bug

2017-09-19 Thread Meng Xu
Hi Jerry and Dan, Sorry for the late reply. I looked at this issue again and found that simple patches like memcmp(buf, in_env, in_len) && memcmp(buf + in_len, out_env, out_len) will only work in the case of (cmd == ND_CMD_CALL) and does not apply to other cmd. In fact, I fail to find a patch

[PATCH] ov9655: fix potential integer overflow

2017-09-19 Thread Gustavo A. R. Silva
Add suffix ULL to constant 1 rather than casting the result of the operation in order to avoid a potential integer overflow. This constant is used in a context that expects an expression of type u64. Addresses-Coverity-ID: 1324146 Signed-off-by: Gustavo A. R. Silva --- drivers/media/i2c/ov96

Re: [PATCH v5 05/10] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-09-19 Thread Rob Herring
On Thu, Sep 14, 2017 at 2:19 PM, Andrew Lunn wrote: >> > Is the MDIO controller "allwinner,sun8i-h3-emac" or "snps,dwmac-mdio"? >> > If the latter, then I think the node is fine, but then the mux should be >> > a child node of it. IOW, the child of an MDIO controller should either >> > be a mux no

Re: [PATCH v3 2/2] hwmon: (ltq-cputemp) add devicetree bindings documentation

2017-09-19 Thread Rob Herring
On Thu, Sep 14, 2017 at 2:06 AM, Florian Eckert wrote: > Hello Rob > > > + > > +Requires node properties: > > +- compatible value : > > + "lantiq,cputemp" Kind of non-specific. How is this device even accessed without any other property? >>> >>> >>> >>>

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-19 Thread Sandy Huang
在 2017/9/20 9:51, Sandy Huang 写道: Hi rob,     thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang ---   .../bindings/display/rockchip/roc

Re: [PATCH v2 0/3] x86/fpu: prevent leaking FPU registers via invalid FPU state

2017-09-19 Thread Kees Cook
On Tue, Sep 19, 2017 at 5:44 PM, Eric Biggers wrote: > From: Eric Biggers > > This is a second attempt to fix the bug found by syzkaller where the > ptrace syscall can be used to set invalid bits in a task's FPU state. > I also found that an equivalent bug was reachable using the sigreturn > sysc

Re: [PATCH 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-19 Thread Sandy Huang
Hi sean, Thanks for your review. 在 2017/9/20 7:02, Sean Paul 写道: On Thu, Sep 14, 2017 at 11:43:23AM +0800, Sandy Huang wrote: Like rockchip rv1108 crtc can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed

Re: Traceback due to 'powerpc/mm: Fix kernel RAM protection...' when running ppc image in qemu

2017-09-19 Thread Michael Ellerman
Guenter Roeck writes: > Hi, > > I see a the following traceback when running an SMP image based on > 85xx/mpc85xx_cds_defconfig in qemu. > > [ cut here ] > WARNING: CPU: 0 PID: 1 at kernel/smp.c:416 smp_call_function_many+0xcc/0x2fc > CPU: 0 PID: 1 Comm: swapper/0 Not tain

Re: [PATCH 6/6] fs-writeback: only allow one inflight and pending !nr_pages flush

2017-09-19 Thread Amir Goldstein
On Tue, Sep 19, 2017 at 10:53 PM, Jens Axboe wrote: > A few callers pass in nr_pages == 0 when they wakeup the flusher > threads, which means that the flusher should just flush everything > that was currently dirty. If we are tight on memory, we can get > tons of these queued from kswapd/vmscan. T

[PATCH] mpt3sas: downgrade full copy_from_user to access_ok check

2017-09-19 Thread Meng Xu
Since right after the user copy, we are going to memset(&karg, 0, sizeof(karg)), I guess an access_ok check is enough? Signed-off-by: Meng Xu --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_ctl.c b/drivers/s

[PATCH RESEND for-next] RDMA/hns: Delete the unnecessary initializing enum to zero

2017-09-19 Thread Wei Hu (Xavier)
It deletes the unnecessary initializing enum to zero. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Shaobo Xu Signed-off-by: Lijun Ou Reviewed-by: Leon Romanovsky --- This patch is based on the patchset as below: [PATCH for-next 00/20] RDMA/hns: Add hip08 RoCE driver support, the related link:

Re: [PATCH v2 3/3] x86/fpu: reinitialize FPU registers if restoring FPU state fails

2017-09-19 Thread Eric Biggers
On Tue, Sep 19, 2017 at 05:44:34PM -0700, Eric Biggers wrote: > +/* > + * We should never get here because the fpregs_state stored in 'struct fpu' > + * should always be readable and contain a valid FPU state. However, past > bugs > + * have allowed userspace to set reserved bits in the XSAVE are

Error when building the kernel on top of 4.14-rc1 for target firmware_install?

2017-09-19 Thread Yu Chen
Hi, kernel compile failed after running # make rpm + INSTALL_FW_PATH=/root/rpmbuild/BUILDROOT/kernel-4.14.0_rc1+-22.x86_64/lib/firmware/4.14.0-rc1+ + make INSTALL_FW_PATH=/root/rpmbuild/BUILDROOT/kernel-4.14.0_rc1+-22.x86_64/lib/firmware/4.14.0-rc1+ firmware_install make[2]: warning: jobserver u

Re: [tip:timers/core] kselftests: timers: set-timer-lat: Tweak reporting when timer fires early

2017-09-19 Thread John Stultz
On Tue, Sep 19, 2017 at 6:02 PM, Shuah Khan wrote: > Hi Greg, > > On 08/20/2017 03:56 AM, tip-bot for Greg Hackmann wrote: >> Commit-ID: a524b1184b8e86141d689fa78ad150fbf2db9b4c >> Gitweb: >> http://git.kernel.org/tip/a524b1184b8e86141d689fa78ad150fbf2db9b4c >> Author: Greg Hackmann >>

<    3   4   5   6   7   8   9   10   >