[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

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’: >>>

[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

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

[no subject]

2017-09-19 Thread timothy.sodini
<>

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

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 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 > --- >

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

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(-) >

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,

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 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 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

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

[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

[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

[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

[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

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:

[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

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

[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

[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

[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

[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

[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:

[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

[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

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

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

[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

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 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

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 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 > >

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

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

[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 @@

[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

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

Re: [PATCH 0/4] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-09-19 Thread Daniel Lezcano
On 19/09/2017 07:08, Andreas Färber wrote: > Hi Daniel, > > Am 18.09.2017 um 23:50 schrieb Daniel Lezcano: >> On 11/09/2017 04:22, Andreas Färber wrote: >>> Cc: devicet...@vger.kernel.org >>> Cc: Daniel Lezcano >>> Cc: Thomas Gleixner >>> >>>

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-19 Thread Mike Galbraith
On Tue, 2017-09-19 at 13:37 +0800, Boqun Feng wrote: > On Mon, Sep 18, 2017 at 09:04:56PM -0700, Paul E. McKenney wrote: > > On Tue, Sep 19, 2017 at 11:48:22AM +0900, Byungchul Park wrote: > > > On Mon, Sep 18, 2017 at 07:33:29PM -0700, Paul E. McKenney wrote: > > > > > > Hello Paul and Steven, >

Re: [PATCH v3 1/3] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-09-19 Thread Andrew Jeffery
On Mon, 2017-09-18 at 14:26 -0500, Rob Herring wrote: > On Fri, Sep 08, 2017 at 02:39:17PM +1000, Andrew Jeffery wrote: > > > > Signed-off-by: Andrew Jeffery > > --- > >  .../devicetree/bindings/hwmon/pmbus/max31785.txt   | 158 > > + > > I think this needs

Re: [PATCH 0/2] ARM: owl: Add CubieBoard6

2017-09-19 Thread Andreas Färber
Am 11.09.2017 um 02:58 schrieb Andreas Färber: > Andreas Färber (2): > dt-bindings: arm: actions: Add CubieBoard6 > ARM: dts: owl-s500: Add CubieBoard6 > > Documentation/devicetree/bindings/arm/actions.txt | 1 + > arch/arm/boot/dts/Makefile| 1 + >

Re: [PATCH 1/2] clocksource: stm32: rework driver to use only one timer

2017-09-19 Thread Benjamin Gaignard
2017-09-18 23:30 GMT+02:00 Daniel Lezcano : > On 14/09/2017 09:56, Benjamin Gaignard wrote: >> Rework driver code to use only one timer for both clocksource >> and clockevent. >> This patch also forbids to use 16 bits timers because they are >> not enough accurate. >> Do

[PATCH net-next] net: dsa: lan9303: Add adjust_link() method

2017-09-19 Thread Egil Hjelmeland
Make the driver react to device tree "fixed-link" declaration on CPU port. - turn off autonegotiation - force speed 10 or 100 mb/s - force duplex mode Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 40 1

[RFC PATCH 2/3] net/dev/core.c: use ksa_parse_ints instead of get_options

2017-09-19 Thread Ilya Matveychikov
Signed-off-by: Ilya V. Matveychikov --- net/core/dev.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 8515f8f..acda9ac 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -144,6 +144,7 @@

[RFC PATCH 1/3] ksmall_array: introduce kernel small arrays

2017-09-19 Thread Ilya Matveychikov
Signed-off-by: Ilya V. Matveychikov --- include/linux/small_array.h | 35 +++ lib/Makefile| 2 +- lib/cmdline.c | 4 +++- lib/ksmall_array.c | 26 ++ 4 files changed, 65

Re: [PATCH v2 resend 0/4] sh: sh7722/sh7757i/sh7264/sh7269: Fix pinctrl registration

2017-09-19 Thread Geert Uytterhoeven
Hi Linus, On Tue, Sep 19, 2017 at 10:19 AM, Linus Walleij wrote: > On Tue, Sep 12, 2017 at 10:40 AM, Geert Uytterhoeven > wrote: >> I'm resending this to you due to unresponsiveness from the SuperH >> maintainers (v2 sent before on May 11,

Re: [PATCH] perf/core: Update cgroup time with descendants

2017-09-19 Thread Jiri Olsa
On Tue, Sep 19, 2017 at 10:02:50AM +0800, Lin Xiulei wrote: > Add steps of reproducing > > 1 > ``` > mkdir /sys/fs/cgroup/perf_event/root1 > mkdir /sys/fs/cgroup/perf_event/root1/leaf1 > ``` > 2 $pid is any running process > ``` > echo $pid > /sys/fs/cgroup/perf_event/root1/cgroup.procs > ``` >

Re: [PATCH 5/6] [media] go7007: Use common error handling code in go7007_snd_init()

2017-09-19 Thread Dan Carpenter
On Mon, Sep 18, 2017 at 03:58:37PM +0200, SF Markus Elfring wrote: > diff --git a/drivers/media/usb/go7007/snd-go7007.c > b/drivers/media/usb/go7007/snd-go7007.c > index 68e421bf38e1..7ae4d03ed3f7 100644 > --- a/drivers/media/usb/go7007/snd-go7007.c > +++ b/drivers/media/usb/go7007/snd-go7007.c >

Re: Query regarding synchronize_sched_expedited and resched_cpu

2017-09-19 Thread Byungchul Park
On Tue, Sep 19, 2017 at 08:11:53AM +0200, Mike Galbraith wrote: > https://lkml.org/lkml/2017/9/5/184 Now, I checked the patches above. It looks to be a good approach to me. Thanks, Byungchul > Peter's patches worked for me, but per tglx, additional (non- > grasshopper level) hotplug-fu is

[PATCH] sysctl: remove duplicate UINT_MAX check on do_proc_douintvec_conv()

2017-09-19 Thread Luis R. Rodriguez
do_proc_douintvec_conv() has two UINT_MAX checks, we can remove one. This has no functional changes other than fixing a compiler warning: kernel/sysctl.c:2190]: (warning) Identical condition '*lvalp>UINT_MAX', second condition is always false Reported-by: David Binderman

Re: [PATCH v5 3/3] media: ov7670: Add the s_power operation

2017-09-19 Thread Sakari Ailus
Hi Wenyou, On Tue, Sep 19, 2017 at 08:45:09AM +0800, Wenyou Yang wrote: > Add the s_power operation which is responsible for manipulating the > power dowm mode through the PWDN pin and the reset operation through > the RESET pin. This is still broken: accessing controls through the sub-device

[PATCH v2] MN10300: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Signed-off-by: Bhumika Goyal --- Changes in v2: * Replace __initconst with __initdata in the subject

Re: [PATCH 1/1] acpi: unbreak ACPI_HANDLE(), encapsulate fwnode_operations

2017-09-19 Thread Mika Westerberg
On Fri, Sep 15, 2017 at 05:35:27PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > Due to commit db3e50f3234b ("device property: Get rid of struct > fwnode_handle type field"), ACPI_HANDLE() inadvertently became > a GPL-only call. The call path that led to that

Re: [PATCH 1/1] iommu/iova: Make rcache flush optional on IOVA allocation failure

2017-09-19 Thread Tomasz Nowicki
Hi Robin, On 18.09.2017 18:02, Robin Murphy wrote: Hi Tomasz, On 18/09/17 11:56, Tomasz Nowicki wrote: Since IOVA allocation failure is not unusual case we need to flush CPUs' rcache in hope we will succeed in next round. However, it is useful to decide whether we need rcache flush step

[RFC PATCH 0/3] Introduce kernel small arrays (KSA)

2017-09-19 Thread Ilya Matveychikov
Hi guys, Please review the approach of using small fixed-sized arrays to improve parsing of values like get_options() does. This comes to me after fixing an overflow in get_options(). See the thread for details: https://lkml.org/lkml/2017/5/22/581 If the approach is OK I’ll suggest to replace

Re: [PATCH] zram: fix null dereference of handle

2017-09-19 Thread Minchan Kim
Hi Sergey, On Tue, Sep 19, 2017 at 02:39:35PM +0900, Sergey Senozhatsky wrote: > On (09/19/17 11:34), Minchan Kim wrote: > [..] > > static void zram_meta_free(struct zram *zram, u64 disksize) > > { > > size_t num_pages = disksize >> PAGE_SHIFT; > > @@ -876,11 +855,18 @@ static int

Re: [PATCH 1/2] fpga: altera-cvp: remove DRIVER_ATTR() usage

2017-09-19 Thread Greg Kroah-Hartman
On Mon, Sep 18, 2017 at 03:40:13PM -0500, Alan Tull wrote: > On Mon, Sep 18, 2017 at 11:42 AM, Moritz Fischer wrote: > > On Mon, Sep 18, 2017 at 12:17:36PM +0200, Greg Kroah-Hartman wrote: > >> It's better to be explicit and use the DRIVER_ATTR_RW() macro when > >> defining a

Re: [PATCH RFC 2/3] pipe: protect pipe_max_size access with a mutex

2017-09-19 Thread Mikulas Patocka
On Fri, 15 Sep 2017, Joe Lawrence wrote: > On 09/14/2017 07:09 PM, Mikulas Patocka wrote: > > On Tue, 5 Sep 2017, Joe Lawrence wrote: > >> pipe_max_size is assigned directly via procfs sysctl: > >> > >> static struct ctl_table fs_table[] = { > >> ... > >> { > >>

Re: [PATCH 4/6] [media] go7007: Use common error handling code in s2250_probe()

2017-09-19 Thread Dan Carpenter
On Mon, Sep 18, 2017 at 03:57:21PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 18 Sep 2017 13:50:45 +0200 > > Adjust jump targets so that a bit of exception handling can be better > reused at the end of this function. > > This refactoring

[PATCH V6 3/3] scsi: Align block queue to dma_get_cache_alignment()

2017-09-19 Thread Huacai Chen
In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so scsi's block queue should be aligned to ARCH_DMA_MINALIGN. Otherwise, it will cause data corruption, at least on MIPS: Step 1, dma_map_single Step 2, cache_invalidate (no writeback)

Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-09-19 Thread Icenowy Zheng
于 2017年9月19日 GMT+08:00 下午4:20:19, Maxime Ripard 写到: >On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote: >> Allwinner A64/H5 SoCs come with a SID controller like the one in H3, >but >> without the silicon bug that makes the initial value at 0x200

[PATCH] scripts/spelling.txt: add more spelling mistakes to spelling.txt

2017-09-19 Thread Colin King
From: Colin Ian King Here are some of the more spelling mistakes and typos that I've found while fixing up spelling mistakes in kernel error message text over the past eight weeks. Signed-off-by: Colin Ian King --- scripts/spelling.txt | 33

Re: linux-next: Signed-off-by missing for commits in the renesas tree

2017-09-19 Thread Simon Horman
On Tue, Sep 19, 2017 at 07:39:50AM +1000, Stephen Rothwell wrote: > Hi Simon, > > Commits > > 5cb3ee61cab3 ("ARM: dts: iwg20d-q7: Add SDHI1 support") > 39b87a4ae6f5 ("ARM: dts: r8a7745: Add MMC interface support") > > are missing a Signed-off-by from their committer. Hi Stephen, sorry for

Re: [PATCH v2 8/9] atmel_flexcom: Support backup mode

2017-09-19 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > The controller used by a flexcom module is configured at boot, and left > alone after this. As the configuration will be lost after backup mode, > restore the state of the flexcom driver on resume. > > Signed-off-by: Romain Izard

Re: [PATCH 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-19 Thread Peter Meerwald-Stadler
> Instead of manually iterating the array of allowed gain values, use > find_closest. Storing the current gain setting avoids accessing the > hardware on each query. nitpick below > Signed-off-by: Stefan Brüns > --- > drivers/iio/light/vl6180.c | 85 >

Re: [PATCH 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-19 Thread Peter Meerwald-Stadler
> This improves code uniformity (range checks for als_gain are also done > in the setter). Also unmangle rounding and calculation of register value. nitpick below > The calculated integration time it_ms is required in the next patch of > the series. > > Signed-off-by: Stefan Brüns

[RESEND PATCH 0/3] K2G: Add support for PWM ECAP

2017-09-19 Thread Vignesh R
This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Resending based on today's linux-next. Vignesh R (3): ARM: dts: keystone-k2g: Add ECAP PWM DT nodes ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 ARM: configs: keystone: Enable TIECAP PWM driver

[PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-19 Thread Ravi Bangoria
Kernel crashes if power pmu is not registered and user tries to dump regs with 'echo p > /proc/sysrq-trigger'. Sample log: Unable to handle kernel paging request for data at address 0x0008 Faulting instruction address: 0xc00d52f0 NIP [c00d52f0]

[RESEND PATCH v4 1/6] libsas: Use dynamic alloced work to avoid sas event lost

2017-09-19 Thread Jason Yan
Now libsas hotplug work is static, every sas event type has its own static work, LLDD driver queues the hotplug work into shost->work_q. If LLDD driver burst posts lots hotplug events to libsas, the hotplug events may pending in the workqueue like shost->work_q new work[PORTE_BYTES_DMAED] -->

[RESEND PATCH v4 6/6] libsas: direct call probe and destruct

2017-09-19 Thread Jason Yan
In commit 87c8331f ([SCSI] libsas: prevent domain rediscovery competing with ata error handling) introduced disco mutex to prevent rediscovery competing with ata error handling and put the whole revalidation in the mutex. But the rphy add/remove needs to wait for the error handling which also

[RESEND PATCH v4 5/6] libsas: libsas: use flush_workqueue to process disco events synchronously

2017-09-19 Thread Jason Yan
Use flush_workqueue to insure the disco and revalidate events processed synchronously. Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC:

[RESEND PATCH v4 3/6] libsas: make the event threshold configurable

2017-09-19 Thread Jason Yan
Add a sysfs attr that LLDD can configure it for every host. We made a example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke Signed-off-by: Jason Yan CC: John Garry CC: Johannes

[RESEND PATCH v4 4/6] libsas: Use new workqueue to run sas event and disco event

2017-09-19 Thread Jason Yan
Now all libsas works are queued to scsi host workqueue, include sas event work post by LLDD and sas discovery work, and a sas hotplug flow may be divided into several works, e.g libsas receive a PORTE_BYTES_DMAED event, currently we process it as following steps: sas_form_port --- run in work in

[RESEND PATCH v4 0/6] Enhance libsas hotplug feature

2017-09-19 Thread Jason Yan
Thanks Martin K. Petersen for applied some of the tidy-up patches. So I do not have to maintain these patches out of the tree. I will only send the reset of them in the next days if needed. Now the libsas hotplug has some issues, Dan Williams report a similar bug here before

[PATCH] m32r: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- arch/m32r/kernel/setup.c | 4 ++-- 1 file

Re: [PATCH RFC V2 00/10] perf top optimization

2017-09-19 Thread Jiri Olsa
On Mon, Sep 18, 2017 at 10:01:00AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 18, 2017 at 10:57:08AM +0200, Jiri Olsa escreveu: > > On Sun, Sep 10, 2017 at 07:23:13PM -0700, kan.li...@intel.com wrote: > > > From: Kan Liang > > > > > > The patch series intends to

Re: [PATCH v2 resend 0/4] sh: sh7722/sh7757i/sh7264/sh7269: Fix pinctrl registration

2017-09-19 Thread Linus Walleij
On Tue, Sep 12, 2017 at 10:40 AM, Geert Uytterhoeven wrote: > Hi Andrew, > > I'm resending this to you due to unresponsiveness from the SuperH > maintainers (v2 sent before on May 11, pinged on June 30 and August 14). I'm happy to take this into the pinctrl tree

[PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver

2017-09-19 Thread Razvan Stefanescu
This patchset introduces the Ethernet Switch Driver for Freescale/NXP SoCs with DPAA2 (DataPath Acceleration Architecture v2). The driver manages switch objects discovered on the fsl-mc bus. A description of the driver can be found in the associated README file. The patchset consists of: * A set

[PATCH 3/6] staging: fsl-dpaa2/ethsw: Add ethtool support

2017-09-19 Thread Razvan Stefanescu
Add driver information, link details and hardware statistics to be reported via ethtool -S. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/Makefile| 2 +- drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 13 ++

[PATCH 6/6] staging: fsl-dpaa2/ethsw: Add TODO

2017-09-19 Thread Razvan Stefanescu
Add a TODO file describing what needs to be added/changed before the driver can be moved out of staging. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/TODO | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

Re: alpha runtime warnings due to commit 0e4c2eeb758 ("alpha/PCI: Replace pci_fixup_irqs() call with host ...")

2017-09-19 Thread Lorenzo Pieralisi
On Mon, Sep 18, 2017 at 07:00:55PM -0700, Guenter Roeck wrote: > Hi, > > I see the following runtime warnings in mainline when running alpha images in > qemu. > > > Floppy drive(s): fd0 is 2.88M > ide0: disabled, no IRQ > ide0: failed to initialize IDE interface > ide0: disabling port > cmd64x

Re: [patch 00/52] x86: Rework the vector management

2017-09-19 Thread Yu Chen
On Wed, Sep 13, 2017 at 11:29:02PM +0200, Thomas Gleixner wrote: > Sorry for the large CC list, but this is a major surgery. > > The vector management in x86 including the surrounding code is a > conglomorate of ancient bits and pieces which have been subject to > 'modernization' and featuritis

Re: [PATCH] ASoC: davinci-mcasp: Fix an error handling path in 'davinci_mcasp_probe()'

2017-09-19 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-16 08:40, Christophe JAILLET wrote: > All error handling paths in this function 'goto err' except this one. > > If one of the 2 previous memory

[PATCH v1 4/4] arm: dts: mt7623: add PCIe related nodes

2017-09-19 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++

[PATCH v1 2/4] arm: dts: mt7623: update pio, usb and crypto nodes

2017-09-19 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git

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

2017-09-19 Thread Ryder Lee
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 ---

[PATCH v1 0/4] update MT7623 and MT2701 dts

2017-09-19 Thread Ryder Lee
Hi, This series corrects some nodes for both MT7623 and MT2701, adds display and PCIe support for MT7623. changes since v1: - rebase to v4.14. - sort nodes in alphabetical order. Ryder Lee (4): arm: dts: mediatek: update audio node for mt2701 and mt7623 arm: dts: mt7623: update pio, usb and

[PATCH v1 1/4] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-09-19 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order [1][2]. Signed-off-by: Ryder Lee CC: Garlic Tseng CC: Erin Lo CC: Sean Wang ---

[RESEND PATCH v4 2/6] libsas: shut down the PHY if events reached the threshold

2017-09-19 Thread Jason Yan
If the PHY burst too many events, we will alloc a lot of events for the worker. This may leads to memory exhaustion. Dan Williams suggested to shut down the PHY if the events reached the threshold, because in this case the PHY may have gone into some erroneous state. Users can re-enable the PHY

Re: [PATCH v2 0/7] swait: Introduce and use swq_has_sleeper()

2017-09-19 Thread Christian Borntraeger
On 09/15/2017 01:53 PM, Paolo Bonzini wrote: > On 13/09/2017 22:08, Davidlohr Bueso wrote: >> The following patches fix and/or justify (in baby steps) some of the >> callers. The main exception is s390, which I didn't follow how ->valid_wakeup >> can get hoisted as kvm_vcpu_block does not use

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Michal Hocko
On Mon 18-09-17 14:49:19, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups = order-5, 16k

Re: [PATCH v2 2/2] mfd: fsl-imx25: clean up irq settings during removal

2017-09-19 Thread Lucas Stach
Am Dienstag, den 19.09.2017, 08:23 +0200 schrieb Martin Kaiser: > When fsl-imx25-tsadc is compiled as a module, loading, unloading and > reloading the module will lead to a crash. > > Unable to handle kernel paging request at virtual address bf005430 > [] (irq_find_matching_fwspec) >from []

[PATCH][V3] libata: make static arrays const, reduces object code size

2017-09-19 Thread Colin King
From: Colin Ian King Don't populate const arrayis on the stack, instead make them static. Makes the object code smaller by over 260 bytes: Before: textdata bss dec hex filename 6486459484128 74940 124bc drivers/ata/libata-scsi.o After:

[PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment() function

2017-09-19 Thread Huacai Chen
Make dma_get_cache_alignment() to accept a 'dev' argument. As a result, it can return different alignments due to different devices' I/O cache coherency. For compatibility, make all existing callers pass a NULL dev argument. Cc: sta...@vger.kernel.org Signed-off-by: Huacai Chen

[PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as a helper

2017-09-19 Thread Huacai Chen
We will use device_is_coherent() as a helper function, which will be used in the next patch. There is a MIPS-specific plat_device_is_coherent(), but we need a more generic solution, so add and use a new function pointer in dma_map_ops. Cc: sta...@vger.kernel.org Signed-off-by: Huacai Chen

[PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-19 Thread Razvan Stefanescu
Introduce the DPAA2 Ethernet Switch driver, which manages Datapath Switch (DPSW) objects discovered on the MC bus. Suggested-by: Alexandru Marginean Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/Makefile |2 +-

<    1   2   3   4   5   6   7   8   9   10   >