[PATCH 3.13.y-ckt 24/30] SCSI: fix crashes in sd and sr runtime PM

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Alan Stern commit 13b4389143413a1f18127c07f72c74cad5b563e8 upstream. Runtime suspend during driver probe and removal can cause problem

[PATCH 3.13.y-ckt 20/30] USB: option: fix Cinterion AHxx enumeration

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: John Ernberg commit 4152b387da81617c80cb2946b2d56e3958906b3e upstream. In certain kernel configurations where the cdc_ether and option

[PATCH 3.13.y-ckt 17/30] ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup()

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Takashi Iwai commit 599151336638d57b98d92338aa59c048e3a3e97d upstream. ALSA sequencer OSS emulation code has a sanity check for curren

[PATCH 3.13.y-ckt 13/30] usb: hub: do not clear BOS field during reset device

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: "Du, Changbin" commit d8f00cd685f5c8e0def8593e520a7fef12c22407 upstream. In function usb_reset_and_verify_device, the old BOS descript

[PATCH 3.13.y-ckt 16/30] USB: serial: option: Adding support for Telit LE922

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Daniele Palmas commit ff4e2494dc17b173468e1713fdf6237fd8578bc7 upstream. This patch adds support for two PIDs of LE922. Signed-off-by

[PATCH 3.13.y-ckt 19/30] USB: serial: ftdi_sio: add support for Yaesu SCU-18 cable

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Greg Kroah-Hartman commit e03cdf22a2727c60307be6a729233edab3bfda9c upstream. Harald Linden reports that the ftdi_sio driver works prop

[PATCH 3.13.y-ckt 14/30] USB: cp210x: add ID for IAI USB to RS485 adaptor

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Peter Dedecker commit f487c54ddd544e1c9172cd510954f697b77b76e3 upstream. Added the USB serial console device ID for IAI Corp. RCB-CV-U

[PATCH 3.13.y-ckt 15/30] USB: visor: fix null-deref at probe

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Johan Hovold commit cac9b50b0d75a1d50d6c056ff65c005f3224c8e0 upstream. Fix null-pointer dereference at probe should a (malicious) Treo

[PATCH 3.13.y-ckt 06/30] ASN.1: Fix non-match detection failure on data overrun

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: David Howells commit 0d62e9dd6da45bbf0f33a8617afc5fe774c8f45f upstream. If the ASN.1 decoder is asked to parse a sequence of objects,

[PATCH 3.13.y-ckt 09/30] x86/irq: Call chip->irq_set_affinity in proper context

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Thomas Gleixner commit e23b257c293ce4bcc8cabb2aa3097b6ed8a8261a upstream. setup_ioapic_dest() calls irqchip->irq_set_affinity() comple

[PATCH 3.13.y-ckt 11/30] usb: cdc-acm: send zero packet for intel 7260 modem

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Lu Baolu commit ffdb1e369a73b380fce95b05f8498d92c43842b4 upstream. For Intel 7260 modem, it is needed for host side to send zero packe

[PATCH 3.13.y-ckt 12/30] cdc-acm:exclude Samsung phone 04e8:685d

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Oliver Neukum commit e912e685f372ab62a2405a1acd923597f524e94a upstream. This phone needs to be handled by a specialised firmware tool

[PATCH 3.13.y-ckt 05/30] USB: serial: visor: fix crash on detecting device without write_urbs

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Vladis Dronov commit cb3232138e37129e88240a98a1d2aba2187ff57c upstream. The visor driver crashes in clie_5_attach() when a specially c

[PATCH 3.13.y-ckt 10/30] usb: cdc-acm: handle unlinked urb in acm read callback

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Lu Baolu commit 19454462acb1bdef80542061bdc9b410e4ed1ff6 upstream. In current acm driver, the bulk-in callback function ignores the UR

[PATCH 3.13.y-ckt 01/30] [media] usbvision fix overflow of interfaces array

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Oliver Neukum commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream. This fixes the crash reported in: http://seclists.org/bugtraq/

[PATCH 3.13.y-ckt 07/30] qeth: initialize net_device with carrier off

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Ursula Braun commit e5ebe63214d44d4dcf43df02edf3613e04d671b9 upstream. /sys/class/net//operstate for an active qeth network interface

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

2016-02-10 Thread Rafael J. Wysocki
On Wed, Feb 10, 2016 at 8:47 PM, Steve Muckle wrote: > On 02/09/2016 07:09 PM, Rafael J. Wysocki wrote: >> I think additional hooks such as enqueue/dequeue would be needed in >> RT/DL. The task tick callbacks will only run if a task in that class is >> executing at the time of the t

[PATCH 3.13.y-ckt 08/30] iio: adis_buffer: Fix out-of-bounds memory access

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Lars-Peter Clausen commit d590faf9e8f8509a0a0aa79c38e87fcc6b913248 upstream. The SPI tx and rx buffers are both supposed to be scan_by

[PATCH 3.13.y-ckt 02/30] [media] usbvision: fix leak of usb_dev on failure paths in usbvision_probe()

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Alexey Khoroshilov commit afd270d1a45043cef14341bcceff62ed50e8dc9a upstream. There is no usb_put_dev() on failure paths in usbvision_p

Re: kernel pruning script..

2016-02-10 Thread Linus Torvalds
On Wed, Feb 10, 2016 at 1:05 PM, David Rientjes wrote: >> > for f in $(ls /lib/modules); do >> > if rpm -qf "/lib/modules/$f" >/dev/null; then >> > echo "keeping $f (installed from rpm)" >> > elif [ $(uname -r) = "$f" ]; then >> > echo "keeping $f (

[PATCH 3.13.y-ckt 03/30] [media] usbvision: fix crash on detecting device with invalid configuration

2016-02-10 Thread Kamal Mostafa
3.13.11-ckt35 -stable review patch. If anyone has any objections, please let me know. ---8< From: Vladis Dronov commit fa52bd506f274b7619955917abfde355e3d19ffe upstream. The usbvision driver crashes when a specially crafted usb devi

[PATCH] arm64: vdso: Mark vDSO code as read-only

2016-02-10 Thread David Brown
Although the arm64 vDSO is cleanly separated by code/data with the code being read-only in userspace mappings, the code page is still writable from the kernel. There have been exploits (such as http://itszn.com/blog/?p=21) that take advantage of this on x86 to go from a bad kernel write to full ro

Re: compat_hdio_ioctl() question

2016-02-10 Thread Arnd Bergmann
On Tuesday 09 February 2016 17:38:56 Soohoon Lee wrote: > > Hi, > I found that you are the author of this code. I don't think I am, but that's fine. I think I just moved the code from one place to another. > So please let me ask a question. I hope it's ok for you to Cc this to a linux-ide and l

[char-misc-next] mei: fix double freeing of a cb during link reset

2016-02-10 Thread Tomas Winkler
From: Alexander Usyskin Fix double freeing of the cb that can happen if link reset kicks in the middle of blocked write from a device on the cl bus. Free cb inside mei_cl_write function on failure and drop cb free operation from callers, during a link reset the mei_cl_write function returns wit

Re: [PATCH v2 2/2] dax: move writeback calls into the filesystems

2016-02-10 Thread Dave Chinner
On Wed, Feb 10, 2016 at 01:48:56PM -0700, Ross Zwisler wrote: > Previously calls to dax_writeback_mapping_range() for all DAX filesystems > (ext2, ext4 & xfs) were centralized in filemap_write_and_wait_range(). > dax_writeback_mapping_range() needs a struct block_device, and it used to > get that f

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

2016-02-10 Thread Steve Muckle
On 02/10/2016 01:49 PM, Rafael J. Wysocki wrote: >>> If done this way, I guess we may pass rq_clock_task(rq) as the time >>> >> arg to cpufreq_update_util() from there and then the cpu_lock() call >>> >> I've added to this prototype won't be necessary any more. >> > >> > Is it rq_clock_task() or rq

fs/udf and udftools

2016-02-10 Thread Steve Kenton
Is anyone maintaining these or am I about to volunteer for another job? I'm having to dig into fs/udf and udftools/mkudffs as part of a project I'm working on. It looks like both have been lacking in personal TLC for quite a while. The changes to fs/udf seem to be tree wide VFS work but not upda

Re: [PATCH 4/6] dt-bindings: watchdog: Add ARM SP805 DT bindings

2016-02-10 Thread Florian Fainelli
On 09/02/16 22:10, Anup Patel wrote: > The ARM SP805 DT node is already present in various DTS files. > This patch adds missing DT bindings documentation for ARM SP805. > > Signed-off-by: Anup Patel > Reviewed-by: Ray Jui > Reviewed-by: Vikram Prakash > Reviewed-by: Scott Branden Rob, we woul

Re: Another proposal for DAX fault locking

2016-02-10 Thread Dave Chinner
On Wed, Feb 10, 2016 at 11:32:49AM +0100, Jan Kara wrote: > On Tue 09-02-16 10:18:53, Dan Williams wrote: > > On Tue, Feb 9, 2016 at 9:24 AM, Jan Kara wrote: > > > Hello, > > > > > > I was thinking about current issues with DAX fault locking [1] (data > > > corruption due to racing faults allocati

Re: [RFC PATCH v2] blk-mq: Introduce per sw queue time-slice

2016-02-10 Thread Andreas Herrmann
On Wed, Feb 10, 2016 at 08:47:15PM +0100, Markus Trippelsdorf wrote: > On 2016.02.10 at 20:34 +0100, Andreas Herrmann wrote: > > On Tue, Feb 09, 2016 at 06:41:56PM +0100, Markus Trippelsdorf wrote: > > > > Recently Johannes sent a patch to enable scsi-mq per driver, see > > > > http://marc.info/?l=

Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE

2016-02-10 Thread Paul Burton
On Mon, Jul 13, 2015 at 05:12:44PM +0100, Paul Burton wrote: > After writing the appropriate mask to the cop0 PageMask register, read > the register back & check it matches what we want. If it doesn't then > the MMU does not support the page size the kernel is configured for and > we're better off

Re: [PATCH v2 07/13] arm: move exports to definitions

2016-02-10 Thread Nicolas Pitre
On Wed, 3 Feb 2016, Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro The following construct is incompatible with my autoksyms series: > diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h > index 7d807cf..df06638 100644 > --- a/arch/arm/lib/bitops.h > +++ b/arch/arm/lib/bitop

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

2016-02-10 Thread Rafael J. Wysocki
On Wed, Feb 10, 2016 at 11:07 PM, Steve Muckle wrote: > On 02/10/2016 01:49 PM, Rafael J. Wysocki wrote: If done this way, I guess we may pass rq_clock_task(rq) as the time >> arg to cpufreq_update_util() from there and then the cpu_lock() call >> I've added to this prototype won't

Re: [PATCH v2 02/13] EXPORT_SYMBOL() for asm

2016-02-10 Thread Nicolas Pitre
On Wed, 3 Feb 2016, Al Viro wrote: > From: Al Viro > > Add asm-usable variants of EXPORT_SYMBOL/EXPORT_SYMBOL_GPL. This > commit just adds the default implementation; most of the architectures > can simply add export.h to asm/Kbuild and start using > from assembler. The rest needs to have the

[PATCH 1/3] selftests/x86: Fix some error messages in ptrace_syscall

2016-02-10 Thread Andy Lutomirski
I had some obvious typos. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/ptrace_syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/x86/ptrace_syscall.c b/tools/testing/selftests/x86/ptrace_syscall.c index 5105b49cd8aa..c6a

[PATCH 2/3] selftests/x86: Add a test for syscall restart under ptrace

2016-02-10 Thread Andy Lutomirski
This catches a regression from the compat syscall rework. The 32-bit variant of this test currently fails. The issue is that, for a 32-bit tracer and a 32-bit tracee, GETREGS+SETREGS with no changes should be a no-op. It currently isn't a no-op if RAX indicates signal restart, because the high b

[PATCH 0/3] x86: Test and fix a minor compat entry regression

2016-02-10 Thread Andy Lutomirski
I broke certain cases of compat syscall restart under ptrace. Here's a test and a fix. Andy Lutomirski (3): selftests/x86: Fix some error messages in ptrace_syscall selftests/x86: Add a test for syscall restart under ptrace x86/entry/compat: Keep TS_COMPAT set during signal delivery arch/

commit 271e1b86e691 is breaking DMA uart on SoCFPGA

2016-02-10 Thread Dinh Nguyen
Hi Vinod, It appears that commit 271e1b86e691 "dmaengine: pl330: add quirk for broken no flushp" is breaking uart dma on SoCFPGA. This commit is in linux-next(next-20160210). Doing a bisect pointed to commit 271e1b86e691, but I had to also revert the following commits (86a8ce7d4103

Incorrect processing of "1" raw_event() return value inside hid_input_report()

2016-02-10 Thread Dmitry Semyonov
Hello Jiri, Please, refer to the commit b1a1442a23776756b254b69786848a94d92445ba and to the second part of http://thread.gmane.org/gmane.linux.kernel.input/39802. (The message author was right but hesitated to insist. Therefore, I have to re-open the issue): >> if (hdrv && hdrv->raw_event

[PATCH v5 00/10] Input: synaptics-rmi4: Synaptics RMI4 Driver

2016-02-10 Thread Andrew Duggan
This is the v5 patch series which fixes the issues identified by kbuild and coccinelle in the previous patch series. These include: - Using ARRAY_SIZE instead of a custom macro to calculate the size of the function handler array. - Remove setting the .owner field for the driver in rmi_i2c and rm

[PATCH v5 02/10] Input: synaptics-rmi4: Add I2C transport driver

2016-02-10 Thread Andrew Duggan
Add the transport driver for devices using RMI4 over I2C. Signed-off-by: Andrew Duggan Signed-off-by: Christopher Heiny --- drivers/input/rmi4/Kconfig | 9 + drivers/input/rmi4/Makefile | 3 + drivers/input/rmi4/rmi_i2c.c | 387 +++ 3 files changed

[PATCH v5 01/10] Input: synaptics-rmi4: Add support for Synaptics RMI4 devices

2016-02-10 Thread Andrew Duggan
Synaptics uses the Register Mapped Interface (RMI) protocol as a communications interface for their devices. This driver adds the core functionality needed to interface with RMI4 devices. RMI devices can be connected to the host via several transport protocols and can supports a wide variety of fu

[PATCH v5 05/10] Input: synaptics-rmi4: Add device tree support for 2d sensors and F11

2016-02-10 Thread Andrew Duggan
2D sensors have several parameter which can be set in the platform data. This patch adds support for getting those values from devicetree. Signed-off-by: Andrew Duggan --- .../bindings/input/rmi4/rmi_2d_sensor.txt | 56 +++ .../bindings/input/touchscreen/touchscreen.txt |

[PATCH v5 03/10] Input: synaptics-rmi4: Add device tree support for RMI4 I2C devices

2016-02-10 Thread Andrew Duggan
Add devicetree binding for I2C devices and add bindings for optional parameters in the function drivers. Parameters for function drivers are defined in child nodes for each of the functions. Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_f01.txt | 39

[PATCH v5 04/10] Input: synaptics-rmi4: Add support for 2D sensors and F11

2016-02-10 Thread Andrew Duggan
RMI4 currently defines two functions for reporting data for 2D sensors (F11 and F12). This patch adds the common functionality which is shared by devices with 2D reporting along with implementing functionality for F11. Signed-off-by: Andrew Duggan Signed-off-by: Christopher Heiny --- drivers/in

Re: [PATCH] x86, pci: Add quirk for unsizeable Broadwell EP bar

2016-02-10 Thread Andi Kleen
On Fri, Feb 05, 2016 at 10:34:27AM -0600, Bjorn Helgaas wrote: > On Fri, Feb 05, 2016 at 04:36:17AM +0100, Andi Kleen wrote: > > > > But would actually anything use it? > > > > > > You mean, would anything actually use the lspci output? I don't know, > > > but why would we want it to print garbag

[PATCH v5 07/10] Input: synaptics-rmi4: Add support for F30

2016-02-10 Thread Andrew Duggan
RMI4 F30 supports input from clickpad buttons and controls LEDs located on the touchpad PCB. This patch adds support of the clickpad buttons and defers supporting LEDs for the future. Signed-off-by: Andrew Duggan Signed-off-by: Benjamin Tissoires --- drivers/input/rmi4/Kconfig | 9 + dri

[PATCH v5 06/10] Input: synaptics-rmi4: Add support for F12

2016-02-10 Thread Andrew Duggan
Function 12 implements 2D touch position sensor for newer Synaptics touch devices. It replaces F11 and no device will contain both functions. Signed-off-by: Andrew Duggan Signed-off-by: Christopher Heiny --- drivers/input/rmi4/Kconfig | 11 + drivers/input/rmi4/Makefile | 1 + drive

[PATCH v5 08/10] Input: synaptics-rmi4: Add SPI transport driver

2016-02-10 Thread Andrew Duggan
Add the transport driver for devices using RMI4 over SPI. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/Kconfig | 9 + drivers/input/rmi4/Makefile | 1 + drivers/input/rmi4/rmi_spi.c | 547 +++ include/linux/rmi.h | 51 4 files

[PATCH v5 09/10] Input: synaptics-rmi4: Add device tree support to the SPI transport driver

2016-02-10 Thread Andrew Duggan
Add devicetree binding for SPI devices. Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_spi.txt | 57 ++ Documentation/devicetree/bindings/spi/spi-bus.txt | 2 + drivers/input/rmi4/rmi_spi.c | 44 - 3 files c

[PATCH v5 10/10] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-02-10 Thread Andrew Duggan
The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew Duggan --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-rmi.c | 891 +--

Re: [PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-10 Thread Rafael J. Wysocki
On Tuesday, February 09, 2016 11:19:02 AM Stefano Stabellini wrote: > On Mon, 8 Feb 2016, Rafael J. Wysocki wrote: > > On Monday, February 08, 2016 10:57:01 AM Stefano Stabellini wrote: > > > On Sat, 6 Feb 2016, Rafael J. Wysocki wrote: > > > > On Fri, Feb 5, 2016 at 4:05 AM, Shannon Zhao > > > >

[PATCH 0/1] Perf: fix overwritten of free running PEBSv3 timestamp

2016-02-10 Thread Tong Zhang
Hi, commit a7b58d211ba18c9175b139e18b68c86a6bcc3c3f introduced feature of timestamp on free running PEBSv3, however, the timestamp is later overwritten, which makes the effort in vain. This patch prevent overwritten by detecting whether a timestamp is provided. Tong Zhang (1): x86: Per

[PATCH 1/1] Perf: fix overwritten of free running PEBSv3 timestamp

2016-02-10 Thread Tong Zhang
commit a7b58d211ba18c9175b139e18b68c86a6bcc3c3f introduced feature of timestamp on free running PEBSv3, however, the timestamp is later overwritten, which makes the effort in vain. This patch fixed this problem by detecting whether timestamp is provided. Signed-off-by: Tong Zhang --- include

Re: Another proposal for DAX fault locking

2016-02-10 Thread Cedric Blancher
AFAIK Solaris 11 uses a sparse tree instead of a array. Solves the scalability problem AND deals with variable page size. Ced On 10 February 2016 at 23:09, Dave Chinner wrote: > On Wed, Feb 10, 2016 at 11:32:49AM +0100, Jan Kara wrote: >> On Tue 09-02-16 10:18:53, Dan Williams wrote: >> > On Tue

Re: [PATCH v2 2/2] dax: move writeback calls into the filesystems

2016-02-10 Thread Ross Zwisler
On Thu, Feb 11, 2016 at 09:03:12AM +1100, Dave Chinner wrote: > On Wed, Feb 10, 2016 at 01:48:56PM -0700, Ross Zwisler wrote: > > Previously calls to dax_writeback_mapping_range() for all DAX filesystems > > (ext2, ext4 & xfs) were centralized in filemap_write_and_wait_range(). > > dax_writeback_ma

Re: [PATCH v4] regulator: qcom-saw: Add support for SAW regulators

2016-02-10 Thread Stephen Boyd
On 02/10, Mark Brown wrote: > On Wed, Feb 10, 2016 at 11:04:36AM -0800, Stephen Boyd wrote: > > > I don't follow the rest of your mail though. Are you suggesting > > that in this case we put the regulator control into the PMIC > > regulator driver (qcom_spmi-regulator.c) and then use a > > syscon/

Re: [PATCH v2] iio: Add IIO support for the DAC on the Apex Embedded Systems STX104

2016-02-10 Thread Jonathan Cameron
On 10 February 2016 21:22:40 GMT+00:00, William Breathitt Gray wrote: >On Wed, Feb 10, 2016 at 06:55:45PM +, Jonathan Cameron wrote: >>On 10/02/16 02:19, William Breathitt Gray wrote: >>> On Tue, Feb 09, 2016 at 10:37:09PM +, Jonathan Cameron wrote: My only real question is on the

[PATCH v7 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Introduce a mechanism by which parts of the cpufreq subsystem ("setpolicy" drivers or the core) can register callbacks to be executed from cpufreq_update_util() which is invoked by the scheduler's update_load_avg() on CPU utilization changes. This allows the "setpolicy" d

[PATCH] cgroup: provide cgroup_nov1= to disable controllers in v1 mounts

2016-02-10 Thread Johannes Weiner
Testing cgroup2 can be painful with system software automatically mounting and populating all cgroup controllers in v1 mode. Sometimes they can be unmounted from rc.local, sometimes even that is too late. Provide a commandline option to disable certain controllers in v1 mounts, so that they remain

[PATCH 3/3] random: Add pool name to urandom_read trace point

2016-02-10 Thread Andi Kleen
From: Andi Kleen Now that we have multiple nonblocking_pools it makes sense to report the name of the pool in the urandom_read trace point. Extend the trace point to report the name too. Signed-off-by: Andi Kleen --- drivers/char/random.c | 2 +- include/trace/events/random.h | 10 +++

Scalable random patchkit revisited

2016-02-10 Thread Andi Kleen
Hi Ted, So far noone has come with a better solution, and the /dev/*random scaling problem on large systems is still there and affecting workloads. So I would like to resubmit the /dev/*random patchkit I posted some time ago. Back then it was successfully reviewed, but then some alternative propo

[PATCH 2/3] random: Make input to output pool balancing per cpu

2016-02-10 Thread Andi Kleen
From: Andi Kleen The load balancing from input pool to output pools was essentially unlocked. Before it didn't matter much because there were only two choices (blocking and non blocking). But now with the distributed non blocking pools we have a lot more pools, and unlocked access of the counter

[PATCH 1/3] Make /dev/urandom scalable

2016-02-10 Thread Andi Kleen
From: Andi Kleen We had a case where a 4 socket system spent >80% of its total CPU time contending on the global urandom nonblocking pool spinlock. While the application could probably have used an own PRNG, it may have valid reasons to use the best possible key for different session keys. The a

Re: [PATCH RFC 05/22] block, cfq: get rid of hierarchical support

2016-02-10 Thread Tejun Heo
On Mon, Feb 01, 2016 at 11:12:41PM +0100, Paolo Valente wrote: > @@ -4314,7 +2556,6 @@ static struct elv_fs_entry cfq_attrs[] = { > CFQ_ATTR(slice_async), > CFQ_ATTR(slice_async_rq), > CFQ_ATTR(slice_idle), > - CFQ_ATTR(group_idle), Shouldn't this be converted to a fake attri

Re: [PATCH 01/14] dell-laptop: extract SMBIOS-related code to a separate module

2016-02-10 Thread Darren Hart
On Tue, Feb 09, 2016 at 08:12:07PM +0100, Pali Rohár wrote: > On Tuesday 09 February 2016 17:51:06 Darren Hart wrote: > > On Tue, Feb 09, 2016 at 09:33:03AM +0100, Pali Rohár wrote: > > > On Monday 08 February 2016 13:42:10 Darren Hart wrote: > > > > Assuming the above is an accurate view, I don't

[PATCH v2] hpet: drop stale link

2016-02-10 Thread Michael S. Tsirkin
Looks like the HPET spec at intel.com got moved. It isn't hard to find so drop the link, just mention the revision assumed. Suggested-by: Thomas Gleixner Signed-off-by: Michael S. Tsirkin --- Changes from v1: actually drop the links, just say "revision 1" in case a new one ever

Re: [PATCH RFC 08/22] block, cfq: get rid of latency tunables

2016-02-10 Thread Tejun Heo
For 1-8, except for one minor nit, Acked-by: Tejun Heo Thanks! -- tejun

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-02-10 Thread Keith Packard
Jonathan Corbet writes: > [Adding Keith since you said you wanted to be a part of this - let us know > when you've had enough!] Thanks. > - I would like to format directly to HTML if at all possible. Agreed. asciidoc's docbook path seems to only increase the amount of software involved. >

Re: [PATCH] hpet: drop stale link

2016-02-10 Thread Michael S. Tsirkin
On Wed, Feb 10, 2016 at 01:14:14PM -0700, Jonathan Corbet wrote: > On Mon, 1 Feb 2016 13:32:56 +0200 > "Michael S. Tsirkin" wrote: > > > Looks like the HPET spec at intel.com got moved. > > It isn't hard to find so drop the link, just mention > > the revision assumed. > > Hmm...what I see sugges

RE: [PATCH v6 0/3] cpufreq: Replace timers with utilization update callbacks

2016-02-10 Thread Doug Smythies
On 2016.02.10 07:17 Rafael J. Wysocki wrote: > On Friday, January 29, 2016 11:52:15 PM Rafael J. Wysocki wrote: >> >> The following patch series introduces a mechanism allowing the cpufreq core >> and "setpolicy" drivers to provide utilization update callbacks to be invoked >> by the scheduler on u

Re: [PATCH v5 1/3] crypto: KEYS: convert public key and digsig asym to the akcipher api

2016-02-10 Thread Tadeusz Struk
Hi David, On 02/10/2016 06:17 AM, David Howells wrote: > Why didn't you put the RSA signature parsing - ie. where the OID and the other > bits are checked - into crypto/rsa.c? > Do you want to get rid of the crypto/asymmetric_keys/rsa.c completely? I wanted to make the conversion churn as small a

Re: [PATCH v6 0/3] cpufreq: Replace timers with utilization update callbacks

2016-02-10 Thread Rafael J. Wysocki
On Wednesday, February 10, 2016 03:11:43 PM Doug Smythies wrote: > On 2016.02.10 07:17 Rafael J. Wysocki wrote: > > On Friday, January 29, 2016 11:52:15 PM Rafael J. Wysocki wrote: > >> > >> The following patch series introduces a mechanism allowing the cpufreq core > >> and "setpolicy" drivers to

Re: [PATCH 2/3] random: Make input to output pool balancing per cpu

2016-02-10 Thread kbuild test robot
Hi Andi, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.5-rc3 next-20160210] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Andi-Kleen/Make-dev-urandom

[PATCH] ACPI / fan: Make struct dev_pm_ops const

2016-02-10 Thread Brian Norris
From: Kaiyen Chang Silence the following checkpatch warning: WARNING: struct dev_pm_ops should normally be const. Signed-off-by: Kaiyen Chang Signed-off-by: Brian Norris --- drivers/acpi/fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/fan.c b/drivers/acp

[PATCH 2/3] tools/liblockdep: add tests

2016-02-10 Thread Alfredo Alvarez Fernandez
From: Alfredo Alvarez Fernandez Add test for AA and 2 threaded ABBA locking. Rename AA.c to ABA.c since it was implementing an ABA instead of a pure AA. Now both cases are covered. The expected output for AA.c is that the process blocks and lockdep reports a deadlock. ABBA_2threads.c differs f

Re: Another proposal for DAX fault locking

2016-02-10 Thread Ross Zwisler
On Wed, Feb 10, 2016 at 11:39:43PM +0100, Cedric Blancher wrote: > AFAIK Solaris 11 uses a sparse tree instead of a array. Solves the > scalability problem AND deals with variable page size. Right - seems like tying the radix tree into the locking instead of using an array would have these same be

Re: Another proposal for DAX fault locking

2016-02-10 Thread Ross Zwisler
On Thu, Feb 11, 2016 at 09:09:53AM +1100, Dave Chinner wrote: > On Wed, Feb 10, 2016 at 11:32:49AM +0100, Jan Kara wrote: > > On Tue 09-02-16 10:18:53, Dan Williams wrote: > > > On Tue, Feb 9, 2016 at 9:24 AM, Jan Kara wrote: > > > > Hello, > > > > > > > > I was thinking about current issues with

[PATCH 3/3] lockdep: prevent chain_key collisions

2016-02-10 Thread Alfredo Alvarez Fernandez
From: Alfredo Alvarez Fernandez The chain_key hashing macro iterate_chain_key(key1, key2) does not generate a new different value if both key1 and key2 are 0. In that case the generated value is again 0. This can lead to collisions which can result in lockdep not detecting deadlocks or circular d

[PATCH 1/3] tools/liblockdep: add userspace version of READ_ONCE

2016-02-10 Thread Alfredo Alvarez Fernandez
From: Alfredo Alvarez Fernandez This was added to the kernel code in 1658d35ead5d ("list: Use READ_ONCE() when testing for empty lists") There's nothing special we need to do about it in userspace. Signed-off-by: Alfredo Alvarez Fernandez --- tools/lib/lockdep/uinclude/linux/compiler.h | 1 +

[PATCH 0/3] lockdep: liblockdep: Prevent chain_key collisions

2016-02-10 Thread Alfredo Alvarez Fernandez
This patch series prevents possible collisions in the chain_key hashing macro iterate_chain_key(key1, key2) that can lead to lockdep not detecting very simple deadlocks such as AA or ABBA. The problem only affects the first allocated lock classes. That could explain why it was not seen while run

Re: [PATCH 2/3] random: Make input to output pool balancing per cpu

2016-02-10 Thread kbuild test robot
Hi Andi, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.5-rc3 next-20160210] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Andi-Kleen/Make-dev-urandom

Re: [PATCH 0/3] ACPI: parse the SPCR table

2016-02-10 Thread Al Stone
On 01/27/2016 05:17 AM, Aleksey Makarov wrote: > > > On 01/25/2016 07:11 PM, Peter Hurley wrote: >> On 01/25/2016 03:45 AM, Aleksey Makarov wrote: >>> This patchset is based on the patchset by Leif Lindholm [1] >>> >>> 'ARM Server Base Boot Requirements' [2] mention SPCR >>> (Serial Port Console

Re: Another proposal for DAX fault locking

2016-02-10 Thread Ross Zwisler
On Tue, Feb 09, 2016 at 06:24:16PM +0100, Jan Kara wrote: > Hello, > > I was thinking about current issues with DAX fault locking [1] (data > corruption due to racing faults allocating blocks) and also races which > currently don't allow us to clear dirty tags in the radix tree due to races > betw

Re: [PATCH v2 2/2] dax: move writeback calls into the filesystems

2016-02-10 Thread Dave Chinner
On Wed, Feb 10, 2016 at 03:43:40PM -0700, Ross Zwisler wrote: > On Thu, Feb 11, 2016 at 09:03:12AM +1100, Dave Chinner wrote: > > On Wed, Feb 10, 2016 at 01:48:56PM -0700, Ross Zwisler wrote: > > > Previously calls to dax_writeback_mapping_range() for all DAX filesystems > > > (ext2, ext4 & xfs) we

Re: [PATCH v5] mmc: OCTEON: Add host driver for OCTEON MMC controller

2016-02-10 Thread Aaro Koskinen
Hi, On Wed, Feb 10, 2016 at 10:02:23AM -0800, David Daney wrote: > On 02/10/2016 09:36 AM, Matt Redfearn wrote: > >+pr_warn(FW_WARN "%s: Legacy property '%s'. Please remove\n", > >+node->full_name, legacy_name); > > I don't like this warning message. > > The vast

Re: Another proposal for DAX fault locking

2016-02-10 Thread Cedric Blancher
There is another "twist" in this game: If there is a huge page with 1GB with a small 4k page as "overlay" (e.g. mmap() MAP_FIXED somewhere in the middle of a 1GB huge page), hows that handled? Ced On 11 February 2016 at 00:44, Ross Zwisler wrote: > On Tue, Feb 09, 2016 at 06:24:16PM +0100, Jan K

Re: [PATCH v3 1/8] iommu: Add MMIO mapping type

2016-02-10 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Wednesday 10 February 2016 01:57:51 Niklas Söderlund wrote: > From: Robin Murphy > > On some platforms, MMIO regions might need slightly different treatment > compared to mapping regular memory; add the notion of MMIO mappings to > the IOMMU API's memory t

[PATCH 2/2] ARM: dts: vf-colibri: assign Ethernet clock explicitly

2016-02-10 Thread Stefan Agner
Assign Ethernet clock parents explicitly. The Colibri VF61 uses the 50MHz Ethernet clock provided by PLL5. The Vybrid SoC has two ethernet interfaces (fec0 and fec1) which use the same clock source (VF610_CLK_ENET). Therefore this parent configuration affects multiple consumer devices and need to

[PATCH 1/2] ARM: dts: vf610twr: assign Ethernet clock explicitly

2016-02-10 Thread Stefan Agner
Assign Ethernet clock parents explicitly. The VF610 Tower Board uses the external Ethernet clock input which is connected to a 50MHz clock. The Vybrid SoC has two ethernet interfaces (fec0 and fec1) which use the same clock source (VF610_CLK_ENET). Therefore this parent configuration affects multi

Re: [PATCH v3 2/8] dma-mapping: add {map,unmap}_resource to dma_map_ops

2016-02-10 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Wednesday 10 February 2016 01:57:52 Niklas Söderlund wrote: > Add methods to handle mapping of device resources from a physical > address. This is needed for example to map be able to map MMIO FIFO > registers to a IOMMU. > > Signed-off-by: Niklas Söderlund

Re: [PATCH v3 4/8] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-02-10 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Wednesday 10 February 2016 01:57:54 Niklas Söderlund wrote: > Add methods to map/unmap device resources addresses for dma_map_ops that > are IOMMU aware. This is needed to map a device MMIO register from a > physical address. > > Signed-off-by: Niklas Söder

Re: [PATCH] ARM: OMAP2+: Fix onenand initialization to avoid filesystem corruption

2016-02-10 Thread Tony Lindgren
* Aaro Koskinen [160210 13:13]: > Hi, > > On Mon, Feb 08, 2016 at 11:36:45AM -0800, Tony Lindgren wrote: > > * Ivaylo Dimitrov [160205 06:38]: > > > Commit ("ARM: OMAP2+: Fix > > > onenand rate detection to avoid filesystem corruption") partially fixed > > > onenand configuration when GPMC modu

[PATCH] usb: storage: make US_DEBUGPX print with LOGLEVEL_DEBUG

2016-02-10 Thread Victor Dodon
The US_DEBUGPX macro uses printk without specifying a kernel log level, so the default kernel log level is used, which may not match LOGLEVEL_DEBUG used in usb_stor_dbg. Use printk_emit with LOGLEVEL_DEBUG instead. Signed-off-by: Victor Dodon --- drivers/usb/storage/debug.h | 10 -- 1 fi

Re: Another proposal for DAX fault locking

2016-02-10 Thread Ross Zwisler
On Thu, Feb 11, 2016 at 12:51:05AM +0100, Cedric Blancher wrote: > There is another "twist" in this game: If there is a huge page with > 1GB with a small 4k page as "overlay" (e.g. mmap() MAP_FIXED somewhere > in the middle of a 1GB huge page), hows that handled? Ugh - I'm pretty sure we haven't t

Re: [PATCH v3 5/8] dmaengine: rcar-dmac: group slave configuration

2016-02-10 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Wednesday 10 February 2016 01:57:55 Niklas Söderlund wrote: > Group slave address and transfer size in own structs for source and > destination. This is in preparation for hooking up the dma-mapping API > to the slave addresses. > > Signed-off-by: Niklas Sö

Re: [PATCH] cifs: fix potential overflow in cifs_compose_mount_options

2016-02-10 Thread Steve French
On Mon, Feb 1, 2016 at 10:34 AM, Insu Yun wrote: > In worst case, "ip=" + sb_mountdata + ipv6 can be copied into mountdata. > Therefore, for safe, it is better to add more size when allocating memory. > > Signed-off-by: Insu Yun > --- > fs/cifs/cifs_dfs_ref.c | 2 +- > 1 file changed, 1 insertio

Re: [PATCH] cifs: remove redundant check for null string pointer

2016-02-10 Thread Steve French
merged into cifs-2.6.git for-next On Mon, Jan 25, 2016 at 10:25 AM, Colin King wrote: > From: Colin Ian King > > server_RFC1001_name is declared as a RFC1001_NAME_LEN_WITH_NULL sized > char array in struct TCP_Server_Info so the null pointer check on > server_RFC1001_name is redundant and can be

Re: [PATCH] lpfc: Remove redundant code block in lpfc_scsi_cmd_iocb_cmpl

2016-02-10 Thread Martin K. Petersen
> "Johannes" == Johannes Thumshirn writes: Johannes> This removes a redundant code block that will either be Johannes> executed if the ENABLE_FCP_RING_POLLING flag is set in Johannes> phba->cfg_poll or not. The code is just duplicated in both Johannes> cases, hence we unify it again. Johanne

Re: call_usermodehelper in containers

2016-02-10 Thread Ian Kent
On Mon, 2013-11-18 at 18:28 +0100, Oleg Nesterov wrote: > On 11/15, Eric W. Biederman wrote: > > > > I don't understand that one. Having a preforked thread with the > > proper > > environment that can act like kthreadd in terms of spawning user > > mode > > helpers works and is simple. Forgive m

<    2   3   4   5   6   7   8   9   >