Re: [RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO

2019-06-09 Thread Andrew Lunn
> Patch #1 and #4 are minor cleanups which follow the boyscout rule: > "Always leave the campground cleaner than you found it." > I > am also looking for suggestions how to handle these cross-tree changes > (patch #2 belongs to the linux-gpio tree, patches #1, 3 and #4 should > go through the

Re: [PATCH v3 0/7] Allwinner H6 DMA support

2019-06-09 Thread Clément Péron
Hi Maxime, On Tue, 28 May 2019 at 13:10, Maxime Ripard wrote: > > On Mon, May 27, 2019 at 10:14:52PM +0200, Clément Péron wrote: > > Hi, > > > > This series has been first proposed by Jernej Skrabec[1]. > > As this series is mandatory for SPDIF/I2S support and because he is > > busy on Cedrus

Re: [RFC next v1 2/5] gpio: of: parse stmmac PHY reset line specific active-low property

2019-06-09 Thread Andrew Lunn
On Sun, Jun 09, 2019 at 08:06:18PM +0200, Martin Blumenstingl wrote: > The stmmac driver currently ignores the GPIO flags which are passed via > devicetree because it operates with legacy GPIO numbers instead of GPIO > descriptors. Hi Martin I don't think this is the reason. I think historically

Re: [PATCH net] bonding: make debugging output more succinct

2019-06-09 Thread David Miller
From: Jarod Wilson Date: Fri, 7 Jun 2019 11:02:34 -0400 > On 6/7/19 10:59 AM, Jarod Wilson wrote: >> Seeing bonding debug log data along the lines of "event: 5" is a bit >> spartan, >> and often requires a lookup table if you don't remember what every >> event is. >> Make use of

Re: [PATCH net-next 0/7] bonding: clean up and standarize logging printks

2019-06-09 Thread David Miller
From: Jarod Wilson Date: Fri, 7 Jun 2019 10:59:25 -0400 > This set improves a few somewhat terse bonding debug messages, fixes some > errors in others, and then standarizes the majority of them, using new > slave_* printk macros that wrap around netdev_* to ensure both master > and slave

[PATCH] s390: mark __ctl_set_bit and __ctl_clear_bit as __always_inline

2019-06-09 Thread Guenter Roeck
s390:tinyconfig fails to build with gcc 8.3.0. arch/s390/include/asm/ctl_reg.h:52:2: error: impossible constraint in 'asm' asm volatile( \ ^~~ arch/s390/include/asm/ctl_reg.h:62:2: note: in expansion of macro '__ctl_store' __ctl_store(reg, cr, cr); ^~~

Re: [PATCH V2 net-next 00/12] net: hns3: some code optimizations & cleanups & bugfixes

2019-06-09 Thread David Miller
From: Huazhong Tan Date: Fri, 7 Jun 2019 10:03:01 +0800 > This patch-set includes code optimizations, cleanups and bugfixes for > the HNS3 ethernet controller driver. Series applied, thanks.

Re: [PATCH net-next v2 00/10] net: ethernet: ti: netcp: update and enable cpts support

2019-06-09 Thread David Miller
From: Grygorii Strashko Date: Thu, 6 Jun 2019 19:30:37 +0300 > I grouped all patches in one series for better illustration of the changes, > but in general Pateches 1-4 are netdev matarieal (first) and other patches > are platform specific. Patch 1-4 applied to net-next.

Re: [PATCH 0/7] TTY Keyboard Status Request

2019-06-09 Thread Pavel Machek
Hi! > > > This patch series introduces TTY keyboard status request, a feature of > > > the n_tty line discipline that reserves a character in struct termios > > > (^T by default) and reacts to it by printing a short informational line > > > to the terminal and sending a Unix signal to the tty's

Re: [PATCH] net: ipv4: fib_semantics: fix uninitialized variable

2019-06-09 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Thu, 6 Jun 2019 16:43:17 +0200 > From: Enrico Weigelt > > fix an uninitialized variable: > > CC net/ipv4/fib_semantics.o > net/ipv4/fib_semantics.c: In function 'fib_check_nh_v4_gw': > net/ipv4/fib_semantics.c:1027:12: warning: 'err' may

Re: [PATCH 0/7] TTY Keyboard Status Request

2019-06-09 Thread Arseny Maslennikov
On Sun, Jun 09, 2019 at 07:41:39PM +0200, Pavel Machek wrote: > Hi! > > > This patch series introduces TTY keyboard status request, a feature of > > the n_tty line discipline that reserves a character in struct termios > > (^T by default) and reacts to it by printing a short informational line >

[PATCH v1 2/3] clocksource/drivers/tegra: Set and use timer's period

2019-06-09 Thread Dmitry Osipenko
The of_clk structure has a period field that is set up initially by timer_of_clk_init(), that period value need to be adjusted for a case of TIMER1-9 that are running at a fixed rate that doesn't match the clock's rate. Note that the period value is currently used only by some of the clocksource

[PATCH v1 0/3] Few more cleanups for tegra-timer

2019-06-09 Thread Dmitry Osipenko
Hello, I took a look at tegra-timer once again and spotted few more things that could be improved in addition to [0] which is already in linux-next. Please apply this small series in addition to [0], thanks in advance! [0] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=111529

[PATCH v1 1/3] clocksource/drivers/tegra: Remove duplicated use of per_cpu_ptr

2019-06-09 Thread Dmitry Osipenko
It was left unnoticed by accident, which means that the code could be cleaned up a tad more. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra.c | 40 +++ 1 file changed, 25 insertions(+), 15 deletions(-) diff --git

[PATCH v1 3/3] clocksource/drivers/tegra: Drop unneeded typecasting in one place

2019-06-09 Thread Dmitry Osipenko
There is no need to cast void because kernel allows to do that without a warning message from a compiler. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-tegra.c

Re: [PATCH AUTOSEL 5.1 058/186] tracing: probeevent: Fix to make the type of $comm string

2019-06-09 Thread Sasha Levin
On Sat, Jun 08, 2019 at 05:31:13PM -0400, Steven Rostedt wrote: On Sat, 1 Jun 2019 09:14:34 -0400 Sasha Levin wrote: From: Masami Hiramatsu [ Upstream commit 3dd1f7f24f8ceec00bbbc364c2ac3c893f0fdc4c ] Fix to make the type of $comm "string". If we set the other type to $comm argument, it

[PATCH v5 08/26] dt-bindings: lt3593: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Daniel Mack Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-lt3593.txt | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH v5 07/26] leds: sc27xx-blt: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. Signed-off-by: Jacek Anaszewski Cc: Baolin Wang Acked-by: Pavel Machek --- drivers/leds/leds-sc27xx-bltc.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git

[PATCH v5 04/26] dt-bindings: leds: Add properties for LED name construction

2019-06-09 Thread Jacek Anaszewski
Introduce dedicated properties for conveying information about LED function and color. Mark old "label" property as deprecated. Additionally function-enumerator property is being provided for the cases when neither function nor color can be used for LED differentiation. Signed-off-by: Jacek

[PATCH v5 06/26] dt-bindings: sc27xx-blt: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Baolin Wang Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v5 15/26] leds: lm3601x: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. Signed-off-by: Jacek Anaszewski Tested-by: Dan Murphy Acked-by: Pavel Machek --- drivers/leds/leds-lm3601x.c | 38 +- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git

[PATCH v5 16/26] dt-bindings: cr0014114: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Oleh Kravchenko Reviewed-by: Rob Herring --- .../devicetree/bindings/leds/leds-cr0014114.txt| 26 -- 1 file changed, 19 insertions(+), 7 deletions(-)

[PATCH v5 21/26] leds: as3645a: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. After switching to new led_classdev_register_ext() the validity of struct led_classdev's name property is no longer guaranteed, and therefore rely on struct device's kobj.name instead. Signed-off-by: Jacek Anaszewski Cc:

[PATCH v5 09/26] leds: lt3593: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. Signed-off-by: Jacek Anaszewski Cc: Daniel Mack Acked-by: Pavel Machek --- drivers/leds/leds-lt3593.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/leds/leds-lt3593.c

[PATCH v5 11/26] leds: lp8860: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. While at it, avoid iterating through available child of nodes in favor of obtaining single expected child node using single call to of_get_next_available_child(). Signed-off-by: Jacek Anaszewski Acked-by: Pavel Machek

[PATCH v5 10/26] dt-bindings: lp8860: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Reviewed-by: Rob Herring Reviewed-by: Dan Murphy --- Documentation/devicetree/bindings/leds/leds-lp8860.txt | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH v5 14/26] dt-bindings: lm36010: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Reviewed-by: Dan Murphy Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-lm3601x.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff

[PATCH v5 19/26] leds: aat1290: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. After switching to new led_classdev_register_ext() the validity of struct led_classdev's name property is no longer guaranteed, and therefore rely on struct device's kobj.name instead. Signed-off-by: Jacek Anaszewski

[PATCH v5 18/26] dt-bindings: aat1290: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-aat1290.txt | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH v5 24/26] dt-bindings: an30259a: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Simon Shields Reviewed-by: Rob Herring --- .../devicetree/bindings/leds/leds-an30259a.txt | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff

[PATCH v5 22/26] dt-bindings: leds-gpio: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Linus Walleij Reviewed-by: Rob Herring --- .../devicetree/bindings/leds/leds-gpio.txt | 23 +++--- 1 file changed, 16 insertions(+), 7 deletions(-) diff

[PATCH v5 17/26] leds: cr0014114: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. At this occassion remove initialization of struct led_classdev's dev->of_node property in the driver, since now it will be taken from fwnode assigned to struct led_init_data and passed to the new

[PATCH v5 13/26] leds: lm3692x: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. At this occassion remove initialization of struct led_classdev's dev->of_node property in the driver, since now it will be taken from fwnode assigned to struct led_init_data and passed to the new

[PATCH v5 25/26] leds: an30259a: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. Signed-off-by: Jacek Anaszewski Cc: Simon Shields --- drivers/leds/leds-an30259a.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/leds/leds-an30259a.c

[PATCH v5 20/26] dt-bindings: as3645a: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Also, fix malformed syntax of address-cells and size-cells in the example. Signed-off-by: Jacek Anaszewski Cc: Sakari Ailus Reviewed-by: Rob Herring --- .../devicetree/bindings/leds/ams,as3645a.txt | 22

[PATCH v5 26/26] leds: Document standard LED functions

2019-06-09 Thread Jacek Anaszewski
Add a documentation for standard LED functions with regard to differences in meaning between cases when devicename section of LED name is present or not. Signed-off-by: Jacek Anaszewski --- Documentation/leds/led-functions.txt | 223 +++

[PATCH v5 05/26] leds: core: Add support for composing LED class device names

2019-06-09 Thread Jacek Anaszewski
Add generic support for composing LED class device name. The newly introduced led_compose_name() function composes device name according to either or pattern, depending on the configuration of initialization data. Backward compatibility with in-driver hard-coded LED class device names is

[PATCH v5 23/26] leds: gpio: Use generic support for composing LED names

2019-06-09 Thread Jacek Anaszewski
Switch to using generic LED support for composing LED class device name. Signed-off-by: Jacek Anaszewski Cc: Linus Walleij --- drivers/leds/leds-gpio.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/leds/leds-gpio.c

[PATCH v5 03/26] dt-bindings: leds: Add LED_FUNCTION definitions

2019-06-09 Thread Jacek Anaszewski
Add initial set of common LED function definitions. Signed-off-by: Jacek Anaszewski Cc: Baolin Wang Cc: Daniel Mack Cc: Linus Walleij Cc: Oleh Kravchenko Cc: Sakari Ailus Cc: Simon Shields Reviewed-by: Rob Herring Acked-by: Pavel Machek Reviewed-by: Dan Murphy ---

[PATCH v5 01/26] leds: class: Improve LED and LED flash class registration API

2019-06-09 Thread Jacek Anaszewski
Replace of_led_classdev_register() with led_classdev_register_ext(), which accepts easily extendable struct led_init_data, instead of the fixed struct device_node argument. The latter can be now passed in an fwnode property of the struct led_init_data. The modification is driven by the need for

[PATCH v5 12/26] dt-bindings: lm3692x: Add function and color properties

2019-06-09 Thread Jacek Anaszewski
Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Reviewed-by: Dan Murphy A Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-lm3692x.txt | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v5 02/26] dt-bindings: leds: Add LED_COLOR_ID definitions

2019-06-09 Thread Jacek Anaszewski
Add common LED color identifiers. Signed-off-by: Jacek Anaszewski Cc: Baolin Wang Cc: Daniel Mack Cc: Linus Walleij Cc: Oleh Kravchenko Cc: Sakari Ailus Cc: Simon Shields Reviewed-by: Rob Herring Acked-by: Pavel Machek Reviewed-by: Dan Murphy --- include/dt-bindings/leds/common.h | 11

[PATCH v5 00/26] Add generic support for composing LED class device name

2019-06-09 Thread Jacek Anaszewski
Changes from v4: - switched "charge" function name to "charging" - added "cpu", "mute", "micmute", "disk-activity", "panic", "mtd" LED functions to cover all existing triggers and removed now redundant "nand" and "mmc" - added "capslock", "scrollock", "numlock" LED functions - removed now

RE: [PATCH V5 04/11] misc: xilinx_sdfec: Store driver config and state

2019-06-09 Thread Dragan Cvetic
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday 9 June 2019 12:28 > To: Dragan Cvetic > Cc: a...@arndb.de; Michal Simek ; > linux-arm-ker...@lists.infradead.org; robh...@kernel.org; > mark.rutl...@arm.com; devicet...@vger.kernel.org; >

RE: [PATCH V5 02/11] misc: xilinx-sdfec: add core driver

2019-06-09 Thread Dragan Cvetic
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday 9 June 2019 12:23 > To: Dragan Cvetic > Cc: a...@arndb.de; Michal Simek ; > linux-arm-ker...@lists.infradead.org; robh...@kernel.org; > mark.rutl...@arm.com; devicet...@vger.kernel.org; >

Re: memory leak in tipc_buf_acquire

2019-06-09 Thread Xin Long
On Sat, May 25, 2019 at 5:18 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:4dde821e Merge tag 'xfs-5.2-fixes-1' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=107db73aa0 > kernel config:

Re: [PATCH] x86/build: Move _etext to actual end of .text

2019-06-09 Thread Johannes Hirte
On 2019 Jun 09, Klaus Kusche wrote: > > Hello, > > Same problem for linux 5.1.7: > Kernel building fails with the same relocation error. > > 5.1.5 does not have the problem, builds fine for me. > > Is there anything I can do to investigate the problem? > Please try linux 5.1.8. The

[RFC next v1 4/5] net: stmmac: use device_property_read_u32_array to read the reset delays

2019-06-09 Thread Martin Blumenstingl
Change stmmac_mdio_reset() to use device_property_read_u32_array() instead of of_property_read_u32_array(). This is meant as a cleanup because we can drop the struct device_node variable. Also it will make it easier to get rid of struct stmmac_mdio_bus_data (or at least make it private) in the

[RFC next v1 1/5] net: stmmac: drop redundant check in stmmac_mdio_reset

2019-06-09 Thread Martin Blumenstingl
A simplified version of the existing code looks like this: if (priv->device->of_node) { struct device_node *np = priv->device->of_node; if (!np) return 0; The second "if" never evaluates to true because the first "if" checks for exactly the opposite. Drop the redundant

[RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO

2019-06-09 Thread Martin Blumenstingl
Recent Amlogic SoCs (G12A which includes S905X2 and S905D2 as well as G12B which includes S922X) use GPIOZ_14 or GPIOZ_15 for the PHY reset line. These GPIOs are special because they are marked as "3.3V input tolerant open drain (OD) pins" which means they can only drive the pin output LOW (to

[RFC next v1 3/5] net: stmmac: use GPIO descriptors in stmmac_mdio_reset

2019-06-09 Thread Martin Blumenstingl
Switch stmmac_mdio_reset to use GPIO descriptors. GPIO core handles the "snps,reset-gpio" for GPIO descriptors so we don't need to take care of it inside the driver anymore. The advantage of this is that we now preserve the GPIO flags which are passed via devicetree. This is required on some

[RFC next v1 2/5] gpio: of: parse stmmac PHY reset line specific active-low property

2019-06-09 Thread Martin Blumenstingl
The stmmac driver currently ignores the GPIO flags which are passed via devicetree because it operates with legacy GPIO numbers instead of GPIO descriptors. stmmac assumes that the GPIO is "active HIGH" by default. This can be overwritten by setting "snps,reset-active-low" to make the reset line

[RFC next v1 5/5] arm64: dts: meson: g12a: x96-max: fix the Ethernet PHY reset line

2019-06-09 Thread Martin Blumenstingl
The PHY reset line and interrupt line are swapped on the X96 Max compared to the Odroid-N2 schematics. This means: - GPIOZ_14 is the interrupt line (on the Odroid-N2 it's the reset line) - GPIOZ_15 is the reset line (on the Odroid-N2 it's the interrupt line) Also the GPIOZ_14 and GPIOZ_15 pins

hi

2019-06-09 Thread Jessica

Re: [PATCH] media: do not use C++ style comments in uapi headers

2019-06-09 Thread Pavel Machek
Hi! > On Thu, Jun 6, 2019 at 2:06 AM Joe Perches wrote: > > Perhaps a checkpatch change too: > > > > The first block updates unsigned only bitfields > > The second tests uapi definitions and suggests "__ > Good. > > In addition, > > "warn if __u8, __u16, __u32, __u64 are used outside of

Re: [PATCH 0/7] TTY Keyboard Status Request

2019-06-09 Thread Pavel Machek
Hi! > This patch series introduces TTY keyboard status request, a feature of > the n_tty line discipline that reserves a character in struct termios > (^T by default) and reacts to it by printing a short informational line > to the terminal and sending a Unix signal to the tty's foreground >

Re: [PATCH 4.14 0/2] Fix FUSE read/write deadlock on stream-like files

2019-06-09 Thread Kirill Smelkov
On Sun, Jun 09, 2019 at 06:38:26PM +0200, Greg KH wrote: > On Sun, Jun 09, 2019 at 12:39:08PM +, Kirill Smelkov wrote: > > Hello stable team, > > > > Please consider applying the following 2 patches to Linux-4.14 stable > > tree. The patches fix regression introduced in 3.14 where both read

[PATCH 5.1 17/70] neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit

2019-06-09 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit 4b2a2bfeb3f056461a90bd621e8bd7d03fa47f60 ] Commit cd9ff4de0107 changed the key for IFF_POINTOPOINT devices to INADDR_ANY but neigh_xmit which is used for MPLS encapsulations was not updated to use the altered key. The result is that every packet Tx does a

[PATCH 5.1 21/70] net/tls: replace the sleeping lock around RX resync with a bit lock

2019-06-09 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit e52972c11d6b1262964db96d65934196db621685 ] Commit 38030d7cb779 ("net/tls: avoid NULL-deref on resync during device removal") tried to fix a potential NULL-dereference by taking the context rwsem. Unfortunately the RX resync may get called from soft IRQ,

[PATCH 5.1 16/70] neighbor: Reset gc_entries counter if new entry is released before insert

2019-06-09 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit 64c6f4bbca748c3b2101469a76d88b7cd1c00476 ] Ian and Alan both reported seeing overflows after upgrades to 5.x kernels: neighbour: arp_cache: neighbor table overflow! Alan's mpls script helped get to the bottom of this bug. When a new entry is created the

[PATCH 5.1 20/70] net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query

2019-06-09 Thread Greg Kroah-Hartman
From: Erez Alfasi [ Upstream commit 135dd9594f127c8a82d141c3c8430e9e2143216a ] Querying EEPROM high pages data for SFP module is currently not supported by our driver but is still tried, resulting in invalid FW queries. Set the EEPROM ethtool data length to 256 for SFP module to limit the

[PATCH 5.1 14/70] ipv6: fix EFAULT on sendto with icmpv6 and hdrincl

2019-06-09 Thread Greg Kroah-Hartman
From: Olivier Matz [ Upstream commit b9aa52c4cb457e7416cc0c95f475e72ef4a61336 ] The following code returns EFAULT (Bad address): s = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); setsockopt(s, SOL_IPV6, IPV6_HDRINCL, 1); sendto(ipv6_icmp6_packet, addr); /* returns -1, errno = EFAULT */

[PATCH 5.1 46/70] MIPS: pistachio: Build uImage.gz by default

2019-06-09 Thread Greg Kroah-Hartman
From: Paul Burton commit e4f2d1af7163becb181419af9dece9206001e0a6 upstream. The pistachio platform uses the U-Boot bootloader & generally boots a kernel in the uImage format. As such it's useful to build one when building the kernel, but to do so currently requires the user to manually specify

[PATCH 5.1 03/70] ipv4: not do cache for local delivery if bc_forwarding is enabled

2019-06-09 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 0a90478b93a46bdcd56ba33c37566a993e455d54 ] With the topo: h1 ---| rp1| | route rp3 |--- h3 (192.168.200.1) h2 ---| rp2| If rp1 bc_forwarding is set while rp2 bc_forwarding is not, after doing "ping

[PATCH 5.1 32/70] fuse: fix copy_file_range() in the writeback case

2019-06-09 Thread Greg Kroah-Hartman
From: Miklos Szeredi commit a2bc92362941006830afa3dfad6caec1f99acbf5 upstream. Prior to sending COPY_FILE_RANGE to userspace filesystem, we must flush all dirty pages in both the source and destination files. This patch adds the missing flush of the source file. Tested on libfuse-3.5.0 with:

[PATCH 5.1 24/70] ARC: mm: SIGSEGV userspace trying to access kernel virtual memory

2019-06-09 Thread Greg Kroah-Hartman
From: Eugeniy Paltsev commit a8c715b4dd73c26a81a9cc8dc792aa715d8b4bb2 upstream. As of today if userspace process tries to access a kernel virtual addres (0x7000_ to 0x7_) such that a legit kernel mapping already exists, that process hangs instead of being killed with SIGSEGV Fix

[PATCH 5.1 30/70] NFSv4.1: Fix bug only first CB_NOTIFY_LOCK is handled

2019-06-09 Thread Greg Kroah-Hartman
From: Yihao Wu commit ba851a39c9703f09684a541885ed176f8fb7c868 upstream. When a waiter is waked by CB_NOTIFY_LOCK, it will retry nfs4_proc_setlk(). The waiter may fail to nfs4_proc_setlk() and sleep again. However, the waiter is already removed from clp->cl_lock_waitq when handling

[PATCH 5.1 07/70] net: rds: fix memory leak in rds_ib_flush_mr_pool

2019-06-09 Thread Greg Kroah-Hartman
From: Zhu Yanjun [ Upstream commit 85cb928787eab6a2f4ca9d2a798b6f3bed53ced1 ] When the following tests last for several hours, the problem will occur. Server: rds-stress -r 1.1.1.16 -D 1M Client: rds-stress -r 1.1.1.14 -s 1.1.1.16 -D 1M -T 30 The following will occur. " Starting

[PATCH 5.1 28/70] SUNRPC: Fix a use after free when a server rejects the RPCSEC_GSS credential

2019-06-09 Thread Greg Kroah-Hartman
From: Trond Myklebust commit 7987b694ade8cc465ce10fb3dceaa614f13ceaf3 upstream. The addition of rpc_check_timeout() to call_decode causes an Oops when the RPCSEC_GSS credential is rejected. The reason is that rpc_decode_header() will call xprt_release() in order to free task->tk_rqstp, which is

[PATCH 5.1 47/70] genwqe: Prevent an integer overflow in the ioctl

2019-06-09 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 110080cea0d0e4dfdb0b536e7f8a5633ead6a781 upstream. There are a couple potential integer overflows here. round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE); The first thing is that the "m->size + (...)" addition could overflow, and the second is that

[PATCH 5.1 48/70] test_firmware: Use correct snprintf() limit

2019-06-09 Thread Greg Kroah-Hartman
From: Dan Carpenter commit bd17cc5a20ae9aaa3ed775f360b75ff93cd66a1d upstream. The limit here is supposed to be how much of the page is left, but it's just using PAGE_SIZE as the limit. The other thing to remember is that snprintf() returns the number of bytes which would have been copied if we

[PATCH 5.1 50/70] drm/vc4: fix fb references in async update

2019-06-09 Thread Greg Kroah-Hartman
From: Helen Koike commit c16b85559dcfb5a348cc085a7b4c75ed49b05e2c upstream. Async update callbacks are expected to set the old_fb in the new_state so prepare/cleanup framebuffers are balanced. Calling drm_atomic_set_fb_for_plane() (which gets a reference of the new fb and put the old fb) is

[PATCH 5.1 00/70] 5.1.9-stable review

2019-06-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.1.9 release. There are 70 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 Tue 11 Jun 2019 04:40:04 PM UTC. Anything

[PATCH 5.1 49/70] drm/rockchip: fix fb references in async update

2019-06-09 Thread Greg Kroah-Hartman
From: Helen Koike commit d985a3533274ef7dd1ccb25cb05a72259b25268f upstream. In the case of async update, modifications are done in place, i.e. in the current plane state, so the new_state is prepared and the new_state is cleaned up (instead of the old_state, unlike what happens in a normal sync

[PATCH 5.1 59/70] drm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check when hotplug-in

2019-06-09 Thread Greg Kroah-Hartman
From: Aaron Liu commit bdb1ccb080dafc1b4224873a5b759ff85a7d1c10 upstream. In amdgpu_atif_handler, when hotplug event received, remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check. This bit's check will cause missing system resume. Signed-off-by: Aaron Liu Reviewed-by: Alex Deucher Signed-off-by:

[PATCH 5.1 57/70] drm/amdgpu/psp: move psp version specific function pointers to early_init

2019-06-09 Thread Greg Kroah-Hartman
From: Alex Deucher commit 9d6fea5744d6798353f37ac42a8a653a2607ca69 upstream. In case we need to use them for GPU reset prior initializing the asic. Fixes a crash if the driver attempts to reset the GPU at driver load time. Acked-by: Christian König Signed-off-by: Alex Deucher Cc:

[PATCH 5.1 69/70] drm/amd: fix fb references in async update

2019-06-09 Thread Greg Kroah-Hartman
From: Helen Koike commit 332af874db929f92931727bfe191b2c666438c81 upstream. Async update callbacks are expected to set the old_fb in the new_state so prepare/cleanup framebuffers are balanced. Calling drm_atomic_set_fb_for_plane() (which gets a reference of the new fb and put the old fb) is

[PATCH 5.1 68/70] drm/i915/gvt: Initialize intel_gvt_gtt_entry in stack

2019-06-09 Thread Greg Kroah-Hartman
From: Tina Zhang commit 387a4c2b55291b37e245c840813bd8a8bd06ed49 upstream. Stack struct intel_gvt_gtt_entry value needs to be initialized before being used, as the fields may contain garbage values. W/o this patch, set_ggtt_entry prints: - 274.046840:

[PATCH 5.1 39/70] x86/power: Fix nosmt vs hibernation triple fault during resume

2019-06-09 Thread Greg Kroah-Hartman
From: Jiri Kosina commit ec527c318036a65a083ef68d8ba95789d2212246 upstream. As explained in 0cc3cd21657b ("cpu/hotplug: Boot HT siblings at least once") we always, no matter what, have to bring up x86 HT siblings during boot at least once in order to avoid first MCE bringing the

[PATCH 4.19 13/51] pktgen: do not sleep with the thread lock held.

2019-06-09 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit 720f1de4021f09898b8c8443f3b3e995991b6e3a ] Currently, the process issuing a "start" command on the pktgen procfs interface, acquires the pktgen thread lock and never release it, until all pktgen threads are completed. The above can blocks indefinitely any

[PATCH 4.19 20/51] NFSv4.1: Again fix a race where CB_NOTIFY_LOCK fails to wake a waiter

2019-06-09 Thread Greg Kroah-Hartman
From: Yihao Wu commit 52b042ab9948cc367b61f9ca9c18603aa7813c3a upstream. Commit b7dbcc0e433f "NFSv4.1: Fix a race where CB_NOTIFY_LOCK fails to wake a waiter" found this bug. However it didn't fix it. This commit replaces schedule_timeout() with wait_woken() and default_wake_function() with

Re: [PATCH] media: do not use C++ style comments in uapi headers

2019-06-09 Thread Masahiro Yamada
On Sun, Jun 9, 2019 at 10:40 PM Joe Perches wrote: > > On Sun, 2019-06-09 at 22:08 +0900, Masahiro Yamada wrote: > > On Sun, Jun 9, 2019 at 8:57 PM Joe Perches wrote: > > > On Sun, 2019-06-09 at 16:14 +0900, Masahiro Yamada wrote: > > > > Hi Joe, > > > > > > > > On Thu, Jun 6, 2019 at 2:06 AM

[PATCH 4.19 23/51] pstore: Remove needless lock during console writes

2019-06-09 Thread Greg Kroah-Hartman
From: Kees Cook commit b77fa617a2ff4d6beccad3d3d4b3a1f2d10368aa upstream. Since the console writer does not use the preallocated crash dump buffer any more, there is no reason to perform locking around it. Fixes: 70ad35db3321 ("pstore: Convert console write to use ->write_buf") Signed-off-by:

[PATCH 4.19 03/51] ipv4: not do cache for local delivery if bc_forwarding is enabled

2019-06-09 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 0a90478b93a46bdcd56ba33c37566a993e455d54 ] With the topo: h1 ---| rp1| | route rp3 |--- h3 (192.168.200.1) h2 ---| rp2| If rp1 bc_forwarding is set while rp2 bc_forwarding is not, after doing "ping

[PATCH 5.1 40/70] x86/insn-eval: Fix use-after-free access to LDT entry

2019-06-09 Thread Greg Kroah-Hartman
From: Jann Horn commit de9f869616dd95e95c00bdd6b0fcd3421e8a4323 upstream. get_desc() computes a pointer into the LDT while holding a lock that protects the LDT from being freed, but then drops the lock and returns the (now potentially dangling) pointer to its caller. Fix it by giving the

[PATCH 4.19 17/51] mtd: spinand: macronix: Fix ECC Status Read

2019-06-09 Thread Greg Kroah-Hartman
From: Emil Lenngren commit f4cb4d7b46f6409382fd981eec9556e1f3c1dc5d upstream. The datasheet specifies the upper four bits are reserved. Testing on real hardware shows that these bits can indeed be nonzero. Signed-off-by: Emil Lenngren Reviewed-by: Boris Brezillon Signed-off-by: Miquel Raynal

[PATCH 4.19 04/51] ipv6: fix the check before getting the cookie in rt6_get_cookie

2019-06-09 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit b7999b07726c16974ba9ca3bb9fe98ecbec5f81c ] In Jianlin's testing, netperf was broken with 'Connection reset by peer', as the cookie check failed in rt6_check() and ip6_dst_check() always returned NULL. It's caused by Commit 93531c674315 ("net/ipv6: separate

[PATCH 4.19 12/51] packet: unconditionally free po->rollover

2019-06-09 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit afa0925c6fcc6a8f610e996ca09bc3215048033c ] Rollover used to use a complex RCU mechanism for assignment, which had a race condition. The below patch fixed the bug and greatly simplified the logic. The feature depends on fanout, but the state is private

[PATCH 4.19 22/51] fuse: fallocate: fix return with locked inode

2019-06-09 Thread Greg Kroah-Hartman
From: Miklos Szeredi commit 35d6fcbb7c3e296a52136347346a698a35af3fda upstream. Do the proper cleanup in case the size check fails. Tested with xfstests:generic/228 Reported-by: kbuild test robot Reported-by: Dan Carpenter Fixes: 0cbade024ba5 ("fuse: honor RLIMIT_FSIZE in

[PATCH 4.19 31/51] xen-blkfront: switch kcalloc to kvcalloc for large array allocation

2019-06-09 Thread Greg Kroah-Hartman
From: Roger Pau Monne commit 1d5c76e66433382a1e170d1d5845bb0fed7467aa upstream. There's no reason to request physically contiguous memory for those allocations. [boris: added CC to stable] Cc: sta...@vger.kernel.org Reported-by: Ian Jackson Signed-off-by: Roger Pau Monné Reviewed-by:

[PATCH 4.19 39/51] drm: add non-desktop quirk for Valve HMDs

2019-06-09 Thread Greg Kroah-Hartman
From: Andres Rodriguez commit 30d62d4453e49f85dd17b2ba60bbb68b6593dba0 upstream. Add vendor/product pairs for the Valve Index HMDs. Signed-off-by: Andres Rodriguez Cc: Dave Airlie Cc: # v4.15 Signed-off-by: Dave Airlie Link:

[PATCH 4.19 34/51] Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment"

2019-06-09 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit ca8648816e3dcc8dadba0e79a034f61c85eb206d which is commit a1e8783db8e0d58891681bc1e6d9ada66eae8e20 upstream. Petr writes: Karl has reported to me today, that he's experiencing weird reboot hang on his devices with 4.9.180 kernel and

[PATCH 4.19 49/51] drm: dont block fb changes for async plane updates

2019-06-09 Thread Greg Kroah-Hartman
From: Helen Koike commit 89a4aac0ab0e6f5eea10d7bf4869dd15c3de2cd4 upstream. In the case of a normal sync update, the preparation of framebuffers (be it calling drm_atomic_helper_prepare_planes() or doing setups with drm_framebuffer_get()) are performed in the new_state and the respective

[PATCH 4.19 28/51] x86/insn-eval: Fix use-after-free access to LDT entry

2019-06-09 Thread Greg Kroah-Hartman
From: Jann Horn commit de9f869616dd95e95c00bdd6b0fcd3421e8a4323 upstream. get_desc() computes a pointer into the LDT while holding a lock that protects the LDT from being freed, but then drops the lock and returns the (now potentially dangling) pointer to its caller. Fix it by giving the

[PATCH 4.19 47/51] drm/i915/fbc: disable framebuffer compression on GeminiLake

2019-06-09 Thread Greg Kroah-Hartman
From: Daniel Drake commit 396dd8143bdd94bd1c358a228a631c8c895a1126 upstream. On many (all?) the Gemini Lake systems we work with, there is frequent momentary graphical corruption at the top of the screen, and it seems that disabling framebuffer compression can avoid this. The ticket was

[PATCH 4.19 09/51] net: rds: fix memory leak in rds_ib_flush_mr_pool

2019-06-09 Thread Greg Kroah-Hartman
From: Zhu Yanjun [ Upstream commit 85cb928787eab6a2f4ca9d2a798b6f3bed53ced1 ] When the following tests last for several hours, the problem will occur. Server: rds-stress -r 1.1.1.16 -D 1M Client: rds-stress -r 1.1.1.14 -s 1.1.1.16 -D 1M -T 30 The following will occur. " Starting

[PATCH 4.19 07/51] net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query

2019-06-09 Thread Greg Kroah-Hartman
From: Erez Alfasi [ Upstream commit 135dd9594f127c8a82d141c3c8430e9e2143216a ] Querying EEPROM high pages data for SFP module is currently not supported by our driver but is still tried, resulting in invalid FW queries. Set the EEPROM ethtool data length to 256 for SFP module to limit the

[PATCH 4.19 51/51] TTY: serial_core, add ->install

2019-06-09 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 4cdd17ba1dff20ffc99fdbd2e6f0201fc7fe67df upstream. We need to compute the uart state only on the first open. This is usually what is done in the ->install hook. serial_core used to do this in ->open on every open. So move it to ->install. As a side effect, it ensures

[PATCH 4.14 12/35] Revert "fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied"

2019-06-09 Thread Greg Kroah-Hartman
From: Hangbin Liu [ Upstream commit 4970b42d5c362bf873982db7d93245c5281e58f4 ] This reverts commit e9919a24d3022f72bcadc407e73a6ef17093a849. Nathan reported the new behaviour breaks Android, as Android just add new rules and delete old ones. If we return 0 without adding dup rules, Android

Re: [PATCH v6 10/10] mm: reparent slab memory on cgroup removal

2019-06-09 Thread Vladimir Davydov
On Tue, Jun 04, 2019 at 07:44:54PM -0700, Roman Gushchin wrote: > Let's reparent memcg slab memory on memcg offlining. This allows us > to release the memory cgroup without waiting for the last outstanding > kernel object (e.g. dentry used by another application). > > So instead of reparenting

<    1   2   3   4   5   6   7   8   >