[PATCH v4 14/15] ARM: dts: sun8i: a711: Reinstate the PMIC compatible

2017-12-07 Thread Maxime Ripard
When we added the regulator support in commit 90c5d7cdae64 ("ARM: dts: sun8i: a711: Add regulator support"), we also dropped the PMIC's compatible. Since it's not in the PMIC DTSI, unlike most other PMIC DTSI, it obviously wasn't probing anymore. Re-add it so that everything works again. Fixes:

[PATCH v4 04/15] dt-bindings: display: sun4i-drm: Add A83T pipeline

2017-12-07 Thread Maxime Ripard
The A83T has two video pipelines in parallel that looks quite similar to the other SoCs. The video planes are handled through a controller called the mixer, and the video signal is then passed to the timing controller (TCON). And while there is two instances of the mixers and TCONs, they have a

[PATCH v4 05/15] drm/sun4i: Fix error path handling

2017-12-07 Thread Maxime Ripard
The commit 4c7f16d14a33 ("drm/sun4i: Fix TCON clock and regmap initialization sequence") moved a bunch of logic around, but forgot to update the gotos after the introduction of the err_free_dotclock label. It means that if we fail later that the one introduced in that commit, we'll just to the

[PATCH v4 13/15] ARM: dts: sun8i: a83t: Add the PWM pin group

2017-12-07 Thread Maxime Ripard
The A83T has a PWM that can be output from the SoC. Let's add a pinctrl group for it. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH v4 02/15] drm/panel: lvds: Add support for the power-supply property

2017-12-07 Thread Maxime Ripard
A significant number of panels need to power up a regulator in order to operate properly. Add support for the power-supply property to enable and disable such a regulator whenever needed. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-lvds.c | 23

[PATCH v4 01/15] dt-bindings: panel: lvds: Document power-supply property

2017-12-07 Thread Maxime Ripard
The power-supply property is used by a vast majority of panels, including panel-simple. Let's document it as a common property Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/panel-common.txt | 6 ++

[PATCH v4 15/15] ARM: dts: sun8i: a711: Enable the LCD

2017-12-07 Thread Maxime Ripard
The A711 has 1024x600 LVDS panel, with a PWM-based backlight. Add it to our DT. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 61 - 1 file changed, 61 insertions(+) diff --git

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
> Banks actually comes from the datasheet, Yes. > I don't mind renaming it but I would be making things up. As you wish ? Keep it as is for the moment. > Does the usual pages comes with this weird toggle thing to open the access ? > Would we able to use these generic helpers with our this kind

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-07 Thread Georgi Djakov
On 12/06/2017 11:08 PM, Rob Herring wrote: > On Tue, Dec 05, 2017 at 05:46:55PM +0200, Georgi Djakov wrote: >> This patchset adds support for the A53 CPU clock on MSM8916 platforms >> and allows scaling of the CPU frequency on msm8916 based platforms. >> >> Changes since v10

[PATCH v4 12/15] ARM: dts: sun8i: a83t: Add LVDS pins group

2017-12-07 Thread Maxime Ripard
The A83T has an LVDS bus that can be connected to a panel or a bridge. Add the pinctrl group for it. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH v4 00/15] drm/sun4i: Add A83t LVDS support

2017-12-07 Thread Maxime Ripard
Hi, Here is an attempt at supporting the LVDS output in our DRM driver. This has been tested on the A83T (with DE2), but since everything is basically in the TCON, it should also be usable on the older SoCs with minor modifications. This was the occasion to refactor a bunch of things. The most

Re: [RFC][PATCH] printk: add console_msg_format command line option

2017-12-07 Thread Sergey Senozhatsky
On (12/07/17 16:45), Petr Mladek wrote: [.,] > > hmm... `dmesg -S --raw' doesn't show anything on my system. `dmesg --raw' > > matches the console_msg_format=syslog. > > Huh, I am confused now. I thought that I saw the extended, /dev/kmsg - like, > output with "dmesg --raw" but I do not see it

[PATCH v4 10/15] ARM: dts: sun8i: a83t: Add display pipeline

2017-12-07 Thread Maxime Ripard
The display pipeline on the A83T is mainly composed of the mixers and TCONs, plus various encoders. Let's add the first mixer and TCON to the DTSI since the only board I have can use only the LVDS output on the first TCON. The other parts will be added eventually. Reviewed-by: Chen-Yu Tsai

[PATCH v4 1/2] of: documentation: add bindings documentation for TS-7970

2017-12-07 Thread Sebastien Bourdelin
This adds the documentation for the TS-7970 by Technologic Systems. Signed-off-by: Sebastien Bourdelin --- Changes v3 -> v4: - rebase on master Changes v1 -> v2: - rebase on master --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support

2017-12-07 Thread Jerome Brunet
On Thu, 2017-12-07 at 16:54 +0100, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:14PM +0100, Jerome Brunet wrote: > > Enable interrupt support in meson-gxl PHY driver > > Hi Jerome > > Is it possible to implement did_interrupt()? That allows for shared > interrupts. It does however work

[PATCH v4 2/2] ARM: dts: TS-7970: add basic device tree

2017-12-07 Thread Sebastien Bourdelin
These device trees add support for TS-7970 by Technologic Systems. More details here: https://wiki.embeddedarm.com/wiki/TS-7970 Signed-off-by: Sebastien Bourdelin --- Changes v3 -> v4: - rebase on master - comestic changes (suggested by Shawn Guo) Changes v2 -> v3: - fix typo in

[PATCH AUTOSEL for 4.14 123/135] RDMA/cma: Avoid triggering undefined behavior

2017-12-07 Thread alexander . levin
From: Bart Van Assche [ Upstream commit c0b64f58e8d49570aa9ee55d880f92c20ff0166b ] According to the C standard the behavior of computations with integer operands is as follows: * A computation involving unsigned operands can never overflow, because a result that cannot be represented by the

[PATCH v4 11/15] ARM: dts: sun8i: a83t: Enable the PWM

2017-12-07 Thread Maxime Ripard
The A83T has the same PWM block than the H3. Add it to our DT. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index

[PATCH v4 1/2] of: documentation: add bindings documentation for TS-7970

2017-12-07 Thread Sebastien Bourdelin
This adds the documentation for the TS-7970 by Technologic Systems. Signed-off-by: Sebastien Bourdelin --- Changes v3 -> v4: - rebase on master Changes v1 -> v2: - rebase on master --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [intel-sgx-kernel-dev] [PATCH v7 4/8] intel_sgx: driver for Intel Software Guard Extensions

2017-12-07 Thread Jarkko Sakkinen
On Thu, Dec 07, 2017 at 02:46:39PM +, Christopherson, Sean J wrote: > > + for (i = 0; i < 2; i++) { > > + va_page = list_first_entry(>va_pages, > > + struct sgx_va_page, list); > > + va_offset = sgx_alloc_va_slot(va_page); > > +

[PATCH v4 2/2] ARM: dts: TS-7970: add basic device tree

2017-12-07 Thread Sebastien Bourdelin
These device trees add support for TS-7970 by Technologic Systems. More details here: https://wiki.embeddedarm.com/wiki/TS-7970 Signed-off-by: Sebastien Bourdelin --- Changes v3 -> v4: - rebase on master - comestic changes (suggested by Shawn Guo) Changes v2 -> v3: - fix typo in

[PATCH AUTOSEL for 4.14 124/135] IB/ipoib: Grab rtnl lock on heavy flush when calling ndo_open/stop

2017-12-07 Thread alexander . levin
From: Alex Vesker [ Upstream commit b4b678b06f6eef18bff44a338c01870234db0bc9 ] When ndo_open and ndo_stop are called RTNL lock should be held. In this specific case ipoib_ib_dev_open calls the offloaded ndo_open which re-sets the number of TX queue assuming RTNL lock is held. Since RTNL lock is

Re: [PATCH v4 72/73] xfs: Convert mru cache to XArray

2017-12-07 Thread Theodore Ts'o
On Wed, Dec 06, 2017 at 06:06:48AM -0800, Matthew Wilcox wrote: > > Unfortunately for you, I don't find arguments along the lines of > > "lockdep will save us" at all convincing. lockdep already throws > > too many false positives to be useful as a tool that reliably and > > accurately points out

[PATCH AUTOSEL for 4.14 121/135] macvlan: Only deliver one copy of the frame to the macvlan interface

2017-12-07 Thread alexander . levin
From: Alexander Duyck [ Upstream commit dd6b9c2c332b40f142740d1b11fb77c653ff98ea ] This patch intoduces a slight adjustment for macvlan to address the fact that in source mode I was seeing two copies of any packet addressed to the macvlan interface being delivered where there should have been

Re: [PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support

2017-12-07 Thread Andrew Lunn
> The phy being internal, I think it is unlikely to ever share its interrupt > though. O.K, don't bother. > Thanks for the lightning fast review by the way ! You are welcome. Andrew

[PATCH AUTOSEL for 4.9 003/156] usb: xhci-mtk: check hcc_params after adding primary hcd

2017-12-07 Thread alexander . levin
From: Chunfeng Yun [ Upstream commit 94a631d91ad341b3b4bdac72d1104d9f090e0ca9 ] hcc_params is set in xhci_gen_setup() called from usb_add_hcd(), so checks the Maximum Primary Stream Array Size in the hcc_params register after adding primary hcd. Signed-off-by: Chunfeng Yun Signed-off-by:

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

2017-12-07 Thread Alex Williamson
On Wed, 6 Dec 2017 16:07:36 + Shameer Kolothum wrote: > This patch allows the user-space to retrieve the supported > IOVA range(s), excluding any reserved regions. The implementation > is based on capability chains, added to the VFIO_IOMMU_GET_INFO ioctl. > > This is following the

[PATCH AUTOSEL for 4.14 131/135] lightnvm: pblk: protect line bitmap while submitting meta io

2017-12-07 Thread alexander . levin
From: Rakesh Pandit [ Upstream commit e57903fd972a398b7140d0bc055714e13a0e58c5 ] It seems pblk_dealloc_page would race against pblk_alloc_pages for line bitmap for sector allocation.The chances are very low but might as well protect the bitmap properly. Signed-off-by: Rakesh Pandit

[PATCH AUTOSEL for 4.9 021/156] NFSD: fix nfsd_reset_versions for NFSv4.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 800a938f0bf9130c8256116649c0cc5806bfb2fd ] If you write "-2 -3 -4" to the "versions" file, it will notice that no versions are enabled, and nfsd_reset_versions() is called. This enables all major versions, not no minor versions. So we lose the invariant that

[PATCH AUTOSEL for 4.9 010/156] net: bcmgenet: correct MIB access of UniMAC RUNT counters

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 1ad3d225e5a40ca6c586989b4baaca710544c15a ] The gap between the Tx status counters and the Rx RUNT counters is now being added to allow correct reporting of the registers. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Doug Berger

[PATCH AUTOSEL for 3.18 53/59] raid5: Set R5_Expanded on parity devices as well as data.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 235b6003fb28f0dd8e7ed8fbdb088bb548291766 ] When reshaping a fully degraded raid5/raid6 to a larger nubmer of devices, the new device(s) are not in-sync and so that can make the newly grown stripe appear to be "failed". To avoid this, we set the R5_Expanded flag

Re: [PATCH 1/2] epoll: use the waitqueue lock to protect ep->wq

2017-12-07 Thread Jason Baron
On 12/06/2017 06:52 PM, Christoph Hellwig wrote: > The eoll code currently always uses the unlocked waitqueue helpers for > ep->wq, but instead of holding the lock inside the waitqueue around these > calls, as expected by the epoll code uses its own lock. Given that the > waitqueue is not exposed

[PATCH AUTOSEL for 3.18 44/59] ppp: Destroy the mutex when cleanup

2017-12-07 Thread alexander . levin
From: Gao Feng [ Upstream commit f02b2320b27c16b644691267ee3b5c110846f49e ] The mutex_destroy only makes sense when enable DEBUG_MUTEX. For the good readbility, it's better to invoke it in exit func when the init func invokes mutex_init. Signed-off-by: Gao Feng Acked-by: Guillaume Nault

[PATCH AUTOSEL for 3.18 45/59] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-12-07 Thread alexander . levin
From: Daniel Lezcano [ Upstream commit 07209fcf33542c1ff1e29df2dbdf8f29cdaacb10 ] There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and

[PATCH AUTOSEL for 3.18 49/59] xfs: fix log block underflow during recovery cycle verification

2017-12-07 Thread alexander . levin
From: Brian Foster [ Upstream commit 9f2a4505800607e537e9dd9dea4f55c4b0c30c7a ] It is possible for mkfs to format very small filesystems with too small of an internal log with respect to the various minimum size and block count requirements. If this occurs when the log happens to be smaller

[PATCH AUTOSEL for 3.18 52/59] pinctrl: adi2: Fix Kconfig build problem

2017-12-07 Thread alexander . levin
From: Linus Walleij [ Upstream commit 1c363531dd814dc4fe10865722bf6b0f72ce4673 ] The build robot is complaining on Blackfin: drivers/pinctrl/pinctrl-adi2.c: In function 'port_setup': >> drivers/pinctrl/pinctrl-adi2.c:221:21: error: dereferencing pointer to incomplete type 'struct

Re: [PATCH v2] iio: adc: ina2xx: Make calibration register value fixed

2017-12-07 Thread Brüns , Stefan
On Donnerstag, 7. Dezember 2017 13:02:47 CET Maciej Purski wrote: > Calibration register is used for calculating current register in > hardware according to datasheet: > current = shunt_volt * calib_register / 2048 (ina 226) > current = shunt_volt * calib_register / 4096 (ina 219) > > Fix

[PATCH AUTOSEL for 3.18 47/59] bcache: explicitly destroy mutex while exiting

2017-12-07 Thread alexander . levin
From: Liang Chen [ Upstream commit 330a4db89d39a6b43f36da16824eaa7a7509d34d ] mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. As Coly pointed out in a previous review, bcache_exit() may not be

[PATCH AUTOSEL for 3.18 59/59] ath9k: fix tx99 potential info leak

2017-12-07 Thread alexander . levin
From: Miaoqing Pan [ Upstream commit ee0a47186e2fa9aa1c56cadcea470ca0ba8c8692 ] When the user sets count to zero the string buffer would remain completely uninitialized which causes the kernel to parse its own stack data, potentially leading to an info leak. In addition to that, the string

[PATCH AUTOSEL for 3.18 54/59] scsi: scsi_devinfo: Add REPORTLUN2 to EMC SYMMETRIX blacklist entry

2017-12-07 Thread alexander . levin
From: Kurt Garloff [ Upstream commit 909cf3e16a5274fe2127cf3cea5c8dba77b2c412 ] All EMC SYMMETRIX support REPORT_LUNS, even if configured to report SCSI-2 for whatever reason. Signed-off-by: Kurt Garloff Signed-off-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha

[PATCH AUTOSEL for 3.18 56/59] scsi: bfa: integer overflow in debugfs

2017-12-07 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 3e351275655d3c84dc28abf170def9786db5176d ] We could allocate less memory than intended because we do: bfad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the impact is very small. I

[PATCH AUTOSEL for 3.18 16/59] afs: Populate group ID from vnode status

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit 6186f0788b31f44affceeedc7b48eb10faea120d ] The group was hard coded to GLOBAL_ROOT_GID; use the group ID that was received from the server. Signed-off-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/inode.c | 2 +- 1

Re: [intel-sgx-kernel-dev] [PATCH v7 4/8] intel_sgx: driver for Intel Software Guard Extensions

2017-12-07 Thread Jarkko Sakkinen
On Thu, Dec 07, 2017 at 06:05:48PM +0200, Jarkko Sakkinen wrote: > On Thu, Dec 07, 2017 at 02:46:39PM +, Christopherson, Sean J wrote: > > > + for (i = 0; i < 2; i++) { > > > + va_page = list_first_entry(>va_pages, > > > +struct sgx_va_page, list); >

[PATCH 1/2] tools/lib/lockdep: Add missing declaration of 'pr_cont()'

2017-12-07 Thread alexander . levin
From: Mengting Zhang An annoying compile warning due to missing declaration is shown below: In file included from lockdep.c:27:0: ../../../kernel/locking/lockdep.c: In function 'print_unlock_imbalance_bug' : ../../../kernel/locking/lockdep.c:3544:2: warning: implicit declaration of function

[PATCH AUTOSEL for 4.4 091/101] scsi: scsi_devinfo: Add REPORTLUN2 to EMC SYMMETRIX blacklist entry

2017-12-07 Thread alexander . levin
From: Kurt Garloff [ Upstream commit 909cf3e16a5274fe2127cf3cea5c8dba77b2c412 ] All EMC SYMMETRIX support REPORT_LUNS, even if configured to report SCSI-2 for whatever reason. Signed-off-by: Kurt Garloff Signed-off-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha

Re: [PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Andrew Lunn
> Would it be Ok if send patches 1 to 5 to net ? > and 6 to 8 separately on net-next ? No. The rules for stable is that a patch must really fix something and be minimal. Documentation/process/stable-kernel-rules.rst What might be best is to develop a minimal, but ugly patch for stable. Get it

[PATCH 2/2] tools/lib/lockdep: add empty declaration for early_param

2017-12-07 Thread alexander . levin
Fixes a compilation error: CC lockdep.o In file included from lockdep.c:28:0: ../../../kernel/locking/lockdep.c:89:13: error: expected declaration specifiers or ‘...’ before string constant early_param("crossrelease_fullstack", allow_crossrelease_fullstack);

[PATCH 0/2] tools/lib/lockdep: fixes for v4.15

2017-12-07 Thread alexander . levin
The following changes since commit dabe589657ad0f9a0d6f4101e2171574f74b00bf: Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (2017-12-06 15:20:51 -0800) are available in the git repository at:

[PATCH AUTOSEL for 3.18 30/59] 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

Re: [PATCH v2 net-next] net: stmmac: Add support for DWMAC5 with TSN features

2017-12-07 Thread Jose Abreu
Hi David, Florian, On 01-11-2017 11:48, David Miller wrote: > From: Jose Abreu > Date: Fri, 27 Oct 2017 14:55:44 +0100 > >> This adds support for IP version 5 of DWMAC. The new introduced >> features are the Enhancements to Scheduled Traffic (EST) as >> defined by IEEE802.1Qbv-2015 and Frame

[PATCH AUTOSEL for 3.18 34/59] 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

[PATCH AUTOSEL for 3.18 17/59] afs: Adjust mode bits processing

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit 627f46943ff90bcc32ddeb675d881c043c6fa2ae ] Mode bits for an afs file should not be enforced in the usual way. For files, the absence of user bits can restrict file access with respect to what is granted by the server. These bits apply regardless of the

[PATCH AUTOSEL for 3.18 57/59] udf: Avoid overflow when session starts at large offset

2017-12-07 Thread alexander . levin
From: Jan Kara [ Upstream commit abdc0eb06964fe1d2fea6dd1391b734d0590365d ] When session starts beyond offset 2^31 the arithmetics in udf_check_vsd() would overflow. Make sure the computation is done in large enough type. Reported-by: Cezary Sliwa Signed-off-by: Jan Kara Signed-off-by: Sasha

[PATCH AUTOSEL for 3.18 55/59] ASoC: samsung: i2s: disable secondary DAI until it gets fixed

2017-12-07 Thread alexander . levin
From: Marek Szyprowski [ Upstream commit 064970a0aae978073a859aaf0793bfe14762d4f3 ] Secondary DAI in Exynos I2S driver is not used by any of the currently supported boards and it causes problems due to some limitations in the ASoC code. Disable it until it gets proper support both by

[PATCH AUTOSEL for 3.18 18/59] afs: Flush outstanding writes when an fd is closed

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 58fed94dfb17e89556b5705f20f90e5b2971b6a1 ] Flush outstanding writes in afs when an fd is closed. This is what NFS and CIFS do. Reported-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/file.c | 1 +

Re: [PATCH] sched/isolation: Make NO_HZ_FULL select CPU_ISOLATION

2017-12-07 Thread Frederic Weisbecker
2017-12-04 18:16 UTC+01:00, Paul E. McKenney : > On Mon, Dec 04, 2017 at 04:53:15PM +0100, Frederic Weisbecker wrote: >> 2017-12-02 20:24 UTC+01:00, Paul E. McKenney >> I would prefer to keep it. It's useful for automated boot testing >> based on configs such as 0-day or -tip test machines. But

[PATCH AUTOSEL for 3.18 51/59] tty fix oops when rmmod 8250

2017-12-07 Thread alexander . levin
From: nixiaoming [ Upstream commit c79dde629d2027ca80329c62854a7635e623d527 ] After rmmod 8250.ko tty_kref_put starts kwork (release_one_tty) to release proc interface oops when accessing driver->driver_name in proc_tty_unregister_driver Use jprobe, found driver->driver_name point to 8250.ko

[PATCH AUTOSEL for 3.18 50/59] PCI: Detach driver before procfs & sysfs teardown on device remove

2017-12-07 Thread alexander . levin
From: Alex Williamson [ Upstream commit 16b6c8bb687cc3bec914de09061fcb8411951fda ] When removing a device, for example a VF being removed due to SR-IOV teardown, a "soft" hot-unplug via 'echo 1 > remove' in sysfs, or an actual hot-unplug, we first remove the procfs and sysfs attributes for the

[PATCH AUTOSEL for 3.18 14/59] drm/radeon: reinstate oland workaround for sclk

2017-12-07 Thread alexander . levin
From: Alex Deucher [ Upstream commit 66822d815ae61ecb2d9dba9031517e8a8476969d ] Higher sclks seem to be unstable on some boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=100222 Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 3.18 08/59] net: wimax/i2400m: fix NULL-deref at probe

2017-12-07 Thread alexander . levin
From: Johan Hovold [ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ] Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. The endpoints are specifically

Re: [PATCH v9 1/8] drm/tilcdc: ensure nonatomic iowrite64 is not used

2017-12-07 Thread Jyri Sarha
On 12/06/17 01:30, Logan Gunthorpe wrote: > Add a check to ensure iowrite64 is only used if it is atomic. > > It was decided in [1] that the tilcdc driver should not be using an > atomic operation (so it was left out of this patchset). However, it turns > out that through the drm code, a

[PATCH AUTOSEL for 3.18 13/59] sched/deadline: Use deadline instead of period when calculating overflow

2017-12-07 Thread alexander . levin
From: "Steven Rostedt (VMware)" [ Upstream commit 2317d5f1c34913bac5971d93d69fb6c31bb74670 ] I was testing Daniel's changes with his test case, and tweaked it a little. Instead of having the runtime equal to the deadline, I increased the deadline ten fold. Daniel's test case had:

[PATCH AUTOSEL for 3.18 06/59] NFSD: fix nfsd_reset_versions for NFSv4.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 800a938f0bf9130c8256116649c0cc5806bfb2fd ] If you write "-2 -3 -4" to the "versions" file, it will notice that no versions are enabled, and nfsd_reset_versions() is called. This enables all major versions, not no minor versions. So we lose the invariant that

[PATCH AUTOSEL for 3.18 09/59] dmaengine: Fix array index out of bounds warning in __get_unmap_pool()

2017-12-07 Thread alexander . levin
From: Matthias Kaehlcke [ Upstream commit 23f963e91fd81f44f6b316b1c24db563354c6be8 ] This fixes the following warning when building with clang and CONFIG_DMA_ENGINE_RAID=n : drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the array (which contains 1 element)

[PATCH AUTOSEL for 3.18 12/59] drm/radeon/si: add dpm quirk for Oland

2017-12-07 Thread alexander . levin
From: Alex Deucher [ Upstream commit 0f424de1fd9bc4ab24bd1fe5430ab5618e803e31 ] OLAND 0x1002:0x6604 0x1028:0x066F 0x00 seems to have problems with higher sclks. Acked-by: Christian König Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 3.18 11/59] openrisc: fix issue handling 8 byte get_user calls

2017-12-07 Thread alexander . levin
From: Stafford Horne [ Upstream commit 154e67cd8e8f964809d0e75e44bb121b169c75b3 ] Was getting the following error with allmodconfig: ERROR: "__get_user_bad" [lib/test_user_copy.ko] undefined! This was simply a missing break statement, causing an unwanted fall through. Signed-off-by:

[PATCH AUTOSEL for 3.18 07/59] Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list

2017-12-07 Thread alexander . levin
From: Dmitry Torokhov [ Upstream commit a4c2a13129f7c5bcf81704c06851601593303fd5 ] TUXEDO BU1406 does not implement active multiplexing mode properly, and takes around 550 ms in i8042_set_mux_mode(). Given that the device does not have external AUX port, there is no downside in disabling the

Re: [PATCH] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented

2017-12-07 Thread Jarkko Sakkinen
On Thu, Dec 07, 2017 at 09:58:34AM +0100, Javier Martinez Canillas wrote: > Hello Jarkko, > > On 12/07/2017 02:32 AM, Jarkko Sakkinen wrote: > > On Mon, Nov 27, 2017 at 12:30:12AM +0100, Javier Martinez Canillas wrote: > >> According to the TPM Library Specification, a TPM device must do a

[PATCH AUTOSEL for 3.18 04/59] net: bcmgenet: Power up the internal PHY before probing the MII

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 6be371b053dc86f11465cc1abce2e99bda0a0574 ] When using the internal PHY it must be powered up when the MII is probed or the PHY will not be detected. Since the PHY is powered up at reset this has not been a problem. However, when the kernel is restarted with

[PATCH AUTOSEL for 3.18 25/59] btrfs: add missing memset while reading compressed inline extents

2017-12-07 Thread alexander . levin
From: Zygo Blaxell [ Upstream commit e1699d2d7bf6e6cce3e1baff19f9dd4595a58664 ] This is a story about 4 distinct (and very old) btrfs bugs. Commit c8b978188c ("Btrfs: Add zlib compression support") added three data corruption bugs for inline extents (bugs #1-3). Commit 93c82d5750 ("Btrfs:

[PATCH AUTOSEL for 3.18 42/59] 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

[PATCH AUTOSEL for 3.18 41/59] 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.

[PATCH AUTOSEL for 3.18 40/59] 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

[PATCH AUTOSEL for 3.18 39/59] 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

[PATCH AUTOSEL for 3.18 38/59] 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

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Joe Perches
On Thu, 2017-12-07 at 10:12 -0500, Alan Stern wrote: > The real problem is that the kernel development community doesn't have > a fixed policy on how to handle memory allocation errors. [] > If there was one agreed-upon policy, then we could definitively point > to old code and say "That's wrong,

[PATCH AUTOSEL for 3.18 33/59] 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

[PATCH AUTOSEL for 3.18 36/59] 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

[PATCH AUTOSEL for 3.18 32/59] 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 3.18 35/59] 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 ---

Re: [PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Jerome Brunet
On Thu, 2017-12-07 at 17:12 +0100, Andrew Lunn wrote: > > Would it be Ok if send patches 1 to 5 to net ? > > and 6 to 8 separately on net-next ? > > No. The rules for stable is that a patch must really fix something and > be minimal. > > Documentation/process/stable-kernel-rules.rst > > What

[PATCH AUTOSEL for 3.18 37/59] 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

[PATCH AUTOSEL for 3.18 03/59] net: bcmgenet: correct MIB access of UniMAC RUNT counters

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 1ad3d225e5a40ca6c586989b4baaca710544c15a ] The gap between the Tx status counters and the Rx RUNT counters is now being added to allow correct reporting of the registers. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Doug Berger

[PATCH AUTOSEL for 3.18 28/59] 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

[PATCH AUTOSEL for 3.18 29/59] 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 3.18 31/59] 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:

[PATCH AUTOSEL for 3.18 26/59] target: Use system workqueue for ALUA transitions

2017-12-07 Thread alexander . levin
From: Mike Christie [ Upstream commit 207ee84133c00a8a2a5bdec94df4a5b37d78881c ] If tcmu-runner is processing a STPG and needs to change the kernel's ALUA state then we cannot use the same work queue for task management requests and ALUA transitions, because we could deadlock. The problem

[PATCH AUTOSEL for 3.18 22/59] afs: Fix afs_kill_pages()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 7286a35e893176169b09715096a4aca557e2ccd2 ] Fix afs_kill_pages() in two ways: (1) If a writeback has been partially flushed, then if we try and kill the pages it contains, some of them may no longer be undergoing writeback and

[PATCH AUTOSEL for 3.18 24/59] NFSv4.1 respect server's max size in CREATE_SESSION

2017-12-07 Thread alexander . levin
From: Olga Kornievskaia [ Upstream commit 033853325fe3bdc70819a8b97915bd3bca41d3af ] Currently client doesn't respect max sizes server returns in CREATE_SESSION. nfs4_session_set_rwsize() gets called and server->rsize, server->wsize are 0 so they never get set to the sizes returned by the

[PATCH AUTOSEL for 3.18 27/59] 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

[PATCH AUTOSEL for 3.18 21/59] afs: Fix page leak in afs_write_begin()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 6d06b0d25209c80e99c1e89700f1e09694a3766b ] afs_write_begin() leaks a ref and a lock on a page if afs_fill_page() fails. Fix the leak by unlocking and releasing the page in the error path. Signed-off-by: David Howells Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 3.18 10/59] net: Resend IGMP memberships upon peer notification.

2017-12-07 Thread alexander . levin
From: Vlad Yasevich [ Upstream commit 37c343b4f4e70e9dc328ab04903c0ec8d154c1a4 ] When we notify peers of potential changes, it's also good to update IGMP memberships. For example, during VM migration, updating IGMP memberships will redirect existing multicast streams to the VM at the new

[PATCH AUTOSEL for 3.18 20/59] afs: Populate and use client modification time

2017-12-07 Thread alexander . levin
From: Marc Dionne [ Upstream commit ab94f5d0dd6fd82e7eeca5e7c8096eaea0a0261f ] The inode timestamps should be set from the client time in the status received from the server, rather than the server time which is meant for internal server use. Set AFS_SET_MTIME and populate the mtime for

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

2017-12-07 Thread Michal Hocko
On Thu 07-12-17 07:46:07, Suren Baghdasaryan wrote: > 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

[PATCH AUTOSEL for 3.18 19/59] afs: Fix the maths in afs_fs_store_data()

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 146a1192783697810b63a1e41c4d59fc93387340 ] afs_fs_store_data() works out of the size of the write it's going to make, but it uses 32-bit unsigned subtraction in one place that gets automatically cast to loff_t. However, if to < offset, then the number goes

[PATCH AUTOSEL for 4.4 090/101] raid5: Set R5_Expanded on parity devices as well as data.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 235b6003fb28f0dd8e7ed8fbdb088bb548291766 ] When reshaping a fully degraded raid5/raid6 to a larger nubmer of devices, the new device(s) are not in-sync and so that can make the newly grown stripe appear to be "failed". To avoid this, we set the R5_Expanded flag

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

2017-12-07 Thread Bartosz Golaszewski
2017-12-07 15:36 GMT+01:00 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

[PATCH AUTOSEL for 4.4 098/101] macvlan: Only deliver one copy of the frame to the macvlan interface

2017-12-07 Thread alexander . levin
From: Alexander Duyck [ Upstream commit dd6b9c2c332b40f142740d1b11fb77c653ff98ea ] This patch intoduces a slight adjustment for macvlan to address the fact that in source mode I was seeing two copies of any packet addressed to the macvlan interface being delivered where there should have been

Re: [PATCH] checkpatch: add check for tag Co-Developed-by

2017-12-07 Thread Joe Perches
On Thu, 2017-12-07 at 11:59 +1100, Tobin C. Harding wrote: > Recently signature tag Co-Developed-by was added to the > kernel (Documentation/process/5.Posting.rst). checkpatch.pl doesn't know > about it yet. All prior tags used all lowercase characters except for first > character. Checks for this

[PATCH AUTOSEL for 4.4 095/101] scsi: sd: change allow_restart to bool in sysfs interface

2017-12-07 Thread alexander . levin
From: weiping zhang [ Upstream commit 658e9a6dc1126f21fa417cd213e1cdbff8be0ba2 ] /sys/class/scsi_disk/0:2:0:0/allow_restart can be changed to 0 unexpectedly by writing an invalid string such as the following: echo asdf > /sys/class/scsi_disk/0:2:0:0/allow_restart Signed-off-by: weiping zhang

<    4   5   6   7   8   9   10   11   12   13   >