[PATCH 1/2] hwmon: (pmbus): Export pmbus device debugfs directory entry

2017-12-07 Thread Eddie James
From: "Edward A. James" Pmbus client drivers, if they want to use debugfs, should use the same root directory as the pmbus debugfs entries are using. Therefore, export the device dentry for the pmbus client. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/pmbus.h | 2 ++ drivers/hw

Re: [PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case

2017-12-07 Thread David Miller
From: Ivan Khoronzhuk Date: Thu, 7 Dec 2017 21:48:56 +0200 > On Wed, Dec 06, 2017 at 04:35:45PM -0500, David Miller wrote: >> From: Ivan Khoronzhuk >> Date: Wed, 6 Dec 2017 16:41:18 +0200 >> >> > If rate is the same as set it's correct case. >> > >> > Signed-off-by: Ivan Khoronzhuk >> > ---

Re: [PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case

2017-12-07 Thread Ivan Khoronzhuk
On Wed, Dec 06, 2017 at 04:35:45PM -0500, David Miller wrote: > From: Ivan Khoronzhuk > Date: Wed, 6 Dec 2017 16:41:18 +0200 > > > If rate is the same as set it's correct case. > > > > Signed-off-by: Ivan Khoronzhuk > > --- > > Based on net-next/master > > > > drivers/net/ethernet/ti/davinci

Re: [PATCH] PM / runtime: Fix handling of suppliers with disabled runtime PM

2017-12-07 Thread Ulf Hansson
On 1 December 2017 at 14:58, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Prevent rpm_get_suppliers() from returning an error code if runtime > PM is disabled for one or more of the supplier devices it wants to > runtime-resume, so as to make runtime PM work for devices with links > to

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-07 Thread Ulf Hansson
On 7 December 2017 at 03:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain) needs to make the core skip ->thaw_early and > ->tha

Re: [RFC PATCH] blk-throttle: add burst allowance.

2017-12-07 Thread Vivek Goyal
On Thu, Nov 16, 2017 at 08:50:33AM -0800, Shaohua Li wrote: [..] > Can you describe why we need this? It would be great if you can describe the > usage model and an example. Does this work for io.low/io.max or both? Hi Shaohua, Is there any documentation for "io.low" somewhere now. Should we upd

Re: [PATCH] x86/pci: Add a break condition when enabling BAR

2017-12-07 Thread Bandan Das
Christian König writes: > Hi Bandas, > > thanks for the patch, but this is a known issue with a fix already on > the way into the next -rc. Oh great! Thank you, have a pointer to the patch so that I can test ? > Regards, > Christian. > > Am 07.12.2017 um 09:00 schrieb Bandan Das: >> On an old f

Re: [PATCH 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-07 Thread Timur Tabi
On 12/07/2017 01:05 PM, Prarit Bhargava wrote: Please give us a chance to test this patch before merging. We've had a lot of problems with our E44 work-around, and we need to make sure that qdf2400_erratum_44_present function is called before the pl011 driver is probed. Timor, do you know of a

Re: [ovs-dev] [PATCH 7/8] net: ovs: remove unused hardirq.h

2017-12-07 Thread Pravin Shelar
On Fri, Nov 17, 2017 at 3:02 PM, Yang Shi wrote: > Preempt counter APIs have been split out, currently, hardirq.h just > includes irq_enter/exit APIs which are not used by openvswitch at all. > > So, remove the unused hardirq.h. > > Signed-off-by: Yang Shi > Cc: Pravin Shelar > Cc: "David S. Mil

[PATCH v6 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Sven Van Asbroeck
Some multi-address eeproms in the at24 family may not automatically roll-over reads to the next slave address. On those eeproms, reads that straddle slave boundaries will not work correctly. Solution: Mark such eeproms with a flag that prevents reads straddling slave boundaries. Add the AT24_FLAG_

[PATCH v6 0/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Sven Van Asbroeck
v6: added newlines, asked by Bartosz no need for braces around ternary operator's condition: bits = (at24->chip.flags & AT24_FLAG_ADDR16) ? 16 : 8; but keep the braces anyway, as asked by Uwe Klein-Koenig v5: at Rob Herring's request, renamed devicet

[PATCH v6 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-07 Thread Sven Van Asbroeck
Adds an optional property for at24 eeproms. This parameterless property indicates that the multi-address eeprom does not automatically roll over reads to the next slave address. Signed-off-by: Sven Van Asbroeck --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 5 + 1 file changed, 5

Re: [RFC 0/2] of: Add whitelist

2017-12-07 Thread Alan Tull
On Wed, Dec 6, 2017 at 5:56 AM, Frank Rowand wrote: > On 12/05/17 11:33, Alan Tull wrote: >> On Thu, Nov 30, 2017 at 6:46 AM, Frank Rowand wrote: >>> On 11/29/17 11:11, Alan Tull wrote: On Wed, Nov 29, 2017 at 7:31 AM, Rob Herring wrote: > On Wed, Nov 29, 2017 at 3:20 AM, Frank Rowand

Re: [PATCH v2 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-07 Thread David Ahern
On 12/7/17 11:39 AM, Roman Gushchin wrote: > This patch adds basic cgroup bpf operations to bpftool: > cgroup list, attach and detach commands. > > Usage is described in the corresponding man pages, > and examples are provided. > > Syntax: > $ bpftool cgroup list CGROUP > $ bpftool cgroup attach

Re: [PATCH 4/8] vfs: remove unused hardirq.h

2017-12-07 Thread Al Viro
On Fri, Dec 08, 2017 at 03:12:52AM +0800, Yang Shi wrote: > Hi folks, > > Any comment on this one? Applied

RE: [PATCH 8/8] net: tipc: remove unused hardirq.h

2017-12-07 Thread Jon Maloy
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Yang Shi > Sent: Thursday, December 07, 2017 14:16 > To: linux-kernel@vger.kernel.org > Cc: linux...@kvack.org; linux-fsde...@vger.kernel.org; linux- > cry...@vger.kernel.org; n

Re: [PATCH v2] usb: dwc2: Remove unnecessary debug prints

2017-12-07 Thread Joe Perches
On Thu, 2017-12-07 at 11:17 -0800, Joe Perches wrote: > On Wed, 2017-12-06 at 17:57 +0400, Razmik Karapetyan wrote: > > Removed unnecessary debug prints about DMA mode for host side > > from dwc2_gahbcfg_init() function. > > What other functionality makes these unnecessary? > If any, it's nice to

Re: [PATCH v2] usb: dwc2: Remove unnecessary debug prints

2017-12-07 Thread Joe Perches
On Wed, 2017-12-06 at 17:57 +0400, Razmik Karapetyan wrote: > Removed unnecessary debug prints about DMA mode for host side > from dwc2_gahbcfg_init() function. What other functionality makes these unnecessary? If any, it's nice to de

Re: [PATCH 2/2 v3] lib: debugobjects: touch watchdog to avoid softlockup when !CONFIG_PREEMPT

2017-12-07 Thread Yang Shi
Hi Thomas, Waiman has reviewed the patches, any comment from you is appreciated. Thanks, Yang On 11/28/17 12:24 PM, Waiman Long wrote: On 11/28/2017 02:45 PM, Yang Shi wrote: There are nested loops on debug objects free path, sometimes it may take over hundred thousands of loops, then cause

Re: [PATCH 8/8] net: tipc: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by TIPC at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi Cc: Jon Maloy C

Re: [PATCH 7/8] net: ovs: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 5:48 PM, Yang Shi wrote: It looks the email address of Pravin in MAINTAINERS file is obsolete, sent to the right address. Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h j

Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-07 Thread Kees Cook
On Wed, Dec 6, 2017 at 9:46 PM, Michael Ellerman wrote: > Matthew Wilcox writes: > >> On Tue, Dec 05, 2017 at 08:54:35PM -0800, Matthew Wilcox wrote: >>> On Wed, Dec 06, 2017 at 03:51:44PM +1100, Michael Ellerman wrote: >>> > Cyril Hrubis writes: >>> > >>> > > Hi! >>> > >> > MAP_FIXED_UNIQUE >>>

Re: [PATCH net-next v3 0/2] net: thunderx: add support for PTP clock

2017-12-07 Thread David Miller
From: David Miller Date: Thu, 07 Dec 2017 13:39:32 -0500 (EST) > From: Aleksey Makarov > Date: Wed, 6 Dec 2017 16:30:56 +0300 > >> This series adds support for IEEE 1588 Precision Time Protocol >> to Cavium ethernet driver. > > Series applied, thank you. Actually, this doesn't even compile,

Re: [PATCH 6/8] net: caif: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by caif at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi Cc: Dmitry Tarny

Re: [PATCH 4/8] vfs: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by vfs at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi Cc: Alexander Vir

Re: [PATCH 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-07 Thread Prarit Bhargava
On 12/07/2017 01:43 PM, Timur Tabi wrote: > On Thu, Dec 7, 2017 at 11:29 AM, Prarit Bhargava wrote: >> Other architectures can use SPCR to setup an early console or console but >> the current code is ARM64 specific. >> >> Change the name of parse_spcr() to acpi_parse_spcr(). Add a weak >> funct

[PATCH v2 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg

2017-12-07 Thread Jagan Teki
Add usb otg support for bananapi-m64 board, - USB-ID connected with PH9 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki --- Changes for v2: - add drvvbus regulator - add N_VBUSEN pin .../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 21 + 1 f

[PATCH v2 2/3] arm64: allwinner: axp803: Add drivevbus regulator

2017-12-07 Thread Jagan Teki
Add reg_drivevbus regualtor for boards which are using external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Signed-off-by: Jagan Teki --- Changes for v2: - New patch arch/arm64/boot/dts/allwinner/axp803.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boo

[PATCH v2 1/3] regulator: axp20x: add drivevbus support for axp803

2017-12-07 Thread Jagan Teki
Like axp221, axp223, axp813 the axp803 is also supporting external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Add support for it. Signed-off-by: Jagan Teki --- Changes for v2: - New patch Documentation/devicetree/bindings/mfd/axp20x.txt | 2 +- drivers/regulator/axp20x-regulat

Re: [PATCH 2/2] acpi, x86: Use SPCR table for earlycon on x86

2017-12-07 Thread Prarit Bhargava
On 12/07/2017 01:46 PM, Timur Tabi wrote: > On Thu, Dec 7, 2017 at 11:29 AM, Prarit Bhargava wrote: >> -int __init acpi_parse_spcr(bool earlycon) >> +int __init acpi_parse_spcr(bool earlycon, bool enable_console) >> { >> static char opts[ACPI_SPCR_OPTS_SIZE]; >> static char uart

Re: [PATCH v5 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Uwe Kleine-König
Hello, On Thu, Dec 07, 2017 at 05:26:50PM +0100, Bartosz Golaszewski wrote: > > + if (at24->chip.flags & AT24_FLAG_NO_RDROL) { > > + bits = (at24->chip.flags & AT24_FLAG_ADDR16) ? 16 : 8; > > There's no need for braces around the ternary operator's condition. Even if not requ

[PATCH net-next] net: dsa: lan9303: Protect ALR operations with mutex

2017-12-07 Thread Egil Hjelmeland
ALR table operations are a sequence of related register operations which should be protected from concurrent access. The alr_cache should also be protected. Add alr_mutex doing that. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 14 -- include/linux/dsa/lan9303.

Re: [PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-07 Thread David Miller
From: Branislav Radocaj Date: Thu, 7 Dec 2017 00:07:38 +0100 > If clk_set_rate() fails, we should disable clk before return. > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Branislav Radocaj Ok, but this probe routine is very inconsistent in how it handles

Re: [PATCH 2/2] acpi, x86: Use SPCR table for earlycon on x86

2017-12-07 Thread Timur Tabi
On Thu, Dec 7, 2017 at 11:29 AM, Prarit Bhargava wrote: > -int __init acpi_parse_spcr(bool earlycon) > +int __init acpi_parse_spcr(bool earlycon, bool enable_console) > { > static char opts[ACPI_SPCR_OPTS_SIZE]; > static char uart[ACPI_SPCR_BUF_SIZE]; > @@ -113,7 +113,8 @@ int __i

Re: [PATCH net-next v3] net: dsa: Allow compiling out legacy support

2017-12-07 Thread David Miller
From: Florian Fainelli Date: Wed, 6 Dec 2017 15:03:33 -0800 > Introduce a configuration option: CONFIG_NET_DSA_LEGACY allowing to compile > out > support for the old platform device and Device Tree binding registration. > Support for these configurations is scheduled to be removed in 4.17. > >

Re: [PATCH 1/2] acpi, spcr: Make SPCR avialable to other architectures

2017-12-07 Thread Timur Tabi
On Thu, Dec 7, 2017 at 11:29 AM, Prarit Bhargava wrote: > Other architectures can use SPCR to setup an early console or console but > the current code is ARM64 specific. > > Change the name of parse_spcr() to acpi_parse_spcr(). Add a weak > function acpi_arch_setup_console() that can be used for

Re: [PATCH] mm/slab: Do not hash pointers when debugging slab

2017-12-07 Thread Kees Cook
On Thu, Dec 7, 2017 at 3:13 AM, Christopher Lameter wrote: > On Thu, 7 Dec 2017, Geert Uytterhoeven wrote: > >> If CONFIG_DEBUG_SLAB/CONFIG_DEBUG_SLAB_LEAK are enabled, the slab code >> prints extra debug information when e.g. corruption is detected. >> This includes pointers, which are not very u

Re: [PATCH] net: mvmdio: disable/unprepare clocks in EPROBE_DEFER case

2017-12-07 Thread David Miller
From: Tobias Jordan Date: Wed, 6 Dec 2017 15:23:23 +0100 > add appropriate calls to clk_disable_unprepare() by jumping to out_mdio > in case orion_mdio_probe() returns -EPROBE_DEFER. > > Found by Linux Driver Verification project (linuxtesting.org). > > Fixes: 3d604da1e954 net: mvmdio: get and

[PATCH v2 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-07 Thread Roman Gushchin
This patch adds basic cgroup bpf operations to bpftool: cgroup list, attach and detach commands. Usage is described in the corresponding man pages, and examples are provided. Syntax: $ bpftool cgroup list CGROUP $ bpftool cgroup attach CGROUP ATTACH_TYPE PROG [ATTACH_FLAGS] $ bpftool cgroup detac

[PATCH v2 net-next 2/4] libbpf: prefer global symbols as bpf program name source

2017-12-07 Thread Roman Gushchin
Libbpf picks the name of the first symbol in the corresponding elf section to use as a program name. But without taking symbol's scope into account it may end's up with some local label as a program name. E.g.: $ bpftool prog 1: type 15 name LBB0_10tag 0390a5136ba23f5c loaded_at Dec 0

[PATCH v2 net-next 3/4] bpftool: implement prog load command

2017-12-07 Thread Roman Gushchin
Add the prog load command to load a bpf program from a specified binary file and pin it to bpffs. Usage description and examples are given in the corresponding man page. Syntax: $ bpftool prog load SOURCE_FILE FILE FILE is a non-existing file on bpffs. Signed-off-by: Roman Gushchin Cc: Alexei

[PATCH v2 net-next 1/4] libbpf: add ability to guess program type based on section name

2017-12-07 Thread Roman Gushchin
The bpf_prog_load() function will guess program type if it's not specified explicitly. This functionality will be used to implement loading of different programs without asking a user to specify the program type. In first order it will be used by bpftool. Signed-off-by: Roman Gushchin Cc: Alexei

Re: [PATCH net-next v3 0/2] net: thunderx: add support for PTP clock

2017-12-07 Thread David Miller
From: Aleksey Makarov Date: Wed, 6 Dec 2017 16:30:56 +0300 > This series adds support for IEEE 1588 Precision Time Protocol > to Cavium ethernet driver. Series applied, thank you.

[PATCH v2 net-next 0/4] bpftool: cgroup bpf operations

2017-12-07 Thread Roman Gushchin
This patchset adds basic cgroup bpf operations to bpftool. Right now there is no convenient way to perform these operations. The /samples/bpf/load_sock_ops.c implements attach/detacg operations, but only for BPF_CGROUP_SOCK_OPS programs. Bps (part of bcc) implements bpf introspection, but lacks an

Re: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-07 Thread Jason Gunthorpe
On Thu, Dec 07, 2017 at 03:56:07PM +, alexander.stef...@infineon.com wrote: > > If these are intentional, it’d be great > > to give some hint to the user, what effect this has. > > I agree that those error messages in their current form are not that > helpful for the users. But they are part

Re: [RFC] vfio/type1: Add IOVA_RANGE capability support

2017-12-07 Thread Alex Williamson
On Thu, 7 Dec 2017 13:55:33 +0100 Pierre Morel wrote: > On 06/12/2017 17:15, Shameerali Kolothum Thodi wrote: > > Hi Pierre, > > > >> -Original Message- > >> From: Shameerali Kolothum Thodi > >> Sent: Wednesday, December 06, 2017 4:08 PM > >> To: alex.william...@redhat.com; eric.au...@

Re: [PATCH] lib/string: avoid reading beyond src buffer in strscpy

2017-12-07 Thread Kees Cook
On Thu, Dec 7, 2017 at 3:33 AM, Eryu Guan wrote: > strscpy() tries to copy sizeof(unsigned long) bytes a time from src > to dest when possible, and stops the loop when 'max' is less than > sizeof(unsigned long). But it doesn't check if (src+res) goes beyond > src buffer and does out-of-bound acces

Re: [PATCH 4.4 13/16] ocfs2: should wait dio before inode lock in ocfs2_setattr()

2017-12-07 Thread Ben Hutchings
On Wed, 2017-12-06 at 09:02 +0800, alex chen wrote: > Hi Ben, > > Thanks for your reply. > > On 2017/12/5 23:49, Ben Hutchings wrote: > > On Wed, 2017-11-22 at 11:12 +0100, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch.  If anyone has any objections, please let me > > > know. > > > >

[PATCH] ARM: dts: sun8i-h3: Remove allwinner,leds-active-low for non internal PHY

2017-12-07 Thread Corentin Labbe
allwinner,leds-active-low have effect only on boards which us the internal PHY. So this patch remove it from all boards which do not use the internal PHY. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 1 - arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 2

Re: [PATCH] LDT improvements

2017-12-07 Thread Andy Lutomirski
> On Dec 7, 2017, at 9:23 AM, Thomas Gleixner wrote: > >> On Thu, 7 Dec 2017, Andy Lutomirski wrote: >> >>> On Thu, Dec 7, 2017 at 4:43 AM, Borislav Petkov wrote: On Wed, Dec 06, 2017 at 11:22:21PM -0800, Andy Lutomirski wrote: I think I like this approach. I also think it might be

Re: [PATCH] mm: terminate shrink_slab loop if signal is pending

2017-12-07 Thread Suren Baghdasaryan
I'm, terribly sorry. My original code was checking for additional condition which I realized is not useful here because it would mean the signal was already processed. Should have missed the error while removing it. Will address Michal's comments and fix the problem. On Thu, Dec 7, 2017 at 1:58 AM

[PATCH AUTOSEL for 4.14 015/135] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

2017-12-07 Thread alexander . levin
From: Wei Yongjun [ Upstream commit d86fd113ebbb37726ef7c7cc6fd6d5ce377455d6 ] Fix to return a negative error code from the VID create error handling case instead of 0, as done elsewhere in this function. Fixes: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN") Signed-off-by: Wei

[PATCH AUTOSEL for 4.14 016/135] PCI/PME: Handle invalid data when reading Root Status

2017-12-07 Thread alexander . levin
From: Qiang [ Upstream commit 3ad3f8ce50914288731a3018b27ee44ab803e170 ] PCIe PME and native hotplug share the same interrupt number, so hotplug interrupts are also processed by PME. In some cases, e.g., a Link Down interrupt, a device may be present but unreachable, so when we try to read its

[PATCH AUTOSEL for 4.14 014/135] dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

2017-12-07 Thread alexander . levin
From: Peter Ujfalusi [ Upstream commit 288e7560e4d3e259aa28f8f58a8dfe63627a1bf6 ] The used 0x1f mask is only valid for am335x family of SoC, different family using this type of crossbar might have different number of electable events. In case of am43xx family 0x3f mask should have been used for

[PATCH AUTOSEL for 4.14 012/135] ASoC: cs42l56: Fix reset GPIO name in example DT binding

2017-12-07 Thread alexander . levin
From: "Andrew F. Davis" [ Upstream commit 8adc430603d67e76a0f8491df21654f691acda62 ] The binding states the reset GPIO property shall be named "cirrus,gpio-nreset" and this is what the driver looks for, but the example uses "gpio-reset". Fix this here. Fixes: 3bb40619aca8 ("ASoC: cs42l56: bindi

Re: [PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:10PM +0100, Jerome Brunet wrote: > Add read and write helpers to manipulate banked registers on this PHY > This helps clarify the settings applied to these registers in the init > function and upcoming changes. > > Signed-off-by: Jerome Brunet > --- > drivers/net/ph

[PATCH AUTOSEL for 4.14 013/135] ASoC: Intel: Skylake: Fix uuid_module memory leak in failure case

2017-12-07 Thread alexander . levin
From: Pankaj Bharadiya [ Upstream commit f8e066521192c7debe59127d90abbe2773577e25 ] In the loop that adds the uuid_module to the uuid_list list, allocated memory is not properly freed in the error path free uuid_list whenever any of the memory allocation in the loop fails to avoid memory leak.

[PATCH AUTOSEL for 4.14 003/135] sfc: don't warn on successful change of MAC

2017-12-07 Thread alexander . levin
From: Robert Stonehouse [ Upstream commit cbad52e92ad7f01f0be4ca58bde59462dc1afe3a ] Fixes: 535a61777f44e ("sfc: suppress handled MCDI failures when changing the MAC address") Signed-off-by: Bert Kenward Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/sfc/

[PATCH AUTOSEL for 4.14 017/135] powerpc/powernv/cpufreq: Fix the frequency read by /proc/cpuinfo

2017-12-07 Thread alexander . levin
From: Shriya [ Upstream commit cd77b5ce208c153260ed7882d8910f2395bfaabd ] The call to /proc/cpuinfo in turn calls cpufreq_quick_get() which returns the last frequency requested by the kernel, but may not reflect the actual frequency the processor is running at. This patch makes a call to cpufreq

[PATCH AUTOSEL for 4.14 029/135] iscsi-target: fix memory leak in lio_target_tiqn_addtpg()

2017-12-07 Thread alexander . levin
From: tangwenji [ Upstream commit 12d5a43b2dffb6cd28062b4e19024f7982393288 ] tpg must free when call core_tpg_register() return fail Signed-off-by: tangwenji Signed-off-by: Nicholas Bellinger Signed-off-by: Sasha Levin --- drivers/target/iscsi/iscsi_target_configfs.c | 3 ++- 1 file changed

[PATCH AUTOSEL for 4.14 018/135] PCI: Do not allocate more buses than available in parent

2017-12-07 Thread alexander . levin
From: Mika Westerberg [ Upstream commit a20c7f36bd3d20d245616ae223bb9d05dfb6f050 ] One can ask more buses to be reserved for hotplug bridges by passing pci=hpbussize=N in the kernel command line. If the parent bus does not have enough bus space available we incorrectly create child bus with the

[PATCH AUTOSEL for 4.14 027/135] target/iscsi: Detect conn_cmd_list corruption early

2017-12-07 Thread alexander . levin
From: Bart Van Assche [ Upstream commit 6eaf69e4ec075f5af236c0c89f75639a195db904 ] Certain behavior of the initiator can cause the target driver to send both a reject and a SCSI response. If that happens two target_put_sess_cmd() calls will occur without the command having been removed from conn

[PATCH AUTOSEL for 4.14 007/135] video: fbdev: au1200fb: Return an error code if a memory allocation fails

2017-12-07 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 8cae353e6b01ac3f18097f631cdbceb5ff28c7f3 ] 'ret' is known to be 0 at this point. In case of memory allocation error in 'framebuffer_alloc()', return -ENOMEM instead. Signed-off-by: Christophe JAILLET Cc: Tejun Heo Signed-off-by: Bartlomiej Zolnierkie

[PATCH AUTOSEL for 4.14 028/135] target/iscsi: Fix a race condition in iscsit_add_reject_from_cmd()

2017-12-07 Thread alexander . levin
From: Bart Van Assche [ Upstream commit cfe2b621bb18d86e93271febf8c6e37622da2d14 ] Avoid that cmd->se_cmd.se_tfo is read after a command has already been freed. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Mike Christie Reviewed-by: Hannes Reinecke Signed-off-by: Nicholas Bellin

[PATCH AUTOSEL for 4.14 006/135] video: fbdev: au1200fb: Release some resources if a memory allocation fails

2017-12-07 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 451f130602619a17c8883dd0b71b11624faffd51 ] We should go through the error handling code instead of returning -ENOMEM directly. Signed-off-by: Christophe JAILLET Cc: Tejun Heo Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.14 008/135] rtc: pcf8563: fix output clock rate

2017-12-07 Thread alexander . levin
From: Philipp Zabel [ Upstream commit a3350f9c57ffad569c40f7320b89da1f3061c5bb ] The pcf8563_clkout_recalc_rate function erroneously ignores the frequency index read from the CLKO register and always returns 32768 Hz. Fixes: a39a6405d5f9 ("rtc: pcf8563: add CLKOUT to common clock framework") Si

[PATCH AUTOSEL for 4.14 009/135] scsi: aacraid: use timespec64 instead of timeval

2017-12-07 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit 820f188659122602ab217dd80cfa32b3ac0c55c0 ] aacraid passes the current time to the firmware in one of two ways, either as year/month/day/... or as 32-bit unsigned seconds. The first one is broken on 32-bit architectures as it cannot go past year 2038. Using

[PATCH AUTOSEL for 4.14 005/135] video: udlfb: Fix read EDID timeout

2017-12-07 Thread alexander . levin
From: Ladislav Michl [ Upstream commit c98769475575c8a585f5b3952f4b5f90266f699b ] While usb_control_msg function expects timeout in miliseconds, a value of HZ is used. Replace it with USB_CTRL_GET_TIMEOUT and also fix error message which looks like: udlfb: Read EDID byte 78 failed err ff92 a

[PATCH AUTOSEL for 4.14 004/135] fbdev: controlfb: Add missing modes to fix out of bounds access

2017-12-07 Thread alexander . levin
From: Geert Uytterhoeven [ Upstream commit ac831a379d34109451b3c41a44a20ee10ecb615f ] Dan's static analysis says: drivers/video/fbdev/controlfb.c:560 control_setup() error: buffer overflow 'control_mac_modes' 20 <= 21 Indeed, control_mac_modes[] has only 20 elements, while VMODE_MAX is

[PATCH AUTOSEL for 4.14 001/135] IB/mlx4: Fix RSS's QPC attributes assignments

2017-12-07 Thread alexander . levin
From: Guy Levi [ Upstream commit 108809a0571cd1e1b317c5c083a371e163e1f8f9 ] In the modify QP handler the base_qpn_udp field in the RSS QPC is overwrite later by irrelevant value assignment. Hence, ingress packets which gets to the RSS QP will be steered then to a garbage QPN. The patch fixes th

[PATCH AUTOSEL for 4.14 019/135] iommu/mediatek: Fix driver name

2017-12-07 Thread alexander . levin
From: Matthias Brugger [ Upstream commit 395df08d2e1de238a9c8c33fdcd0e2160efd63a9 ] There exist two Mediatek iommu drivers for the two different generations of the device. But both drivers have the same name "mtk-iommu". This breaks the registration of the second driver: Error: Driver 'mtk-iomm

[PATCH AUTOSEL for 4.14 021/135] netfilter: ipvs: Fix inappropriate output of procfs

2017-12-07 Thread alexander . levin
From: KUWAZAWA Takuya [ Upstream commit c5504f724c86ee925e7ffb80aa342cfd57959b13 ] Information about ipvs in different network namespace can be seen via procfs. How to reproduce: # ip netns add ns01 # ip netns add ns02 # ip netns exec ns01 ip a add dev lo 127.0.0.1/8 # ip netns exec ns

[PATCH AUTOSEL for 4.14 010/135] drm/amdgpu: bypass lru touch for KIQ ring submission

2017-12-07 Thread alexander . levin
From: Pixel Ding [ Upstream commit dce1e131dd4dc68099ff1b70aa03cd2d0acf8639 ] KIQ ring submission is used for register accessing on SRIOV VF that could happen both in irq enabled and irq disabled cases. Inversion lock could happen on adev->ring_lru_list_lock, while this operation is useless and

[PATCH AUTOSEL for 4.14 023/135] powerpc/ipic: Fix status get and status clear

2017-12-07 Thread alexander . levin
From: Christophe Leroy [ Upstream commit 6b148a7ce72a7f87c81cbcde48af014abc0516a9 ] IPIC Status is provided by register IPIC_SERSR and not by IPIC_SERMR which is the mask register. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/sy

[PATCH AUTOSEL for 4.14 030/135] target:fix condition return in core_pr_dump_initiator_port()

2017-12-07 Thread alexander . levin
From: tangwenji [ Upstream commit 24528f089d0a444070aa4f715ace537e8d6bf168 ] When is pr_reg->isid_present_at_reg is false,this function should return. This fixes a regression originally introduced by: commit d2843c173ee53cf4c12e7dfedc069a5bc76f0ac5 Author: Andy Grover Date: Thu May 16

[PATCH v4 1/4] uinput: Use monotonic times for uinput timestamps.

2017-12-07 Thread Deepa Dinamani
struct timeval which is part of struct input_event to maintain the event times is not y2038 safe. Real time timestamps are also not ideal for input_event as this time can go backwards as noted in the patch a80b83b7b8 by John Stultz. The patch switches the timestamps to use monotonic time from rea

[PATCH v4 2/4] input: evdev: Replace timeval with timespec64

2017-12-07 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval in the kernel will be replaced by y2038 safe structures. Replace all references to timeval with y2038 safe struct timespec64 here. struct input_event will be changed in a different patch. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd

[PATCH v4 4/4] input: serio: Replace timeval by timespec64

2017-12-07 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval will be deleted from the kernel to make it y2038 safe. Replace its uses by y2038 safe struct timespec64. The timestamps changed here only keep track of delta times. These timestamps are also internal to kernel. Hence, monotonic times are

[PATCH v4 0/4] Make input drivers y2038 safe

2017-12-07 Thread Deepa Dinamani
The series is aimed at making input events y2038 safe. It extends the lifetime of the realtime timestamps in the events to year 2106. The series is also a necessary update as glibc is set to provide 64 bit time_t support for 32 bit binaries. glibc plan is detailed at https://sourceware.org/glibc/wi

[PATCH v4 3/4] input: Deprecate real timestamps beyond year 2106

2017-12-07 Thread Deepa Dinamani
struct timeval is not y2038 safe. All usage of timeval in the kernel will be replaced by y2038 safe structures. The change is also necessary as glibc is introducing support for 32 bit applications to use 64 bit time_t. Without this change, many applications would incorrectly interpret values in the

Re: [PATCH net-next v2 4/8] net: phy: meson-gxl: use genphy_config_init

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:11PM +0100, Jerome Brunet wrote: > Use the generic init function to populate some of the phydev > structure fields > > Signed-off-by: Jerome Brunet Reviewed-by: Andrew Lunn Andrew

[PATCH AUTOSEL for 4.14 026/135] platform/x86: sony-laptop: Fix error handling in sony_nc_setup_rfkill()

2017-12-07 Thread alexander . levin
From: Markus Elfring [ Upstream commit f6c8a317ab208aee223776327c06f23342492d54 ] Source code review for a specific software refactoring showed the need for another correction because the error code "-1" was returned so far if a call of the function "sony_call_snc_handle" failed here. Thus assig

[PATCH AUTOSEL for 4.14 024/135] powerpc/pseries/vio: Dispose of virq mapping on vdevice unregister

2017-12-07 Thread alexander . levin
From: Tyrel Datwyler [ Upstream commit b8f89fea599d91e674497aad572613eb63181f31 ] When a vdevice is DLPAR removed from the system the vio subsystem doesn't bother unmapping the virq from the irq_domain. As a result we have a virq mapped to a hardware irq that is no longer valid for the irq_domai

[PATCH AUTOSEL for 4.14 020/135] thunderbolt: tb: fix use after free in tb_activate_pcie_devices

2017-12-07 Thread alexander . levin
From: "Gustavo A. R. Silva" [ Upstream commit a2e373438f72391493a4425efc1b82030b6b4fd5 ] Add a ̣̣continue statement in order to avoid using a previously free'd pointer tunnel in list_add. Addresses-Coverity-ID: 1415336 Fixes: 9d3cce0b6136 ("thunderbolt: Introduce thunderbolt bus and connection

[PATCH AUTOSEL for 4.14 031/135] target/file: Do not return error for UNMAP if length is zero

2017-12-07 Thread alexander . levin
From: Jiang Yi [ Upstream commit 594e25e73440863981032d76c9b1e33409ceff6e ] The function fd_execute_unmap() in target_core_file.c calles ret = file->f_op->fallocate(file, mode, pos, len); Some filesystems implement fallocate() to return error if length is zero (e.g. btrfs) but according to SCS

[PATCH AUTOSEL for 4.14 022/135] powerpc/opal: Fix EBUSY bug in acquiring tokens

2017-12-07 Thread alexander . levin
From: "William A. Kennington III" [ Upstream commit 71e24d7731a2903b1ae2bba2b2971c654d9c2aa6 ] The current code checks the completion map to look for the first token that is complete. In some cases, a completion can come in but the token can still be on lease to the caller processing the complet

[PATCH AUTOSEL for 4.14 033/135] iommu/amd: Limit the IOVA page range to the specified addresses

2017-12-07 Thread alexander . levin
From: Gary R Hook [ Upstream commit b92b4fb5c14257c0e7eae291ecc1f7b1962e1699 ] The extent of pages specified when applying a reserved region should include up to the last page of the range, but not the page following the range. Signed-off-by: Gary R Hook Fixes: 8d54d6c8b8f3 ('iommu/amd: Implem

[PATCH v2 07/10] arm64: dts: qcom: msm8916: drop remaining unused pinconfs

2017-12-07 Thread Rishi Bhattacharya

[PATCH AUTOSEL for 4.14 036/135] crypto: tcrypt - fix buffer lengths in test_aead_speed()

2017-12-07 Thread alexander . levin
From: Robert Baronescu [ Upstream commit 7aacbfcb331ceff3ac43096d563a1f93ed46e35e ] Fix the way the length of the buffers used for encryption / decryption are computed. For e.g. in case of encryption, input buffer does not contain an authentication tag. Signed-off-by: Robert Baronescu Signed-o

[PATCH AUTOSEL for 4.14 034/135] xfs: truncate pagecache before writeback in xfs_setattr_size()

2017-12-07 Thread alexander . levin
From: Eryu Guan [ Upstream commit 350976ae21873b0d36584ea005076356431b8f79 ] On truncate down, if new size is not block size aligned, we zero the rest of block to avoid exposing stale data to user, and iomap_truncate_page() skips zeroing if the range is already in unwritten state or a hole. Then

[PATCH AUTOSEL for 4.14 037/135] mm: Handle 0 flags in _calc_vm_trans() macro

2017-12-07 Thread alexander . levin
From: Jan Kara [ Upstream commit 592e254502041f953e84d091eae2c68cba04c10b ] _calc_vm_trans() does not handle the situation when some of the passed flags are 0 (which can happen if these VM flags do not make sense for the architecture). Improve the _calc_vm_trans() macro to return 0 in such situa

[PATCH AUTOSEL for 4.14 041/135] clk: mediatek: add the option for determining PLL source clock

2017-12-07 Thread alexander . levin
From: Chen Zhong [ Upstream commit c955bf3998efa3355790a4d8c82874582f1bc727 ] Since the previous setup always sets the PLL using crystal 26MHz, this doesn't always happen in every MediaTek platform. So the patch added flexibility for assigning extra member for determining the PLL source clock.

[PATCH AUTOSEL for 4.14 042/135] clk: imx: imx7d: Fix parent clock for OCRAM_CLK

2017-12-07 Thread alexander . levin
From: Adriana Reus [ Upstream commit edc5a8e754aba9c6eaeddd18cb1e72462f99b16c ] The parent of OCRAM_CLK should be axi_main_root_clk and not axi_post_div. before: axi_src 1 1 332307692 0 0 axi_cg1 1 332307692

[PATCH AUTOSEL for 4.14 035/135] arm-ccn: perf: Prevent module unload while PMU is in use

2017-12-07 Thread alexander . levin
From: Suzuki K Poulose [ Upstream commit c7f5828bf77dcbd61d51f4736c1d5aa35663fbb4 ] When the PMU driver is built as a module, the perf expects the pmu->module to be valid, so that the driver is prevented from being unloaded while it is in use. Fix the CCN pmu driver to fill in this field. Fixes

[PATCH AUTOSEL for 4.14 039/135] net: hns3: Fix a misuse to devm_free_irq

2017-12-07 Thread alexander . levin
From: qumingguang [ Upstream commit ae064e6123f89f90af7e4ea190cc0c612643ca93 ] we should use free_irq to free the nic irq during the unloading time. because we use request_irq to apply it when nic up. It will crash if up net device after reset the port. This patch fixes the issue. Signed-off-by

[PATCH AUTOSEL for 4.14 040/135] staging: rtl8188eu: Revert part of "staging: rtl8188eu: fix comments with lines over 80 characters"

2017-12-07 Thread alexander . levin
From: Hans de Goede [ Upstream commit 4004a9870bbefdb6644c3d2033f5315920a3b669 ] Commit 74e1e498e84e ("staging: rtl8188eu: fix comments with lines over 80 characters") not only changed comments but also changed an if check: -if (pmlmepriv->cur_network.join_res != true) { +if (!(pmlmepriv->cur_n

[PATCH AUTOSEL for 4.14 050/135] ASoC: rsnd: rsnd_ssi_run_mods() needs to care ssi_parent_mod

2017-12-07 Thread alexander . levin
From: Kuninori Morimoto [ Upstream commit 21781e87881f9c420871b1d1f3f29d4cd7bffb10 ] SSI parent mod might be NULL. ssi_parent_mod() needs to care about it. Otherwise, it uses negative shift. This patch fixes it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: Sasha L

[PATCH AUTOSEL for 4.14 046/135] blk-mq-sched: dispatch from scheduler IFF progress is made in ->dispatch

2017-12-07 Thread alexander . levin
From: Ming Lei [ Upstream commit 5e3d02bbafad38975099b5848f5ebadedcf7bb7e ] When the hw queue is busy, we shouldn't take requests from the scheduler queue any more, otherwise it is difficult to do IO merge. This patch fixes the awful IO performance on some SCSI devices(lpfc, qla2xxx, ...) when

[PATCH AUTOSEL for 4.14 045/135] clk: hi6220: mark clock cs_atb_syspll as critical

2017-12-07 Thread alexander . levin
From: Leo Yan [ Upstream commit d2a3671ebe6479483a12f94fcca63c058d95ad64 ] Clock cs_atb_syspll is pll used for coresight trace bus; when clock cs_atb_syspll is disabled and operates its child clock node cs_atb results in system hang. So mark clock cs_atb_syspll as critical to keep it enabled. C

[PATCH AUTOSEL for 4.14 047/135] clk: tegra: Use readl_relaxed_poll_timeout_atomic() in tegra210_clock_init()

2017-12-07 Thread alexander . levin
From: Nicolin Chen [ Upstream commit 22ef01a203d27fee8b7694020b7e722db7efd2a7 ] Below is the call trace of tegra210_init_pllu() function: start_kernel() -> time_init() --> of_clk_init() ---> tegra210_clock_init() > tegra210_pll_init() -> tegra210_init_pllu() Because the pree

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