Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-04 Thread Peter Zijlstra
On Mon, Jan 04, 2016 at 03:25:58PM +, James Hogan wrote: > It is used along with the metag specific __global_lock1() (global > voluntary lock between hw threads) whenever a write is performed, and by > smp_mb/smp_rmb to try to catch other cases, but I've never been > confident this fixes every

Re: [PATCH] HID: wacom: Fix deadlock on proximity in events with the Intuos Draw

2016-01-04 Thread Lyude
Yep! That's definitely the same as this one. Glad to hear it still was useful even if it's obsolete :). On Wed, 2015-12-30 at 12:39 -0800, Jason Gerecke wrote: > Is this a fix for the same bug addressed in http://linux.kernel.narkive.com/zU > Iw13xt/patch-hid-usbhid-hid-core-fix-recursive-deadlo

[PATCH] Add possibility to set /dev/tty number

2016-01-04 Thread Pierre Paul MINGOT
Hello, In Linux there is no way to set the number of tty devices or console to create. By default the kernel create 64 /dev/tty devices. what is too much for embedded system with limited resources. As all these 64 devices are not necessary or mandatory for the kernel proper working, I add a config

[RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-04 Thread Sven Dziadek
Remove byte order conversions. Conversion is already done in usb_ops_linux.c when accessing usb port. The deleted lines convert to little-endian and then call FillH2CCmd to convert back. Additionally, they are applied to wrong types and process wrong parts of variables later on. Signed-off-by: Sve

Re: [PATCH 01/10] i2c-mux: add common core data for every mux instance

2016-01-04 Thread Guenter Roeck
On 01/04/2016 07:10 AM, Peter Rosin wrote: From: Peter Rosin The initial core mux structure starts off small with only the parent adapter pointer, which all muxes have, and a priv pointer for mux driver private data. Add i2c_mux_alloc function to unify the creation of a mux. Where appropriate

Re: [PATCH] drm: powerplay: use div64_s64 instead of do_div

2016-01-04 Thread Alex Deucher
On Fri, Jan 1, 2016 at 8:07 AM, Arnd Bergmann wrote: > The newly added code for Fiji creates a correct compiler warning > about invalid use of the do_div macro: > > In file included from powerplay/hwmgr/ppatomctrl.c:31:0: > drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppevvmath.h: In function >

Re: [PATCH] scripts: recordmcount: fix incorrect use of sprintf

2016-01-04 Thread Steven Rostedt
On Wed, 30 Dec 2015 23:06:41 + Colin King wrote: > From: Colin Ian King > > Fix build warning: > > scripts/recordmcount.c:589:4: warning: format not a string > literal and no format arguments [-Wformat-security] > sprintf("%s: failed\n", file); > > Fixes: a50bd43935586 ("ftrace/script

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-04 Thread Greg KH
On Mon, Jan 04, 2016 at 04:34:56PM +0100, Pierre Paul MINGOT wrote: > Hello, > > In Linux there is no way to set the number of tty devices or console > to create. By default the kernel create 64 /dev/tty devices. what is > too much for embedded system with limited resources. Really? How much mem

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2016-01-04 Thread Daniel Kurtz
On Mon, Jan 4, 2016 at 10:31 PM, Sascha Hauer wrote: > On Mon, Dec 21, 2015 at 12:07:58PM +0800, Daniel Kurtz wrote: >> Hi Sascha, >> >> One nit below that can be fixed up later, or now if you don't plan to >> spin this driver to >> address Eduardo's feedback... >> >> On Mon, Nov 30, 2015 at 7:42

Re: [PATCH 10/10] i2c: pca954x: get rid of the i2c deadlock workaround

2016-01-04 Thread Peter Rosin
On 2016-01-04 16:19, Lars-Peter Clausen wrote: > On 01/04/2016 04:10 PM, Peter Rosin wrote: >> From: Peter Rosin >> >> Signed-off-by: Peter Rosin > > It would be quite good if the commit messaged said why it is now safe to > remove the workaround. Right, hmm, the two last patches seemed obvious

Re: [RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-04 Thread Jes Sorensen
Sven Dziadek writes: > Remove byte order conversions. > Conversion is already done in usb_ops_linux.c when accessing usb port. > The deleted lines convert to little-endian and then call FillH2CCmd to > convert back. Additionally, they are applied to wrong types and > process wrong parts of variabl

Re: [PATCH 01/10] i2c-mux: add common core data for every mux instance

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and

RE: [PATCH] staging: rdma: hfi1: diag: constify hfi1_filter_array structure

2016-01-04 Thread Marciniszyn, Mike
> From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > Behalf Of Julia Lawall > Subject: [PATCH] staging: rdma: hfi1: diag: constify hfi1_filter_array > structure > > The hfi1_filter_array structure is never modified, so declare it as const. > > Done with the help of Coccinell

Re: [PATCH 01/10] i2c-mux: add common core data for every mux instance

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and

Re: [PATCH] ASoC: cs35l32: avoid uninitialized variable access

2016-01-04 Thread Mark Brown
On Mon, Jan 04, 2016 at 04:17:47PM +0100, Arnd Bergmann wrote: > On Saturday 02 January 2016 14:17:46 Mark Brown wrote: > > This would be a lot nicer if there was an __always_null annotation we > > could put on of_node for !OF configurations, that'd Just Work and this > > can't be the only case wh

Re: [patch 00/14] x86/irq: Plug various vector cleanup races

2016-01-04 Thread Joe Lawrence
On 12/31/2015 11:30 AM, Thomas Gleixner wrote: > Joe reported a nasty race in the vector cleanup code which results in stale > irq descriptors in the vector arrays and a potential use after free. > > This series addresses this issue, another race which was found and fixed by > Jiang related to the

Re: [PATCH 02/10] i2c-mux: move select and deselect ops to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and-locking

Re: [PATCH] HID: i2c-hid: Prevent sending reports from racing with device reset

2016-01-04 Thread Nish Aravamudan
On Mon, Dec 21, 2015 at 5:26 AM, Mika Westerberg wrote: > Below is what happens to touchpad on Lenovo Yoga 900 during resume from > system sleep: > Reported-by: Nish Aravamudan > Reported-by: Linus Torvalds > Suggested-by: Benjamin Tissoires > Signed-off-by: Mika Westerberg Probably not n

Re: [PATCH 02/10] i2c-mux: move select and deselect ops to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and-locking

Re: [V9fs-developer] Hang triggered by udev coldplug, looks like a race

2016-01-04 Thread Peter Zijlstra
On Tue, Dec 29, 2015 at 10:43:26PM -0800, Andy Lutomirski wrote: > [add cc's] > > Hi scheduler people: > > This is relatively easy for me to reproduce. Any hints for debugging > it? Could we really have a bug in which processes that are > schedulable as a result of mutex unlock aren't always re

Re: [PATCH 02/10] i2c-mux: move select and deselect ops to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and

Re: [PATCH v1 3/3] ARM64 LPC: update binding doc

2016-01-04 Thread Rongrong Zou
在 2016/1/4 19:13, Arnd Bergmann 写道: On Sunday 03 January 2016 20:24:14 Rongrong Zou wrote: 在 2015/12/31 23:00, Rongrong Zou 写道: 2015-12-31 22:40 GMT+08:00 Arnd Bergmann mailto:a...@arndb.de>>: > On Thursday 31 December 2015 22:12:19 Rongrong Zou wrote: > > 在 2015/12/30 17:06, Arnd Bergman

Re: [PATCH 03/10] i2c-mux: move the slave side adapter management to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and-locking

Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-04 Thread James Hogan
On Mon, Jan 04, 2016 at 04:30:36PM +0100, Peter Zijlstra wrote: > On Mon, Jan 04, 2016 at 03:25:58PM +, James Hogan wrote: > > It is used along with the metag specific __global_lock1() (global > > voluntary lock between hw threads) whenever a write is performed, and by > > smp_mb/smp_rmb to try

Re: [PATCH 1/3] checkpatch.pl: add missing memory barriers

2016-01-04 Thread Joe Perches
On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote: > SMP-only barriers were missing in checkpatch.pl > > Refactor code slightly to make adding more variants easier. > > Signed-off-by: Michael S. Tsirkin > --- >  scripts/checkpatch.pl | 9 - >  1 file changed, 8 insertions(+), 1

Re: [PATCH RFC 2/3] x86/xen/time: setup vcpu 0 time info page

2016-01-04 Thread Boris Ostrovsky
On 12/28/2015 04:52 PM, Joao Martins wrote: + +static int xen_setup_vsyscall_time_info(int cpu) +{ + struct pvclock_vsyscall_time_info *ti; + struct vcpu_register_time_memory_area t; + struct pvclock_vcpu_time_info *pvti; + unsigned long mem; + int ret, size; +

Re: [PATCH 02/10] i2c-mux: move select and deselect ops to i2c_mux_core

2016-01-04 Thread kbuild test robot
Hi Peter, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.4-rc8 next-20160104] [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/Peter-Rosin/i2c-mux-cleanup-and-locking

Re: [PATCH 1/3] checkpatch.pl: add missing memory barriers

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 08:07:40AM -0800, Joe Perches wrote: > On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote: > > + my $all_barriers = join('|', (@barriers, @smp_barriers)); > > + > > + if ($line =~ /\b($all_barriers)\(/) { > > It would be better to use /\b$all_ba

[PATCH] omap_hdq: fix usecount handling

2016-01-04 Thread Andreas Kemnade
hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output Signed-off-by: Andreas Kemnade --- drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/masters/

Re: [Xen-devel] [PATCH RFC 3/3] xen/Kconfig: add XEN_TIME_VSYSCALL option

2016-01-04 Thread David Vrabel
On 28/12/15 21:52, Joao Martins wrote: > This option enables support for pvclock vsyscall/vdso > support on Xen. Default is off, since Xen doesn't > expose yet the PVCLOCK_TSC_STABLE_BIT flag. Do we need a Kconfig option for this? I think this should always be enabled. The kernel support won't b

Re: [PATCH linux-next 2/5] mtd: spi-nor: fix Quad SPI mode support for Spansion, Micron and Macronix

2016-01-04 Thread Cyrille Pitchen
Hi Brian, Le 18/12/2015 03:18, Brian Norris a écrit : > On Mon, Dec 07, 2015 at 03:09:11PM +0100, Cyrille Pitchen wrote: >> This patch reworks the support of Quad and Dual SPI protocols for Micron, >> Spansion and Macronix Quad/Dual capable memories. Indeed, in the best >> case, only Spansion memo

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2016-01-04 Thread Rainer Weikusat
Eric Dumazet writes: > On Mon, 2016-01-04 at 10:10 +0100, Jacob Siverskog wrote: [...] >> I believe the crash occurred between these two actions. I just saw >> that there are some interesting events in the log prior to the crash: >> kernel: Bluetooth: Unable to push skb to HCI core(-6) >> kernel

[linux-review:Peter-Rosin/i2c-mux-cleanup-and-locking-update/20160104-231355] 8627e12bd6d3fc7506656f026a23afae52d12c73 BUILD DONE

2016-01-04 Thread kbuild test robot
https://github.com/0day-ci/linux Peter-Rosin/i2c-mux-cleanup-and-locking-update/20160104-231355 8627e12bd6d3fc7506656f026a23afae52d12c73 i2c: pca954x: get rid of the i2c deadlock workaround drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:845:18: warning: assignment makes pointer from integer

Re: [PATCH 1/3] checkpatch.pl: add missing memory barriers

2016-01-04 Thread Joe Perches
On Mon, 2016-01-04 at 16:11 +, Russell King - ARM Linux wrote: > On Mon, Jan 04, 2016 at 08:07:40AM -0800, Joe Perches wrote: > > On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote: > > > + my $all_barriers = join('|', (@barriers, @smp_barriers)); > > > + > > > + if ($l

Re: [Xen-devel] [PATCH RFC 3/3] xen/Kconfig: add XEN_TIME_VSYSCALL option

2016-01-04 Thread Boris Ostrovsky
On 01/04/2016 11:12 AM, David Vrabel wrote: On 28/12/15 21:52, Joao Martins wrote: This option enables support for pvclock vsyscall/vdso support on Xen. Default is off, since Xen doesn't expose yet the PVCLOCK_TSC_STABLE_BIT flag. Do we need a Kconfig option for this? I think this should alway

Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided

2016-01-04 Thread Wolfram Sang
On Mon, Jan 04, 2016 at 09:17:35AM -0600, Suravee Suthikulpanit wrote: > The current driver uses input clock source frequency to calculate > values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not > currently have a good way to provide the frequency information. > Instead, we ca

Re: [PATCH] iommu:Check that iommu_device_create has completed successfully in alloc_iommu

2016-01-04 Thread Joerg Roedel
On Tue, Dec 29, 2015 at 12:10:11AM -0500, Nicholas Krause wrote: > This adds the proper check to alloc_iommu to make sure that the call > to iommu_device_create has completed successfully and if not return > to the caller the error code returned after freeing up resources > allocated previously by

Re: [PATCH 07/10] [media] tvp5150: Add device tree binding document

2016-01-04 Thread Javier Martinez Canillas
Hello Rob, Thanks a lot for your feedback. On 01/04/2016 11:07 AM, Rob Herring wrote: > On Mon, Jan 04, 2016 at 09:25:29AM -0300, Javier Martinez Canillas wrote: >> Add a Device Tree binding document for the TVP5150 video decoder. >> >> Signed-off-by: Javier Martinez Canillas >> --- >> >> .../d

[PATCH v2 0/2] memory-hotplug: cleanup register_memory_resource()

2016-01-04 Thread Vitaly Kuznetsov
This series is a successor for the previously sent "[PATCH] memory-hotplug: don't BUG() in register_memory_resource()". Changes since it are: - Use ERR_PTR/PTR_ERR/IS_ERR() [David Rientjes] - Add "memory-hotplug: keep the request_resource() error code" patch [Andrew Morton] Cc: Andrew Morton C

[PATCH v2 2/2] memory-hotplug: keep the request_resource() error code

2016-01-04 Thread Vitaly Kuznetsov
Don't overwrite the request_resource() return value with -EEXIST in register_memory_resource(), just propagate the return value. As we return -EBUSY instead of -EEXIST when the desired resource is already occupied now we need to adapt acpi_memory_enable_device(). -EBUSY is currently the only possib

Re: [PATCH] OrangeFS: constify export_operations structures

2016-01-04 Thread Mike Marshall
Hi Julia... thanks for the patch... I've applied it to my github repo, so it will be in the next push to kernel.org. Orangefs is still out-of-tree (only temporarily I hope ;-) so I guess I don't belong in the MAINTAINERS file yet... -Mike On Fri, Jan 1, 2016 at 4:01 AM, Julia Lawall wrote: > Th

[PATCH v2 1/2] memory-hotplug: don't BUG() in register_memory_resource()

2016-01-04 Thread Vitaly Kuznetsov
Out of memory condition is not a bug and while we can't add new memory in such case crashing the system seems wrong. Propagating the return value from register_memory_resource() requires interface change. Signed-off-by: Vitaly Kuznetsov Cc: Andrew Morton Cc: David Rientjes Cc: Tang Chen Cc: Na

Re: rtc-palmas: correct for bcd year

2016-01-04 Thread Alexandre Belloni
Hi, On 30/12/2015 at 12:51:45 -0800, Mark Salyzyn wrote : > Replace bcd2bin and bin2bcd with one that maps years 1970 to 2129 > in a pattern that works with the underlying hardware. > > The only transition that does not work correctly for this rtc clock > is the transition from 2099 to 2100, it p

Re: [PATCH] staging: rtl8712: consolidate kmalloc/memset 0 of array to kcalloc

2016-01-04 Thread Joe Perches
ound by coccinelle script (relaxed version of > scripts/coccinelle/api/alloc/kzalloc-simple.cocci) > > Patch was compile tested with: x86_64_defconfig + > CONFIG_STAGING=y, CONFIG_R8712U=m > > Patch is against linux-next (localversion-next is -next-20160104) > >  drivers/st

Re: [V9fs-developer] Hang triggered by udev coldplug, looks like a race

2016-01-04 Thread Dominique Martinet
Peter Zijlstra wrote on Mon, Jan 04, 2016 at 04:59:15PM +0100: > On Tue, Dec 29, 2015 at 10:43:26PM -0800, Andy Lutomirski wrote: > > [add cc's] > > > > Hi scheduler people: > > > > This is relatively easy for me to reproduce. Any hints for debugging > > it? Could we really have a bug in which

[PATCH] [v2]Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread Aniroop Mathur
This patch introduces concept to drop partial events in evdev handler itself after emptying the buffer which are dropped by all evdev clients in userspace after SYN_DROPPED occurs. This in turn saves space of partial events in evdev handler buffer and reduces evdev client reading requests. Signed-

Re: [PATCH v5 3/5] driver core: handle -EPROBE_DEFER from bus_type.match()

2016-01-04 Thread Russell King - ARM Linux
On Wed, Dec 23, 2015 at 11:59:26AM +0100, Marek Szyprowski wrote: > From: Tomeu Vizoso > > Allow implementations of the match() callback in struct bus_type to > return errors and if it's -EPROBE_DEFER then queue the device for > deferred probing. > > This is useful to buses such as AMBA in which

Re: [PATCH] Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread Aniroop Mathur
On Mon, Jan 4, 2016 at 2:22 PM, Benjamin Tissoires wrote: > On Mon, Jan 4, 2016 at 8:50 AM, Aniroop Mathur wrote: >> On Jan 4, 2016 5:08 AM, "Peter Hutterer" wrote: >>> >>> On Sat, Jan 02, 2016 at 08:39:21PM -0800, Dmitry Torokhov wrote: >>> > On Thu, Dec 31, 2015 at 03:36:47AM +0530, Aniroop Ma

Re: [PATCH v1 3/3] ARM64 LPC: update binding doc

2016-01-04 Thread Arnd Bergmann
On Tuesday 05 January 2016 00:04:19 Rongrong Zou wrote: > 在 2016/1/4 19:13, Arnd Bergmann 写道: > > On Sunday 03 January 2016 20:24:14 Rongrong Zou wrote: > >> 在 2015/12/31 23:00, Rongrong Zou 写道: > >> */ > >> compatible = "low-pin-count"; > >> device_type = "isa"; > >> #address-cells

Re: [PATCH] iommu:Check that iommu_device_create has completed successfully in alloc_iommu

2016-01-04 Thread Joerg Roedel
On Mon, Jan 04, 2016 at 11:27:10AM -0500, Nicholas Krause wrote: > Yes that's true and was wondering if you want me to fix it up to set > the pointer back to null first or if preferred around safe state. The best solution is to set the dmar->iommu pointer after the error check for iommu_device_cr

Re: [PATCH] ASoC: cs35l32: avoid uninitialized variable access

2016-01-04 Thread Arnd Bergmann
On Monday 04 January 2016 15:20:58 Russell King - ARM Linux wrote: > On Mon, Jan 04, 2016 at 04:17:47PM +0100, Arnd Bergmann wrote: > > On Saturday 02 January 2016 14:17:46 Mark Brown wrote: > > > On Sat, Jan 02, 2016 at 12:19:52AM +0100, Arnd Bergmann wrote: > > > > > > > - if (i2c_cl

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2016-01-04 Thread Eric Dumazet
On Mon, 2016-01-04 at 16:14 +, Rainer Weikusat wrote: > Eric Dumazet writes: > > On Mon, 2016-01-04 at 10:10 +0100, Jacob Siverskog wrote: > > [...] > > >> I believe the crash occurred between these two actions. I just saw > >> that there are some interesting events in the log prior to the c

Re: [PATCH 3/3] checkpatch: add virt barriers

2016-01-04 Thread Joe Perches
On Mon, 2016-01-04 at 13:37 +0200, Michael S. Tsirkin wrote: > Add virt_ barriers to list of barriers to check for > presence of a comment. Are these virt_ barriers used anywhere? I see some virtio_ barrier like uses. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH] hwmon: ibmaem: constify aem_rw_sensor_template and aem_ro_sensor_template structures

2016-01-04 Thread Julia Lawall
The aem_rw_sensor_template and aem_ro_sensor_template structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/hwmon/ibmaem.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hwm

Re: [PATCH linux-next 1/5] mtd: spi-nor: properly detect the memory when it boots in Quad or Dual mode

2016-01-04 Thread Cyrille Pitchen
Hi Brian, Le 18/12/2015 02:55, Brian Norris a écrit : > Hi Cyrille, > > On Mon, Dec 07, 2015 at 03:09:10PM +0100, Cyrille Pitchen wrote: [...] >> + >> +/* Set this protocol for all commands. */ >> +nor->reg_proto = configs[i].proto; >> +

Re: Nokia N900: twl4030-power different data in DTS and board code

2016-01-04 Thread Tony Lindgren
* Pali Rohár [160102 13:39]: > On Saturday 02 January 2016 18:14:31 Tony Lindgren wrote: > > > The n900 specific code was based on something before the TI generic > > values were available I think. And the last time I looked at it I > > came to the conclusion the n900 specific code is no better.

Re: [PATCH] rt2x00pci: Disable memory-write-invalidate when the driver exits

2016-01-04 Thread Helmut Schaa
On Mon, Jan 4, 2016 at 8:55 AM, Jia-Ju Bai wrote: > The driver calls pci_set_mwi to enable memory-write-invalidate when it > is initialized, but does not call pci_clear_mwi when it is removed. Many > other drivers calls pci_clear_mwi when pci_set_mwi is called, such as > r8169, 8139cp and e1000. >

Re: [PATCH] ASoC: cs35l32: avoid uninitialized variable access

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 05:41:05PM +0100, Arnd Bergmann wrote: > That reminds of a different problem that has been bugging me for a > while: We frequently have a pattern like > > #ifdef CONFIG_FOO > static int function(void) > { > ... > } > #endif > > struct operations = { > ... > #if

[PATCH] PCI: Add quirk for Lite-On IT Corp. / Plextor M6e PCI Express

2016-01-04 Thread Tim Sander
Hi Please consider this patch for the next release. It won't recognize my Plextor M6e PCIE disk without it. Please cc as i am not on the list. Signed-off-by: Tim Sander PCI: Add quirk for Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS9183] (rev 14) --- drivers/pci/quirks.c|

Re: rtc-palmas: correct for bcd year

2016-01-04 Thread Mark Salyzyn
On 01/04/2016 08:18 AM, Alexandre Belloni wrote: Hi, On 30/12/2015 at 12:51:45 -0800, Mark Salyzyn wrote : Replace bcd2bin and bin2bcd with one that maps years 1970 to 2129 in a pattern that works with the underlying hardware. The only transition that does not work correctly for this rtc clock

Re: [PATCH v2] arm64: Store breakpoint single step state into pstate

2016-01-04 Thread Will Deacon
Hello, On Thu, Dec 24, 2015 at 01:42:42AM +, Wang Nan wrote: > Two 'perf test' fail on arm64: > > # perf test overflow > 17: Test breakpoint overflow signal handler : FAILED! > 18: Test breakpoint overflow sampling: FAILED! > > When breakpoint rais

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-04 Thread Austin S. Hemmelgarn
On 2016-01-04 10:43, Greg KH wrote: On Mon, Jan 04, 2016 at 04:34:56PM +0100, Pierre Paul MINGOT wrote: Hello, In Linux there is no way to set the number of tty devices or console to create. By default the kernel create 64 /dev/tty devices. what is too much for embedded system with limited reso

RE: [PATCH v6 2/4] x86: Cleanup and add a new exception class

2016-01-04 Thread Luck, Tony
> So you're touching those again in patch 2. Why not add those defines to > patch 1 directly and diminish the churn? To preserve authorship. Andy did patch 1 (the clever part). Patch 2 is just syntactic sugar on top of it. -Tony

[PATCH] ALSA: emux: constify nrpn_conv_table structures

2016-01-04 Thread Julia Lawall
The nrpn_conv_table structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- sound/synth/emux/emux_nrpn.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sound/synth/emux/emux_nrpn.c b/sound/synth

Re: [PATCH v2 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2016-01-04 Thread Alexandre Belloni
Hi, On 30/12/2015 at 13:47:25 +0900, Krzysztof Kozlowski wrote : > Remove the 'rtc' prefix from some of the fields in struct > s5m_rtc_reg_config because it is obvious - this is a RTC driver. No > functional changes. > > Signed-off-by: Krzysztof Kozlowski > I was going to apply those patches b

Re: [PATCH v3 0/2] Allow gmap fault to retry

2016-01-04 Thread Andrea Arcangeli
On Mon, Jan 04, 2016 at 12:19:53PM +0100, Dominik Dingel wrote: > Hello, > > sorry for the delay since the last version. > > During Jasons work with postcopy migration support for s390 a problem > regarding > gmap faults was discovered. > > The gmap code will call fixup_user_fault which will en

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-04 Thread Greg KH
On Mon, Jan 04, 2016 at 11:57:33AM -0500, Austin S. Hemmelgarn wrote: > On 2016-01-04 10:43, Greg KH wrote: > >On Mon, Jan 04, 2016 at 04:34:56PM +0100, Pierre Paul MINGOT wrote: > >>Hello, > >> > >>In Linux there is no way to set the number of tty devices or console > >>to create. By default the k

Re: [PATCH v5 3/5] driver core: handle -EPROBE_DEFER from bus_type.match()

2016-01-04 Thread Greg Kroah-Hartman
On Mon, Jan 04, 2016 at 04:31:00PM +, Russell King - ARM Linux wrote: > On Wed, Dec 23, 2015 at 11:59:26AM +0100, Marek Szyprowski wrote: > > From: Tomeu Vizoso > > > > Allow implementations of the match() callback in struct bus_type to > > return errors and if it's -EPROBE_DEFER then queue t

Re: [PATCH] pinctrl: mediatek: convert to arch_initcall

2016-01-04 Thread Mark Brown
On Fri, Jan 01, 2016 at 06:29:15PM +0100, Linus Walleij wrote: > On Fri, Jan 1, 2016 at 3:27 PM, Matthias Brugger > wrote: > > I think what Mark means is, that we define some pinctrl_initcall which > > is a macro to subsys_initcall (or arch_initcall or similar). We apply this > > to all pinctrl

Re: [PATCH 1/3] rsi: Delete unnecessary variable initialisations in rsi_send_mgmt_pkt()

2016-01-04 Thread David Miller
From: Dan Carpenter Date: Mon, 4 Jan 2016 12:28:57 +0300 > Please stop sending cleanup patches, Markus. Just send fixes. +1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel

Re: [tip:timers/core] clocksource: Make clocksource validation work for all clocksources

2016-01-04 Thread John Stultz
On Sat, Dec 19, 2015 at 7:03 AM, tip-bot for Yang Yingliang wrote: > Commit-ID: 1f45f1f33c8c8b96722dbc5e6b7acf74eaa721f7 > Gitweb: http://git.kernel.org/tip/1f45f1f33c8c8b96722dbc5e6b7acf74eaa721f7 > Author: Yang Yingliang > AuthorDate: Sat, 31 Oct 2015 18:20:55 +0800 > Committer: Thoma

[no subject]

2016-01-04 Thread Loan Service
Apply for a loan at 3% reply to this Email for more Info -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkm

Re: [PATCH v2 2/7] udf: Check output buffer length when converting name to CS0

2016-01-04 Thread Jan Kara
On Thu 24-12-15 10:25:33, Andrew Gabbasov wrote: > If a name contains at least some characters with Unicode values > exceeding single byte, the CS0 output should have 2 bytes per character. > And if other input characters have single byte Unicode values, then > the single input byte is converted to

Re: [RFD] CAT user space interface revisited

2016-01-04 Thread Marcelo Tosatti
On Thu, Dec 31, 2015 at 11:30:57PM +0100, Thomas Gleixner wrote: > Marcelo, > > On Thu, 31 Dec 2015, Marcelo Tosatti wrote: > > First of all thanks for the explanation. > > > There is one directory structure in this topic, CAT. That is the > > directory structure which is exposed to userspace to

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Dinh Nguyen
On 11/19/2015 12:34 PM, Borislav Petkov wrote: > On Tue, Oct 27, 2015 at 03:38:12PM -0500, dingu...@opensource.altera.com > wrote: >> From: Thor Thayer >> >> Adding L2 Cache and On-Chip RAM EDAC support for the >> Altera SoCs using the EDAC device model. The SDRAM >> controller is using the Memo

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Tony Luck
On Mon, Jan 4, 2016 at 4:07 AM, Borislav Petkov wrote: >> + * (target - here) + (class) + 0x2000 > > I still don't understand that bit 29 thing. > > Because the offset is negative? I think so. The .fixup section is placed in the end of .text, and the ex_table itself is pretty much right afte

Re: [RFD] CAT user space interface revisited

2016-01-04 Thread Marcelo Tosatti
On Mon, Jan 04, 2016 at 03:20:54PM -0200, Marcelo Tosatti wrote: > On Thu, Dec 31, 2015 at 11:30:57PM +0100, Thomas Gleixner wrote: > > Marcelo, > > > > On Thu, 31 Dec 2015, Marcelo Tosatti wrote: > > > > First of all thanks for the explanation. > > > > > There is one directory structure in this

[PATCH] drivers/pinctrl: make mediatek/pinctrl-mt8* driver explicitly non-modular

2016-01-04 Thread Paul Gortmaker
The Kconfig for these drivers are currently: config PINCTRL_MT8127 bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127 config PINCTRL_MT8135 bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 config PINCTRL_MT8173 bool "Mediatek MT8173 pin c

Re: [PATCH v2 14/16] x86, nvdimm, kexec: Use walk_iomem_res_desc() for iomem search

2016-01-04 Thread Toshi Kani
On Mon, 2016-01-04 at 13:26 +0100, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 05:29:37PM +0800, Dave Young wrote: > > Replied to Toshi old kernel will export the "GART" region for amd > > cards. > > So for old kernel and new kexec-tools we will have problem. > > > > I think add the GART desc

[PATCH RESEND v2 00/19] Support fuse mounts in user namespaces

2016-01-04 Thread Seth Forshee
These patches implement support for mounting filesystems in user namespaces using fuse. They are based on the patches in the for-testing branch of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git, but I've rebased them onto 4.4-rc3. I've pushed all of this to: git://git.k

[PATCH RESEND v2 01/18] block_dev: Support checking inode permissions in lookup_bdev()

2016-01-04 Thread Seth Forshee
When looking up a block device by path no permission check is done to verify that the user has access to the block device inode at the specified path. In some cases it may be necessary to check permissions towards the inode, such as allowing unprivileged users to mount block devices in user namespa

[PATCH RESEND v2 09/18] fs: Refuse uid/gid changes which don't map into s_user_ns

2016-01-04 Thread Seth Forshee
Add checks to inode_change_ok to verify that uid and gid changes will map into the superblock's user namespace. If they do not fail with -EOVERFLOW. This cannot be overriden with ATTR_FORCE. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/attr.c | 11 +++ 1 file changed, 11 in

[PATCH RESEND v2 03/18] fs: Treat foreign mounts as nosuid

2016-01-04 Thread Seth Forshee
From: Andy Lutomirski If a process gets access to a mount from a different user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Prevent this by treating mounts from other mount namespaces and those not owned by current_use

Re: mm, vmstat: kernel BUG at mm/vmstat.c:1408!

2016-01-04 Thread Christoph Lameter
On Thu, 24 Dec 2015, Sasha Levin wrote: > > Also what workload triggers the BUG()? > > Fuzzing with trinity inside a KVM guest. I've attached my config. Ok build and bootup works fine after fix from Tetsuo to config. Does not like my initrd it seems. Is there a root with the tools available someh

[PATCH RESEND v2 04/18] selinux: Add support for unprivileged mounts from user namespaces

2016-01-04 Thread Seth Forshee
Security labels from unprivileged mounts in user namespaces must be ignored. Force superblocks from user namespaces whose labeling behavior is to use xattrs to use mountpoint labeling instead. For the mountpoint label, default to converting the current task context into a form suitable for file obj

[PATCH RESEND v2 05/18] userns: Replace in_userns with current_in_userns

2016-01-04 Thread Seth Forshee
All current callers of in_userns pass current_user_ns as the first argument. Simplify by replacing in_userns with current_in_userns which checks whether current_user_ns is in the namespace supplied as an argument. Signed-off-by: Seth Forshee Acked-by: James Morris Acked-by: Serge Hallyn --- fs

[PATCH RESEND v2 10/18] fs: Update posix_acl support to handle user namespace mounts

2016-01-04 Thread Seth Forshee
ids in on-disk ACLs should be converted to s_user_ns instead of init_user_ns as is done now. This introduces the possibility for id mappings to fail, and when this happens syscalls will return EOVERFLOW. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/posix_acl.c | 67

[PATCH RESEND v2 07/18] fs: Check for invalid i_uid in may_follow_link()

2016-01-04 Thread Seth Forshee
Filesystem uids which don't map into a user namespace may result in inode->i_uid being INVALID_UID. A symlink and its parent could have different owners in the filesystem can both get mapped to INVALID_UID, which may result in following a symlink when this would not have otherwise been permitted wh

[PATCH RESEND v2 18/18] fuse: Allow user namespace mounts

2016-01-04 Thread Seth Forshee
Signed-off-by: Seth Forshee --- fs/fuse/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index b7bdfdac3521..2fd338c199ce 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1201,7 +1201,7 @@ static void fuse_kill_sb_anon(struct

[PATCH RESEND v2 08/18] cred: Reject inodes with invalid ids in set_create_file_as()

2016-01-04 Thread Seth Forshee
Using INVALID_[UG]ID for the LSM file creation context doesn't make sense, so return an error if the inode passed to set_create_file_as() has an invalid id. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- kernel/cred.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cred.c b

[PATCH RESEND v2 16/18] fuse: Support fuse filesystems outside of init_user_ns

2016-01-04 Thread Seth Forshee
In order to support mounts from namespaces other than init_user_ns, fuse must translate uids and gids to/from the userns of the process servicing requests on /dev/fuse. This patch does that, with a couple of restrictions on the namespace: - The userns for the fuse connection is fixed to the names

[PATCH RESEND v2 11/18] fs: Ensure the mounter of a filesystem is privileged towards its inodes

2016-01-04 Thread Seth Forshee
The mounter of a filesystem should be privileged towards the inodes of that filesystem. Extend the checks in inode_owner_or_capable() and capable_wrt_inode_uidgid() to permit access by users priviliged in the user namespace of the inode's superblock. Signed-off-by: Seth Forshee Acked-by: Serge Ha

[PATCH RESEND v2 12/18] fs: Don't remove suid for CAP_FSETID in s_user_ns

2016-01-04 Thread Seth Forshee
Expand the check in should_remove_suid() to keep privileges for CAP_FSETID in s_user_ns rather than init_user_ns. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index 01c036fe1950..3

[PATCH RESEND v2 14/18] capabilities: Allow privileged user in s_user_ns to set security.* xattrs

2016-01-04 Thread Seth Forshee
A privileged user in s_user_ns will generally have the ability to manipulate the backing store and insert security.* xattrs into the filesystem directly. Therefore the kernel must be prepared to handle these xattrs from unprivileged mounts, and it makes little sense for commoncap to prevent writing

[PATCH RESEND v2 17/18] fuse: Restrict allow_other to the superblock's namespace or a descendant

2016-01-04 Thread Seth Forshee
Unprivileged users are normally restricted from mounting with the allow_other option by system policy, but this could be bypassed for a mount done with user namespace root permissions. In such cases allow_other should not allow users outside the userns to access the mount as doing so would give the

[PATCH RESEND v2 06/18] Smack: Handle labels consistently in untrusted mounts

2016-01-04 Thread Seth Forshee
The SMACK64, SMACK64EXEC, and SMACK64MMAP labels are all handled differently in untrusted mounts. This is confusing and potentically problematic. Change this to handle them all the same way that SMACK64 is currently handled; that is, read the label from disk and check it at use time. For SMACK64 an

[PATCH RESEND v2 15/18] fuse: Add support for pid namespaces

2016-01-04 Thread Seth Forshee
If the userspace process servicing fuse requests is running in a pid namespace then pids passed via the fuse fd need to be translated relative to that namespace. Capture the pid namespace in use when the filesystem is mounted and use this for pid translation. Since no use case currently exists for

[PATCH RESEND v2 13/18] fs: Allow superblock owner to access do_remount_sb()

2016-01-04 Thread Seth Forshee
Superblock level remounts are currently restricted to global CAP_SYS_ADMIN, as is the path for changing the root mount to read only on umount. Loosen both of these permission checks to also allow CAP_SYS_ADMIN in any namespace which is privileged towards the userns which originally mounted the file

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 9:26 AM, Tony Luck wrote: > On Mon, Jan 4, 2016 at 4:07 AM, Borislav Petkov wrote: >>> + * (target - here) + (class) + 0x2000 >> >> I still don't understand that bit 29 thing. >> >> Because the offset is negative? > > I think so. The .fixup section is placed in the end

[PATCH RESEND v2 02/18] block_dev: Check permissions towards block device inode when mounting

2016-01-04 Thread Seth Forshee
Unprivileged users should not be able to mount block devices when they lack sufficient privileges towards the block device inode. Update blkdev_get_by_path() to validate that the user has the required access to the inode at the specified path. The check will be skipped for CAP_SYS_ADMIN, so privile

<    1   2   3   4   5   6   7   8   9   >