[PATCH 10/30] rapidio/tsi721: add shutdown notification callback

2016-02-05 Thread Alexandre Bounine
Add device driver specific shutdown notification callback. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 15 +++ drivers/rapidio/devices/tsi721.h |3

[PATCH 03/30] rapidio/tsi721: fix hardcoded MRRS setting

2016-02-05 Thread Alexandre Bounine
Remove use of hardcoded setting for Maximum Read Request Size (MRRS) value and use one set by PCIe bus driver. Using hardcoded value can cause PCIe bus errors on platforms that have tsi721 device on PCIe path that allows only smaller read request sizes. This fix is applicable to kernel versions

[PATCH 28/30] rapidio/tsi721_dma: fix synchronization issues

2016-02-05 Thread Alexandre Bounine
Fix synchronization issues found during testing using multiple DMA transfer requests to the same channel: - lost MSI-X interrupt notifications - non-synchronized attempts to start DMA channel HW resulting in error message from the driver - cookie tracking/update race conditions resulting in

[PATCH 04/30] rapidio/tsi721: add check for overlapped IB window mappings

2016-02-05 Thread Alexandre Bounine
Add check for attempts to request mapping of inbound RapidIO address space that overlaps with existing active mapping windows. Tsi721 device does not support overlapped inbound windows and SRIO address decoding behavior is not defined in such cases. This patch is applicable to kernel versions

[PATCH 23/30] rapidio/tsi721: fix locking in OB_MSG processing

2016-02-05 Thread Alexandre Bounine
- Add spinlock protection into outbound message queuing routine. - Change outbound message interrupt handler to avoid deadlock when calling registered callback routine. - Allow infinite retries for outbound messages to avoid retry threshold error signaling in systems with nodes that have slow

[PATCH 19/30] rapidio: add lock protection for doorbell list

2016-02-05 Thread Alexandre Bounine
Add lock protection around doorbell list handling to prevent list corruption on SMP platforms. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c |9 ++--- include/linux/rio.h |2

[PATCH 00/30] rapidio: mport character driver and subsystem updates

2016-02-05 Thread Alexandre Bounine
These patches are the result of extensive collaboration within the RapidIO.org Software Task Group between Texas Instruments, Freescale, Prodrive Technologies, Nokia Networks, BAE and IDT. Additional input was received from other members of RapidIO.org. The objective was to create a character mode

[PATCH 12/30] rapidio: rework common RIO device add/delete routines

2016-02-05 Thread Alexandre Bounine
This patch moves per-net device list handling from rio-scan to common RapidIO core and adds a matching device deletion routine. This makes device object creation/removal available to other implementations of enumeration/discovery process. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc:

[PATCH 21/30] rapidio: move rio_pw_enable into core code

2016-02-05 Thread Alexandre Bounine
Make rio_pw_enable() routine available to other RapidIO drivers. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-scan.c | 11 --- drivers/rapidio/rio.c | 19 +++

[PATCH 06/30] rapidio/tsi721_dma: fix pending transaction queue handling

2016-02-05 Thread Alexandre Bounine
Fix pending DMA request queue handling to avoid broken ordering during concurrent request submissions. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.h |2 +-

Re: [PATCH v8 2/2] add new platform driver for PCI RC

2016-02-05 Thread Bjorn Helgaas
On Fri, Feb 05, 2016 at 03:39:05PM +0100, Arnd Bergmann wrote: > On Friday 05 February 2016 10:44:29 Joao Pinto wrote: > > Hi, > > > > On 2/4/2016 11:43 PM, Bjorn Helgaas wrote: > > >> What do you think? > > > > > > I don't think the "dw" part is relevant (none of the other > > >

[PATCH 14/30] rapidio: add core mport removal support

2016-02-05 Thread Alexandre Bounine
Add common mport removal support functions into the RapidIO subsystem core. Changes to the existing mport registration process have been made to avoid race conditions with active subsystem interfaces immediately after mport device registration: part of initialization code from

[PATCH 05/30] rapidio/tsi721: add option to configure direct mapping of IB window

2016-02-05 Thread Alexandre Bounine
Add an option to configure mapping of Inbound Window without RIO-to-PCIe address translation. If a local memory buffer is not properly aligned to meet HW requirements for RapidIO address mapping with address translation, caller can request an inbound window with matching RapidIO address assigned

[PATCH 07/30] rapidio: add query_mport operation

2016-02-05 Thread Alexandre Bounine
Add mport query operation to report master port RapidIO capabilities and run time configuration to upper level drivers. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c| 17

[PATCH 25/30] rapidio/tsi721: add outbound windows mapping support

2016-02-05 Thread Alexandre Bounine
Add device-specific callback functions to support outbound windows mapping and release. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 222

[PATCH 13/30] rapidio: move net allocation into core code

2016-02-05 Thread Alexandre Bounine
Make net allocation/release routines available to all components of RapidIO subsystem by moving code from rio-scan enumerator. Make destination ID allocation method private to existing enumerator because other enumeration methods can use their own algorithm. Setup net device object as a parent of

[PATCH 15/30] rapidio/tsi721: add HW specific mport removal

2016-02-05 Thread Alexandre Bounine
Add hardware-specific device removal support for Tsi721 PCIe-to-RapidIO bridge. To avoid excessive data type conversions, parameters passed to some internal functions have been revised. Dynamic memory allocations of rio_mport and rio_ops have been replaced to reduce references between data

[PATCH 02/30] rapidio/rionet: add capability to change MTU

2016-02-05 Thread Alexandre Bounine
From: Aurelien Jacquiot Replace default Ethernet-specific routine by the custom one to allow setting of larger MTU supported by RapidIO messaging (max RIO packet size is 4096 bytes). Signed-off-by: Aurelien Jacquiot Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc:

[PATCH 22/30] rapidio: add global inbound port write interfaces

2016-02-05 Thread Alexandre Bounine
Add new Port Write handler registration interfaces that attach PW handlers to local mport device objects. This is different from old interface that attaches PW callback to individual RapidIO device. The new interfaces are intended for use for common event handling (e.g. hot-plug notifications)

[PATCH 11/30] rapidio/rionet: add shutdown event handling

2016-02-05 Thread Alexandre Bounine
Add shutdown notification handler which terminates active connections with remote RapidIO nodes. This prevents remote nodes from sending packets to the powered off node and eliminates hardware error events on remote nodes. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot

[PATCH 24/30] rapidio: add outbound window support

2016-02-05 Thread Alexandre Bounine
Add RapidIO controller (mport) outbound window configuration operations. This patch is a part of the original patch submitted by Li Yang (https://lists.ozlabs.org/pipermail/linuxppc-dev/2009-April/071210.html). For some reason the original part was not applied to mainline code tree. The inbound

[PATCH 01/30] rapidio/rionet: fix deadlock on SMP

2016-02-05 Thread Alexandre Bounine
From: Aurelien Jacquiot Fix deadlocking during concurrent receive and transmit operations on SMP platforms caused by the use of incorrect lock: on transmit 'tx_lock' spinlock should be used instead of 'lock' which is used for receive operation. This fix is applicable to kernel versions starting

[PATCH 30/30] rapidio: add mport char device driver

2016-02-05 Thread Alexandre Bounine
Add mport character device driver to provide user space interface to basic RapidIO subsystem operations. See included Documentation/rapidio/mport_cdev.txt for more details. Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc:

[PATCH 26/30] rapidio/tsi721: add filtered debug output

2016-02-05 Thread Alexandre Bounine
Replace "all-or-nothing" debug output with controlled debug output using functional block masks. This allows run time control of debug messages through 'dbg_level' module parameter. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc:

[PATCH 16/30] powerpc/fsl_rio: changes to mport registration

2016-02-05 Thread Alexandre Bounine
Change mport object initialization/registration sequence to match reworked version of rio_register_mport() in the core code. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org Cc:

[PATCH 29/30] rapidio/tsi721_dma: fix hardware error handling

2016-02-05 Thread Alexandre Bounine
Add DMA channel re-initialization after an error to avoid termination of all pending transfer requests. Signed-off-by: Alexandre Bounine Reported-by: Barry Wood Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org

[PATCH 18/30] rapidio/rionet: add mport removal handling

2016-02-05 Thread Alexandre Bounine
Add handling of a local mport device removal. RIONET driver registers itself as class interface that supports only removal notification, 'add_device' callback is not provided because RIONET network device can be initialized only after enumeration is completed and the existing method (using remote

[PATCH] arm64: disable kasan when accessing frame->fp in unwind_frame

2016-02-05 Thread Yang Shi
When boot arm64 kernel with KASAN enabled, the below error is reported by kasan: BUG: KASAN: out-of-bounds in unwind_frame+0xec/0x260 at addr ffc064d57ba0 Read of size 8 by task pidof/499 page:ffbdc39355c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x0() page dumped

[PATCH 20/30] rapidio: move rio_local_set_device_id function to the common core

2016-02-05 Thread Alexandre Bounine
Make function rio_local_set_device_id() common for all components of RapidIO subsystem. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-scan.c | 13 - drivers/rapidio/rio.c |

[PATCH] Intel DNV device IDs SATA

2016-02-05 Thread Alexandra Yates
Adding Intel codename DNV platform device IDs for SATA. Signed-off-by: Alexandra Yates --- drivers/ata/ahci.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 594fcab..546a369 100644 --- a/drivers/ata/ahci.c +++

[PATCH V3] i2c: i801: Adding Intel Lewisburg support for iTCO

2016-02-05 Thread Alexandra Yates
Changes log v2 to v3: Clarified commit message. No changes in code. Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device. This patch adds Intel lewisburg SMBus

[PATCH] net: phy: dp83848: Add support for TI TLK10x Ethernet PHYs

2016-02-05 Thread Andrew F. Davis
The TI TLK10x Ethernet PHYs are similar in the interrupt relevant registers and so are compatible with the DP83848x devices already supported. Add these and re-order code to support additional PHYs. Signed-off-by: Andrew F. Davis --- drivers/net/phy/dp83848.c | 89

Re: [PATCH 3/3 v3] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 08:17:56 PM Viresh Kumar wrote: > On Fri, Feb 5, 2016 at 7:06 PM, Rafael J. Wysocki wrote: > > >>> Index: linux-pm/drivers/cpufreq/cpufreq_ondemand.c > >>> @@ -264,7 +260,7 @@ static void update_sampling_rate(struct > >>> struct od_cpu_dbs_info_s

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Eric Dumazet
On Fri, 2016-02-05 at 21:44 +, Rainer Weikusat wrote: > The present unix_stream_read_generic contains various code sequences of > the form > > err = -EDISASTER; > if () > goto out; > > This has the unfortunate side effect of possibly causing the error code > to bleed through to the

Re: [PATCH 3/3 v3] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 02:36:54 PM Rafael J. Wysocki wrote: > On Fri, Feb 5, 2016 at 7:50 AM, Viresh Kumar wrote: > > Will suck some more blood, sorry about that :) > > > > On 05-02-16, 02:28, Rafael J. Wysocki wrote: > >> The v3 addresses some review comments from Viresh and a couple of

Re: [PATCH v2 2/10] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 12:23:41 PM Viresh Kumar wrote: > On 05-02-16, 03:14, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Every governor relying on the common code in cpufreq_governor.c > > has to provide its own mutex in struct common_dbs_data. However, > > there actually

Re: [PATCH v6 2/2] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2016-02-05 Thread Linus Walleij
On Mon, Feb 1, 2016 at 11:48 PM, Joshua Henderson wrote: > Add a driver for the pin controller present on the Microchip PIC32 > including the specific variant PIC32MZDA. This driver provides pinmux > and pinconfig operations as well as GPIO and IRQ chips for the GPIO > banks. > > Signed-off-by:

Re: [PATCH v6 1/2] dt/bindings: Add bindings for PIC32 pin control and GPIO

2016-02-05 Thread Linus Walleij
On Mon, Feb 1, 2016 at 11:48 PM, Joshua Henderson wrote: > Document the devicetree bindings for PINCTRL and GPIO found on Microchip > PIC32 class devices. > > Signed-off-by: Joshua Henderson > Cc: Ralf Baechle > Acked-by: Rob Herring > Cc: Linus Walleij > --- > Changes since v5: None Patch

[PATCH] af_unix: Don't use continue to re-execute unix_stream_read_generic loop

2016-02-05 Thread Rainer Weikusat
The unix_stream_read_generic function tries to use a continue statement to restart the receive loop after waiting for a message. This may not work as intended as the caller might use a recvmsg call to peek at control messages without specifying a message buffer. If this was the case, the continue

[PATCH 0/5] ARM: dts: NSP: DT Updates

2016-02-05 Thread Jon Mason
Northstar Plus device tree changes. The first 2 are bug fixes that probably should go in ASAP. The other 3 enable new hardware and can be pushed into the next merge window. Thanks, Jon Jon Mason (5): ARM: dts: NSP: Fix PCIE DT issue ARM: dts: NSP: Fix CPU DT issue ARM: dts: NSP: Add PMU

[PATCH 3/5] ARM: dts: NSP: Add PMU Support to DT

2016-02-05 Thread Jon Mason
Add support for the ARM Performance Monitor Unit to the Northstar Plus device tree. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index

Re: [PATCH v3] synopsys pcie rc generic platform driver update

2016-02-05 Thread Bjorn Helgaas
Hi Joao, On Fri, Feb 05, 2016 at 07:55:43PM +, Joao Pinto wrote: > This patch tries to improve the host/pcie-synopsys branch including a new > driver name, more accurate documentation and centralized link up validation. > Other platform drivers were also updated to include the new centralized

[PATCH 5/5] ARM: dts: NSP: Add SP804 Support to DT

2016-02-05 Thread Jon Mason
Add support for the ARM SP804 timer to the Northstar Plus device tree. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 0e8cb6e..06a242e

[PATCH 4/5] ARM: dts: NSP: Add SP805 Support to DT

2016-02-05 Thread Jon Mason
Add support for the ARM SP805 Watchdog timer to the Northstar Plus device tree. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 415a0a6..0e8cb6e 100644

[PATCH 2/5] ARM: dts: NSP: Fix CPU DT issue

2016-02-05 Thread Jon Mason
There is a double definition of the CPUs present in the device tree. Remove unnecessary cpu device tree definition. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi

[PATCH 1/5] ARM: dts: NSP: Fix PCIE DT issue

2016-02-05 Thread Jon Mason
Adding the ranges value is preventing the PCI nodes from working. Pulling them out outside makes them work again (and makes it similar to the NS2 device tree). Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 144 - 1 file changed, 72

Re: [PATCH v4 0/9] Add STM32 pinctrl/GPIO driver

2016-02-05 Thread Linus Walleij
On Wed, Jan 27, 2016 at 9:59 PM, Maxime Coquelin wrote: > How do you prefer to proceed? > Should I send a fix on top of your devel branch, or you will fix it > directly? I fixed it now and also got rid of the surplus container_of static inline. Sorry for the delay. Yours, Linus Walleij

[PATCH] pinctrl: stm32: fix compile error and modernize

2016-02-05 Thread Linus Walleij
- Fix the dev->parent assignment compile error - Use gpiochip_get_data() to get the data pointer for the banks Cc: Maxime Coquelin Cc: Patrice Chotard Signed-off-by: Linus Walleij --- I don't even know how to compile test this, I hope it works, Maxime can you verify? ---

Re: [PATCH v2 8/10] cpufreq: governor: Rename cpu_common_dbs_info to policy_dbs_info

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 02:04:06 PM Viresh Kumar wrote: > On 05-02-16, 03:20, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The struct cpu_common_dbs_info structure represents the per-policy > > part of the governor data (for the ondemand and conservative > > governors), but

Re: [PATCH v2 9/10] cpufreq: governor: Rearrange governor data structures

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 02:43:57 PM Viresh Kumar wrote: > On 05-02-16, 03:21, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The struct policy_dbs_info objects representing per-policy governor > > data are not accessible directly from the corresponding policy > > objects. To

Re: [PATCH v16 1/6] fpga: add bindings document for fpga region

2016-02-05 Thread Josh Cartwright
Hey Alan- First off, thanks for all of your (and others') work on this. On Fri, Feb 05, 2016 at 03:29:58PM -0600, at...@opensource.altera.com wrote: > From: Alan Tull > > New bindings document for FPGA Region to support programming > FPGA's under Device Tree control > > Signed-off-by: Alan

Re: [PATCH 0/5] Clean up warnings (part 2, asm/pci-bridge.h)

2016-02-05 Thread Bjorn Helgaas
On Tue, Feb 02, 2016 at 01:38:26PM -0600, Bjorn Helgaas wrote: > We've had some non-arch-specific stuff (pci_has_flag() and associated > definitions like PCI_PROBE_ONLY) in asm/pci-bridge.h. This leads to > warnings like: > > drivers/pci/host/pcie-designware.c:562:20: error: 'PCI_PROBE_ONLY'

Re: [PATCH 0/3] PCI: Clean up warnings

2016-02-05 Thread Bjorn Helgaas
On Tue, Feb 02, 2016 at 01:20:28PM -0600, Bjorn Helgaas wrote: > I'm on a quest to clean up compiler warnings in drivers/pci. I'd like to > be able to treat warnings as errors, at least for the 0day build robot. > > --- > > Bjorn Helgaas (3): > PCI: Check device_attach() return value

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton wrote: > On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: >> Could this be exposed as a writable /proc entry instead? Like the oom_* >> stuff? > > /proc//timer_slack_ns, guarded by ptrace_may_access(), documented > under Documentation/? Yup,

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-05 Thread David Miller
From: Robert Jarzmik Date: Fri, 05 Feb 2016 22:44:56 +0100 > Apart from Alberto who answered he cannot test it by lack of hardware, the > others didn't answer. > > So how can I move forward ? Would you want me to amend the KConfig to add a > "&& > !ARCH_PXA" on the "depend" line ? Please just

[PATCH] af_unix: Don't set err in unix_stream_read_generic unless there was an error

2016-02-05 Thread Rainer Weikusat
The present unix_stream_read_generic contains various code sequences of the form err = -EDISASTER; if () goto out; This has the unfortunate side effect of possibly causing the error code to bleed through to the final out: return copied ? : err; and then to be wrongly returned

Re: Bisected Regression 4.3.5 => 4.4.1 booting HP ZBook in EFI mode

2016-02-05 Thread Greg Kroah-Hartman
On Fri, Feb 05, 2016 at 04:48:52PM -0500, Phil Turmel wrote: > Hello all, > > I tried to get off of v4.3.x today by moving to v4.4.1. > My laptop failed to boot -- stuck with the BIOS boot logo still > showing. I'm direct-booting a merged kernel & initramfs in > EFI mode. > > I bisected to

Re: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Bjorn Helgaas
On Fri, Feb 05, 2016 at 12:45:25PM -0800, Shi, Yang wrote: > On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: > >[+cc Rob, et al] > > > >On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > >>The layerscape PCI host driver needs recognize ls2085a compatible when using > >>firmware with ls2085a

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-05 Thread Ross Zwisler
On Thu, Feb 04, 2016 at 09:29:57PM +0100, Jan Kara wrote: > I think changes aren't very intrusive so we can feed them in during RC > phase and frankly, you have to move to using ->writepages() anyway to make > sync(2) work reliably. I've been looking into this a bit more, and I don't think we

RE: [PATCH -v2] x86: Add an archinfo dumper module

2016-02-05 Thread Luck, Tony
+ show_reg_bits(m, "CR4", cr4_format, cr4); Can %pXX formats use more than one argument? If so, we might be able to move all my code to lib/vsprintf.c and just write: seq_printf(m, "CR4: %pBITS: 0x%lx\n", cr4_format, cr4, cr4); If they can't, we could bundle the format and value

Re: [REGRESSION] mm: filemap_map_pages NULL pointer dereference

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 10:05:02 -0800 Jeremiah Mahler wrote: > On a Lenovo X1 Carbon running -next (20160201+, 20160203+) I have > experienced several system hangs. I usually notice it first when > my browser (Chrome) stops responding but then other programs will stop > responding as well. The

Re: [PATCH v2] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 2:03 PM, Jason A. Donenfeld wrote: > The kptr_restrict flag, when set to 1, only prints the kernel > address when the user has CAP_SYSLOG. When it is set to 2, the > kernel address is always printed as zero. When set to 1, this > needs to check whether or not we're in IRQ.

Re: [PATCH V2] i2c: i801: Adding Intel Lewisburg support for iTCO

2016-02-05 Thread Alexandra Yates
Hi Jean, Thank you for your review and feedback. On 02/05/2016 01:48 AM, Jean Delvare wrote: On Fri, 5 Feb 2016 00:27:46 +0100, Wolfram Sang wrote: On Thu, Feb 04, 2016 at 03:06:55PM -0800, Alexandra Yates wrote: Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
Rainer Weikusat writes: > Joseph Salisbury writes: >> On 02/05/2016 02:59 PM, Rainer Weikusat wrote: > > [recvmsg w/o iovecs returning ENOTSUP for CMSG requests] [...] > There are more problems wrt handling control-message only reads in this > code. [...] > it will return without an error

[PATCH v2] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Jason A. Donenfeld
The kptr_restrict flag, when set to 1, only prints the kernel address when the user has CAP_SYSLOG. When it is set to 2, the kernel address is always printed as zero. When set to 1, this needs to check whether or not we're in IRQ. However, when set to 2, this check is unneccessary, and produces

Re: [REGRESSION] mm: filemap_map_pages NULL pointer dereference

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 10:05:02 -0800 Jeremiah Mahler wrote: > all, > > On a Lenovo X1 Carbon running -next (20160201+, 20160203+) I have > experienced several system hangs. I usually notice it first when > my browser (Chrome) stops responding but then other programs will stop > responding as

Re: [PATCH] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Jason A. Donenfeld
On Fri, Feb 5, 2016 at 9:46 PM, Kees Cook wrote: > > Instead of doing a double-check of kptr_restrict, how about moving > this logic down into the "case 1" test? I think that would be more > readable in the end. Good thinking. Will roll v2.

Re: [PATCH V2] i2c: i801: Adding Intel Lewisburg support for iTCO

2016-02-05 Thread Alexandra Yates
Hi Wolfram, On 02/04/2016 03:27 PM, Wolfram Sang wrote: On Thu, Feb 04, 2016 at 03:06:55PM -0800, Alexandra Yates wrote: Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2016-02-05 Thread Kees Cook
On Mon, Jan 4, 2016 at 2:07 PM, Russell King - ARM Linux wrote: > On Mon, Jan 04, 2016 at 12:34:28PM -0800, Kees Cook wrote: >> On Wed, Dec 23, 2015 at 4:34 PM, Russell King - ARM Linux >> wrote: >> > On Wed, Dec 23, 2015 at 04:11:22PM -0800, Tony Lindgren wrote: >> >> * Nicolas Pitre [151223

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
The present unix_stream_read_generic contains various code sequences of the form err = -EDISASTER; if () goto out; This has the unfortunate side effect of possibly causing the error code to bleed through to the final out: return copied ? : err; and then to be wrongly returned

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-05 Thread Robert Jarzmik
Robert Jarzmik writes: > David Miller writes: > >> From: Robert Jarzmik >> Date: Mon, 30 Nov 2015 22:40:28 +0100 >> >>> Convert the dma transfers to be dmaengine based, now pxa has a dmaengine >>> slave driver. This makes this driver a bit more PXA agnostic. >>> >>> The driver was only

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Daniel Baluta
On Fri, Feb 5, 2016 at 11:02 PM, Lucas De Marchi wrote: > Hi Daniel, > > On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta > wrote: >> + >> +static const struct i2c_device_id ads1015_id[] = { >> + {"ads1015", 0}, >> + {} >> +}; > > Since this module is not 100% compatible with the

[PATCH v16 1/6] fpga: add bindings document for fpga region

2016-02-05 Thread atull
From: Alan Tull New bindings document for FPGA Region to support programming FPGA's under Device Tree control Signed-off-by: Alan Tull Signed-off-by: Moritz Fischer --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more

[PATCH v16 3/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-02-05 Thread atull
From: Alan Tull Add bindings documentation for Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Signed-off-by: Alan Tull Signed-off-by: Matthew Gerlach Signed-off-by: Dinh Nguyen --- v2: separate into 2 documents for the 2 drivers v12: bump version to line up with

[PATCH v16 6/6] ARM: socfpga: fpga bridge driver support

2016-02-05 Thread atull
From: Alan Tull Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on.

[PATCH v16 4/6] fpga: add fpga bridge framework

2016-02-05 Thread atull
From: Alan Tull This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic,

[PATCH v16 2/6] add sysfs document for fpga bridge class

2016-02-05 Thread atull
From: Alan Tull Add documentation for new FPGA bridge class's sysfs interface. Signed-off-by: Alan Tull -- v15: Document added in v15 of patch set v16: No change to this patch in v16 of patch set --- Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +++ 1 file changed, 11

[PATCH v16 5/6] fpga: fpga-region: device tree control for FPGA

2016-02-05 Thread atull
From: Alan Tull FPGA Regions support programming FPGA under control of the Device Tree. Signed-off-by: Alan Tull --- v9: initial version (this patch added during rest of patchset's v9) v10: request deferral if fpga mgr or bridges not available yet cleanup as fpga manager core goes into

[PATCH v16 0/6] Device Tree support for FPGA programming

2016-02-05 Thread atull
From: Alan Tull v16 Refactors the FPGA Area and FPGA Bus into single thing called an FPGA Region and eliminates using simple-bus. I'm using the word "region" as it's a term is used in the literature of both the major FPGA manufacturors. Changes for v16: * Refactor the FPGA Area and FPGA Bus

Re: gigaset: memory leak in gigaset_initcshw

2016-02-05 Thread Dmitry Vyukov
On Fri, Feb 5, 2016 at 7:36 PM, Paul Bolle wrote: > On vr, 2016-02-05 at 17:06 +0100, Paul Bolle wrote: >> If that would happen, then cs can be reused while the previous >> > cs->hw.ser is not freed yet. Just a guess. >> >> I'll have to ponder on that a bit, sorry. > > This is from the

Re: [PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2016-02-05 Thread Shi, Yang
On 1/13/2016 10:10 AM, Shi, Yang wrote: On 1/13/2016 9:23 AM, Will Deacon wrote: On Wed, Jan 13, 2016 at 09:17:46AM -0800, Shi, Yang wrote: On 1/13/2016 2:26 AM, Will Deacon wrote: On Tue, Jan 12, 2016 at 11:59:54AM -0800, Shi, Yang wrote: This might be buried in email storm during the

Re: tty: deadlock between n_tracerouter_receivebuf and flush_to_ldisc

2016-02-05 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 7:48 PM, Dmitry Vyukov wrote: > Hopefully, once the problem with the bad stacktraces are fixed, the > actual circular lock dependencies will be clear. >> >>> Found a bug in lockdep. Yes, the first stack is correct, and the saved >>> stack is just a random, unrelated

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
Joseph Salisbury writes: > On 02/05/2016 02:59 PM, Rainer Weikusat wrote: [recvmsg w/o iovecs returning ENOTSUP for CMSG requests] >> Funny little problem :-). The code using the interruptible lock cleared >> err as side effect hence the >> >> out: >> return copied ? : err; >> >> at the

Re: [PATCH v2 2/4] lib: update single-char callers of strtobool

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 2:46 AM, David Laight wrote: > From: Kees Cook >> Sent: 04 February 2016 21:01 >> Some callers of strtobool were passing a pointer to unterminated strings. >> In preparation of adding multi-character processing to kstrtobool, update >> the callers to not pass

Re: [PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem)

2016-02-05 Thread Dmitry Vyukov
On Fri, Feb 5, 2016 at 5:40 PM, Jiri Kosina wrote: > On Fri, 5 Feb 2016, Dmitry Vyukov wrote: > >> I don't have any objections. And I agree that it does not make sense >> to spend any considerable time on optimizing this driver. > > Yeah, on a second thought this definitely is the way how to deal

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Lucas De Marchi
Hi Daniel, On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta wrote: > + > +static const struct i2c_device_id ads1015_id[] = { > + {"ads1015", 0}, > + {} > +}; Since this module is not 100% compatible with the hwmon version, wouldn't it be better to use another id? Other than that, I

[PATCH v3 2/4] lib: update single-char callers of strtobool

2016-02-05 Thread Kees Cook
Some callers of strtobool were passing a pointer to unterminated strings. In preparation of adding multi-character processing to kstrtobool, update the callers to not pass single-character pointers, and switch to using the new kstrtobool_from_user helper where possible. Signed-off-by: Kees Cook

[PATCH v3 1/4] lib: move strtobool to kstrtobool

2016-02-05 Thread Kees Cook
Create the kstrtobool_from_user helper and moves strtobool logic into the new kstrtobool (matching all the other kstrto* functions). Provides an inline wrapper for existing strtobool callers. Signed-off-by: Kees Cook --- v3: - drop needless "base" argument, rasmus --- include/linux/kernel.h |

[PATCH v3 3/4] lib: add "on"/"off" support to kstrtobool

2016-02-05 Thread Kees Cook
Add support for "on" and "off" when converting to boolean. Signed-off-by: Kees Cook --- v3: - add dropped descripion change, andy.shevchenko --- lib/kstrtox.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/kstrtox.c b/lib/kstrtox.c index

[PATCH v3 0/4] lib: add "on" and "off" to strtobool

2016-02-05 Thread Kees Cook
This consolidates logic for handling "on"/"off" parsing for bools into the strtobool function, by way of moving it into kstrtobool (with helpers), and updating various callers. v3: - removed unused "base" argument - fixed missing description change - retained inverted __setup return values -

[PATCH v3 4/4] param: convert some "on"/"off" users to strtobool

2016-02-05 Thread Kees Cook
This changes several users of manual "on"/"off" parsing to use strtobool. Some side-effects: - these uses will now parse y/n/1/0 meaningfully too - the early_param uses will now bubble up parse errors Signed-off-by: Kees Cook Acked-by: Heiko Carstens Acked-by: Michael Ellerman Cc:

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Yang-Leo Li
> On Fri, Feb 05, 2016 at 06:07:10AM +, Minghuan Lian wrote: > > The patch is ok to me. > > Thanks, I'll transform that into an ack. Also Acked-by: Li Yang > > Who's going to post a patch to update MAINTAINERS to fix the @freescale.com > addresses? If we can get that in for v4.5, it will

fs: NULL deref in atime_needs_update

2016-02-05 Thread Dmitry Vyukov
Hello, I've hit the following GPF while running syzkaller fuzzer: general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN Modules linked in: CPU: 1 PID: 5178 Comm: syz-executor Not tainted 4.5.0-rc2+ #65 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 task:

Re: [3.13.y-ckt stable] Linux 3.13.11-ckt34

2016-02-05 Thread Kamal Mostafa
diff --git a/Makefile b/Makefile index 03edcd7..85fc0f0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 3 PATCHLEVEL = 13 SUBLEVEL = 11 -EXTRAVERSION = -ckt33 +EXTRAVERSION = -ckt34 NAME = King of Alienated Frog Porn # *DOCUMENTATION* diff --git a/arch/arm64/kernel/ptrace.c

[3.13.y-ckt stable] Linux 3.13.11-ckt34

2016-02-05 Thread Kamal Mostafa
I am announcing the release of the Linux 3.13.11-ckt34 kernel. The updated 3.13.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.13.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y The diff from v3.13.11-ckt33 is

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Tejun Heo
On Fri, Feb 05, 2016 at 09:59:49PM +0100, Mike Galbraith wrote: > On Fri, 2016-02-05 at 15:54 -0500, Tejun Heo wrote: > > > What are you suggesting? > > That 874bbfe6 should die. Yeah, it's gonna be killed. The commit is there because the behavior change broke things. We don't want to

ALERT!

2016-02-05 Thread Admin Support
Dear User, This is to inform you that on the 1st February 2016, we updated our webmail display framework with the all new Display and Network EPM. We’ve temporarily limited what you can do with your email account as you are still using the old server. Update your email to gain full access to

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Mike Galbraith
On Fri, 2016-02-05 at 15:54 -0500, Tejun Heo wrote: > What are you suggesting? That 874bbfe6 should die. -Mike

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Tejun Heo
Hello, Mike. On Fri, Feb 05, 2016 at 09:47:11PM +0100, Mike Galbraith wrote: > That very point is what makes it wrong for the workqueue code to ever > target a work item. The instant it does target selection, correctness > may be at stake, it doesn't know, thus it must assume the full onus, >

Re: [PATCH v2 1/4] lib: move strtobool to kstrtobool

2016-02-05 Thread Kees Cook
On Thu, Feb 4, 2016 at 3:55 PM, Rasmus Villemoes wrote: > On Thu, Feb 04 2016, Kees Cook wrote: > >> Create the kstrtobool_from_user helper and moves strtobool logic into >> the new kstrtobool (matching all the other kstrto* functions). Provides >> an inline wrapper for existing strtobool

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