[PATCH 1/1] scsi: fcoe: return value of skb_linearize should be handled

2016-12-07 Thread Zhouyi Zhou
Return value of skb_linearize should be handled. Signed-off-by: Zhouyi Zhou Reviewed-by: Yuval Shaia --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 6 -- drivers/scsi/fcoe/fcoe.c | 5 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c

[PATCH 1/1] tipc: return value of skb_linearize should be handled

2016-12-07 Thread Zhouyi Zhou
return value of skb_linearize should be handled Signed-off-by: Zhouyi Zhou Reviewed-by: Cong Wang Reviewed-by: Yuval Shaia Reviewed-by: Eric Dumazet --- net/tipc/link.c | 3 ++- net/tipc/name_distr.c | 5 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net/tipc/link

Re: linux-next: build failure after merge of the tip tree

2016-12-07 Thread Jiri Olsa
On Wed, Dec 07, 2016 at 08:45:14AM +0100, Ingo Molnar wrote: SNIP > * Stephen Rothwell wrote: > > > Hi all, > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > failed like this: > > > > LINK /home/sfr/next/perf/fixdep > > /bin/sh: 1: /home/sfr/next/perf//

netfilter regression causes lost pings "operation not permitted"

2016-12-07 Thread Trevor Cordes
Bisected down to: 870190a9ec9075205c0fa795a09fa931694a3ff1 7c9664351980aaa6a4b8837a314360b3a4ad382a Hi! 4.8.x caused a script of mine that pings all IPs on my LAN /24 subnet in about 0.5s, and nmap doing the same, to error on the send() call with "operation not permitted". This happens after a

Re: [PATCH 1/1] Fixed to checkpatch errors to usbtmc.c

2016-12-07 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 02:57:00PM +0200, Ozgur Karatas wrote: > Hello all, This isn't needed in a changelog text. > I will solve a checkpatch.pl script errors. > drivers/usb/class/usbtmc.c:719: ERROR: else should follow close brace '}' > drivers/usb/class/usbtmc.c:735: ERROR: space required aft

Enabling trace points during module load/init

2016-12-07 Thread Christian König
Hi everone, I'm the co-maintainer of the AMD GFX drivers in the upstream kernel and yesterday I ran into the problem that I need to enable some trace points during module load/init. We had that issue quite a bunch of times before, but so far never had the time or patience to figure out how t

Re: [PATCH 1/1] scsi: fcoe: return value of skb_linearize should be handled

2016-12-07 Thread Johannes Thumshirn
Hi Zhouyi, On Wed, Dec 07, 2016 at 04:00:00PM +0800, Zhouyi Zhou wrote: > Return value of skb_linearize should be handled. > > Signed-off-by: Zhouyi Zhou > Reviewed-by: Yuval Shaia > --- > drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 6 -- > drivers/scsi/fcoe/fcoe.c | 5 - > 2 files ch

Re: netfilter regression causes lost pings "operation not permitted"

2016-12-07 Thread Trevor Cordes
On 2016-12-07 Trevor Cordes wrote: > Bisected down to: > 870190a9ec9075205c0fa795a09fa931694a3ff1 > 7c9664351980aaa6a4b8837a314360b3a4ad382a Oh! I forgot to mention the most important point: iptable_nat module MUST be loaded for the bug to show up! modprobe iptable_nat If you rmmod it, the bug

Re: [PATCH 1/1] scsi: fcoe: return value of skb_linearize should be handled

2016-12-07 Thread Zhouyi Zhou
Thanks Johannes for reviewing, your code is indeeded more elegant On Wed, Dec 7, 2016 at 4:28 PM, Johannes Thumshirn wrote: > Hi Zhouyi, > On Wed, Dec 07, 2016 at 04:00:00PM +0800, Zhouyi Zhou wrote: >> Return value of skb_linearize should be handled. >> >> Signed-off-by: Zhouyi Zhou >> Reviewed

Re: [PATCH] bitops: add equivalent of BIT(x) for bitfields

2016-12-07 Thread Kalle Valo
Sebastian Frias writes: > Introduce SETBITFIELD(msb, lsb, value) macro to ease dealing with > continuous bitfields, just as BIT(x) does for single bits. > > SETBITFIELD_ULL(msb, lsb, value) macro is also added. > > Signed-off-by: Sebastian Frias > --- > > Code protected with "#ifdef __KERNEL__"

Re: [PATCH] MAINTAINERS: clarify that "B:" is the URI where to file bugs

2016-12-07 Thread Jani Nikula
On Wed, 07 Dec 2016, "Rafael J. Wysocki" wrote: > On Monday, December 05, 2016 02:03:59 PM Jani Nikula wrote: >> Different subsystems and drivers have different preferences for where to >> file bugs and what information to include. 686564434e88 ("MAINTAINERS: >> Add bug tracking system location en

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Vlastimil Babka
On 12/06/2016 02:53 AM, Xishi Qiu wrote: > A compiler could re-read "old_flags" from the memory location after reading > and calculation "flags" and passes a newer value into the cmpxchg making > the comparison succeed while it should actually fail. > > Signed-off-by: Xishi Qiu > Suggested-by: C

Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support

2016-12-07 Thread Scott Branden
Hi Xishi, I followed you suggestions and found pfn_valid is always true. Answers to your questions inline. I could keep debugging this but hope Marcin sends out some code - I'm quite willing to test and help clean up the patchset. On 16-12-01 07:11 PM, Xishi Qiu wrote: On 2016/12/2 10:38,

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Michal Hocko
On Tue 06-12-16 09:53:14, Xishi Qiu wrote: > A compiler could re-read "old_flags" from the memory location after reading > and calculation "flags" and passes a newer value into the cmpxchg making > the comparison succeed while it should actually fail. > > Signed-off-by: Xishi Qiu > Suggested-by:

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Kalle Valo
Sebastian Frias writes: > Introduce GENVALUE(msb, lsb, value) macro to ease dealing with > continuous bitfields, just as BIT(x) does for single bits. > > GENVALUE_ULL(msb, lsb, value) macro is also added. > > This is useful mostly for creating values to be packed together > via OR operations, ex:

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Vlastimil Babka
On 12/07/2016 09:43 AM, Michal Hocko wrote: > On Tue 06-12-16 09:53:14, Xishi Qiu wrote: >> A compiler could re-read "old_flags" from the memory location after reading >> and calculation "flags" and passes a newer value into the cmpxchg making >> the comparison succeed while it should actually fai

move hyperv CHANNELMSG_UNLOAD from crashed kernel to kdump kernel

2016-12-07 Thread Olaf Hering
KY, if a hyperv VM crashes alot of work must be done to prepare the environment for the kdump kernel. This approach is different compared to all the other VM types, or baremetal. Since the just crashed kernel is per definition unreliable all that work should be done within the kdump kernel because

[RFC] Cleaning oopses

2016-12-07 Thread Borislav Petkov
Hi guys, should we add a simple script like below to scripts/ or so to use for cleaning up oopses before adding to commit messages? Instead of doing all the work by hand and so on. It doesn't remove registers, stack and Code: lines yet but having it in the repo could be used to state exactly whic

Re: [PATCH v6 0/3] spi-nor: Add support for Intel SPI serial flash controller

2016-12-07 Thread Mika Westerberg
On Tue, Dec 06, 2016 at 09:45:25AM +, Lee Jones wrote: > I'm happy either way. However if you take them, I will require a > pull-request to an immutable branch containing only these patches. > > If I take them, it won't be until v4.11, since we are half way though > -rc8 already and I would l

Re: fsnotify_mark_srcu wtf?

2016-12-07 Thread Jan Kara
On Fri 02-12-16 12:02:33, Miklos Szeredi wrote: > On Fri, Dec 2, 2016 at 11:48 AM, Jan Kara wrote: > > On Fri 02-12-16 09:26:51, Miklos Szeredi wrote: > >> On Thu, Nov 10, 2016 at 8:46 PM, Jan Kara wrote: > >> > On Wed 09-11-16 20:26:16, Amir Goldstein wrote: > >> >> On Wed, Nov 9, 2016 at 1:10 P

Re: [PATCH 1/2] ARM: dts: at91: sama5d4: change DMA allocation for secure peripherals

2016-12-07 Thread Alexandre Belloni
On 30/11/2016 at 18:36:29 +0100, Nicolas Ferre wrote : > Some peripherals are "Programmable Secure" but left as "Secure" by default. > If tried to be connected to Non-Secure DMA controller, the possibility to > leak secure data is prevented so using these peripherals with DMA1 is not > possible wit

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Michal Hocko
On Wed 07-12-16 09:48:52, Vlastimil Babka wrote: > On 12/07/2016 09:43 AM, Michal Hocko wrote: > > On Tue 06-12-16 09:53:14, Xishi Qiu wrote: > >> A compiler could re-read "old_flags" from the memory location after reading > >> and calculation "flags" and passes a newer value into the cmpxchg makin

Re: [PATCH 1/3] ARM: dts: at91: add dma1 definition to sama5d2

2016-12-07 Thread Alexandre Belloni
On 01/12/2016 at 11:49:47 +0100, Nicolas Ferre wrote : > The sama5d2 SoC has a second DMA controller and can be used just like DMA0. > By default both DMA controllers are configured as "Secure" in > MATRIX_SPSELR so we can use whichever we want in a "single Secure World" > configuration. > Surprisi

Re: [PATCH v5 00/13] net: ethernet: ti: cpts: update and fixes

2016-12-07 Thread Richard Cochran
On Tue, Dec 06, 2016 at 06:00:32PM -0600, Grygorii Strashko wrote: > It is preparation series intended to clean up and optimize TI CPTS driver to > facilitate further integration with other TI's SoCs like Keystone 2. > > Changes in v5: > - fixed copy paste error in cpts_release > - reworked cc.mul

[PATCH] MIPS: TXx9: Modernize printing of kernel messages

2016-12-07 Thread Geert Uytterhoeven
- Convert from printk() to pr_*(), - Add missing continuations, to fix user-visible breakage, - Drop superfluous casts (u64 has been unsigned long long on all architectures for many years). On rbtx4927, this restores the kernel output like: -TX4927 SDRAMC -- - CR0:007e05

Re: [PATCH 04/16] drivers/fsi: Add fsi master definition

2016-12-07 Thread Greg KH
On Tue, Dec 06, 2016 at 08:09:30PM -0600, Chris Bostic wrote: > From: Jeremy Kerr > > Signed-off-by: Jeremy Kerr > Signed-off-by: Chris Bostic > --- > drivers/fsi/fsi-core.c | 20 > drivers/fsi/fsi-master.h | 37 + > 2 files changed, 5

Re: [PATCH v2 1/2] misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present

2016-12-07 Thread Nicolas Ferre
Le 06/12/2016 à 20:22, Peter Rosin a écrit : > The SSC is currently not usable with the ASoC simple-audio-card, as > every SSC audio user has to build a platform driver that may do as > little as calling atmel_ssc_set_audio/atmel_ssc_put_audio (which > allocates the SSC and registers a DAI with the

Re: [PATCH 0/2] Hibernate fixes for 'Fix memmap to be initialized for the entire section'

2016-12-07 Thread Robert Richter
On 06.12.16 17:38:11, Will Deacon wrote: > On Mon, Dec 05, 2016 at 03:42:14PM +, Ard Biesheuvel wrote: > > On 2 December 2016 at 14:49, James Morse wrote: > > > Patch "arm64: mm: Fix memmap to be initialized for the entire section" > > > changes pfn_valid() in a way that breaks hibernate. Thes

Re: [PATCH] btusb: fix zero BD address problem during stress test

2016-12-07 Thread Marcel Holtmann
Hi Amitkumar, From: Amitkumar Karwar [mailto:akar...@marvell.com] Sent: Tuesday, October 18, 2016 6:27 PM To: linux-blueto...@vger.kernel.org Cc: mar...@holtmann.org; linux-kernel@vger.kernel.org; Cathy >>> Luo; Nishant Sarmukadam; Ganapathi Bhat; Amitk

Re: [PATCH 08/16] drivers/fsi: Add crc4 helpers

2016-12-07 Thread Greg KH
On Tue, Dec 06, 2016 at 08:09:31PM -0600, Chris Bostic wrote: > From: Jeremy Kerr > > Add some helpers for the crc checks for the slave configuration table. > This works 4-bits-at-a-time, using a simple table approach. > > We will need this in the FSI core code, as well as any master > implement

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Heikki Krogerus
On Fri, Dec 02, 2016 at 10:04:39AM -0800, Guenter Roeck wrote: > At least for my part I very much concentrated on making sure that > the user space ABI as well as the port driver API are sane and usable. > > The driver interface is not my area of expertise. As such, my testing > and understanding

Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-07 Thread Matt Redfearn
Hi Jason, On 06/12/16 22:13, Jason A. Donenfeld wrote: On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions. Because in the IRQ entry point in assem

Re: [PATCH 0/5] MIPS: Add per-cpu IRQ stack

2016-12-07 Thread Matt Redfearn
Hi Jason, On 06/12/16 22:09, Jason A. Donenfeld wrote: Hi Matt, Thanks for submitting this. A happy OpenWRT/WireGuard user has reported to me that this patch set frees ~1300 bytes of stack on a small MIPS router. This kind of savings should allow me to reintroduce my crypto operations to be on

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Vlastimil Babka
On 12/07/2016 09:58 AM, Michal Hocko wrote: > On Wed 07-12-16 09:48:52, Vlastimil Babka wrote: >> On 12/07/2016 09:43 AM, Michal Hocko wrote: >>> On Tue 06-12-16 09:53:14, Xishi Qiu wrote: A compiler could re-read "old_flags" from the memory location after reading and calculation "flags"

Re: [PATCH 14/16] drivers/fsi: Add master unscan

2016-12-07 Thread Greg KH
On Tue, Dec 06, 2016 at 06:14:35PM -0600, Chris Bostic wrote: > From: Chris Bostic > > Allow a master to undo a previous scan. Should a master scan a bus > twice it will need to ensure it doesn't double register any > previously detected device. > > Signed-off-by: Chris Bostic > --- > drivers

Re: [PATCH v2 1/4] sched: move IO scheduling accounting from io_schedule_timeout() to __schedule()

2016-12-07 Thread Peter Zijlstra
On Tue, Dec 06, 2016 at 04:29:35PM -0500, Tejun Heo wrote: > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3335,12 +3335,18 @@ static void __sched notrace __schedule(b > struct task_struct *prev, *next; > unsigned long *switch_count; > struct pin_cookie cookie; > -

Re: [PATCH RT] net: Have __napi_schedule_irqoff() disable interrupts on RT

2016-12-07 Thread Sebastian Andrzej Siewior
On 2016-12-06 17:50:30 [-0500], Steven Rostedt wrote: > A customer hit a crash where the napi sd->poll_list became corrupted. > The customer had the bnx2x driver, which does a > __napi_schedule_irqoff() in its interrupt handler. Unfortunately, when > running with CONFIG_PREEMPT_RT_FULL, this interr

Re: [PATCH 11/16] drivers/fsi: Add device read/write/peek functions

2016-12-07 Thread Greg KH
On Tue, Dec 06, 2016 at 08:09:33PM -0600, Chris Bostic wrote: > diff --git a/include/linux/fsi.h b/include/linux/fsi.h > index efa55ba..66bce48 100644 > --- a/include/linux/fsi.h > +++ b/include/linux/fsi.h > @@ -27,6 +27,12 @@ struct fsi_device { > uint32_tsize; > }; > > +

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Christian Borntraeger
On 12/07/2016 10:29 AM, Vlastimil Babka wrote: > On 12/07/2016 09:58 AM, Michal Hocko wrote: >> On Wed 07-12-16 09:48:52, Vlastimil Babka wrote: >>> On 12/07/2016 09:43 AM, Michal Hocko wrote: On Tue 06-12-16 09:53:14, Xishi Qiu wrote: > A compiler could re-read "old_flags" from the memory

Re: Synopsys Ethernet QoS Driver

2016-12-07 Thread Pavel Machek
Hi! > > Thanks! > > Regarding this subject, I am thinking of making the following adaption: > > a) delete ethernet/synopsys > b) rename ethernet/stmicro/stmmac to ethernet/synopsys > > and send you a patch for you to evaluate. Both agree with the approach? > To have a new work base would be imp

Re: [RFC PATCH 5/6] x86/fpu: Fix CPUID-less FPU detection

2016-12-07 Thread Borislav Petkov
On Tue, Dec 06, 2016 at 09:52:11AM -0800, Andy Lutomirski wrote: > How? There's that bit at the bottom to worry about. Even better: carve it out into a separate function. It was begging for it already. Diff ontop of yours: --- Index: b/arch/x86/kernel/fpu/init.c =

RE: [RESEND PATCH V6 0/6] Add support for privileged mappings

2016-12-07 Thread Sricharan
Hi Robin, >>> Hi Sricharan, >>> >>> On 02/12/16 14:55, Sricharan R wrote: This series is a resend of the V5 that Mitch sent sometime back [2] All the patches are the same and i have just rebased. Not sure why this finally did not make it last time. The last patch in the previous >>>

Re: [PATCH net-next 2/2] net: ethernet: Initial driver for Synopsys DWC XLGMAC

2016-12-07 Thread Pavel Machek
Hi! > This patch provides the initial driver for 25/40/50/100 GbE > devices using Synopsys DWC Enterprise Ethernet (XLGMAC) > > Signed-off-by: Jie Deng I trust this is different hardware from stmmac? > diff --git a/MAINTAINERS b/MAINTAINERS > index 331f6af..738f818 100644 > --- a/MAINTAINERS >

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-07 Thread Laurent Pinchart
Hello, On Wednesday 07 Dec 2016 10:26:25 Chen-Yu Tsai wrote: > On Wed, Dec 7, 2016 at 1:29 AM, Maxime Ripard wrote: > > On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: > >> The panels shipped with Allwinner devices are very "generic", i.e. > >> they do not have model numbers or relia

Re: [PATCH v5 1/1] crypto: add virtio-crypto driver

2016-12-07 Thread Herbert Xu
On Tue, Dec 06, 2016 at 09:01:49AM +, Gonglei (Arei) wrote: > > Would you please review and/or ack the virtio_crypto_algs.c? > It is the realization of specified algs based on Linux Crypto Framework. I have no issues with it. If the virtio folks are happy with the interface with the host the

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Oliver Neukum
On Fri, 2016-12-02 at 10:04 -0800, Guenter Roeck wrote: Hi, > At least for my part I very much concentrated on making sure that > the user space ABI as well as the port driver API are sane and usable. Rightly so, as this part cannot be changed once included in a kernel release. So, can we agree

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Michal Hocko
On Wed 07-12-16 10:40:47, Christian Borntraeger wrote: > On 12/07/2016 10:29 AM, Vlastimil Babka wrote: > > On 12/07/2016 09:58 AM, Michal Hocko wrote: > >> On Wed 07-12-16 09:48:52, Vlastimil Babka wrote: > >>> On 12/07/2016 09:43 AM, Michal Hocko wrote: > On Tue 06-12-16 09:53:14, Xishi Qiu

Re: [PATCH v2.4 2/3] watchdog: loongson1: Add Loongson1 SoC watchdog driver

2016-12-07 Thread Yang Ling
On Mon, Dec 05, 2016 at 04:05:01PM -0800, Guenter Roeck wrote: > On Mon, Dec 05, 2016 at 11:00:53PM +0800, Yang Ling wrote: > > Add watchdog timer specific driver for Loongson1 SoC. > > > > Signed-off-by: Yang Ling > > > > --- > > V2.4: > > Set DEFAULT_HEARTBEAT to 0. > > V2.3: > > Set DEFAU

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Sebastian Frias
On 07/12/16 09:42, Kalle Valo wrote: > Sebastian Frias writes: > >> Introduce GENVALUE(msb, lsb, value) macro to ease dealing with >> continuous bitfields, just as BIT(x) does for single bits. >> >> GENVALUE_ULL(msb, lsb, value) macro is also added. >> >> This is useful mostly for creating values

Re: [RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-07 Thread Christian Borntraeger
On 12/07/2016 10:59 AM, Michal Hocko wrote: > On Wed 07-12-16 10:40:47, Christian Borntraeger wrote: >> On 12/07/2016 10:29 AM, Vlastimil Babka wrote: >>> On 12/07/2016 09:58 AM, Michal Hocko wrote: On Wed 07-12-16 09:48:52, Vlastimil Babka wrote: > On 12/07/2016 09:43 AM, Michal Hocko wro

[PATCH] mm: page_alloc: High-order per-cpu page allocator v7

2016-12-07 Thread Mel Gorman
After discussions with Joonsoo, I added a guarantee that high-order lists will be drained regardless of batch size. While I maintained it was unnecessary, it also did little harm other than increasing the size of the per-cpu structure. There were slight variations in performance but a mix of gains

Re: [PATCH V2] i2c: designware: fix wrong tx/rx fifo for ACPI

2016-12-07 Thread Andy Shevchenko
On Tue, 2016-12-06 at 14:57 +0700, Tin Huynh wrote: > ACPI always sets txfifo and rxfifo to 32. This configuration will > cause problem if the IP core supports a fifo size of less than 32. > The driver should read the fifo size from the IP and select the  > smaller one of the two. > > Signed-off-b

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-07 Thread Amelie DELAUNAY
On 12/05/2016 05:32 PM, Mathieu Poirier wrote: On Mon, Dec 05, 2016 at 10:43:14AM +0100, Amelie DELAUNAY wrote: Hi Mathieu, Thanks for reviewing On 12/02/2016 06:56 PM, Mathieu Poirier wrote: On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: This patch adds support for the S

Re: [PATCH 1/2] mtd: spi-nor: rename SPINOR_OP_* macros of the 4-byte address op codes

2016-12-07 Thread Mark Brown
On Tue, Dec 06, 2016 at 05:52:31PM +0100, Cyrille Pitchen wrote: > This patch renames the SPINOR_OP_* macros of the 4-byte address > instruction set so the new names all share a common pattern: the 4-byte > address name is built from the 3-byte address name appending the "_4B" > suffix. Acked-by:

[GIT PULL] fuse fix for 4.9-rc8

2016-12-07 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus Fix a regression spotted by Jeff Layton. Thanks, Miklos --- Miklos Szeredi (1): fuse: fix clearing suid, sgid for chown() --- fs/fuse/dir.c | 7 ++- 1 file changed, 2 insertions(

[PATCH] Revert "PM / OPP: Don't assume platform doesn't have regulators"

2016-12-07 Thread Viresh Kumar
This reverts commit ef3caabee9691386e6801ea92150e37277db9c7a. The commit was based on the assumption that a platform with voltages specified with individual OPPs, would have registered a regulator as well in order to do full DVFS. That assumption is broken by the Tegra124 platform. For Tegra124,

[PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Srinivas Kandagatla
This patch add support to return value from host_init() callback from drivers, so that the designware libary can handle or pass it to proper place. Issue with void return type is that errors or error handling within host_init() callback are never know to designware code, which could go ahead and ac

Re: [PATCH] usb: gadget: udc: atmel: Fix check in usba_ep_enable()

2016-12-07 Thread Boris Brezillon
On Tue, 6 Dec 2016 22:59:43 +0100 Boris Brezillon wrote: > desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK is not necessarily > equal to ep->index and that's perfectly fine. The usba endpoint index is > just an internal identifier used by the driver to know which registers > to use for a USB e

Re: [Question] New mmap64 syscall?

2016-12-07 Thread Yury Norov
On Tue, Dec 06, 2016 at 10:20:20PM +0100, Arnd Bergmann wrote: > On Wednesday, December 7, 2016 12:24:40 AM CET Yury Norov wrote: > > 3. Introduce new mmap64() syscall like this: > > sys_mmap64(void *addr, size_t len, int prot, int flags, int fd, struct > > off_pair *off); > > (The pointer here be

[PATCH 00/12] PM / OPP: Use kref and move away from RCU locking

2016-12-07 Thread Viresh Kumar
Hi Rafael, You can pretty much ignore this series until all other OPP cleanup/fixes get merged. I am posting these to get early reviews from Stephen as these patches have been lying with me for almost a week now. And I am also _not_ pushing these for 4.10-rc1. It all depends on how the reviews go.

Re: [PATCH 2/7] arm: ftrace: Add call modify mechanism

2016-12-07 Thread kbuild test robot
Hi Abel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc8 next-20161206] [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/Abel-Vesa/arm-Add-livepatch-support/20161207

Re: [PATCH] staging/lustre/osc: Revert erroneous list_for_each_entry_safe use

2016-12-07 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 10:53:48PM -0500, Oleg Drokin wrote: > I have been having a lot of unexplainable crashes in osc_lru_shrink > lately that I could not see a good explanation for and then I found > this patch that slip under the radar somehow that incorrectly > converted while loop for lru lis

[PATCH 08/12] PM / OPP: Take kref from _find_opp_table()

2016-12-07 Thread Viresh Kumar
Take reference of the OPP table from within _find_opp_table(). Also update the callers of _find_opp_table() to call dev_pm_opp_put_opp_table() after they have used the OPP table. Note that _find_opp_table() increments the reference under the opp_table_lock. Now that the OPP table wouldn't get fre

[PATCH 07/12] PM / OPP: Update OPP users to put reference

2016-12-07 Thread Viresh Kumar
This patch updates dev_pm_opp_find_freq_*() routines to get a reference to the OPPs returned by them. Also updates the users of dev_pm_opp_find_freq_*() routines to call dev_pm_opp_put() after they are done using the OPPs. As it is guaranteed the that OPPs wouldn't get freed while being used, the

[PATCH v5 0/4] ARM: dts: da850: tilcdc related DT changes

2016-12-07 Thread Bartosz Golaszewski
This series contains the last DT changes required for LCDC support on da850-lcdk. The first one adds the dumb-vga-dac nodes, the second limits the maximum pixel clock rate. v1 -> v2: - drop patch 3/3 (already merged) - use max-pixelclock instead of max-bandwidth for display mode limiting v2 -> v3

[PATCH v5 1/4] ARM: dts: da850: rename the display node label

2016-12-07 Thread Bartosz Golaszewski
The tilcdc node name is 'display' as per the ePAPR 1.1 recommendation. The label is also 'display', but change it to 'lcdc' to make it clear what the underlying hardware is. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v5 3/4] ARM: dts: da850-lcdk: add the vga-bridge node

2016-12-07 Thread Bartosz Golaszewski
Add the vga-bridge node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 67 1 file changed

[PATCH 12/12] PM / OPP: Update Documentation to remove RCU specific bits

2016-12-07 Thread Viresh Kumar
Update OPP documentation to remove the RCU specific bits. Signed-off-by: Viresh Kumar --- Documentation/power/opp.txt | 47 + 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/Documentation/power/opp.txt b/Documentation/power/opp.txt inde

[PATCH v5 4/4] ARM: dts: da850: specify the maximum pixel clock rate for tilcdc

2016-12-07 Thread Bartosz Golaszewski
At maximum CPU frequency of 300 MHz the maximum pixel clock frequency is 37.5 MHz[1]. We must filter out any mode for which the calculated pixel clock rate would exceed this value. Specify the max-pixelclock property for the display node for da850-lcdk. [1] http://processors.wiki.ti.com/index.ph

[PATCH v5 2/4] drm: bridge: add support for TI ths8135

2016-12-07 Thread Bartosz Golaszewski
THS8135 is a configurable video DAC. Add DT bindings for this chip and use the dumb-vga-dac driver for now as no configuration is required to make it work. Signed-off-by: Bartosz Golaszewski --- .../bindings/display/bridge/ti,ths8135.txt | 52 ++ drivers/gpu/drm/bridg

[PATCH 09/12] PM / OPP: Move away from RCU locking

2016-12-07 Thread Viresh Kumar
The RCU locking isn't well suited for the OPP core. The RCU locking fits better for reader heavy stuff, while the OPP core have at max one or two readers only at a time. Over that, it was getting very confusing the way RCU locking was used with the OPP core. The individual OPPs are mostly well han

[PATCH 10/12] PM / OPP: Simplify _opp_set_availability()

2016-12-07 Thread Viresh Kumar
As we don't use RCU locking anymore, there is no need to replace an earlier OPP node with a new one. Just update the existing one. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/driver

[PATCH 11/12] PM / OPP: Simplify dev_pm_opp_get_max_volt_latency()

2016-12-07 Thread Viresh Kumar
dev_pm_opp_get_max_volt_latency() calls _find_opp_table() two times effectively. Merge _get_regulator_count() into dev_pm_opp_get_max_volt_latency() to avoid that. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 34 +- 1 file changed, 9 insertions

Re: [PATCH v5 2/4] drm: bridge: add support for TI ths8135

2016-12-07 Thread Bartosz Golaszewski
2016-12-07 11:42 GMT+01:00 Bartosz Golaszewski : > THS8135 is a configurable video DAC. Add DT bindings for this chip and > use the dumb-vga-dac driver for now as no configuration is required to > make it work. > > Signed-off-by: Bartosz Golaszewski > --- > .../bindings/display/bridge/ti,ths8135.

Re: [PATCH v4 6/7] IIO: add STM32 timer trigger driver

2016-12-07 Thread Lee Jones
On Tue, 06 Dec 2016, Benjamin Gaignard wrote: > [snip] > >> + > >> +static const char * const triggers0[] = { > >> + TIM1_TRGO, TIM1_CH1, TIM1_CH2, TIM1_CH3, TIM1_CH4, NULL, > >> +}; > >> + > >> +static const char * const triggers1[] = { > >> + TIM2_TRGO, TIM2_CH1, TIM2_CH2, TIM2_CH3, TIM2

[PATCH 01/12] PM / OPP: Add per OPP table mutex

2016-12-07 Thread Viresh Kumar
Add per OPP table lock to protect opp_table->opp_list. Note that at few places opp_list is used under the rcu_read_lock() and so a mutex can't be added there for now. This will be fixed by a later patch. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 31

[PATCH 03/12] PM / OPP: Return opp_table from dev_pm_opp_set_*() routines

2016-12-07 Thread Viresh Kumar
Now that we have proper kernel reference infrastructure in place for OPP tables, use it to guarantee that the OPP table isn't freed while being used by the callers of dev_pm_opp_set_*() APIs. Make them all return the pointer to the OPP table after taking its reference and put the reference back wi

[PATCH 06/12] PM / OPP: Add 'struct kref' to struct dev_pm_opp

2016-12-07 Thread Viresh Kumar
Add kref to struct dev_pm_opp for easier accounting of the OPPs. Note that the OPPs are freed under the opp_table->lock mutex only. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 27 --- drivers/base/power/opp/opp.h | 3 +++ include/linux/pm_opp.h

[PATCH 02/12] PM / OPP: Add 'struct kref' to OPP table

2016-12-07 Thread Viresh Kumar
Add kref to struct opp_table for easier accounting of the OPP table. Note that the new routine dev_pm_opp_get_opp_table() takes the reference from under the opp_table_lock, which guarantees that the OPP table doesn't get freed unless dev_pm_opp_put_opp_table() is called for the OPP table. Two sep

[PATCH 04/12] PM / OPP: Take reference of the OPP table while adding/removing OPPs

2016-12-07 Thread Viresh Kumar
Take reference of the OPP table while adding and removing OPPs, that helps us remove special checks in _remove_opp_table(). Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/base/power/opp/core.c b/d

[PATCH 05/12] PM / OPP: Use dev_pm_opp_get_opp_table() instead of _add_opp_table()

2016-12-07 Thread Viresh Kumar
Migrate all users of _add_opp_table() to use dev_pm_opp_get_opp_table() to guarantee that the OPP table doesn't get freed while being used. Also update _managed_opp() to get the reference to the OPP table. Now that the OPP table wouldn't get freed while these routines are executing after dev_pm_o

Re: [PATCH v6 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-07 Thread Sakari Ailus
Hi Shuah, On Mon, Dec 05, 2016 at 05:38:23PM -0700, Shuah Khan wrote: > On 12/05/2016 04:21 PM, Laurent Pinchart wrote: > > Hi Shuah, > > > > On Monday 05 Dec 2016 15:44:30 Shuah Khan wrote: > >> On 11/30/2016 03:01 PM, Shuah Khan wrote: > >>> Change ALSA driver to use Media Controller API to sha

Re: [PATCH 4/7] arm: Add ftrace with regs support

2016-12-07 Thread Russell King - ARM Linux
On Tue, Dec 06, 2016 at 05:06:04PM +, Abel Vesa wrote: > This adds __ftrace_regs_caller which, unlike __ftrace_caller, > adds register saving/restoring and livepatch handling if > the pc register gets modified by klp_ftrace_handler. > > Signed-off-by: Abel Vesa > --- > arch/arm/kernel/entry-

Re: [PATCH v4 6/7] IIO: add STM32 timer trigger driver

2016-12-07 Thread Benjamin Gaignard
2016-12-07 11:50 GMT+01:00 Lee Jones : > On Tue, 06 Dec 2016, Benjamin Gaignard wrote: > >> [snip] >> >> + >> >> +static const char * const triggers0[] = { >> >> + TIM1_TRGO, TIM1_CH1, TIM1_CH2, TIM1_CH3, TIM1_CH4, NULL, >> >> +}; >> >> + >> >> +static const char * const triggers1[] = { >> >> +

Re: [PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Joao Pinto
Hi Srinivas! Thanks for the update! Acked-By: Joao Pinto Às 10:32 AM de 12/7/2016, Srinivas Kandagatla escreveu: > This patch add support to return value from host_init() callback from drivers, > so that the designware libary can handle or pass it to proper place. Issue > with > void return t

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Jakub Kicinski
On Wed, 7 Dec 2016 11:00:57 +0100, Sebastian Frias wrote: > On 07/12/16 09:42, Kalle Valo wrote: > > Sebastian Frias writes: > > > >> Introduce GENVALUE(msb, lsb, value) macro to ease dealing with > >> continuous bitfields, just as BIT(x) does for single bits. > >> > >> GENVALUE_ULL(msb, lsb, v

Re: [PATCH v1 1/1] serial: 8250_dw: Allow hardware flow control to be used

2016-12-07 Thread Andy Shevchenko
On Tue, 2016-12-06 at 14:34 -0800, Jason Uy wrote: > In the most common use case, the Synopsys DW UART driver does not > set the set_termios callback function.  This prevents UPSTAT_AUTOCTS > from being set when the UART flag CRTSCTS is set.  As a result, the > driver will use software flow control

[PATCH 0/8] efi: Pass secure boot mode to kernel [ver #4]

2016-12-07 Thread David Howells
oot on x86 head_*.S entry if we may not go through efi_main(). The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=efi-secure-boot at tag: efi-secure-boot-20161207 Note that the patches are not terminal on the branc

[PATCH 2/8] x86/efi: Allow invocation of arbitrary runtime services [ver #4]

2016-12-07 Thread David Howells
Provide the ability to perform mixed-mode runtime service calls for x86 in the same way that commit 0a637ee61247bd4bed9b2a07568ef7a1cfc76187 ("x86/efi: Allow invocation of arbitrary boot services") provides the ability to invoke arbitrary boot services. Suggested-by: Lukas Wunner Signed-off-by: D

[PATCH 3/8] arm/efi: Allow invocation of arbitrary runtime services [ver #4]

2016-12-07 Thread David Howells
efi_call_runtime() is provided for x86 to be able abstract mixed mode support. Provide this for ARM also so that common code work in mixed mode also. Suggested-by: Lukas Wunner Signed-off-by: David Howells --- arch/arm/include/asm/efi.h |1 + arch/arm64/include/asm/efi.h |1 + 2 fil

[PATCH 1/8] efi: use typed function pointers for runtime services table [ver #4]

2016-12-07 Thread David Howells
From: Ard Biesheuvel Instead of using void pointers, and casting them to correctly typed function pointers upon use, declare the runtime services pointers as function pointers using their respective prototypes, for which typedefs are already available. Signed-off-by: Ard Biesheuvel Signed-off-b

[PATCH 6/8] efi: Disable secure boot if shim is in insecure mode [ver #4]

2016-12-07 Thread David Howells
From: Josh Boyer A user can manually tell the shim boot loader to disable validation of images it loads. When a user does this, it creates a UEFI variable called MokSBState that does not have the runtime attribute set. Given that the user explicitly disabled validation, we can honor that and no

[PATCH 4/8] efi: Add SHIM and image security database GUID definitions [ver #4]

2016-12-07 Thread David Howells
Add the definitions for shim and image security database, both of which are used widely in various Linux distros. Signed-off-by: Josh Boyer Signed-off-by: David Howells Reviewed-by: Ard Biesheuvel --- include/linux/efi.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/

[PATCH 8/8] efi: Handle secure boot from UEFI-2.6 [ver #4]

2016-12-07 Thread David Howells
UEFI-2.6 adds a new variable, DeployedMode. If it exists, this must be 1 if we're to engage lockdown mode. Reported-by: James Bottomley Signed-off-by: David Howells --- drivers/firmware/efi/libstub/secureboot.c | 16 +++- include/linux/efi.h |4 2

[PATCH 7/8] efi: Add EFI_SECURE_BOOT bit [ver #4]

2016-12-07 Thread David Howells
From: Josh Boyer UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit that can be passed to efi_enabled() to find out whether secure boot is enabled. This will be used by the SysRq+x handler, registered by the x86 arch, to find out whether secure boot mode is enabled so th

[PATCH 5/8] efi: Get the secure boot status [ver #4]

2016-12-07 Thread David Howells
Get the firmware's secure-boot status in the kernel boot wrapper and stash it somewhere that the main kernel image can find. The efi_get_secureboot() function is extracted from the arm stub and (a) generalised so that it can be called from x86 and (b) made to use efi_call_runtime() so that it can

[linux-next] tracing/rb: NULL pointer dereference at trace_rb_cpu_prepare()

2016-12-07 Thread Tetsuo Handa
] Oops: [#1] SMP DEBUG_PAGEALLOC [1.934234] Modules linked in: [1.935721] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc8-next-20161207 #5 [1.939107] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/31/2013 [1.943443] task

[patch] drivers: net: xgene: uninitialized variable in xgene_enet_free_pagepool()

2016-12-07 Thread Dan Carpenter
We never set "slots" in this function. Fixes: a9380b0f7be8 ("drivers: net: xgene: Add support for Jumbo frame") Signed-off-by: Dan Carpenter --- I copied how slots gets set in xgene_enet_rx_frame(). Static analysis. Not tested. diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/dr

Re: [PATCH v3] add equivalent of BIT(x) for bitfields

2016-12-07 Thread Sebastian Frias
On 07/12/16 12:05, Jakub Kicinski wrote: > On Wed, 7 Dec 2016 11:00:57 +0100, Sebastian Frias wrote: >> On 07/12/16 09:42, Kalle Valo wrote: >>> Sebastian Frias writes: >>> Introduce GENVALUE(msb, lsb, value) macro to ease dealing with continuous bitfields, just as BIT(x) does for sin

Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support

2016-12-07 Thread Xishi Qiu
On 2016/12/7 16:43, Scott Branden wrote: > Hi Xishi, > > I followed you suggestions and found pfn_valid is always true. Answers to > your questions inline. > > I could keep debugging this but hope Marcin sends out some code - I'm quite > willing to test and help clean up the patchset. > > On

  1   2   3   4   5   6   7   8   >