Re: [RFC v3 04/10] iommu: iommu_alloc_resv_region

2016-11-30 Thread Auger Eric
Hi Joerg, On 29/11/2016 17:11, Joerg Roedel wrote: > On Tue, Nov 15, 2016 at 01:09:17PM +, Eric Auger wrote: >> +static inline struct iommu_resv_region * >> +iommu_alloc_resv_region(phys_addr_t start, size_t length, unsigned int prot) >> +{ >> +return NULL; >> +} >> + > > Will this functi

Re: [PATCH 00/11] locking/ww_mutex: Keep sorted wait list to avoid stampedes

2016-11-30 Thread Chris Wilson
On Mon, Nov 28, 2016 at 01:20:01PM +0100, Nicolai Hähnle wrote: > I've included timings taken from a contention-heavy stress test to some of > the patches. The stress test performs actual GPU operations which take a > good chunk of the wall time, but even so, the series still manages to > improve t

Re: [PATCH net 04/16] net: ethernet: aurora: nb8800: fix fixed-link phydev leaks

2016-11-30 Thread Mason
On 28/11/2016 19:24, Johan Hovold wrote: > Make sure to deregister and free any fixed-link PHY registered using > of_phy_register_fixed_link() on probe errors and on driver unbind. > > Fixes: c7dfe3abf40e ("net: ethernet: nb8800: support fixed-link DT node") > Signed-off-by: Johan Hovold > --- >

Re: [RFC] panic on cascade() of kernel/time/timer.c

2016-11-30 Thread Yisheng Xie
On 2016/11/30 17:18, Thomas Gleixner wrote: > On Wed, 30 Nov 2016, Yisheng Xie wrote: > >> Hi all, >> The kernel version is 4.1.18, and we got a panic at cascade(). >> from the log it seems cause by BUG_ON of kernel/time/timer.c:1120. >> Any ideas about about it? > > Probably a timer which got

RE: [char-msic 1/3] mei: me: disable driver on SPT SPS firmware

2016-11-30 Thread Winkler, Tomas
> > On Tue, Nov 29, 2016 at 09:41:41PM +, Winkler, Tomas wrote: > > > > > > > > > > On Tue, Nov 29, 2016 at 07:21:43PM +, Winkler, Tomas wrote: > > > > > > > > > > On Tue, Nov 29, 2016 at 02:44:44PM +0200, Tomas Winkler wrote: > > > > > > commit 8c57cac1457f3125a5d13dc03635c0708c61bff0 up

Re: [PATCH 1/6] net: ethernet: ti: netcp: add support of cpts

2016-11-30 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:04:23PM -0600, Grygorii Strashko wrote: > @@ -678,6 +744,9 @@ struct gbe_priv { > int num_et_stats; > /* Lock for updating the hwstats */ > spinlock_t hw_stats_lock; > + > + int

[PATCH v6 3/9] iio: inkern: api for manipulating ext_info of iio channels

2016-11-30 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37 +++ 2 files changed, 97 insertions(+)

Re: [PATCH net-next v4 0/4] Fix OdroidC2 Gigabit Tx link issue

2016-11-30 Thread Jerome Brunet
On Mon, 2016-11-28 at 09:54 -0800, Florian Fainelli wrote: > On 11/28/2016 07:50 AM, Jerome Brunet wrote: > > > > This patchset fixes an issue with the OdroidC2 board (DWMAC + > > RTL8211F). > > The platform seems to enter LPI on the Rx path too often while > > performing > > relatively high TX tr

[PATCH v6 5/9] iio: multiplexer: new iio category and iio-mux driver

2016-11-30 Thread Peter Rosin
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, cre

[PATCH v6 4/9] dt-bindings: iio: iio-mux: document iio-mux bindings

2016-11-30 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/iio-mux.txt | 40 ++ MAINTAINERS| 6 2 files changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/multiplexer/iio-mux.txt diff -

[PATCH v2] arm64: dts: zx: add zx296718's topcrm node

2016-11-30 Thread Baoyou Xie
Enable topcrm clock node for zx296718, which is used for CPU's frequency change. Furthermore, this patch adds the CPU clock phandle in CPU's node and uses operating-points-v2 to register operating points. So it can be used by cpufreq-dt driver. Signed-off-by: Baoyou Xie --- arch/arm64/boot/dts

[PATCH 4.8 37/37] mm, oom: stop pre-mature high-order OOM killer invocations

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko 31e49bfda184 ("mm, oom: protect !costly allocations some more for !CONFIG_COMPACTION") was an attempt to reduce chances of pre-mature OOM killer invocation for high order requests.

Re: [PATCH net 04/16] net: ethernet: aurora: nb8800: fix fixed-link phydev leaks

2016-11-30 Thread Johan Hovold
On Wed, Nov 30, 2016 at 10:36:45AM +0100, Mason wrote: > On 28/11/2016 19:24, Johan Hovold wrote: > > > Make sure to deregister and free any fixed-link PHY registered using > > of_phy_register_fixed_link() on probe errors and on driver unbind. > > > > Fixes: c7dfe3abf40e ("net: ethernet: nb8800:

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-30 Thread Auger Eric
Hi, On 15/11/2016 14:09, Eric Auger wrote: > Following LPC discussions, we now report reserved regions through > iommu-group sysfs reserved_regions attribute file. > > Reserved regions are populated through the IOMMU get_resv_region callback > (former get_dm_regions), now implemented by amd-iommu

[PATCH 4.8 11/37] scsi: mpt3sas: Fix secure erase premature termination

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Grodzovsky commit 18f6084a989ba1b38702f9af37a2e4049a924be6 upstream. This is a work around for a bug with LSI Fusion MPT SAS2 when perfoming secure erase. Due to the very long time the o

[PATCH] auxdisplay: ht16k33: select framebuffer helper modules

2016-11-30 Thread Robin van der Gracht
The new driver caused a rare randconfig failure: drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0xc): undefined reference to `fb_sys_read' drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0x10): undefined reference to `fb_sys_write' This selects the respective helper modules. Reported-by

[PATCH V4] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Tin Huynh
This patch enables ACPI support for leds-pca955x driver. Signed-off-by: Tin Huynh --- drivers/leds/leds-pca955x.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) Change from V3: -Drop ".id =" and ".driver_data =" from pca955x_acpi_ids initializers. Change from

[PATCH v6 1/9] dt-bindings: document devicetree bindings for mux-controllers and mux-gpio

2016-11-30 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/misc/mux-controller.txt| 127 + .../devicetree/bindings/misc/mux-gpio.txt | 68 +++ MAINTAINERS| 5 + 3 files changed, 200 insertions(+) create mode 100644 D

[PATCH 4.4 19/21] mei: me: disable driver on SPT SPS firmware

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tomas Winkler commit 8c57cac1457f3125a5d13dc03635c0708c61bff0 upstream. Sunrise Point PCH with SPS Firmware doesn't expose working MEI interface, we need to quirk it out. The SPS Firmware is id

[PATCH 4.8 23/37] parisc: Fix races in parisc_setup_cache_timing()

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 741dc7bf1c7c7d93b853bb55efe77baa27e1b0a9 upstream. Helge reported to me the following startup crash: [0.00] Linux version 4.8.0-1-parisc64-smp (debian-ker...@

[PATCH 4.8 30/37] xc2028: Fix use-after-free bug properly

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 22a1e7783e173ab3d86018eb590107d68df46c11 upstream. The commit 8dfbcc4351a0 ("[media] xc2028: avoid use after free") tried to address the reported use-after-free by clearing

[PATCH 4.8 28/37] mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit f5527f3f002b0a6b376163613b82f69de073 upstream. This fixes CVE-2016-8650. If mpi_powm() is given a zero exponent, it wants to immediately return either 1 or 0, depend

[PATCH 4.8 19/37] x86/traps: Ignore high word of regs->cs in early_fixup_exception()

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit fc0e81b2bea0ebceb71889b61d2240856141c9ee upstream. On the 80486 DX, it seems that some exceptions may leave garbage in the high bits of CS. This causes sporadic failures

[PATCH 4.8 29/37] X.509: Fix double free in x509_cert_parse() [ver #3]

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit 2b95fda2c4fcb6d6625963f889247538f247fce0 upstream. We shouldn't free cert->pub->key in x509_cert_parse() because x509_free_certificate() also does this: BUG: Doub

[PATCH 4.8 32/37] device-dax: fail all private mapping attempts

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 4cb19355ea19995941ccaad115dbfac6b75215ca upstream. The device-dax implementation originally tried to be tricky and allow private read-only mappings, but in the process allow

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-11-30 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:04:24PM -0600, Grygorii Strashko wrote: > Some CPTS instances, which can be found on KeyStone 2 1/10G Ethernet > Switch Subsystems, can control an external multiplexer that selects > one of up to 32 clocks for time sync reference (RFTCLK). This feature > can be configured

[PATCH net] tipc: check minimum bearer MTU

2016-11-30 Thread Michal Kubecek
Qian Zhang (张谦) reported a potential socket buffer overflow in tipc_msg_build() which is also known as CVE-2016-8632: due to insufficient checks, a buffer overflow can occur if MTU is too short for even tipc headers. As anyone can set device MTU in a user/net namespace, this issue can be abused by

Re: [PATCHv5 22/36] mm, hugetlb: switch hugetlbfs to multi-order radix-tree entries

2016-11-30 Thread Hillf Danton
On Tuesday, November 29, 2016 7:23 PM Kirill A. Shutemov wrote: > @@ -607,10 +605,10 @@ static long hugetlbfs_fallocate(struct file *file, int > mode, loff_t offset, > } > > /* Set numa allocation policy based on index */ > - hugetlb_set_vma_policy(&pseudo_

Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-11-30 Thread Baoquan He
On 11/30/16 at 05:03pm, Baoquan He wrote: > On 11/30/16 at 04:15pm, Xunlei Pang wrote: > > On 11/29/2016 at 10:35 PM, Joerg Roedel wrote: > > > On Thu, Nov 17, 2016 at 10:47:28AM +0800, Xunlei Pang wrote: > > >> As per the comment, the code here only needs to flush context caches > > >> for the spe

[PATCH 4.8 08/37] USB: serial: cp210x: add ID for the Zone DPMX

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Paul Jakma commit 2ab13292d7a314fa45de0acc808e41aaad31989c upstream. The BRIM Brothers Zone DPMX is a bicycle powermeter. This ID is for the USB serial interface in its charging dock for the co

[PATCH 4.8 09/37] USB: serial: ftdi_sio: add support for TI CC3200 LaunchPad

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Doug Brown commit 9bfef729a3d11f04d12788d749a3ce6b47645734 upstream. This patch adds support for the TI CC3200 LaunchPad board, which uses a custom USB vendor ID and product ID. Channel A is us

[PATCH 4.4 21/21] mei: fix return value on disconnection

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tomas Winkler commit 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a upstream. Correct errno on client disconnection is -ENODEV not -EBUSY Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usysk

[PATCH 4.8 26/37] parisc: Also flush data TLB in flush_icache_page_asm

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 5035b230e7b67ac12691ed3b5495bbb617027b68 upstream. This is the second issue I noticed in reviewing the parisc TLB code. The fic instruction may use either the instruct

[PATCH 4.4 15/21] parisc: Fix race in pci-dma.c

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit c0452fb9fb8f49c7d68ab9fa0ad092016be7b45f upstream. We are still troubled by occasional random segmentation faults and memory memory corruption on SMP machines. The cau

[PATCH 4.4 17/21] mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit f5527f3f002b0a6b376163613b82f69de073 upstream. This fixes CVE-2016-8650. If mpi_powm() is given a zero exponent, it wants to immediately return either 1 or 0, depend

[PATCH 4.8 18/37] x86/fpu: Fix invalid FPU ptrace state after execve()

2016-11-30 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Yu-cheng Yu commit b22cbe404a9cc3c7949e380fa1861e31934c8978 upstream. Robert O'Callahan reported that after an execve PTRACE_GETREGSET NT_X86_XSTATE continues to return the pre-exec register va

Re: [PATCH V3] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Jacek Anaszewski
Hi Peter, On 11/30/2016 10:36 AM, Peter Rosin wrote: On 2016-11-30 10:10, Phong Vo wrote: +-Original Message- +From: Jacek Anaszewski [mailto:j.anaszew...@samsung.com] + +Hi Phong, + +On 11/30/2016 09:23 AM, Phong Vo wrote: +> +-Original Message- +> +From: Jacek Anaszewski [mail

Re: cgroups and nice

2016-11-30 Thread Marat Khalili
On 29/11/16 00:13, Dhaval Giani wrote: This is an old version of the kernel. Do you see the same behavior on a newer version of the kernel? (4.8 is the latest stable kernel) Sadly, RedHat is not very keen on updating their kernels. I did a quick experiment on Ubuntu box with kernel 4.4, and inde

Re: [PATCH V3] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Mika Westerberg
On Wed, Nov 30, 2016 at 10:58:33AM +0100, Jacek Anaszewski wrote: > It certainly downgrades code readability, but in case there is > similar surrounding code there are two options to keep the things > consistent - either stick to the current style or change it. > IMHO the latter would generate only

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-30 Thread Petr Mladek
On Tue 2016-11-29 18:10:38, Peter Zijlstra wrote: > On Tue, Nov 29, 2016 at 05:29:20PM +0100, Petr Mladek wrote: > > > > > People are very busy polishing the turd we call printk, but from where > > > > I'm sitting its terminally and unfixably broken. > > > > I still hope that we could do better :

[PATCH 4.4 13/21] NFSv4.x: hide array-bounds warning

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit d55b352b01bc78fbc3d1bb650140668b87e58bf9 upstream. A correct bugfix introduced a harmless warning that shows up with gcc-7: fs/nfs/callback.c: In function 'nfs_callback_up

Re: [PATCH v2] reset: ti_syscon: fix a ti_syscon_reset_status issue

2016-11-30 Thread Philipp Zabel
Hi Jiancheng, Am Mittwoch, den 30.11.2016, 09:03 +0800 schrieb Jiancheng Xue: > If STATUS_SET was not set, ti_syscon_reset_status would always return 0 > no matter whether the status_bit was set or not. > > Signed-off-by: Jiancheng Xue Thank you, I've added: Fixes: cc7c2bb1493c ("reset: add TI

Re: [PATCH v3 2/5] i2c: Add STM32F4 I2C driver

2016-11-30 Thread M'boumba Cedric Madianga
Hi Wolfram, Thanks for reviewing this driver and sorry for this quite long answer. I was too busy in another project but now I am ready to complete the upstream of the STM32F4 I2C driver. 2016-07-22 9:02 GMT+02:00 Wolfram Sang : > Hi, > > thanks for this contribution! Looks mostly good, some comm

[PATCH 4.8 00/37] 4.8.12-stable review

2016-11-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.8.12 release. There are 37 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Dec 2 09:27:19 UTC 2016. Anything receive

Re: [PATCH v6 4/9] dt-bindings: iio: iio-mux: document iio-mux bindings

2016-11-30 Thread Peter Rosin
Hi, v6 was apparently rushed a little bit too much, but I really wanted to supersede the stupidity I found elsewhere in v5. Perhaps I shouldn't have bolted on the changes for the iio-mux bindings, but so I did... On 2016-11-30 09:16, Peter Rosin wrote: > Signed-off-by: Peter Rosin > --- > .../b

Re: [PATCH 4/6] net: ethernet: ti: cpts: add ptp pps support

2016-11-30 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:04:26PM -0600, Grygorii Strashko wrote: > The TS_COMP output in the CPSW CPTS module is asserted for > ts_comp_length[15:0] RCLK periods when the time_stamp value compares > with the ts_comp_val[31:0] and the length value is non-zero. The > TS_COMP pulse edge occurs three

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-30 Thread Ganapatrao Kulkarni
Hi Eric, in you repo "https://github.com/eauger/linux/tree/v4.9-rc5-reserved-rfc-v3"; there is 11th patch "pci: Enable overrides for missing ACS capabilities" is this patch part of some other series? thanks Ganapat On Wed, Nov 30, 2016 at 3:19 PM, Auger Eric wrote: > Hi, > > On 15/11/2016 14:09

Re: [PATCH V3] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Jacek Anaszewski
On 11/30/2016 10:10 AM, Phong Vo wrote: +-Original Message- +From: Jacek Anaszewski [mailto:j.anaszew...@samsung.com] +Sent: Wednesday, November 30, 2016 4:00 PM +To: Phong Vo +Cc: Mika Westerberg; Rafael J. Wysocki; Richard Purdie; linux- +l...@vger.kernel.org; linux-kernel@vger.kernel.o

[PATCH 4.4 12/21] apparmor: fix change_hat not finding hat after policy replacement

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John Johansen commit 3d40658c977769ce2138f286cf131537bf68bdfe upstream. After a policy replacement, the task cred may be out of date and need to be updated. However change_hat is using the stal

[PATCH 4.4 11/21] cfg80211: limit scan results cache size

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 9853a55ef1bb66d7411136046060bbfb69c714fa upstream. It's possible to make scanning consume almost arbitrary amounts of memory, e.g. by sending beacon frames with random BSSI

[PATCH 4.4 14/21] parisc: Fix races in parisc_setup_cache_timing()

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 741dc7bf1c7c7d93b853bb55efe77baa27e1b0a9 upstream. Helge reported to me the following startup crash: [0.00] Linux version 4.8.0-1-parisc64-smp (debian-ker...@

Re: [PATCH V4] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Mika Westerberg
On Wed, Nov 30, 2016 at 04:47:25PM +0700, Tin Huynh wrote: > This patch enables ACPI support for leds-pca955x driver. > > Signed-off-by: Tin Huynh Looks good to me now, Acked-by: Mika Westerberg

Re: [PATCH 0/9] Get rid of bitmap images

2016-11-30 Thread Mauro Carvalho Chehab
Em Mon, 28 Nov 2016 18:09:46 -0700 Jonathan Corbet escreveu: > On Sun, 20 Nov 2016 14:08:31 -0200 > Mauro Carvalho Chehab wrote: > > > The goal of this patch series is to get rid of PNG images, using either > > graphviz > > or SVG for images. > > So the pdfdocs build fails with an error whe

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-30 Thread Petr Mladek
On Tue 2016-11-29 09:36:00, Paul E. McKenney wrote: > Updated (but still untested) commit below. > > > Thanx, Paul > > > > commit d3df9bc5fb5d838b049f32a476721eadbc3495

[PATCH 4.4 10/21] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Chris Metcalf commit e658a6f14d7c0243205f035979d0ecf6c12a036f upstream. For large values of "mult" and long uptimes, the intermediate result of "cycles * mult" can overflow 64 bits. For exampl

[PATCH 4.4 09/21] scsi: mpt3sas: Fix secure erase premature termination

2016-11-30 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Grodzovsky commit 18f6084a989ba1b38702f9af37a2e4049a924be6 upstream. This is a work around for a bug with LSI Fusion MPT SAS2 when perfoming secure erase. Due to the very long time the o

RE: [patch net / RFC] net: fec: increase frame size limitation to actually available buffer

2016-11-30 Thread Andy Duan
From: Nikita Yushchenko Sent: Wednesday, November 30, 2016 2:35 AM >To: David S. Miller ; Andy Duan >; Troy Kisky ; >Andrew Lunn ; Eric Nelson ; Philippe >Reynes ; Johannes Berg ; >net...@vger.kernel.org >Cc: Chris Healy ; Fabio Estevam >; linux-kernel@vger.kernel.org; Nikita >Yushchenko

Re: [PATCH 0/2] USB: serial: kl5kusb105: fix open error paths

2016-11-30 Thread Johan Hovold
On Tue, Nov 29, 2016 at 04:55:00PM +0100, Johan Hovold wrote: > Pan Bian found an issue with the kl5kusb105 open error handling, which > would not abort an open attempt when a vendor command to "enable read" > failed. > > Turns out there were more issues with this function, specifically any > urb

Re: [PATCH] iio: misc: add a generic regulator driver

2016-11-30 Thread Lars-Peter Clausen
On 11/29/2016 04:35 PM, Bartosz Golaszewski wrote: > 2016-11-29 16:30 GMT+01:00 Lars-Peter Clausen : >> On 11/29/2016 04:22 PM, Bartosz Golaszewski wrote: >> [...] >>> diff --git a/Documentation/devicetree/bindings/iio/misc/iio-regulator.txt >>> b/Documentation/devicetree/bindings/iio/misc/iio-reg

Re: [PATCH] perf probe: fix kconfig symbol names for kprobes and uprobes

2016-11-30 Thread Uwe Kleine-König
On Fri, Jul 22, 2016 at 11:00:44AM +0200, Uwe Kleine-König wrote: > These symbols both don't have a trailing 'S'. > > Signed-off-by: Uwe Kleine-König I just found this patch while rebasing my pending patches. It still applies and is still correct. Best regards Uwe > --- > tools/perf/util/prob

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-30 Thread Auger Eric
Hi Ganapat, On 30/11/2016 11:04, Ganapatrao Kulkarni wrote: > Hi Eric, > > in you repo "https://github.com/eauger/linux/tree/v4.9-rc5-reserved-rfc-v3"; > there is 11th patch "pci: Enable overrides for missing ACS capabilities" > is this patch part of some other series? Actually this is a very ol

Re: [PATCH 3/6] net: ethernet: ti: cpts: add support of cpts HW_TS_PUSH

2016-11-30 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:04:25PM -0600, Grygorii Strashko wrote: > +/* HW TS */ > +static int cpts_extts_enable(struct cpts *cpts, u32 index, int on) > +{ > + unsigned long flags; > + u32 v; > + > + if (index >= cpts->info.n_ext_ts) > + return -ENXIO; > + > + if (((cpt

[PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-11-30 Thread Wolfgang Ocker
If CMSPAR is set in the c_cflag of termios, "stick" parity is enabled. Tested on an i.MX28 system Signed-off-by: Wolfgang Ocker --- drivers/tty/serial/mxs-auart.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auar

Re: question about irq_enter()/irq_exit() calling policy

2016-11-30 Thread Russell King - ARM Linux
On Tue, Nov 29, 2016 at 05:47:12PM -0600, Grygorii Strashko wrote: > 2) Should these function be called for each processed irq? > > > HW IRQ: > switch (IRQ mode) > ... > while (irq = get_pending_irq()) { > ... > irq_enter() > handle(irq) - execute hw_irq_hadler >

Re: [PATCH] printk.c: removed unnecessary code

2016-11-30 Thread Petr Mladek
On Wed 2016-11-30 10:14:28, Michal Hocko wrote: > [Resending with the full CC list as my email client has clobbered it in > the previous attempt for some reason] > > On Tue 29-11-16 16:19:01, Sebastian Duda wrote: > > snprintf((char *) ?, 0, ...); always returns Zero and doesn't change the > > da

Re: [PATCH V4] leds: pca955x: Add ACPI support for pca955x

2016-11-30 Thread Jacek Anaszewski
Hi Tin, Thanks for the patch. On 11/30/2016 11:00 AM, Mika Westerberg wrote: On Wed, Nov 30, 2016 at 04:47:25PM +0700, Tin Huynh wrote: This patch enables ACPI support for leds-pca955x driver. Signed-off-by: Tin Huynh Looks good to me now, Acked-by: Mika Westerberg Thanks for the revie

Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-11-30 Thread Baoquan He
On 11/30/16 at 05:53pm, Baoquan He wrote: > On 11/30/16 at 05:03pm, Baoquan He wrote: > > On 11/30/16 at 04:15pm, Xunlei Pang wrote: > > > On 11/29/2016 at 10:35 PM, Joerg Roedel wrote: > > > > On Thu, Nov 17, 2016 at 10:47:28AM +0800, Xunlei Pang wrote: > > > >> As per the comment, the code here o

Re: [PATCH net] tipc: check minimum bearer MTU

2016-11-30 Thread Michal Kubecek
On Wed, Nov 30, 2016 at 10:57:02AM +0100, Michal Kubecek wrote: > Qian Zhang (张谦) reported a potential socket buffer overflow in > tipc_msg_build() which is also known as CVE-2016-8632: due to > insufficient checks, a buffer overflow can occur if MTU is too short for > even tipc headers. As anyone

Re: [PATCH net] tipc: check minimum bearer MTU

2016-11-30 Thread Ying Xue
On 11/30/2016 05:57 PM, Michal Kubecek wrote: Qian Zhang (张谦) reported a potential socket buffer overflow in tipc_msg_build() which is also known as CVE-2016-8632: due to insufficient checks, a buffer overflow can occur if MTU is too short for even tipc headers. As anyone can set device MTU in a

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-30 Thread Donald Buczek
On 11/28/16 13:26, Paul Menzel wrote: [...] On 11/28/16 12:04, Michal Hocko wrote: [...] OK, so one of the stall is reported at [118077.988410] INFO: rcu_sched detected stalls on CPUs/tasks: [118077.988416] 1-...: (181 ticks this GP) idle=6d5/140/0 softirq=46417663/46417663 fq

Re: stmmac ethernet in kernel 4.4: coalescing related pauses?

2016-11-30 Thread Pavel Machek
On Mon 2016-11-28 07:31:43, Eric Dumazet wrote: > On Mon, 2016-11-28 at 09:54 -0500, David Miller wrote: > > From: Lino Sanfilippo > > Date: Mon, 28 Nov 2016 14:07:51 +0100 > > > > > Calling skb_orphan() in the xmit handler made this issue disappear. > > > > This is not the way to handle this pr

Re: [PATCH 06/12] usb: dwc3: omap: Replace the extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch uses the resource-managed extcon API for extcon_register_notifier() > and replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.as

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-30 Thread Will Deacon
On Wed, Nov 30, 2016 at 10:49:33AM +0100, Auger Eric wrote: > On 15/11/2016 14:09, Eric Auger wrote: > > Following LPC discussions, we now report reserved regions through > > iommu-group sysfs reserved_regions attribute file. > > > > Reserved regions are populated through the IOMMU get_resv_region

[PATCH] kernel/sysctl: return -EINVAL if write invalid val to ulong type sysctl

2016-11-30 Thread Yisheng Xie
I tried to echo an invalid value to an unsigned long type sysctl on 4.9.0-rc6: linux:~# cat /proc/sys/vm/user_reserve_kbytes 131072 linux:~# echo -1 > /proc/sys/vm/user_reserve_kbytes linux:~# cat /proc/sys/vm/user_reserve_kbytes 131072 The echo operation got error and the value do

Re: net: GPF in rt6_get_cookie

2016-11-30 Thread Andrey Konovalov
On Sat, Nov 26, 2016 at 5:23 PM, 'Dmitry Vyukov' via syzkaller wrote: > Hello, > > I got several GPFs in rt6_get_cookie while running syzkaller: > > general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > CPU: 2 PID:

Re: [PATCH 2/2] Synopsys USB 2.0 Device Controller (UDC) Driver

2016-11-30 Thread Felipe Balbi
Hi, Raviteja Garimella writes: > This is driver for Synopsys Designware Cores USB Device > Controller (UDC) Subsystem with the AMBA Advanced High-Performance > Bus (AHB). This driver works with Synopsys UDC20 products. > > Signed-off-by: Raviteja Garimella use drivers/usb/dwc2 instead of dupli

Re: [PATCH 08/12] usb: phy: msm: Replace the extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch uses the resource-managed extcon API for extcon_register_notifier() > and replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.as

Re: [PATCH 10/12] usb: phy: qcom-8x16-usb: Replace the extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch uses the resource-managed extcon API for extcon_register_notifier() > and replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.as

Re: [PATCH 09/12] usb: phy: omap-otg: Replace the extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch uses the resource-managed extcon API for extcon_register_notifier() > and replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.as

Re: [PATCH 11/12] usb: phy: tahvo: Replace the deprecated extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.asc Description: PGP signature

Re: [PATCH 12/12] usb: renesas_usbhs: Replace the deprecated extcon API

2016-11-30 Thread Felipe Balbi
Hi, Chanwoo Choi writes: > This patch replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi -- balbi signature.asc Description: PGP signature

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-11-30 Thread Takashi Sakamoto
Hi Jiada, I don't oppose this patch. Nevertheless, your description is not necessarily correct. On Nov 30 2016 16:59, Jiada Wang wrote: From: Daniel Girnus ALSA usually calls the prepare function twice before starting the playback: 1. On hw_params call from userland and 2. internally when s

[PATCH 1/1] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-11-30 Thread Maninder Singh
variable name can have Non NULL terminated string after cropping which may result strcat to fail, and cropping is not required if (strlen(oh->name) + 8 < MOD_CLK_MAX_NAME_LEN). Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Signed-off-b

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-30 Thread Haggai Eran
On 11/28/2016 9:02 PM, Jason Gunthorpe wrote: > On Mon, Nov 28, 2016 at 06:19:40PM +, Haggai Eran wrote: GPU memory. We create a non-ODP MR pointing to VRAM but rely on user-space and the GPU not to migrate it. If they do, the MR gets destroyed immediately. >>> That sounds horrib

Re: [PATCH v10 11/13] drm/mediatek: add dsi rxtx control

2016-11-30 Thread CK Hu
Hi, YT: On Fri, 2016-11-25 at 18:34 +0800, YT Shen wrote: > add non-continuous clock mode and EOT packet control for dsi > I think commit title should be 'drm/mediatek: add non-continuous clock mode and EOT packet control for dsi', and commit message should describe more information about this m

Re: [PATCH V4] PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()

2016-11-30 Thread Viresh Kumar
On 30-11-16, 09:29, Viresh Kumar wrote: > +struct opp_table *dev_pm_opp_set_regulator(struct device *dev, const char > *name) > { > struct opp_table *opp_table; > struct regulator *reg; > - int ret; > > mutex_lock(&opp_table_lock); > > opp_table = _add_opp_table(de

Re: linux-next: manual merge of the edac-amd tree with the edac tree

2016-11-30 Thread Mauro Carvalho Chehab
Em Mon, 28 Nov 2016 09:27:35 +0100 Borislav Petkov escreveu: > On Mon, Nov 28, 2016 at 02:37:26PM +1100, Stephen Rothwell wrote: > > Hi Borislav, > > > > Today's linux-next merge of the edac-amd tree got a conflict in: > > > > drivers/edac/edac_mc.c > > > > between commit: > > > > ef91afa

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-11-30 Thread Ganapatrao Kulkarni
On Wed, Nov 30, 2016 at 3:44 PM, Auger Eric wrote: > Hi Ganapat, > > On 30/11/2016 11:04, Ganapatrao Kulkarni wrote: >> Hi Eric, >> >> in you repo "https://github.com/eauger/linux/tree/v4.9-rc5-reserved-rfc-v3"; >> there is 11th patch "pci: Enable overrides for missing ACS capabilities" >> is this

Re: [PATCH 1/2] arm64: Correcting format specifier for printin 64 bit addresses

2016-11-30 Thread Will Deacon
On Wed, Nov 30, 2016 at 01:33:56PM +0530, Maninder Singh wrote: > This patch corrects format specifier for printing 64 bit addresses. > > Before Patch > > [ 68.251603] Unable to handle kernel NULL pointer dereference at virtual > address > [ 68.251673] pgd = ffc01395

[RFC] perf/x86/intel/uncore: pmu->type->single_fixed question

2016-11-30 Thread Jiri Olsa
hi, I'm trying to find out some documentation background for this part of uncore code: --- static int uncore_pmu_event_init(struct perf_event *event) { ... if (event->attr.config == UNCORE_FIXED_EVENT) { /* no fixed counter */ if (!pmu->type->fixed_

Re: [PATCH 4.8 14/37] drm/amdgpu: fix power state when port pm is unavailable

2016-11-30 Thread Peter Wu
Hi Greg, On Wed, Nov 30, 2016 at 10:29:51AM +0100, Greg Kroah-Hartman wrote: > 4.8-stable review patch. If anyone has any objections, please let me know. Please delay this patch (amd tje mext radeon patch, 15/37), it contains a regression for which these patches (from drm-fixes) are needed:

[PATCH V5] PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()

2016-11-30 Thread Viresh Kumar
From: Stephen Boyd Joonyoung Shim reported an interesting problem on his ARM octa-core Odoroid-XU3 platform. During system suspend, dev_pm_opp_put_regulator() was failing for a struct device for which dev_pm_opp_set_regulator() is called earlier. This happened because an earlier call to dev_pm_o

Re: next: Commit 'mm: Prevent __alloc_pages_nodemask() RCU CPU stall ...' causing hang on sparc32 qemu

2016-11-30 Thread Guenter Roeck
On 11/29/2016 11:02 PM, Paul E. McKenney wrote: On Tue, Nov 29, 2016 at 08:32:51PM -0800, Guenter Roeck wrote: On 11/29/2016 05:28 PM, Paul E. McKenney wrote: On Tue, Nov 29, 2016 at 01:23:08PM -0800, Guenter Roeck wrote: Hi Paul, most of my qemu tests for sparc32 targets started to fail in n

Re: [PATCH] printk: Fix spinlock deadlock in printk reenty

2016-11-30 Thread Petr Mladek
On Wed 2016-11-30 15:15:19, linyongt...@huawei.com wrote: > From: Jinling Ke > > when Oops in printk, printk will call zap_locks() to reinitialize > spinlock to prevent deadlock. In arm, arm64, x86 or other > architecture smp cpu, race condition will occur in printk spinlock > logbuf_lock and the

net/ipv6: null-ptr-deref in ip6_rt_cache_alloc

2016-11-30 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. On commit d8e435f3ab6fea2ea324dce72b51dd7761747523 (Nov 26). This might be related to the crash in rt6_get_cookie that Dmitry reported, since it also happens when accessing ort->dst: https://groups.google.com/forum/#!msg

Re: [PATCH] watchdog: meson: Remove unneeded platform MODULE_ALIAS

2016-11-30 Thread Guenter Roeck
On 11/29/2016 06:57 AM, Javier Martinez Canillas wrote: Hello Wim, On 10/20/2016 07:28 PM, Guenter Roeck wrote: On Wed, Oct 19, 2016 at 04:49:42PM -0300, Javier Martinez Canillas wrote: The Amlogic Meson is a DT-only platform, which means the devices are registered via OF and not using the leg

Re: [PATCH 4/6] net: ethernet: ti: cpts: add ptp pps support

2016-11-30 Thread Jan Lübbe
On Mo, 2016-11-28 at 17:04 -0600, Grygorii Strashko wrote: > --- a/Documentation/devicetree/bindings/net/keystone-netcp.txt > +++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt > @@ -127,6 +127,16 @@ Optional properties: > The number of external time stamp channels. >

Re: net: GPF in rt6_get_cookie

2016-11-30 Thread Hannes Frederic Sowa
Hi On 30.11.2016 11:39, Andrey Konovalov wrote: > On Sat, Nov 26, 2016 at 5:23 PM, 'Dmitry Vyukov' via syzkaller > wrote: >> Hello, >> >> I got several GPFs in rt6_get_cookie while running syzkaller: >> >> general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN >> Dumping ftrace buffer: >>

Re: [PATCH 5/9] arm64: cpufeature: Define helpers for sys_reg id

2016-11-30 Thread Will Deacon
On Thu, Nov 24, 2016 at 01:40:05PM +, Suzuki K Poulose wrote: > Define helper macros to extract op0, op1, CRn, CRm & op2 > for a given sys_reg id. > > Cc: Catalin Marinas > Cc: Mark Rutland > Cc: Will Deacon > Signed-off-by: Suzuki K Poulose > --- > arch/arm64/include/asm/sysreg.h | 21 ++

Re: [PATCH v10 09/13] drm/mediatek: add mipi_tx data rate check

2016-11-30 Thread CK Hu
Hi, YT: On Fri, 2016-11-25 at 18:34 +0800, YT Shen wrote: > modify data rate limitation (>lGbps/lane) for mipitx > I think MT2701 DRM can work correctly without this patch. Why do you put this patch in MT2701 series? Maybe you can send this patch independently. Regards, CK > Signed-off-by: sh

<    1   2   3   4   5   6   7   8   9   >