Re: [PATCH] fs/select: add vmalloc fallback for select(2)

2016-09-27 Thread Vlastimil Babka
On 09/27/2016 01:42 PM, Nicholas Piggin wrote: On Tue, 27 Sep 2016 11:37:24 + David Laight wrote: From: Nicholas Piggin > Sent: 27 September 2016 12:25 > On Tue, 27 Sep 2016 10:44:04 +0200 > Vlastimil Babka wrote: > > > What's your customer doing

[PATCH v2 3/8] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-27 Thread Noralf Trønnes
Writing to an AT24C32 generates on average 2x i2c transfer errors per 32-byte page write. Which amounts to a lot for a 4k write. This is due to the fact that the chip doesn't respond during it's internal write cycle when the at24 driver tries and retries the next write. Reduce this flooding of the

[PATCH v2 8/8] ARM: bcm2835: Disable i2c2 in the Device Tree

2016-09-27 Thread Noralf Trønnes
i2c2 is connected to the HDMI connector and is controlled by the firmware. Disable it to stay out of harms way. >From the downstream commit: i2c-bcm2708/BCM270X_DT: Add support for I2C2 The third I2C bus (I2C2) is normally reserved for HDMI use. Careless use of this bus can break an attached

[PATCH v2 5/8] i2c: bcm2835: Add support for Repeated Start Condition

2016-09-27 Thread Noralf Trønnes
Documentation/i2c/i2c-protocol states that Combined transactions should separate messages with a Start bit and end the whole transaction with a Stop bit. This patch adds support for issuing only a Start between messages instead of a Stop followed by a Start. This implementation differs from

Re: [PATCH] VSOCK: Don't dec ack backlog twice for rejected connections

2016-09-27 Thread David Miller
From: Jorgen Hansen Date: Mon, 26 Sep 2016 23:59:53 -0700 > If a pending socket is marked as rejected, we will decrease the > sk_ack_backlog twice. So don't decrement it for rejected sockets > in vsock_pending_work(). > > Testing of the rejected socket path was done through

[PATCH v2 6/8] i2c: bcm2835: Support i2c-dev ioctl I2C_TIMEOUT

2016-09-27 Thread Noralf Trønnes
Use i2c_adapter->timeout for the completion timeout value. The core default is 1 second. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c

[PATCH v2 1/8] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-27 Thread Noralf Trønnes
Writing messages larger than the FIFO size results in a hang, rendering the machine unusable. This is because the RXD status flag is set on the first interrupt which results in bcm2835_drain_rxfifo() stealing bytes from the buffer. The controller continues to trigger interrupts waiting for the

Re: [PATCH] pinctrl: freescale: avoid overwriting pin config when freeing GPIO

2016-09-27 Thread Vladimir Zapolskiy
Hi Stefan, On 09/27/2016 03:26 AM, Stefan Agner wrote: If a GPIO gets freed after selecting a new pinctrl configuration the driver should not change pinctrl anymore. Otherwise this will likely lead to a unusable pin configuration for > the newly selected pinctrl. Signed-off-by: Stefan Agner

RE: [PATCH v2 3/3] usb: renesas_usbhs: cleanup with list_first_entry_or_null()

2016-09-27 Thread Yoshihiro Shimoda
Hi Yamada-san, > From: Masahiro Yamada > Sent: Monday, September 19, 2016 1:03 AM > > The combo of list_empty() check and return list_first_entry() > can be replaced with list_first_entry_or_null(). > > Signed-off-by: Masahiro Yamada Thank you for the patch!

Re: [RFC/RFT][PATCH v3 0/5] Functional dependencies between devices

2016-09-27 Thread Lukas Wunner
[+cc corbet] To whom it may concern, I made some notes while reviewing the state machine in patch 2 of this series and thought, why not rework it into something that could eventually go into the Documentation/ tree? So here's an initial draft. There's some introductory text plus a description

Re: [Gigaset307x-common] ISDN-Gigaset: Release memory in gigaset_initcs() after an allocation failure

2016-09-27 Thread SF Markus Elfring
>> * Is it still correct nowadays that the function "gigaset_initcs" did not >> call the function "kfree" after a later function call failed? > > Yes, if it is handled in another place, Paul already did show you the place. To which source code place do you refer here? >> * Do you expect that

[PATCH v2 0/1] mm/mempolicy.c: forbid static or relative flags for local NUMA mode

2016-09-27 Thread Piotr Kwapulinski
The MPOL_F_STATIC_NODES and MPOL_F_RELATIVE_NODES flags are irrelevant when setting them for MPOL_LOCAL NUMA memory policy via set_mempolicy or mbind. Return the "invalid argument" from set_mempolicy and mbind whenever any of these flags is passed along with MPOL_LOCAL. It is consistent with

[PATCH 1/3] coresight: tmc: Cleanup operation mode handling

2016-09-27 Thread Suzuki K Poulose
The mode of operation of the TMC tracked in drvdata->mode is defined as a local_t type. This is always checked and modified under the drvdata->spinlock and hence we don't need local_t for it and the unnecessary synchronisation instructions that comes with it. This change makes the code a bit more

[PATCH v7 5/8] thunderbolt: Networking state machine

2016-09-27 Thread Amir Levy
This patch builds the peer to peer communication path. Communication is established by a negotiation process whereby messages are sent back and forth between the peers until a connection is established. This includes the Thunderbolt Network driver communication with the second peer via Intel

[PATCH v7 0/8] thunderbolt: Introducing Thunderbolt(TM) Networking

2016-09-27 Thread Amir Levy
This driver enables Thunderbolt Networking on non-Apple platforms running Linux. Thunderbolt Networking provides peer-to-peer connections to transfer files between computers, perform PC migrations, and/or set up small workgroups with shared storage. This is a virtual connection that emulates an

[PATCH v7 7/8] thunderbolt: Networking doc

2016-09-27 Thread Amir Levy
Adding Thunderbolt(TM) networking documentation. Signed-off-by: Amir Levy --- Documentation/00-INDEX | 2 + Documentation/thunderbolt/networking.txt | 132 +++ 2 files changed, 134 insertions(+) create mode 100644

[PATCH v7 6/8] thunderbolt: Networking transmit and receive

2016-09-27 Thread Amir Levy
This patch provides the handling interface for sending and receiving network packets between the hosts over the full communication route (using the communication path established in the previous patch). The Thunderbolt Network driver interfaces the Linux network stack and the hardware controller

[PATCH v7 2/8] thunderbolt: Updating the register definitions

2016-09-27 Thread Amir Levy
Adding more Thunderbolt(TM) register definitions and some helper macros. Signed-off-by: Amir Levy --- drivers/thunderbolt/nhi_regs.h | 109 + 1 file changed, 109 insertions(+) diff --git a/drivers/thunderbolt/nhi_regs.h

Re: [PATCH] sched/fair: Do not decay new task load on first enqueue

2016-09-27 Thread Dietmar Eggemann
On 23/09/16 15:30, Vincent Guittot wrote: > Hi Matt, > > On 23 September 2016 at 13:58, Matt Fleming wrote: >> Since commit 7dc603c9028e ("sched/fair: Fix PELT integrity for new >> tasks") ::last_update_time will be set to a non-zero value in >>

[PATCH v7 4/8] thunderbolt: Communication with the ICM (firmware)

2016-09-27 Thread Amir Levy
This patch provides the communication protocol between the Intel Connection Manager(ICM) firmware that is operational in the Thunderbolt controller in non-Apple hardware. The ICM firmware-based controller is used for establishing and maintaining the Thunderbolt Networking connection - we need to

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-27 Thread Catalin Marinas
On Mon, Sep 26, 2016 at 06:33:59PM +0530, Pratyush Anand wrote: > On 26/09/2016:12:01:59 PM, Catalin Marinas wrote: > > On Sun, Sep 25, 2016 at 10:32:28PM +0530, Pratyush Anand wrote: > > > On Fri, Sep 23, 2016 at 6:35 PM, Catalin Marinas > > > wrote: > > > > On Fri, Sep

[PATCH v7 8/8] thunderbolt: Adding maintainer entry

2016-09-27 Thread Amir Levy
Add Amir Levy as maintainer for Thunderbolt(TM) ICM driver Signed-off-by: Amir Levy --- MAINTAINERS | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 01bff8e..a4a4614 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

Re: [PATCH 2/3] regulator: max77693: Also manipulate the fast charge current

2016-09-27 Thread Wolfgang Wiedmeyer
Krzysztof Kozlowski writes: > On Tue, Sep 27, 2016 at 01:31:09AM +0200, Wolfgang Wiedmeyer wrote: >> For MAX77693, the fast charge current also needs to be manipulated for >> proper charging. The fast charge current is only set in the case of >> the MAX77693 type, as the MAX77843 properly

[PATCH v7 3/8] thunderbolt: Kconfig for Thunderbolt Networking

2016-09-27 Thread Amir Levy
Update to the Kconfig Thunderbolt description to add Thunderbolt networking as an option. The menu item "Thunderbolt support" now offers: "Apple Hardware Support" (existing) and/or "Thunderbolt Networking" (new) You can choose the driver for your platform or build both drivers - each

[PATCH v7 1/8] thunderbolt: Macro rename

2016-09-27 Thread Amir Levy
This first patch updates the NHI Thunderbolt controller registers file to reflect that it is not only for Cactus Ridge. No functional change intended. Signed-off-by: Amir Levy Signed-off-by: Andreas Noever --- drivers/thunderbolt/nhi_regs.h |

Re: [PATCH 0/2 v3] cpu hotplug: Preserve topology directory after soft remove event

2016-09-27 Thread Greg Kroah-Hartman
On Tue, Sep 27, 2016 at 07:45:56AM -0400, Prarit Bhargava wrote: > On 09/26/2016 07:57 AM, Borislav Petkov wrote: > > $ echo 0 > /sys/devices/system/cpu/cpu2/online > > This results in the topology directory being destroyed. It shouldn't be -- > the > socket and core are still there. If you

[RFC][PATCH 6/7] printk: use alternative printk buffers

2016-09-27 Thread Sergey Senozhatsky
Use alt_printk buffer in in printk recursion-prone blocks: -- around logbuf_lock protected sections in vprintk_emit() and console_unlock() -- around down_trylock_console_sem() and up_console_sem() Note that it addresses deadlocks caused by recursiove printk() calls only. Examples: 1)

[RFC][PATCH 0/7] printk: use alt_printk to handle printk() recursive calls

2016-09-27 Thread Sergey Senozhatsky
WARN_ON(1); raw_spin_unlock_irqrestore(>pi_lock, flags); and some other. [[against next-20160927]] Sergey Senozhatsky (7): printk: use vprintk_func in vprintk() printk: rename nmi.c and exported api printk: introduce per-cpu alt_print seq buffer printk: make alt_printk available when config printk

[RFC][PATCH 5/7] printk: drop vprintk_func function

2016-09-27 Thread Sergey Senozhatsky
Drop vprintk_func() function and use this_cpu_read(printk_func), since now we always have alt_printk enabled. Signed-off-by: Sergey Senozhatsky --- kernel/printk/internal.h | 4 kernel/printk/printk.c | 4 ++-- 2 files changed, 2 insertions(+), 6

Re: [PATCH -next] openrisc: Define __ro_after_init to avoid crash

2016-09-27 Thread Guenter Roeck
On 09/27/2016 07:15 AM, Stafford Horne wrote: On Sat, 24 Sep 2016, Guenter Roeck wrote: openrisc qemu tests fail with the following crash. Unable to handle kernel access at virtual address 0xc0300c34 Oops#: 0001 CPU #: 0 PC: c016c710SR: ae67SP: c1017e04 GPR00:

[RFC PATCH v2 1/1] mm/vmalloc.c: correct a few logic error for __insert_vmap_area()

2016-09-27 Thread zijun_hu
From: zijun_hu __insert_vmap_area() has a few obvious logic errors as shown by comments within below code segments static void __insert_vmap_area(struct vmap_area *va) { as a internal function parameter, we assume vmap_area @va has nonzero size ... if

Re: [PATCH 3/7] openrisc: restore call-saved regs on sigreturn

2016-09-27 Thread Stafford Horne
On Mon, 19 Sep 2016, Stafford Horne wrote: On Mon, 19 Sep 2016, Jonas Bonn wrote: On 09/16/2016 04:43 PM, Stafford Horne wrote: > From: Jonas Bonn > > Return to userspace via _resume_userspace instead of via syscall return > path for the rt_sigreturn syscall.

Re: [PATCH 1/3] mfd: max77693: Add defines for charger current control

2016-09-27 Thread Wolfgang Wiedmeyer
Krzysztof Kozlowski writes: > On Tue, Sep 27, 2016 at 01:31:08AM +0200, Wolfgang Wiedmeyer wrote: >> This prepares for an updated regulator and charger driver. The defines >> are needed to set the maximum input current and the fast charge >> current. >> >> Signed-off-by: Wolfgang Wiedmeyer

using SDT events

2016-09-27 Thread Arnaldo Carvalho de Melo
Masami, Testing something else (event aliases/JSON) I saw the many sdt events available via 'perf list', decided to use the usual workflow, failed, what am I doing wrong? [root@jouet ~]# perf list sdt_qemu:pci* List of pre-defined events (to be used in -e): sdt_qemu:pci_cfg_read

Re: [PATCH v7 3/8] thunderbolt: Kconfig for Thunderbolt Networking

2016-09-27 Thread Greg KH
On Tue, Sep 27, 2016 at 04:43:36PM +0300, Amir Levy wrote: > Update to the Kconfig Thunderbolt description to add > Thunderbolt networking as an option. > The menu item "Thunderbolt support" now offers: > "Apple Hardware Support" (existing) > and/or > "Thunderbolt Networking" (new) > >

RE: [PATCH] timekeeping: Change type of nsec variable to unsigned in its calculation.

2016-09-27 Thread Thomas Gleixner
On Tue, 27 Sep 2016, Liav Rehana wrote: > -Original Message- . > Can you pretty please get rid of this --Original Message-- crap. There is absolutely no value in copying the mail header into every reply. > On Mon, 26 Sep 2016, Liav Rehana wrote: > >> During the calculation of the

[PATCH 0/1] man/set_mempolicy.2,mbind.2: add MPOL_LOCAL NUMA memory policy documentation

2016-09-27 Thread Piotr Kwapulinski
The MPOL_LOCAL mode has been implemented by Peter Zijlstra (commit: 479e2802d09f1e18a97262c4c6f8f17ae5884bd8). Add the documentation for this mode. Signed-off-by: Piotr Kwapulinski --- man2/mbind.2 | 16

Re: [PATCH] of: thermal: Fixed governor at each thermal zone

2016-09-27 Thread Eduardo Valentin
Hello, Lukasz, Inhyuk, Javi, On Tue, Sep 27, 2016 at 12:52:04PM +0100, Lukasz Luba wrote: > > On 27/09/16 02:46, Zhang Rui wrote: > >On 一, 2016-09-19 at 10:18 +0900, Inhyuk Kang wrote: > >>It is necessary to be added governor at each thermal_zone. > >>Because some governors should be operated in

[PATCH 1/1] mm/mempolicy.c: add MPOL_LOCAL NUMA memory policy documentation

2016-09-27 Thread Piotr Kwapulinski
The MPOL_LOCAL mode has been implemented by Peter Zijlstra (commit: 479e2802d09f1e18a97262c4c6f8f17ae5884bd8). Add the documentation for this mode. Signed-off-by: Piotr Kwapulinski --- Documentation/vm/numa_memory_policy.txt | 8

[PATCH v3 1/2] dt-bindings: display: Add Sharp LQ150X1LG11 panel binding

2016-09-27 Thread Peter Rosin
The Sharp 15" LQ150X1LG11 panel is an XGA TFT LCD panel. Signed-off-by: Peter Rosin --- .../bindings/display/panel/sharp,lq150x1lg11.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH] tools/testing/selftests/powerpc: Add Anton's null_syscall benchmark to the selftests

2016-09-27 Thread Rui Teng
From: Anton Blanchard Pull in a version of Anton's null_syscall benchmark: http://ozlabs.org/~anton/junkcode/null_syscall.c Into tools/testing/selftests/powerpc/benchmarks. Suggested-by: Michael Ellerman Signed-off-by: Anton Blanchard

[PATCHv3 1/3] serial: mctrl_gpio: implement mctrl_gpio_use_rtscts

2016-09-27 Thread Richard Genoud
This function returns true if CTS and RTS are used as GPIOs. Some drivers (like atmel_serial) needs to know if the flow control is handled by the controller or by GPIOs. Signed-off-by: Richard Genoud --- drivers/tty/serial/serial_mctrl_gpio.c | 8

Re: [PATCH v7 4/8] thunderbolt: Communication with the ICM (firmware)

2016-09-27 Thread Greg KH
On Tue, Sep 27, 2016 at 04:43:37PM +0300, Amir Levy wrote: > This patch provides the communication protocol between the > Intel Connection Manager(ICM) firmware that is operational in the > Thunderbolt controller in non-Apple hardware. > The ICM firmware-based controller is used for establishing

[PATCHv3 2/3] tty/serial: at91: fix hardware handshake with GPIOs

2016-09-27 Thread Richard Genoud
Commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when hardware handshake is enabled") broke the hardware handshake when GPIOs were used. Hardware handshake with GPIOs used to work before this commit because the CRTSCTS flag (termios->c_cflag) was set, but not the

[PATCHv3 3/3] tty/serial: at91: fix hardware handshake on SAM9x5 (without GPIOs)

2016-09-27 Thread Richard Genoud
Commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when hardware handshake is enabled") broke the hardware handshake on SAM9x5 platforms. On Atmel platforms, the USART can only handle the handware handshake (ATMEL_US_USMODE_HWHS) if FIFOs or PDC are used. Thus, ATMEL_US_USMODE_HWHS

Re: kernel BUG at net/unix/garbage.c:149!"

2016-09-27 Thread Nikolay Borisov
[Added Dave Miller to see what's the status of this patch] On 08/30/2016 12:18 PM, Miklos Szeredi wrote: > On Tue, Aug 30, 2016 at 12:37 AM, Miklos Szeredi wrote: >> On Sat, Aug 27, 2016 at 11:55 AM, Miklos Szeredi wrote: > >> crash> list -H

[PATCHv3 0/3] Fix hardware handshake on SAM9x5 platforms

2016-09-27 Thread Richard Genoud
atch fixes hardware handshake when CTS/RTS pins are not GPIOs. Changes since v2: - remove IS_ERR_OR_NULL() test in patch 1/3 as Uwe suggested. - fix typos in patch 2/3 - rebase on next-20160927 - simplify the logic in patch 3/3. Changes since v1: - Correct patch 1 with the error found by kbui

Re: [PATCH v7 5/8] thunderbolt: Networking state machine

2016-09-27 Thread Greg KH
On Tue, Sep 27, 2016 at 04:43:38PM +0300, Amir Levy wrote: > This patch builds the peer to peer communication path. > Communication is established by a negotiation process whereby messages are > sent back and forth between the peers until a connection is established. > This includes the

Re: [PATCH v7 5/8] thunderbolt: Networking state machine

2016-09-27 Thread Greg KH
On Tue, Sep 27, 2016 at 04:43:38PM +0300, Amir Levy wrote: > This patch builds the peer to peer communication path. > Communication is established by a negotiation process whereby messages are > sent back and forth between the peers until a connection is established. > This includes the

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-09-27 Thread Frederic Weisbecker
On Fri, Sep 02, 2016 at 10:28:00AM -0700, Andy Lutomirski wrote: > > Unless I'm missing something (which is reasonably likely), couldn't > the isolation code just force or require rcu_nocbs on the isolated > CPUs to avoid this problem entirely. rcu_nocb is already implied by nohz_full. Which

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-09-27 Thread Peter Zijlstra
On Tue, Sep 27, 2016 at 04:22:20PM +0200, Frederic Weisbecker wrote: > The RCU context tracking doesn't take care of callbacks. It's only there > to tell the RCU core whether the CPU runs code that may or may not run > RCU read side critical sections. This is assumed by "kernel may use RCU, >

Re: [v2] RANDOM: ATH9K RNG delivers zero bits of entropy

2016-09-27 Thread Kalle Valo
Stephan Mueller wrote: > The ATH9K driver implements an RNG which is completely bypassing the > standard Linux HW generator logic. > > The RNG may or may not deliver entropy. Considering the conservative > approach in treating entropy with respect to non-auditable sources,

Re: [PATCH 3/3] power_supply: max77693: Listen for cable events and enable charging

2016-09-27 Thread Wolfgang Wiedmeyer
Krzysztof Kozlowski writes: > On Tue, Sep 27, 2016 at 01:31:10AM +0200, Wolfgang Wiedmeyer wrote: >> This patch adds a listener for extcon cable events and enables >> charging if an USB cable is connected. It recognizes SDP and DCP cable >> types and treats them the same (same input current and

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

2016-09-27 Thread Christoph Hellwig
On Tue, Sep 27, 2016 at 03:48:20PM +1000, Stephen Rothwell wrote: > Yeah, sorry. Note, however, that you bothered to fix up this same > staging file in another of your patches ... It's generally not that I don't fix them up because I hate them, it's just because they are doing something so

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-27 Thread Radim Krčmář
2016-09-23 11:35+0200, Paolo Bonzini: > On 23/09/2016 01:18, Radim Krčmář wrote: >> We've had 10 page-sized bitmaps that were being allocated and freed one >> by one when we could just use a cycle and MSR bitmaps had a lot of >> useless code lying around. >> >> This patch >> * enumerates vmx

Re: [PATCH -next] openrisc: Define __ro_after_init to avoid crash

2016-09-27 Thread Stafford Horne
On Sat, 24 Sep 2016, Guenter Roeck wrote: openrisc qemu tests fail with the following crash. Unable to handle kernel access at virtual address 0xc0300c34 Oops#: 0001 CPU #: 0 PC: c016c710SR: ae67SP: c1017e04 GPR00: GPR01: c1017e04 GPR02: c0300c34 GPR03: c0300c34

Re: [Gigaset307x-common] ISDN-Gigaset: Release memory in gigaset_initcs() after an allocation failure

2016-09-27 Thread Tilman Schmidt
On Tue, Sep 27, 2016, at 14:52, SF Markus Elfring wrote: > >> * Is it still correct nowadays that the function "gigaset_initcs" did not > >> call the function "kfree" after a later function call failed? > > > > Yes, if it is handled in another place, Paul already did show you the place. > > To

[PATCH] uapi: add missing install of sync_file.h

2016-09-27 Thread Emilio López
As part of the sync framework destaging, the sync_file.h header was moved, but an entry was not added on Kbuild to install it. This patch resolves this omission so that "make headers_install" installs this header. Fixes: 460bfc41fd52 ("dma-buf/sync_file: de-stage sync_file headers") Reported-by:

Re: [PATCH 2/2] drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it

2016-09-27 Thread Sean Paul
On Fri, Sep 23, 2016 at 10:06 AM, Tomeu Vizoso wrote: > There's no point in enabling PSR when the panel doesn't support it. > > This also avoids a problem when PSR gets enabled when a CRTC is being > disabled, because sometimes in that situation the DSP_HOLD_VALID_INTR

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-27 Thread Eric W. Biederman
Ian Kent writes: > On Mon, 2016-09-26 at 11:05 -0500, Eric W. Biederman wrote: >> Ian Kent writes: >> >> > On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: >> > > Ian Kent writes: >> > > >> > > 2> On Thu, 2016-09-22 at 20:37

Re: [PATCH 1/2] drm/bridge: analogix_dp: Add analogix_dp_psr_supported

2016-09-27 Thread Sean Paul
On Fri, Sep 23, 2016 at 10:06 AM, Tomeu Vizoso wrote: > So users know whether PSR should be enabled or not. > > Signed-off-by: Tomeu Vizoso > Cc: Sean Paul > Cc: Yakir Yang > Cc: Archit Taneja

[PATCH v2] seq_file: don't set read position for invalid iterator

2016-09-27 Thread Tomasz Majchrzak
If kernfs file is empty on a first read, successive read operations using the same file descriptor will return no data, even when data is available. Default kernfs 'seq_next' implementation advances iterator position even when next object is not there. Kernfs 'seq_start' for following requests

[PATCH 3/3] coresight: tmc: Remove duplicate memset

2016-09-27 Thread Suzuki K Poulose
The tmc_etr_enable_hw() fills the buffer with 0's before enabling the hardware. So, we don't need an explicit memset() in tmc_enable_etr_sink_sysfs() before calling the tmc_etr_enable_hw(). This patch removes the explicit memset from tmc_enable_etr_sink_sysfs. Signed-off-by: Suzuki K Poulose

[PATCH 2/3] coresight: tmc: Get rid of mode parameter for helper routines

2016-09-27 Thread Suzuki K Poulose
Get rid of the superfluous mode parameter and the check for the mode in tmc_etX_enable_sink_{perf/sysfs}. While at it, also remove the unnecessary WARN_ON() checks. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose ---

Re: [PATCH v4 2/7] proc: Reduce cache miss in snmp_seq_show

2016-09-27 Thread David Miller
From: Jia He Date: Mon, 26 Sep 2016 16:09:10 +0800 > +static int snmp_seq_show_tcp_udp(struct seq_file *seq, void *v) > +{ > + int i; > + unsigned long buff[TCPUDP_MIB_MAX]; > + struct net *net = seq->private; Please always order local variables from longest to

Re: [PATCH v21 00/20] perf, tools: Add support for PMU events in JSON format

2016-09-27 Thread Jiri Olsa
On Mon, Sep 26, 2016 at 09:59:54AM -0700, Andi Kleen wrote: > On Mon, Sep 26, 2016 at 12:03:43PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Sep 26, 2016 at 10:35:33AM +0200, Jiri Olsa escreveu: > > > ping.. is that working for you? IMO we can include this > > > as additional patch to the

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-27 Thread Frederic Weisbecker
On Mon, Aug 29, 2016 at 12:27:06PM -0400, Chris Metcalf wrote: > On 8/16/2016 5:19 PM, Chris Metcalf wrote: > >Here is a respin of the task-isolation patch set. > > > >Again, I have been getting email asking me when and where this patch > >will be upstreamed so folks can start using it. I had

Re: kernel BUG at net/unix/garbage.c:149!"

2016-09-27 Thread Hannes Frederic Sowa
On Tue, Sep 27, 2016, at 16:16, Nikolay Borisov wrote: > Dave, > > What's the status of https://patchwork.ozlabs.org/patch/664062/ , is > this going to be picked up ? Not sure if we actually fix a bug with this. Miklos could you maybe enhance the changelog then? Thanks, Hannes

Re: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-09-27 Thread Kefeng Wang
On 2016/9/27 18:57, Greg Kroah-Hartman wrote: > On Sat, Sep 24, 2016 at 05:14:25PM +0800, Kefeng Wang wrote: >> Declare an OF early console for SBSA UART so that the early console device >> can be specified via the "stdout-path" property in device-tree. >> >> Cc: Russell King

[PATCH 1/1] man/set_mempolicy.2,mbind.2: forbid static or relative flags for local NUMA mode

2016-09-27 Thread Piotr Kwapulinski
Add documentation for the following patch: [PATCH v2 0/1] mm/mempolicy.c: forbid static or relative flags for local NUMA mode Signed-off-by: Piotr Kwapulinski --- man2/mbind.2 | 35 +++ man2/set_mempolicy.2 | 35

Re: [PATCH v2] fs/select: add vmalloc fallback for select(2)

2016-09-27 Thread Eric Dumazet
On Tue, 2016-09-27 at 10:13 +0200, Vlastimil Babka wrote: > I doubt anyone runs that in production, especially if performance is of > concern. > I doubt anyone serious runs select() on a large fd set in production. Last time I used it was in last century.

Re: [PATCH] blk-throttle: fix infinite throttling caused by non-cascading timer wheel

2016-09-27 Thread Vivek Goyal
On Tue, Sep 27, 2016 at 08:57:22AM -0400, Vivek Goyal wrote: > On Mon, Sep 19, 2016 at 03:11:10PM -0600, Jens Axboe wrote: > > On 09/19/2016 03:06 PM, Vivek Goyal wrote: > > > On Tue, Sep 13, 2016 at 09:46:46AM -0400, Vivek Goyal wrote: > > > > > > > > Hi Hou Tao, > > > > > > > > [ CC Tejun and

[RFC PATCH v2 1/1] mm/vmalloc.c: simplify /proc/vmallocinfo implementation

2016-09-27 Thread zijun_hu
From: zijun_hu simplify /proc/vmallocinfo implementation via existing seq_file helpers for list_head Signed-off-by: zijun_hu --- Changes in v2: - more detailed commit message is provided - the redundant type cast for list_entry() is removed as advised

[RFC][PATCH 7/7] printk: new printk() recursion detection

2016-09-27 Thread Sergey Senozhatsky
We can't use alt_printk when we are flushing alt_printk buffers to logbuf, because otherwise we would just flush messages back to alt_printk buffers. At the same time, this opens a door for potential deadlock, should flushing endup in recursive printk() call: irq_work_run()

Re: solo6010 modprobe lockup since e1ceb25a (v4.3 regression)

2016-09-27 Thread Andrey Utkin
On Tue, Sep 27, 2016 at 01:33:49PM +0200, Krzysztof Hałasa wrote: > Thanks. I can see you have quite a set of video devices there. > I will see what I can do with this. Yeah, I have got also 4-chip tw5864 board here :) Bluecherry decided to switch to it because they are available for retail

[RFC][PATCH 2/7] printk: rename nmi.c and exported api

2016-09-27 Thread Sergey Senozhatsky
A preparation patch for alt_printk work. No functional change. - rename nmi.c to alt_print.c - rename exported functions to have alt_printk prefix. Signed-off-by: Sergey Senozhatsky --- include/linux/printk.h| 12 +++ init/Kconfig

[RFC][PATCH 3/7] printk: introduce per-cpu alt_print seq buffer

2016-09-27 Thread Sergey Senozhatsky
This patch extends the idea of NMI per-cpu buffers to regions that may cause recursive printk() calls and possible deadlocks. Namely, printk() can't handle printk calls from schedule code or printk() calls from lock debugging code (spin_dump() for instance); because those may be called with

[RFC][PATCH 4/7] printk: make alt_printk available when config printk set

2016-09-27 Thread Sergey Senozhatsky
alt_printk must be enabled on systems that have CONFIG_PRINTK set, while NMI related functions must depend on CONFIG_PRINTK_NMI. Signed-off-by: Sergey Senozhatsky --- include/linux/printk.h | 14 -- kernel/printk/Makefile | 2 +-

[RFC][PATCH 1/7] printk: use vprintk_func in vprintk()

2016-09-27 Thread Sergey Senozhatsky
vprintk(), just like printk(), better be using per-cpu printk_func instead of direct vprintk_emit() call. Just in case if vprintk() will ever be called from NMI, or from any other context that can deadlock in printk(). Signed-off-by: Sergey Senozhatsky ---

Re: [PATCH] drm/sun4i: rgb: Enable panel after controller

2016-09-27 Thread Sean Paul
On Sat, Sep 24, 2016 at 4:18 PM, Maxime Ripard wrote: > On Fri, Sep 23, 2016 at 11:43:55PM +1000, Jonathan Liu wrote: >> Hi Maxime, >> >> On 23 September 2016 at 23:16, Maxime Ripard >> wrote: >> > On Thu, Sep 22, 2016 at

Re: [f2fs-dev] [PATCH v2] f2fs: introduce get_checkpoint_version for cleanup

2016-09-27 Thread Tiezhu Yang
Hi Chao, At 2016-09-27 17:46:30, "Chao Yu" wrote: >On 2016/9/27 10:05, Tiezhu Yang wrote: >> There exists almost same codes when get the value of pre_version >> and cur_version in function validate_checkpoint, this patch adds >> get_checkpoint_version to clean up redundant

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-27 Thread Rafael J. Wysocki
On Tuesday, September 27, 2016 11:02:22 PM Ondrej Zary wrote: > On Monday 26 September 2016 14:23:01 Rafael J. Wysocki wrote: > > On Sunday, September 25, 2016 03:12:05 PM Ondrej Zary wrote: > > > Hello, > > > I've upgraded kernel (Debian Squeeze - backports) from 4.6 > > > (4.6.4-1~bpo8+1) to 4.7

Re: [PATCH v3 04/11] ext2: remove support for DAX PMD faults

2016-09-27 Thread Dave Chinner
On Tue, Sep 27, 2016 at 02:47:55PM -0600, Ross Zwisler wrote: > DAX PMD support was added via the following commit: > > commit e7b1ea2ad658 ("ext2: huge page fault support") > > I believe this path to be untested as ext2 doesn't reliably provide block > allocations that are aligned to 2MiB. In

[RFC v2 4/4] phy,leds: add support for led triggers on phy link state change

2016-09-27 Thread Zach Brown
From: Josh Cartwright Create an option CONFIG_LED_TRIGGER_PHY (default n), which will create a set of led triggers for each instantiated PHY device. There is one LED trigger per link-speed, per-phy. This allows for a user to configure their system to allow a set of LEDs

[RFC v2 2/4] staging: rtl8712: Change _LED_STATE enum in rtl871x driver to avoid conflicts with LED namespace

2016-09-27 Thread Zach Brown
Adding led support for phy causes namespace conflicts for some phy drivers. The rtl871 driver declared an enum for representing LED states. The enum contains constant LED_OFF which conflicted with declaration found in linux/leds.h. LED_OFF changed to LED_STATE_OFF In order to avoid a possible

[RFC v2 1/4] skge: Change LED_OFF to LED_REG_OFF in marvel skge driver to avoid conflicts with leds namespace

2016-09-27 Thread Zach Brown
Adding led support for phy causes namespace conflicts for some phy drivers. The marvel skge driver declared an enum for representing the states of Link LED Register. The enum contained constant LED_OFF which conflicted with declartation found in linux/leds.h. LED_OFF changed to LED_REG_OFF

[RFC v2 0/4] Add support for led triggers on phy link state change

2016-09-27 Thread Zach Brown
Fix two net drivers that declared enum constants that conflict with enum constants in linux/leds.h Create function that encapsulates actions taken during the adjust phy link step of phy state changes. Add support for led triggers on phy link state changes by adding a config option. When set the

[RFC v2 3/4] phy: Encapsulate actions performed during link state changes into function phy_adjust_link

2016-09-27 Thread Zach Brown
During phy state machine state transitions some set of actions should occur whenever the link state changes. These actions should be encapsulated into a single function. This patch adds the phy_adjust_link function, which is called whenever phydev->adjust_link would have been called before.

BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-27 Thread Chen Yu
Hi All, I'm working on Hikey board based around the HiSilicon Kirin 620, with linaro kernel version 4.8.rc1 and I get below BUG error while extracting USB cable from PC. The funtion using f_fs is adb and usb_gadget_unregister_driver will be called after extracting USB cable from PC. [

Re: [PATCH 4.9] brcmfmac: use correct skb freeing helper when deleting flowring

2016-09-27 Thread Arend Van Spriel
On 27-9-2016 11:14, Rafał Miłecki wrote: > From: Rafał Miłecki > > Flowrings contain skbs waiting for transmission that were passed to us > by netif. It means we checked every one of them looking for 802.1x > Ethernet type. When deleting flowring we have to use freeing function

Re: [PATCH v3] fs/select: add vmalloc fallback for select(2)

2016-09-27 Thread Michal Hocko
On Tue 27-09-16 10:45:36, Vlastimil Babka wrote: > The select(2) syscall performs a kmalloc(size, GFP_KERNEL) where size grows > with the number of fds passed. We had a customer report page allocation > failures of order-4 for this allocation. This is a costly order, so it might > easily fail, as

Re: [PATCH 0/2] MCB patches for v4.9

2016-09-27 Thread Greg KH
On Tue, Sep 27, 2016 at 10:30:45AM +0200, Johannes Thumshirn wrote: > On Wed, Sep 14, 2016 at 12:05:22PM +0200, Johannes Thumshirn wrote: > > Hi Greg, > > > > Here are the additional MCB patches for v4.9. > > > > They're around enabling of DMA for devices on an MCBus, are tested and > > apply

Re: [PATCH] usb: atm: cxacru: Clean up if function returned NULL on failure

2016-09-27 Thread Greg KH
On Tue, Sep 13, 2016 at 09:59:31PM +0530, Amit Ghadge wrote: > Some functions return NULL on failure, used !x instead of x==NULL. > > Signed-off-by: Amit Ghadge > --- > drivers/usb/atm/cxacru.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) Always use

Re: [PATCH] usb: storage: alauda: Clean up if function returned NULL on failure

2016-09-27 Thread Greg KH
On Tue, Sep 13, 2016 at 10:48:51PM +0530, Amit Ghadge wrote: > Some functions return NULL on failure, used !x instead of x==NULL. > > Signed-off-by: Amit Ghadge > --- > drivers/usb/storage/alauda.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Same

Re: [PATCH] x86/cmpxchg: Remove superfluous definitions

2016-09-27 Thread Peter Zijlstra
On Mon, Sep 26, 2016 at 09:11:18PM +0300, Nikolay Borisov wrote: > cmpxchg contained definitions for unused (x)add_* operations, dating back > to the original ticket spinlock implementation. Nowadays these are > unused so remove them.

Re: [PATCH 01/37] staging: lustre: llite: add missing LMV_MAGIC_V1 case

2016-09-27 Thread Greg Kroah-Hartman
On Mon, Sep 26, 2016 at 10:50:50AM -0400, James Simmons wrote: > From: wang di > > The port to upstream dropped handling the LMV_MAGIC_V1 > case for ll_dir_getstripe. This adds it back. > > Signed-off-by: wang di > Intel-bug-id:

OUTLOOK WEB ACCESS

2016-09-27 Thread Webmail Helpdesk
Please follow this link to update your outlook/webmail http://1kld1ct34.ulcraft.com/ Thank you

Re: [PATCH] staging: vt6656: Add spaces around '+' operator

2016-09-27 Thread Greg KH
On Mon, Sep 26, 2016 at 02:48:24PM -0300, Martin Alonso wrote: > Fix coding style issue "spaces preferred around '+' > detected by checkpatch.pl in dpc.c file. > > Signed-off-by: Martin Alonso > --- > drivers/staging/vt6656/dpc.c | 4 ++-- > 1 file changed, 2

Re: [PATCH] kcov: properly check if we are in an interrupt

2016-09-27 Thread Vegard Nossum
On 09/27/2016 09:50 AM, Dmitry Vyukov wrote: On Tue, Sep 27, 2016 at 9:34 AM, Peter Zijlstra wrote: On Tue, Sep 27, 2016 at 08:21:32AM +0200, Dmitry Vyukov wrote: I suspect there is a bunch of places that use in_interrupt(), but mean the same as KCOV wants -- am I in

Re: [PATCH 4.9] brcmfmac: use correct skb freeing helper when deleting flowring

2016-09-27 Thread Kalle Valo
Arend Van Spriel writes: > On 27-9-2016 11:14, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> Flowrings contain skbs waiting for transmission that were passed to us >> by netif. It means we checked every one of them looking for 802.1x >>

  1   2   3   4   5   6   7   8   9   10   >