Re: [PATCH V10 06/12] of: device: Fix overflow of coherent_dma_mask

2017-04-06 Thread Frank Rowand
On 04/04/17 03:18, Sricharan R wrote: > Size of the dma-range is calculated as coherent_dma_mask + 1 > and passed to arch_setup_dma_ops further. It overflows when > the coherent_dma_mask is set for full 64 bits 0x, > resulting in size getting passed as 0 wrongly. Fix this by > passs

tty crash in tty_ldisc_receive_buf()

2017-04-06 Thread Michael Neuling
Hi all, We are seeing the following crash (in linux-next but has been around since at least v4.10). [  417.514499] Unable to handle kernel paging request for data at address 0x2260 [  417.515361] Faulting instruction address: 0xc06fad80 cpu 0x15: Vector: 300 (Data Access) at [c0

Re: [PATCH v6 02/11] powerpc/powernv: Autoload IMC device driver module

2017-04-06 Thread Stewart Smith
Madhavan Srinivasan writes: > From: Hemant Kumar > > This patch does three things : > - Enables "opal.c" to create a platform device for the IMC interface >according to the appropriate compatibility string. > - Find the reserved-memory region details from the system device tree >and get

Re: [PATCH 2/2] dmaengine: Add STM32 MDMA driver

2017-04-06 Thread Vinod Koul
On Mon, Mar 13, 2017 at 04:06:39PM +0100, M'boumba Cedric Madianga wrote: > This patch adds the driver for the STM32 MDMA controller. Again pls do describe the controller > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#inclu

Re: [PATCH] clk: sunxi-ng: Display index when clock registration fails

2017-04-06 Thread Maxime Ripard
On Wed, Apr 05, 2017 at 07:52:27PM +0300, Priit Laes wrote: > Add clock index to clock registration failure message. Clock name > is sometimes not available, when things go really wrong. > > Signed-off-by: Priit Laes Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and K

Re: [PATCH v3 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-06 Thread Andrzej Hajda
On 05.04.2017 10:29, Jeffy Chen wrote: > The dp aux is registered when binding analogix dp. > > Signed-off-by: Jeffy Chen Reviewed-by: Andrzej Hajda Btw, if you are working already in this area you can check also to analogix_dp bind and unbind routines they looks suspiciously asymmetric. I guess

Re: [PATCH 2/2] arm64: allwinner: a64: add pmu0 regs for USB PHY

2017-04-06 Thread Maxime Ripard
On Wed, Apr 05, 2017 at 10:30:34PM +0800, Icenowy Zheng wrote: > The USB PHY in A64 has a "pmu0" region, which controls the EHCI/OHCI > controller pair that can be connected to the PHY0. > > Add the MMIO region for PHY node. > > Signed-off-by: Icenowy Zheng Applied, thanks Maxime -- Maxime Ri

Re: tty crash in tty_ldisc_receive_buf()

2017-04-06 Thread Benjamin Herrenschmidt
On Thu, 2017-04-06 at 17:04 +1000, Michael Neuling wrote: > We see this usually on boot but can also see it if we kill a getty attached to > tty (which is then respawned by systemd).  It seems like we are flushing data > to > a tty at the same time as it's being torn down and restarted. > > I did

Re: [PATCH v3 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-06 Thread Andrzej Hajda
On 05.04.2017 10:29, Jeffy Chen wrote: > Normally we do this in drm_mode_config_cleanup. But analogix dp's > connector is allocated in bind, and freed after unbind. So we need > to destroy it in unbind to avoid further access. > > Signed-off-by: Jeffy Chen Reviewed-by: Andrzej Hajda One comment

Re: [PATCH] sched: Fix numabalancing to work with isolated cpus

2017-04-06 Thread Srikar Dronamraju
> > > > The isolated cpus are part of the cpus allowed list. In the above case, > > > > numabalancing ends up scheduling some of these tasks on isolated cpus. > > > > > > Why is this bad? If the task is allowed to run on isolated CPUs then why > > > > 1. kernel-parameters.txt states: isolcpus as

Re: [RFC PATCH v1 00/30] fs: inode->i_version rework and optimization

2017-04-06 Thread Jan Kara
On Thu 06-04-17 11:12:02, NeilBrown wrote: > On Wed, Apr 05 2017, Jan Kara wrote: > >> If you want to ensure read-only files can remain cached over a crash, > >> then you would have to mark a file in some way on stable storage > >> *before* allowing any change. > >> e.g. you could use the lsb. Odd

Re: [PATCH] Revert "arm64: Increase the max granular size"

2017-04-06 Thread Imran Khan
On 4/5/2017 10:13 AM, Imran Khan wrote: Hi Catalin, > Hi Catalin, > >> From: Catalin Marinas >> Date: Mon, Mar 21, 2016 at 10:44 PM >> Subject: Re: [PATCH] Revert "arm64: Increase the max granular size" >> To: "Chalamarla, Tirumalesh" >> Cc: Ganesh Mahendran , "will.dea...@arm.com" < >> will.de

Re: [PATCH v6 1/5] firmware: add extensible driver data params

2017-04-06 Thread Luca Coelho
On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > As the firmware API evolves we keep extending functions with more arguments. > Stop this nonsense by proving an extensible data structure which can be used > to represent both user parameters and private internal parameters. > > We intr

Re: [PATCH 4/4] mtd: nand: nandsim: convert to memalloc_noreclaim_*()

2017-04-06 Thread Michal Hocko
On Thu 06-04-17 09:33:44, Adrian Hunter wrote: > On 05/04/17 14:39, Vlastimil Babka wrote: > > On 04/05/2017 01:36 PM, Richard Weinberger wrote: > >> Michal, > >> > >> Am 05.04.2017 um 13:31 schrieb Michal Hocko: > >>> On Wed 05-04-17 09:47:00, Vlastimil Babka wrote: > Nandsim has own function

[PATCH v1 1/3] nvmem: add snvs_lpgpr driver

2017-04-06 Thread Oleksij Rempel
This is a driver for Low Power General Purpose Registe (LPGPR) available on i.MX6 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. It is a 32-bit read/write register located in the low power domain. Since LPGPR is located in the battery-backed power domain, LPGPR can be used by any applica

[PATCH v1 3/3] nvmem: dt: document SNVS LPGPR binding

2017-04-06 Thread Oleksij Rempel
Documenation bindings for the Low Power General Purpose Registe available on i.MX6 SoCs in the Secure Non-Volatile Storage. Signed-off-by: Oleksij Rempel Cc: Srinivas Kandagatla Cc: Maxime Ripard Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[PATCH v1 2/3] ARM: dts: imx6qdl.dtsi: add "fsl,imx6q-snvs-lpgpr" node

2017-04-06 Thread Oleksij Rempel
This node is for Low Power General Purpose Registe wich can be used as Non-Volatile Storage. Signed-off-by: Oleksij Rempel Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: Rob Herring Cc: Shawn Guo --- arch/arm/boot/dts/imx6qdl.dtsi |

Re: [PATCH] sched: Fix numabalancing to work with isolated cpus

2017-04-06 Thread Michal Hocko
On Thu 06-04-17 12:49:50, Srikar Dronamraju wrote: > > > > > The isolated cpus are part of the cpus allowed list. In the above > > > > > case, > > > > > numabalancing ends up scheduling some of these tasks on isolated cpus. > > > > > > > > Why is this bad? If the task is allowed to run on isolate

Re: [PATCH] sched: Fix numabalancing to work with isolated cpus

2017-04-06 Thread Peter Zijlstra
On Tue, Apr 04, 2017 at 10:57:28PM +0530, Srikar Dronamraju wrote: > When performing load balancing, numabalancing only looks at > task->cpus_allowed to see if the task can run on the target cpu. If > isolcpus kernel parameter is set, then isolated cpus will not be part of > mask task->cpus_allowed

Re: [PATCH] sched: Fix numabalancing to work with isolated cpus

2017-04-06 Thread Mike Galbraith
On Tue, 2017-04-04 at 22:57 +0530, Srikar Dronamraju wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index f045a35..f853dc0 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -1666,6 +1666,10 @@ static void task_numa_find_cpu(struct task_numa_env > *env, > >

Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask

2017-04-06 Thread Sebastian Andrzej Siewior
On 2017-04-06 08:16:22 [+0200], Ingo Molnar wrote: > > * Sebastian Andrzej Siewior wrote: > > > On 2017-04-05 09:39:43 [+0200], Ingo Molnar wrote: > > > > > > So maybe we could add the following facility: > > > > > > ptr = sched_migrate_to_cpu_save(cpu); > > > > > > ... > > > > > > sch

[PATCH 0/5] dt-bindings: media: Add document file and driver

2017-04-06 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Hi, This is the patch series of Sony CXD2880 DVB-T2/T tuner + demodulator driver. The driver supports DVB-API and interfaces through SPI. We have tested the driver on Raspberry Pi 3 and got picture and sound from a media player. Thanks, Takiguchi --- Documentation//d

Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors?

2017-04-06 Thread Minas Harutyunyan
On 4/6/2017 1:03 AM, John Stultz wrote: > > > On Wed, Apr 5, 2017 at 5:58 AM, Minas Harutyunyan > mailto:minas.harutyun...@synopsys.com>> > wrote: >> On 4/4/2017 11:03 PM, John Stultz wrote: >>> >>> I did notice when cating the regdump file, I saw: >>> dwc2 f72c.usb: Mode Mismatch Interrupt: cu

[PATCH 0/2] perf/s390: fix (and enhance) perf annotate

2017-04-06 Thread Christian Borntraeger
Arnaldo, since 4.10 perf annotate fails with error -95 on s390. This contains a fix for 4.11 (maybe CC stable for 4.10?) and an extension to implement jump detection. Christian Borntraeger (2): s390/perf: fix perf annotate error -95 (4.10 regression) perf/s390: implement jump types for perf a

[PATCH 1/2] s390/perf: fix perf annotate error -95 (4.10 regression)

2017-04-06 Thread Christian Borntraeger
since 4.10 perf annotate exits on s390 with an "unknown error -95". Turns out that commit 786c1b51844d ("perf annotate: Start supporting cross arch annotation") added a hard requirement for architecture support when objdump is used but only provided x86 and arm support. Meanwhile power was added so

[PATCH 2/2] perf/s390: implement jump types for perf annotate

2017-04-06 Thread Christian Borntraeger
Implement simple detection for all kind of jumps and branches. Signed-off-by: Christian Borntraeger --- tools/perf/arch/s390/annotate/instructions.c | 30 tools/perf/util/annotate.c | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 tool

[PATCH 1/5] dt-bindings: media: Add document file for CXD2880 SPI I/F

2017-04-06 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. It contains the description of the SPI adapter binding. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by

[PATCH 2/5] media: Add support for CXD2880 SPI I/F

2017-04-06 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator. It contains the SPI adapter part of the driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Mat

Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask

2017-04-06 Thread Ingo Molnar
* Sebastian Andrzej Siewior wrote: > On 2017-04-06 08:16:22 [+0200], Ingo Molnar wrote: > > > > * Sebastian Andrzej Siewior wrote: > > > > > On 2017-04-05 09:39:43 [+0200], Ingo Molnar wrote: > > > > > > > > So maybe we could add the following facility: > > > > > > > > ptr = sched_m

[PATCH 5/5] media: Update MAINTAINERS file for CXD2880

2017-04-06 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is MAINTAINERS file update about the driver for Sony CXD2880 DVB-T2/T tuner + demodulator. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Matsumoto Signed-off

Re: [PATCH v6 06/11] powerpc/perf: IMC pmu cpumask and cpu hotplug support

2017-04-06 Thread Madhavan Srinivasan
On Tuesday 04 April 2017 10:03 AM, Daniel Axtens wrote: Madhavan Srinivasan writes: From: Hemant Kumar Adds cpumask attribute to be used by each IMC pmu. Only one cpu (any online CPU) from each chip for nest PMUs is designated to read counters. On CPU hotplug, dying CPU is checked to see

Re: [PATCH v6 01/11] powerpc/powernv: Data structure and macros definitions

2017-04-06 Thread Stewart Smith
Madhavan Srinivasan writes: > From: Hemant Kumar > > Create new header file "imc-pmu.h" to add the data structures > and macros needed for IMC pmu support. > > Signed-off-by: Anju T Sudhakar > Signed-off-by: Hemant Kumar > Signed-off-by: Madhavan Srinivasan > --- > arch/powerpc/include/asm/i

Re: [PATCH 5/6] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-04-06 Thread Michal Hocko
On Thu 30-03-17 13:54:53, Michal Hocko wrote: [...] > -static int __meminit __add_section(int nid, struct zone *zone, > - unsigned long phys_start_pfn) > +static int __meminit __add_section(int nid, unsigned long phys_start_pfn) > { > int ret; > + int

[PATCH] irqchip/gic: Don't write to GICD_ICFGR0

2017-04-06 Thread Mikko Perttunen
From: Matt Craighead According to the GICv2 specification, the GICD_ICFGR0, or GIC_DIST_CONFIG[0] register is read-only. Therefore avoid writing to it. Signed-off-by: Matt Craighead [mperttu...@nvidia.com: commit message rewritten] Signed-off-by: Mikko Perttunen --- drivers/irqchip/irq-gic.c

Re: linux-next: build warning after merge of the scsi tree

2017-04-06 Thread Fam Zheng
On Thu, 04/06 14:04, Stephen Rothwell wrote: > Hi James, > > After merging the scsi tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > In file included from include/linux/list.h:8:0, > from include/linux/module.h:9, > from driver

[PATCH] sd: Explicit type cast to fix calculating rw_max

2017-04-06 Thread Fam Zheng
Some compilers don't like BLK_DEF_MAX_SECTORS being an enum (int) when expanding min_not_zero. Cast it to sector_t so it matches the type of the other operand, logical_to_sectors(). Signed-off-by: Fam Zheng --- drivers/scsi/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v1 1/5] perf/core: Define the common branch type classification

2017-04-06 Thread Jin, Yao
On 4/6/2017 2:58 PM, Peter Zijlstra wrote: On Tue, Apr 04, 2017 at 11:18:05AM -0300, Arnaldo Carvalho de Melo wrote: Adding the perf kernel maintainers to the CC list. Thanks. Em Fri, Mar 31, 2017 at 11:18:38PM +0800, Jin Yao escreveu: It is often useful to know the branch types while anal

Re: [PATCH] vfio/type1: Remove locked page accounting workqueue

2017-04-06 Thread Auger Eric
Hi Alex, On 03/04/2017 22:02, Alex Williamson wrote: > If the mmap_sem is contented then the vfio type1 IOMMU backend will > defer locked page accounting updates to a workqueue task. This has > a few problems and depending on which side the user tries to play, > they might be over-penalized for u

Re: [PATCH 00/24] Kernel lockdown

2017-04-06 Thread James Morris
On Wed, 5 Apr 2017, David Howells wrote: > The patches can be found here also: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=efi-lockdown > Do you mean the branch 'efi-lock-down' ? -- James Morris

Re: [PATCH v3 8/9] drm/rockchip: gem: Don't alloc/free gem buf when dev_private is invalid

2017-04-06 Thread Daniel Vetter
On Wed, Apr 05, 2017 at 12:28:40PM -0400, Sean Paul wrote: > On Wed, Apr 05, 2017 at 04:29:26PM +0800, Jeffy Chen wrote: > > After unbinding drm, the userspace may still has a chance to access > > gem buf. > > > > Add a sanity check for a NULL dev_private to prevent that from > > happening. > > I

Re: [PATCH 01/24] efi: Add EFI_SECURE_BOOT bit

2017-04-06 Thread Ard Biesheuvel
On 5 April 2017 at 21:14, David Howells wrote: > From: Josh Boyer > > UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit > that can be passed to efi_enabled() to find out whether secure boot is > enabled. > > This will be used by the SysRq+x handler, registered by the x86

Re: [PATCH 1/3] ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM

2017-04-06 Thread Heiko Stuebner
Am Montag, 3. April 2017, 12:23:03 CEST schrieb Wadim Egorov: > The phyCORE-RK3288 is a SoM (System on Module) containing a RK3288 SoC. > The module can be connected to different carrier boards. > It can be also equipped with different RAM, SPI flash and eMMC variants. > The Rapid Development Kit o

Re: [PATCH 1/4] mm: memcontrol: clean up memory.events counting function

2017-04-06 Thread Vladimir Davydov
On Tue, Apr 04, 2017 at 06:01:45PM -0400, Johannes Weiner wrote: > We only ever count single events, drop the @nr parameter. Rename the > function accordingly. Remove low-information kerneldoc. > > Signed-off-by: Johannes Weiner Acked-by: Vladimir Davydov

Re: [PATCH] arm64: xen: Implement EFI reset_system callback

2017-04-06 Thread Julien Grall
Hi Juergen, On 06/04/17 07:23, Juergen Gross wrote: On 05/04/17 21:49, Boris Ostrovsky wrote: On 04/05/2017 02:14 PM, Julien Grall wrote: The x86 code has theoritically a similar issue, altought EFI does not seem to be the preferred method. I have left it unimplemented on x86 and CCed Linux Xe

[RESEND PATCH V7 1/5] Documentation: devicetree: watchdog: da9062/61 watchdog timer binding

2017-04-06 Thread Steve Twiss
From: Steve Twiss Add binding information for DA9062 and DA9061 watchdog. Example bindings for both DA9062 and DA9061 devices are added. For the DA9061 device, a fallback compatible line is added as a valid combination of compatible strings. The original binding for DA9062 (only) used to reside

Re: [PATCH] arm64: xen: Implement EFI reset_system callback

2017-04-06 Thread Juergen Gross
On 06/04/17 10:32, Julien Grall wrote: > Hi Juergen, > > On 06/04/17 07:23, Juergen Gross wrote: >> On 05/04/17 21:49, Boris Ostrovsky wrote: >>> On 04/05/2017 02:14 PM, Julien Grall wrote: The x86 code has theoritically a similar issue, altought EFI does not seem to be the preferred met

Re: [PATCH 00/24] Kernel lockdown

2017-04-06 Thread David Howells
James Morris wrote: > > The patches can be found here also: > > > > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=efi-lockdown > > > > Do you mean the branch 'efi-lock-down' ? Sorry, yes. David

Re: [PATCH v6 03/11] powerpc/powernv: Detect supported IMC units and its events

2017-04-06 Thread Stewart Smith
Madhavan Srinivasan writes: > --- a/arch/powerpc/platforms/powernv/opal-imc.c > +++ b/arch/powerpc/platforms/powernv/opal-imc.c > @@ -33,6 +33,388 @@ > +static void imc_pmu_setup(struct device_node *parent) > +{ > + struct device_node *child; > + int pmu_count = 0, rc = 0; > + const s

[PATCH 4.4 01/26] libceph: force GFP_NOIO for socket allocations

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 633ee407b9d15a75ac9740ba9d3338815e1fcb95 upstream. sock_alloc_inode() allocates socket+inode and socket_wq with GFP_KERNEL, which is not allowed on the writeback path:

[PATCH 4.4 11/26] tty/serial: atmel: fix race condition (TX+DMA)

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Richard Genoud commit 31ca2c63fdc0aee725cbd4f207c1256f5deaabde upstream. If uart_flush_buffer() is called between atmel_tx_dma() and atmel_complete_tx_dma(), the circular buffer has been cleare

[PATCH 4.4 12/26] tty/serial: atmel: fix TX path in atmel_console_write()

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Ferre commit 497e1e16f45c70574dc9922c7f75c642c2162119 upstream. A side effect of 89d8232411a8 ("tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx") is that the consol

[PATCH 4.4 16/26] mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd()

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Naoya Horiguchi commit c9d398fa237882ea07167e23bcfc5e6847066518 upstream. I found the race condition which triggers the following bug when move_pages() and soft offline are called on a single h

Re: [PATCH v6 01/11] powerpc/powernv: Data structure and macros definitions

2017-04-06 Thread Stewart Smith
Madhavan Srinivasan writes: > +#define IMC_MAX_CHIPS32 > +#define IMC_MAX_PMUS 32 The max chips and PMUs we'd be able to work out from the device tre though, right? We could just allocate the correct amount of memory on boot. We may hot plug/unplug CPUs, b

[PATCH 4.4 03/26] scsi: mpt3sas: fix hang on ata passthrough commands

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Bottomley commit ffb58456589443ca572221fabbdef3db8483a779 upstream. mpt3sas has a firmware failure where it can only handle one pass through ATA command at a time. If another comes in, c

[PATCH 4.4 17/26] MIPS: Lantiq: Fix cascaded IRQ setup

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. With the IRQ stack changes integrated, the XRX200 devices started emitting a constant stream of kernel messages like this

[PATCH 4.9 27/72] xfs: Use xfs_icluster_size_fsb() to calculate inode alignment mask

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chandan Rajendra commit d5825712ee98d68a2c17bc89dad2c30276894cba upstream. When block size is larger than inode cluster size, the call to XFS_B_TO_FSBT(mp, mp->m_inode_cluster_size) returns 0.

[PATCH 4.9 03/72] xfs: only update mount/resv fields on success in __xfs_ag_resv_init

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 4dfa2b84118fd6c95202ae87e62adf5000ccd4d0 upstream. Try to reserve the blocks first and only then update the fields in or hanging off the mount structure. This way we c

[PATCH 4.4 05/26] scsi: libsas: fix ata xfer length

2017-04-06 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John Garry commit 9702c67c6066f583b629cf037d2056245bb7a8e6 upstream. The total ata xfer length may not be calculated properly, in that we do not use the proper method to get an sg element dma l

[PATCH 4.9 04/72] xfs: use per-AG reservations for the finobt

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 76d771b4cbe33c581bd6ca2710c120be51172440 upstream. Currently we try to rely on the global reserved block pool for block allocations for the free inode btree, but I have

[PATCH 4.9 29/72] xfs: try any AG when allocating the first btree block when reflinking

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 2fcc319d2467a5f5b78f35f79fd6e22741a31b1e upstream. When a reflink operation causes the bmap code to allocate a btree block we're currently doing single-AG allocations d

[PATCH 4.9 36/72] ALSA: hda - fix a problem for lineout on a Dell AIO machine

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hui Wang commit 2f726aec19a9d2c63bec9a8a53a3910ffdcd09f8 upstream. On this Dell AIO machine, the lineout jack does not work. We found the pin 0x1a is assigned to lineout on this machine, and i

[PATCH 4.9 37/72] ASoC: atmel-classd: fix audio clock rate

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Songjun Wu commit cd3ac9affc43b44f49d7af70d275f0bd426ba643 upstream. Fix the audio clock rate according to the datasheet. Reported-by: Dushara Jayasinghe Signed-off-by: Songjun Wu Acked-by:

[PATCH 4.9 35/72] ALSA: seq: Fix race during FIFO resize

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 2d7d54002e396c180db0c800c1046f0a3c471597 upstream. When a new event is queued while processing to resize the FIFO in snd_seq_fifo_clear(), it may lead to a use-after-free, a

[PATCH 4.9 16/72] xfs: update ctime and mtime on clone destinatation inodes

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit c5ecb42342852892f978572ddc6dca703460f25a upstream. We're changing both metadata and data, so we need to update the timestamps for clone operations. Dedupe on the other

[PATCH 4.9 43/72] nfsd: map the ENOKEY to nfserr_perm for avoiding warning

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kinglong Mee commit c952cd4e949ab3d07287efc2e80246e03727d15d upstream. Now that Ext4 and f2fs filesystems support encrypted directories and files, attempts to access those files may return ENOK

[PATCH 4.9 18/72] xfs: dont fail xfs_extent_busy allocation

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 5e30c23d13919a718b22d4921dc5c0accc59da27 upstream. We don't just need the structure to track busy extents which can be avoided with a synchronous transaction, but also

[PATCH 4.9 49/72] tty/serial: atmel: fix race condition (TX+DMA)

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Richard Genoud commit 31ca2c63fdc0aee725cbd4f207c1256f5deaabde upstream. If uart_flush_buffer() is called between atmel_tx_dma() and atmel_complete_tx_dma(), the circular buffer has been cleare

[PATCH 4.9 66/72] MIPS: Lantiq: Fix cascaded IRQ setup

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. With the IRQ stack changes integrated, the XRX200 devices started emitting a constant stream of kernel messages like this

[PATCH 4.9 12/72] xfs: verify free block header fields

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit de14c5f541e78c59006bee56f6c5c2ef1ca07272 upstream. Perform basic sanity checking of the directory free block header fields so that we avoid hanging the system on invalid

[PATCH 4.9 64/72] qla2xxx: Allow vref count to timeout on vport delete.

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Joe Carnuccio commit c4a9b538ab2a109c5f9798bea1f8f4bf93aadfb9 upstream. Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani Signed-off-by: Nicholas Bellinger Signed-off-by: Greg Kro

[PATCH 4.9 20/72] xfs: split indlen reservations fairly when under reserved

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 75d65361cf3c0dae2af970c305e19c727b28a510 upstream. Certain workoads that punch holes into speculative preallocation can cause delalloc indirect reservation splits when the d

[PATCH 4.9 57/72] drm/etnaviv: (re-)protect fence allocation with GPU mutex

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lucas Stach commit f3cd1b064f1179d9e6188c6d67297a2360880e10 upstream. The fence allocation needs to be protected by the GPU mutex, otherwise the fence seqnos of concurrent submits might not mat

[PATCH 4.10 14/81] xfs: reject all unaligned direct writes to reflinked files

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 54a4ef8af4e0dc5c983d17fcb9cf5fd25666d94e upstream. We currently fall back from direct to buffered writes if we detect a remaining shared extent in the iomap_begin call

[PATCH 4.10 19/81] xfs: split indlen reservations fairly when under reserved

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 75d65361cf3c0dae2af970c305e19c727b28a510 upstream. Certain workoads that punch holes into speculative preallocation can cause delalloc indirect reservation splits when the

[PATCH 4.10 17/81] xfs: dont fail xfs_extent_busy allocation

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 5e30c23d13919a718b22d4921dc5c0accc59da27 upstream. We don't just need the structure to track busy extents which can be avoided with a synchronous transaction, but also

[PATCH 4.9 54/72] KVM: kvm_io_bus_unregister_dev() should never fail

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Hildenbrand commit 90db10434b163e46da413d34db8d0e77404cc645 upstream. No caller currently checks the return value of kvm_io_bus_unregister_dev(). This is evil, as all callers silently go

[PATCH 4.10 01/81] libceph: force GFP_NOIO for socket allocations

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 633ee407b9d15a75ac9740ba9d3338815e1fcb95 upstream. sock_alloc_inode() allocates socket+inode and socket_wq with GFP_KERNEL, which is not allowed on the writeback path:

[PATCH 4.10 12/81] xfs: mark speculative prealloc CoW fork extents unwritten

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 5eda4364a69a39fb7869cc63c9571535ad29 upstream. Christoph Hellwig pointed out that there's a potentially nasty race when performing simultaneous nearby directio cow w

[PATCH 4.10 20/81] xfs: fix uninitialized variable in _reflink_convert_cow

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 93aaead52a9eebdc20dc8fa673c350e592a06949 upstream. Fix an uninitialize variable. Reported-by: Dan Carpenter Reviewed-by: Brian Foster Signed-off-by: Darrick J. Wong

[PATCH 4.10 23/81] xfs: tune down agno asserts in the bmap code

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 410d17f67e583559be3a922f8b6cc336331893f3 upstream. In various places we currently assert that xfs_bmap_btalloc allocates from the same as the firstblock value passed i

[PATCH 4.10 09/81] xfs: check for obviously bad level values in the bmbt root

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit b3bf607d58520ea8c0666aeb4be60dbb724cd3a2 upstream. We can't handle a bmbt that's taller than BTREE_MAXLEVELS, and there's no such thing as a zero-level bmbt (for that we

[PATCH 4.10 08/81] xfs: filter out obviously bad btree pointers

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit d5a91baeb6033c3392121e4d5c011cdc08dfa9f7 upstream. Don't let anybody load an obviously bad btree pointer. Since the values come from disk, we must return an error, not

[PATCH 4.10 07/81] xfs: fail _dir_open when readahead fails

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 7a652bbe366464267190c2792a32ce4fff5595ef upstream. When we open a directory, we try to readahead block 0 of the directory on the assumption that we're going to need it s

[PATCH 4.10 39/81] ASoC: rt5665: fix getting wrong work handler container

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Bard Liao commit f1994a9c0930de4b2244816e62120cad08283cdc upstream. We got rt5665 private data from wrong work. It will result in kernel panic. Signed-off-by: Bard Liao Signed-off-by: Mark B

[PATCH 4.10 38/81] ASoC: Intel: Skylake: fix invalid memory access due to wrong reference of pointer

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Sakamoto commit d1a6fe41d3c4ff0d26f0b186d774493555ca5282 upstream. In 'skl_tplg_set_module_init_data()', a pointer to 'params' member of 'struct skl_algo_data' is calculated, then cast

[PATCH 4.10 40/81] HID: wacom: Dont add ghost interface as shared data

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Armstrong Skomra commit 8b4073596997f2ccbf68d8e72e07b827388a4536 upstream. A previous commit (below) adds a check for already probed interfaces to Wacom's matching heuristic. Unfortunate

[PATCH 4.10 48/81] dt-bindings: rng: clocks property on omap_rng not always mandatory

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Petazzoni commit 74d1cf4897f919837efc4e34d800b996936eb38e upstream. Commit 52060836f79 ("dt-bindings: omap-rng: Document SafeXcel IP-76 device variant") update the omap_rng Device Tree

[PATCH 4.10 53/81] ACPI: Do not create a platform_device for IOAPIC/IOxAPIC

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit 08f63d97749185fab942a3a47ed80f5bd89b8b7d upstream. No platform-device is required for IO(x)APICs, so don't even create them. [ rjw: This fixes a problem with leaking platf

[PATCH 4.10 57/81] USB: fix linked-list corruption in rh_call_control()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 1633682053a7ee8058e10c76722b9b28e97fb73f upstream. Using KASAN, Dmitry found a bug in the rh_call_control() routine: If buffer allocation fails, the routine returns immediate

[PATCH 4.10 62/81] drm/vc4: Allocate the right amount of space for boot-time CRTC state.

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Eric Anholt commit 6d6e500391875cc372336c88e9a8af377be19c36 upstream. Without this, the first modeset would dereference past the allocation when trying to free the mm node. Signed-off-by: Eri

[PATCH 4.10 63/81] drm/etnaviv: (re-)protect fence allocation with GPU mutex

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Lucas Stach commit f3cd1b064f1179d9e6188c6d67297a2360880e10 upstream. The fence allocation needs to be protected by the GPU mutex, otherwise the fence seqnos of concurrent submits might not ma

[PATCH 4.10 31/81] scsi: scsi_dh_alua: Check scsi_device_get() return value

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 625fe857e4fac6518716f3c0ff5e5deb8ec6d238 upstream. Do not queue ALUA work nor call scsi_device_put() if the scsi_device_get() call fails. This patch fixes the following

[PATCH 4.10 69/81] mm: workingset: fix premature shadow node shrinking with cgroups

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Weiner commit 0cefabdaf757a6455d75f00cb76874e62703ed18 upstream. Commit 0a6b76dd23fa ("mm: workingset: make shadow node shrinker memcg aware") enabled cgroup-awareness in the shadow n

[PATCH 4.10 66/81] x86/mce: Fix copy/paste error in exception table entries

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Tony Luck commit 26a37ab319a26d330bab298770d692bb9c852aff upstream. Back in commit: 92b0729c34cab ("x86/mm, x86/mce: Add memcpy_mcsafe()") ... I made a copy/paste error setting up the exce

[PATCH 4.10 73/81] MIPS: Lantiq: Fix cascaded IRQ setup

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. With the IRQ stack changes integrated, the XRX200 devices started emitting a constant stream of kernel messages like thi

[PATCH 5/6] locking/locktorture: Support range rwlocks

2017-04-06 Thread Davidlohr Bueso
Torture the reader/writer range locks. Each thread will attempt to lock+unlock a range of up to [0, 4096]. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 221 +-- 1 file changed, 172 insertions(+), 49 deletions(-) diff --git a/kernel/lo

[PATCH 4.10 74/81] blk: improve order of bio handling in generic_make_request()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 79bd99596b7305ab08109a8bf44a6a4511dbf1cd upstream. To avoid recursion on the kernel stack when stacked block devices are in use, generic_make_request() will, when called recur

Re: [PATCH 1/3] ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM

2017-04-06 Thread Heiko Stübner
Am Donnerstag, 6. April 2017, 10:30:46 CEST schrieb Heiko Stuebner: > Am Montag, 3. April 2017, 12:23:03 CEST schrieb Wadim Egorov: > > The phyCORE-RK3288 is a SoM (System on Module) containing a RK3288 SoC. > > The module can be connected to different carrier boards. > > It can be also equipped wi

[PATCH 4.10 80/81] drm/i915: Let execlist_update_context() cover !FULL_PPGTT mode.

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Zhi Wang commit 26d12c619476ccbc6725aa4a17dcb1d41d5774e7 upstream. execlist_update_context() will try to update PDPs in a context before a ELSP submission only for full PPGTT mode, while PDPs

Re: [PATCH 01/24] efi: Add EFI_SECURE_BOOT bit

2017-04-06 Thread David Howells
Ard Biesheuvel wrote: > > @@ -1184,6 +1184,7 @@ void __init setup_arch(char **cmdline_p) > > pr_info("Secure boot disabled\n"); > > break; > > case efi_secureboot_mode_enabled: > > + set_bit(EFI_SECURE_BOOT, &ef

  1   2   3   4   5   6   7   8   9   10   >