Re: [PATCH V2 1/2] scsi: ufs: Tidy clocks list head usage

2017-06-05 Thread Adrian Hunter
Oops, sorry, didn't mean to send this one again, since it has been applied.

[PATCH V2 1/2] scsi: ufs: Tidy clocks list head usage

2017-06-05 Thread Adrian Hunter
From: Szymon Mielczarek Move the initialization of clocks list head to ufshcd_alloc_host so that every driver doesn't have to do it. Remove checks for the list head being NULL because that is not possible. Signed-off-by: Szymon Mielczarek Signed-off-by: Adrian Hunter --- drivers/scsi/ufs/tc-d

[PATCH V2 2/2] scsi: ufshcd-intel-pci: Add PCI driver for Intel Host controllers

2017-06-05 Thread Adrian Hunter
From: Szymon Mielczarek This patch adds a glue pci driver for Intel UFS Host controllers. Signed-off-by: Szymon Mielczarek Signed-off-by: Adrian Hunter --- Changes in V2: Change variant name from intel to intel-pci drivers/scsi/ufs/Kconfig| 11 +++ drivers/scsi/ufs/M

Re: [RFC PATCH v3 00/12] Unify interrupt mode and setup it as soon as possible

2017-06-05 Thread Dou Liyang
Hi Thomas, At 05/23/2017 09:29 AM, Dou Liyang wrote: Dear Thomas, At 05/23/2017 04:23 AM, Thomas Gleixner wrote: Dou, On Wed, 10 May 2017, Dou Liyang wrote: According to Ingo's and Eric's advice[1,2], Try my best to optimize the init of interrupt delivery mode for x86. sorry for replying

Re: [PATCHv3 1/4] ARM: dts: socfpga: Add Altera I2C Controller to CycloneV

2017-06-05 Thread Steffen Trumtrar
Hi! thor.tha...@linux.intel.com writes: > From: Thor Thayer > > Add the Altera I2C Controller to the CycloneV SoCFPGA device tree. > > Signed-off-by: Thor Thayer > --- > v2 Remove altr, from fifo-size. > Rename compatible string to "altr,softip-i2c" > v3 Add version to commpatible string

Re: [PATCH v3 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-06-05 Thread Mika Westerberg
On Tue, Jun 06, 2017 at 08:03:29AM +0200, Greg Kroah-Hartman wrote: > Sure, but wasn't there going to be a new version of this series, or > should I just take this one as-is and follow-up patches will happen? > It's up to both of you, either is fine with me. I will send an updated version (v4) of

Re: [PATCH] kernel/module.c: fix warning about unused nowarn variable

2017-06-05 Thread Corentin Labbe
On Mon, Jun 05, 2017 at 10:09:24PM -0700, Jessica Yu wrote: > +++ Corentin Labbe [02/06/17 14:05 +0200]: > >This patch fix the following warning: > >kernel/module.c: In function 'add_usage_links': > >kernel/module.c:1653:6: warning: variable 'nowarn' set but not used > >[-Wunused-but-set-variable]

Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image data formats in kernel

2017-06-05 Thread Ajay kumar
Hi Sakari, On Sat, Jun 3, 2017 at 1:48 PM, Sakari Ailus wrote: > Hi Ajay, > > On Fri, Jun 02, 2017 at 06:38:53PM +0530, Ajay kumar wrote: >> Hi all, >> >> I have tried searching for RGB/YUV 10, 12 BPC formats in videodev2.h, >> media-bus-format.h and drm_fourcc.h >> I could only find RGB 10BPC su

Re: [v2,2/2] reset: Add basic single-register reset driver

2017-06-05 Thread Russell Currey
On Tue, 2017-05-30 at 15:38 +0930, Joel wrote: > This driver is a basic single-register reset controller driver that > supports clearing a single bit in a register. > > Signed-off-by: Joel Stanley Acked-by: Russell Currey

Re: [v2 1/1] usb:host:xhci support option to disable xHCI 1.0 USB2 HW LPM

2017-06-05 Thread Thang Q. Nguyen
On Mon, Jun 5, 2017 at 9:33 PM, Mathias Nyman wrote: > On 05.06.2017 15:57, Thang Q. Nguyen wrote: >> >> On Mon, Jun 5, 2017 at 6:14 PM, Mathias Nyman >> wrote: >>> >>> On 20.05.2017 10:24, Thang Q. Nguyen wrote: XHCI specification 1.1 does not require xHCI 1.0 compliant controller

[PATCH v5 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA

2017-06-05 Thread Stefan Agner
Add i.MX 7 APBH DMA and GPMI NAND modules. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7s.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index c4f12fd..d71acd8 100644 --- a/arch/arm/b

[PATCH v5 1/3] clk: imx7d: create clocks behind rawnand clock gate

2017-06-05 Thread Stefan Agner
The rawnand clock gate gates two clocks, NAND_USDHC_BUS_CLK_ROOT and NAND_CLK_ROOT. However, the gate has been in the chain of the latter only. This does not allow to use the NAND_USDHC_BUS_CLK_ROOT only, e.g. as required by APBH-Bridge-DMA. Add new clocks which represent the clock after the gate,

[PATCH v5 3/3] ARM: dts: imx7-colibri: add NAND support

2017-06-05 Thread Stefan Agner
The Colibri iMX7 modules come with 512MB on-module SLC NAND flash populated. Make use of it by enabling the GPMI controller. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7-colibri.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/ar

[PATCH v5 0/3] ARM: dts: imx7: add NAND support

2017-06-05 Thread Stefan Agner
This revision alters the clock tree such that the clock required by the APBH DMA (NAND_USDHC_BUS_CLK_ROOT _after_ gate CCGR20) is available as an independent clock. So far the gate CCGR20 was used by the NAND_ROOT_CLK only. A previous patch added the NAND_ROOT_CLK which also lead to the effect tha

Re: [PATCH v4 8/8] nvmet: use NVME_IDENTIFY_DATA_SIZE

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > Use NVME_IDENTIFY_DATA_SIZE define instead of hard coding the magic > 4096 value. > > Signed-off-by: Johannes Thumshirn > --- > drivers/nvme/target/admin-cmd.c | 4 ++-- > drivers/nvme/target/discovery.c | 2 +- > 2 files changed, 3 insertions(

Re: [PATCH v4 7/8] nvmet: allow overriding the NVMe VS via configfs

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > Allow overriding the announced NVMe Version of a via configfs. > > This is particularly helpful when debugging new features for the host > or target side without bumping the hard coded version (as the target > might not be fully compliant to the

Re: [PATCH 2/5] Protectable Memory Allocator

2017-06-05 Thread Christoph Hellwig
On Tue, Jun 06, 2017 at 01:44:32PM +0900, Tetsuo Handa wrote: > Igor Stoppa wrote: > > +int pmalloc_protect_pool(struct pmalloc_pool *pool) > > +{ > > + struct pmalloc_node *node; > > + > > + if (!pool) > > + return -EINVAL; > > + mutex_lock(&pool->nodes_list_mutex); > > + hlist_f

Re: [PATCH v4 5/8] nvme: get list of namespace descriptors

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > If a target identifies itself as NVMe 1.3 compliant, try to get the > list of Namespace Identification Descriptors and populate the UUID, > NGUID and EUI64 fileds in the NVMe namespace structure with these > values. > > Signed-off-by: Johannes Th

Re: [PATCH v4 3/8] nvmet: implement namespace identify descriptor list

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > A NVMe Identify NS command with a CNS value of '3' is expecting a list > of Namespace Identification Descriptor structures to be returned to > the host for the namespace requested in the namespace identify > command. > > This Namespace Identifica

Re: [PATCH v4 4/8] nvmet: add uuid field to nvme_ns and populate via configfs

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > Add the UUID field from the NVMe Namespace Identification Descriptor > to the nvmet_ns structure and allow it's population via configfs. > > Signed-off-by: Johannes Thumshirn > --- > drivers/nvme/target/configfs.c | 31 +

Re: [PATCH v4 1/8] nvme: introduce NVMe Namespace Identification Descriptor structures

2017-06-05 Thread Hannes Reinecke
On 06/04/2017 12:36 PM, Johannes Thumshirn wrote: > Signed-off-by: Johannes Thumshirn > Reviewed-by: Max Gurtovoy > --- > include/linux/nvme.h | 19 +++ > 1 file changed, 19 insertions(+) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTea

Re: [PATCH v2 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-05 Thread Ding Tianhong
On 2017/6/6 8:28, Alexander Duyck wrote: > On Mon, Jun 5, 2017 at 6:33 AM, Ding Tianhong wrote: >> >> >> On 2017/6/4 2:19, Alexander Duyck wrote: >>> On Fri, Jun 2, 2017 at 9:04 PM, Ding Tianhong >>> wrote: The PCIe Device Control Register use the bit 4 to indicate that whether the d

Re: [PATCH v3] tags: honor COMPILED_SOURCE with apart output directory

2017-06-05 Thread Robert Jarzmik
Masahiro Yamada writes: > Hi Robert, > > I wanted you to update the log. > > 2017-06-05 20:59 GMT+09:00 Robert Jarzmik : >> When the kernel is compiled with an "O=" argument, the object files are >> not necessarily in the source tree, and more probably in another tree. > > Always in another tree.

[PATCH net-next] tun: use symmetric hash

2017-06-05 Thread Jason Wang
Tun actually expects a symmetric hash for queue selecting to work correctly, otherwise packets belongs to a single flow may be redirected to the wrong queue. So this patch switch to use __skb_get_hash_symmetric(). Signed-off-by: Jason Wang --- drivers/net/tun.c | 6 +++--- 1 file changed, 3 inse

Re: [PATCH v7 05/26] x86/mpx: Do not use SIB.base if its value is 101b and ModRM.mod = 0

2017-06-05 Thread Ricardo Neri
On Mon, 2017-05-29 at 15:07 +0200, Borislav Petkov wrote: > On Fri, May 05, 2017 at 11:17:03AM -0700, Ricardo Neri wrote: > > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume 2A states that when a SIB byte is used and the > > base of the SIB byte points

Re: [RFC] ubsan: signed integer overflow in setitimer()

2017-06-05 Thread Xishi Qiu
On 2017/6/4 23:06, Thomas Gleixner wrote: > On Thu, 1 Jun 2017, Xishi Qiu wrote: > > Cc'ed John Stultz > >> Hi, this is the test case, and then I got ubsan error >> (signed integer overflow) report, so the root cause is from >> user or kernel? Shall we change something in timeval_valid()? >> >>

Re: [PATCH v7 07/26] x86/insn-eval: Do not BUG on invalid register type

2017-06-05 Thread Ricardo Neri
On Mon, 2017-05-29 at 18:37 +0200, Borislav Petkov wrote: > On Fri, May 05, 2017 at 11:17:05AM -0700, Ricardo Neri wrote: > > We are not in a critical failure path. The invalid register type is caused > > when trying to decode invalid instruction bytes from a user-space program. > > Thus, simply pr

Re: [PATCH v3 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-06-05 Thread Greg Kroah-Hartman
On Mon, Jun 05, 2017 at 07:01:10PM +0200, Andreas Noever wrote: > On Mon, Jun 5, 2017 at 9:18 AM, Mika Westerberg > wrote: > > On Sat, Jun 03, 2017 at 06:17:04PM +0900, Greg Kroah-Hartman wrote: > >> On Fri, Jun 02, 2017 at 05:04:57PM +0300, Mika Westerberg wrote: > >> > Hi, > >> > > >> > This is

Re: [PATCH v7 08/26] x86/insn-eval: Add a utility function to get register offsets

2017-06-05 Thread Ricardo Neri
On Mon, 2017-05-29 at 19:16 +0200, Borislav Petkov wrote: > On Fri, May 05, 2017 at 11:17:06AM -0700, Ricardo Neri wrote: > > The function get_reg_offset() returns the offset to the register the > > argument specifies as indicated in an enumeration of type offset. Callers > > of this function would

[PATCH 06/10] irqchip: sunxi-nmi: Support sun6i-a31-r-intc compatible

2017-06-05 Thread Chen-Yu Tsai
The R_INTC on the A31 is undocumented. It was previously supported by the sun6i-a31-sc-nmi compatible. This compatible however required the register region to start at the first used register, rather than the boundaries laid out in the SoC's memory map. The new compatible fixes the alignment, while

Re: [PATCH v7 09/26] x86/insn-eval: Add utility function to identify string instructions

2017-06-05 Thread Ricardo Neri
On Mon, 2017-05-29 at 23:48 +0200, Borislav Petkov wrote: > On Fri, May 05, 2017 at 11:17:07AM -0700, Ricardo Neri wrote: > > String instructions are special because in protected mode, the linear > > address is always obtained via the ES segment register in operands that > > use the (E)DI register.

[RFC PATCH v4 04/12] x86/time: Initialize interrupt mode behind timer init

2017-06-05 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. Normally, Booting with BIOS reset is OK. But, At dump-capture kernel, it boot up without BIOS reset, default mode may not be compatible with the actual registers, that causes the delivery interrupt t

[PATCH 00/10] irqchip: sunxi-nmi: Cleanups and fix A31 R_INTC register offset

2017-06-05 Thread Chen-Yu Tsai
Hi everyone, This is an alternative to Icenowy's recent A64 R_INTC patches. This is a two part series. The first four patches clean up the existing sunxi-nmi driver. Patches five and six add a new "sun6i-a31-r-intc" compatible, which mainly adjusts or removes the awkward register region offset th

[PATCH 05/10] dt-bindings: interrupt-controller: sunxi-nmi: Add compatible for A31 R_INTC

2017-06-05 Thread Chen-Yu Tsai
The A31 and later have an R_INTC block which handles the NMI interrupt pin on the SoC. This interrupt pin is used by the external PMIC to signal interrupts to the SoC. While this hardware block is undocumented, the interrupt offsets combined with the register regions for the existing "sun6i-a31-sc

[PATCH 10/10] arm64: allwinner: a64: add NMI (R_INTC) controller on A64

2017-06-05 Thread Chen-Yu Tsai
From: Icenowy Zheng Allwinner A64 SoC features a R_INTC controller, which controls the NMI line, and this interrupt line is usually connected to the AXP PMIC. Add support for it. Signed-off-by: Icenowy Zheng [w...@csie.org: Add fallback sun6i-a31-r-intc compatible] Signed-off-by: Chen-Yu Tsai

[PATCH 04/10] irqchip: sunxi-nmi: const-ify sunxi_sc_nmi_reg_offs structures

2017-06-05 Thread Chen-Yu Tsai
The sunxi_sc_nmi_reg_offs, which hold the register offsets for the various variants, is never modified, and only used at init time within the init functions referenced by IRQCHIP_DECLARE, which themselves are tagged __init. Const-ify the sunxi_sc_nmi_reg_offs structures, and tag them as __initcons

[PATCH 08/10] ARM: sun8i: a23/a33: Use new sun6i-a31-r-intc compatible for NMI/R_INTC

2017-06-05 Thread Chen-Yu Tsai
We introduced a new compatible for the NMI or R_INTC interrupt controller. This new compatible has the register region aligned to the boundary listed in the SoC's memory map. This patch converts the NMI/R_INTC node to using the new compatible, and fixes up the register region and device node name.

[PATCH 09/10] ARM: sun8i: a83t: Add device node for R_INTC interrupt controller

2017-06-05 Thread Chen-Yu Tsai
The R_INTC interrupt controller handles the NMI interrupt pin for the SoC. While there is no documentation or code from the vendor for this device on the A83T, existing mainline kernel drivers and bindings show this to be similar to the old Allwinner interrupt controller found on the A10 SoC, but w

[PATCH 07/10] ARM: sun6i: a31: Use new sun6i-a31-r-intc compatible for NMI/R_INTC

2017-06-05 Thread Chen-Yu Tsai
We introduced a new compatible for the NMI or R_INTC interrupt controller. This new compatible has the register region aligned to the boundary listed in the SoC's memory map. This patch converts the NMI/R_INTC node to using the new compatible, and fixes up the register region and device node name.

[PATCH 03/10] irqchip: sunxi-nmi: Reorder sunxi_sc_nmi_reg_offs' in ascending order

2017-06-05 Thread Chen-Yu Tsai
This is a pure code move to reorder the various sunxi_sc_nmi_reg_offs' by family and alphabetical order. No functionality changes. Signed-off-by: Chen-Yu Tsai --- drivers/irqchip/irq-sunxi-nmi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-

[PATCH 02/10] irqchip: sunxi-nmi: Document interrupt disabling and clearing at probe time

2017-06-05 Thread Chen-Yu Tsai
The sunxi-nmi disables all its interrupts and clears any pending interrupts at probe time. Add comments documenting it, just to make it clear. Signed-off-by: Chen-Yu Tsai --- drivers/irqchip/irq-sunxi-nmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-sunxi-nmi.c b

[PATCH 01/10] irqchip: sunxi-nmi: Convert magic numbers to defines

2017-06-05 Thread Chen-Yu Tsai
The sunxi-nmi driver has a bunch of raw register offsets and bit values. Convert them into define macros for better readability. Signed-off-by: Chen-Yu Tsai --- drivers/irqchip/irq-sunxi-nmi.c | 34 -- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git

Re: Regression on ARMs in next-20170531

2017-06-05 Thread Tony Lindgren
test > the -mm tree at git://git.cmpxchg.org/linux-mmots.git and verify that > this patch below fixes the issue? Looks like next-20170605 is broken for ARMs again.. And the patch below does not apply for me against mmots/master or next. Care to update? Regards, Tony

linux-next: Tree for Jun 6

2017-06-05 Thread Stephen Rothwell
Hi all, Changes since 20170605: The clk tree lost its build failure. The net-next tree gained a conflict against the net tree. The mfd tree lost its build failure. The akpm-current tree still had its build failure for which I reverted a commit. Non-merge commits (relative to Linus'

Re: [PATCH] checkpatch: Change format of --color argument to --color[=WHEN]

2017-06-05 Thread Adam Borowski
On Mon, Jun 05, 2017 at 04:10:30PM -0700, Joe Perches wrote: > On Mon, 2017-06-05 at 18:27 -0400, John Brooks wrote: > > The boolean --color argument did not offer the ability to force colourized > > output even if stdout is not a terminal. > > OK, but why is colorizing output not to terminals des

Re: Stmmac: fix for hw timestamp of GMAC 3 unit

2017-06-05 Thread Giuseppe CAVALLARO
Hi Mario thanks for your tests, and, at first glance, your patches seem to be sensible so, please, send the changes as patches for net.git kernel. Regards Peppe On 6/6/2017 12:11 AM, Mario Molitor wrote: Dear stmmac maintainer group, I have found an problem in stmmac driver of linux kernel

Re: [PATCH v3 0/2] ARM: dts: imx7: add NAND support

2017-06-05 Thread Stefan Agner
On 2017-06-02 13:09, Han Xu wrote: > On 06/01/2017 08:48 PM, Stefan Agner wrote: >> Hi Han, >> >> On 2017-06-01 14:14, Han Xu wrote: >>> On 06/01/2017 02:20 PM, Stefan Agner wrote: This are the missing device tree parts to add NAND support for i.MX 7. See previous patchset: https://e

Re: [PATCH v3 02/13] random: add get_random_{bytes,u32,u64,int,long,once}_wait family

2017-06-05 Thread Jeffrey Walton
On Mon, Jun 5, 2017 at 8:50 PM, Jason A. Donenfeld wrote: > These functions are simple convenience wrappers that call > wait_for_random_bytes before calling the respective get_random_* > function. It may be advantageous to add a timeout, too. There's been a number of times I did not want to wait

Re: [PATCH] kernel/module.c: fix warning about unused nowarn variable

2017-06-05 Thread Jessica Yu
+++ Corentin Labbe [02/06/17 14:05 +0200]: This patch fix the following warning: kernel/module.c: In function 'add_usage_links': kernel/module.c:1653:6: warning: variable 'nowarn' set but not used [-Wunused-but-set-variable] int nowarn; Signed-off-by: Corentin Labbe --- kernel/module.c | 13 +

Re: [PATCH] perf: fix perf test case 14 result reporting

2017-06-05 Thread Thomas-Mich Richter
On 06/02/2017 04:11 PM, Arnaldo Carvalho de Melo wrote: [] >> >> If you have specific patches in Jiri's branch that you think are good to >> go, just point me to them and I'll cherry-pick them. >> >> I'm looking now at the one you pointed out above (070b9644981e). > > Just looked, but the cs

Re: [PATCH 5/7] RISC-V: arch/riscv/lib

2017-06-05 Thread Palmer Dabbelt
On Fri, 26 May 2017 02:06:58 PDT (-0700), Arnd Bergmann wrote: > On Thu, May 25, 2017 at 3:59 AM, Palmer Dabbelt wrote: >> On Tue, 23 May 2017 04:19:42 PDT (-0700), Arnd Bergmann wrote: >>> On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: > >>> Also, it would be good to replace the multiply

Re: [PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64}

2017-06-05 Thread Palmer Dabbelt
On Mon, 29 May 2017 03:50:47 PDT (-0700), Arnd Bergmann wrote: > On Sat, May 27, 2017 at 2:57 AM, Palmer Dabbelt wrote: >> On Tue, 23 May 2017 04:30:50 PDT (-0700), Arnd Bergmann wrote: >>> On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: RISC-V has both 32-bit and 64-bit base ISAs, bu

Re: [PATCH 4/7] RISC-V: arch/riscv/include

2017-06-05 Thread Palmer Dabbelt
On Thu, 01 Jun 2017 02:00:22 PDT (-0700), Arnd Bergmann wrote: > On Thu, Jun 1, 2017 at 2:56 AM, Palmer Dabbelt wrote: >> On Tue, 23 May 2017 05:55:15 PDT (-0700), Arnd Bergmann wrote: >>> On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: > > +#ifndef _ASM_RISCV_CACHE_H +#define _A

Re: [PATCH 2/7] RISC-V: arch/riscv Makefile and Kconfigs

2017-06-05 Thread Palmer Dabbelt
On Mon, 29 May 2017 04:17:40 PDT (-0700), Arnd Bergmann wrote: > On Sat, May 27, 2017 at 2:57 AM, Palmer Dabbelt wrote: >> On Tue, 23 May 2017 04:46:22 PDT (-0700), Arnd Bergmann wrote: >>> On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: diff --git a/arch/riscv/Kconfig b/arch/riscv/Kc

Re: [PATCH 6/7] RISC-V: arch/riscv/kernel

2017-06-05 Thread Palmer Dabbelt
On Thu, 25 May 2017 12:51:54 PDT (-0700), Arnd Bergmann wrote: > On Thu, May 25, 2017 at 3:59 AM, Palmer Dabbelt wrote: >> On Mon, 22 May 2017 19:11:35 PDT (-0700), o...@lixom.net wrote: > >> * Parens around single-statement __asm__ macros. For these I also get a >>message when they're wrapp

[PATCH 4/6] kexec_file: Adjust declaration of kexec_purgatory

2017-06-05 Thread Kees Cook
Defining kexec_purgatory as a zero-length char array upsets compile time size checking. Since this is built on a per-arch basis, define it as an unsized char array (like is done for other similar things, e.g. linker sections). This silences the warning generated by the future CONFIG_FORTIFY_SOURCE,

[PATCH 2/6] efi: Avoid fortify checks in EFI stub

2017-06-05 Thread Kees Cook
This avoids CONFIG_FORTIFY_SOURCE from being enabled during the EFI stub build, as adding a panic() implementation may not work well. This can be adjusted in the future. Suggested-by: Daniel Micay Signed-off-by: Kees Cook Cc; Matt Fleming Cc: Ard Biesheuvel --- drivers/firmware/efi/libstub/Ma

[PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-05 Thread Kees Cook
Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. Suggested-by: Mark Rutland Signed-off-by: Kees Cook Cc: Catalin Marinas Cc: Will Deacon Cc: Jisheng Zhang --- arch/arm64/kernel/vdso.c | 10 +- 1

[PATCH 5/6] staging/rts5208: Fix read overflow in memcpy

2017-06-05 Thread Kees Cook
From: Daniel Micay Noticed by FORTIFY_SOURCE, this swaps memcpy() for strncpy() to zero-value fill the end of the buffer instead of over-reading a string from .rodata. Signed-off-by: Daniel Micay [kees: wrote commit log] Signed-off-by: Kees Cook Cc: Greg Kroah-Hartman Cc: Wayne Porter --- d

[PATCH 6/6] IB/rxe: Do not copy extra stack memory to skb

2017-06-05 Thread Kees Cook
This fixes a over-read condition detected by FORTIFY_SOURCE for this line: memcpy(SKB_TO_PKT(skb), &ack_pkt, sizeof(skb->cb)); The error was: In file included from ./include/linux/bitmap.h:8:0, from ./include/linux/cpumask.h:11, from ./include/linux/mm_t

[PATCH 3/6] x86/power/64: Use char arrays for asm function names

2017-06-05 Thread Kees Cook
This switches the hibernate_64.S function names into character arrays to match other areas of the kernel where this is done (e.g., linker scripts). Specifically this fixes a compile-time error noticed by the future CONFIG_FORTIFY_SOURCE routines that complained about PAGE_SIZE being copied out of t

[PATCH] FORTIFY_SOURCE build fixes

2017-06-05 Thread Kees Cook
I was originally carrying these patches in my KSPP tree, but akpm is taking the FORTIFY_SOURCE patch into -mm. As such, these fixes should be included as well. -Kees

Re: [PATCH 2/5] Protectable Memory Allocator

2017-06-05 Thread Tetsuo Handa
Igor Stoppa wrote: > +int pmalloc_protect_pool(struct pmalloc_pool *pool) > +{ > + struct pmalloc_node *node; > + > + if (!pool) > + return -EINVAL; > + mutex_lock(&pool->nodes_list_mutex); > + hlist_for_each_entry(node, &pool->nodes_list_head, nodes_list) { > +

Re: [kernel-hardening] Re: [PATCH v3 04/13] crypto/rng: ensure that the RNG is ready before using

2017-06-05 Thread Eric Biggers
On Tue, Jun 06, 2017 at 05:56:20AM +0200, Jason A. Donenfeld wrote: > Hey Ted, > > On Tue, Jun 6, 2017 at 5:00 AM, Theodore Ts'o wrote: > > Note that crypto_rng_reset() is called by big_key_init() in > > security/keys/big_key.c as a late_initcall(). So if we are on a > > system where the crng do

Re: [PATCH 2/6] mm: vmstat: move slab statistics from zone to node counters

2017-06-05 Thread Michael Ellerman
special boot pagesets, whereas the nodes do not. > > Add boot nodestats against which we account until the dynamic per-cpu > allocator is available. This isn't working for me. I applied it on top of next-20170605, I still get an oops: $ qemu-system-ppc64 -M pseries -m 1G -kernel bu

[PATCH v7 1/1] clk: bcm: Add clocks for Stingray SOC

2017-06-05 Thread Anup Patel
From: Sandeep Tripathy This patch adds support for Stingray clocks in iproc ccf. The Stingray SOC has various plls based on iproc pll architecture. Signed-off-by: Sandeep Tripathy Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/clk/bcm/Kconfig | 8 ++

[PATCH v7 0/1] Broadcom Stingray SOC Initial Support

2017-06-05 Thread Anup Patel
This patchset adds initial support of Broadcom Stingray SOC by reusing existing Broadcom iProc device drivers. Most of the patches in this patchset are DT patches except the Stingray clock tree support which just one patch. This patchset is based on Linux-4.12-rc4 and it is also available at stin

Re: [PATCH v6 03/11] clk: bcm: Add clocks for Stingray SOC

2017-06-05 Thread Anup Patel
On Sat, Jun 3, 2017 at 3:40 AM, Stephen Boyd wrote: > On 06/02, Anup Patel wrote: >> diff --git a/drivers/clk/bcm/clk-sr.c b/drivers/clk/bcm/clk-sr.c >> new file mode 100644 >> index 000..342f702 >> --- /dev/null >> +++ b/drivers/clk/bcm/clk-sr.c >> @@ -0,0 +1,320 @@ >> + >> +static const stru

Re: [PATCH 0/7] dra7: Fixes for MMC devicetree node

2017-06-05 Thread Kishon Vijay Abraham I
Hi, On Friday 02 June 2017 04:20 PM, Ulf Hansson wrote: > On 1 June 2017 at 16:33, Kishon Vijay Abraham I wrote: >> There are the set of fixes that were sent initially as part >> of [1]. >> >> These are mostly fixes w.r.t populating regulators in >> mmc dt node. It was working before because the

Re: [PATCH v3 04/13] crypto/rng: ensure that the RNG is ready before using

2017-06-05 Thread Jason A. Donenfeld
Hey Ted, On Tue, Jun 6, 2017 at 5:00 AM, Theodore Ts'o wrote: > Note that crypto_rng_reset() is called by big_key_init() in > security/keys/big_key.c as a late_initcall(). So if we are on a > system where the crng doesn't get initialized until during the system > boot scripts, and big_key is com

Re: [PATCH RFC 1/2] thermal/cpu idle cooling: Introduce cpu idle cooling driver

2017-06-05 Thread Viresh Kumar
+ Daniel On 05-06-17, 17:07, Tao Wang wrote: > cpu idle cooling driver performs synchronized idle injection across > all cpu in same cluster, offers a new method to cooling down cpu, > that is similar to intel_power_clamp driver, but is basically > designed for ARM platform. > Each cluster has its

Re: [PATCH v2] arch/sparc: support NR_CPUS = 4096

2017-06-05 Thread David Miller
From: jane@oracle.com Date: Mon, 5 Jun 2017 20:03:28 -0700 > On sun4v sparc, it looks like kzalloc(64, GFP_KERNEL) ends up > allocating from kmalloc_caches[6] - a 64-byte kmem-cache allocated > by kmem_cache_init() with SLAB_HWCACHE_ALIGN flag set, so it's in > l3-cache-line-size alignment, i.

Re: [PATCH v6 00/11] Broadcom Stingray SOC Initial Support

2017-06-05 Thread Anup Patel
On Tue, Jun 6, 2017 at 7:38 AM, Florian Fainelli wrote: > > > On 06/05/2017 09:51 AM, Florian Fainelli wrote: >> On 06/01/2017 11:34 PM, Anup Patel wrote: >>> This patchset adds initial support of Broadcom Stingray SOC >>> by reusing existing Broadcom iProc device drivers. >>> >>> Most of the patc

[PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded Binary WMI MOF metadata

2017-06-05 Thread Andy Lutomirski
Many laptops (and maybe servers?) have embedded WMI Binary MOF metadata. We do not yet have open-source tools for processing the data, although one is in the works thanks to Pali: https://github.com/pali/bmfdec There is currently no interface to get the data in the first place. By exposin

Re: [PATCH V2 0/3] Refine numa_emulation

2017-06-05 Thread Wei Yang
Ping~ Willing to hear some feed back :-) On Tue, May 02, 2017 at 09:04:50PM +0800, Wei Yang wrote: >My previous patch "x86/mm/numa: Remove numa_nodemask_from_meminfo()" hits a >problem in numa_emulation. The reason is numa_nodes_parsed is not set >correctly after emulation. > >This patch set tries

Re: [PATCH] EDAC: mv64x60 calculate memory size correctly

2017-06-05 Thread Chris Packham
On 06/06/17 14:41, Chris Packham wrote: > The #address-cells and #size-cells properties need to be accounted for > when dealing with the "memory" device tree node. > > Signed-off-by: Chris Packham > --- > drivers/edac/mv64x60_edac.c | 30 +- > 1 file changed, 21 ins

Re: [PATCH 4/4] arm64: dts: uniphier: add nodes of thermal monitor and thermal zone for LD20

2017-06-05 Thread Masahiro Yamada
2017-05-29 18:15 GMT+09:00 Kunihiko Hayashi : > Add nodes of thermal monitor and thermal zone for UniPhier LD20 SoC. > The thermal monitor is included in sysctrl. > > Furthermore, since SoC installed in the reference board doesn't have a > calibrated value of thermal monitor, this patch gives the d

Re: [PATCH 16/16] platform/x86: dell-wmi: Convert to the WMI bus infrastructure

2017-06-05 Thread Darren Hart
On Mon, May 29, 2017 at 07:45:05PM -0700, Dmitry Torokhov wrote: > On Sat, May 27, 2017 at 11:40:52AM -0700, Andy Lutomirski wrote: > > On Sat, May 27, 2017 at 9:17 AM, Dmitry Torokhov > > wrote: > > > On May 27, 2017 9:04:38 AM PDT, Andy Lutomirski wrote: > > >>On Sat, May 27, 2017 at 3:50 AM, P

Re: [RFC PATCH 2/4] mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_MAYFAIL with more useful semantic

2017-06-05 Thread Wei Yang
On Mon, Jun 05, 2017 at 08:43:43AM +0200, Michal Hocko wrote: >On Sat 03-06-17 10:24:40, Wei Yang wrote: >> Hi, Michal >> >> Just go through your patch. >> >> I have one question and one suggestion as below. >> >> One suggestion: >> >> This patch does two things to me: >> 1. Replace __GFP_REPEA

Re: [PATCH v2] arch/sparc: support NR_CPUS = 4096

2017-06-05 Thread jane . chu
On 06/05/2017 05:57 PM, David Miller wrote: From: Jane Chu Date: Mon, 5 Jun 2017 16:48:31 -0600 Linux SPARC64 limits NR_CPUS to 4064 because init_cpu_send_mondo_info() only allocates a single page for NR_CPUS mondo entries. Thus we cannot use all 4096 CPUs on some SPARC platforms. To fix, a

Re: [PATCH 09/16] platform/x86: wmi: Instantiate all devices before adding them

2017-06-05 Thread Darren Hart
On Thu, Jun 01, 2017 at 10:43:39PM +0200, Michał Kępień wrote: > I know I have probably started sounding like a broken record by now, but > I still have not seen any response (apart from the typos getting fixed) > to my comments on this patch which I posted in January 2016 [1]. > > None of the iss

Re: [PATCH v3 04/13] crypto/rng: ensure that the RNG is ready before using

2017-06-05 Thread Theodore Ts'o
On Tue, Jun 06, 2017 at 02:50:59AM +0200, Jason A. Donenfeld wrote: > Otherwise, we might be seeding the RNG using bad randomness, which is > dangerous. > > Cc: Herbert Xu > Signed-off-by: Jason A. Donenfeld > --- > crypto/rng.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > >

Re: [PATCH 4/5] ARM: sun8i: a83t: Add dt node for the syscon control module

2017-06-05 Thread Chen-Yu Tsai
On Tue, Jun 6, 2017 at 3:21 AM, Corentin Labbe wrote: > This patch add the dt node for the syscon register present on the > Allwinner A83T > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/boot/dts/

Re: [Qemu-devel] [PATCH 0/7] KVM: MMU: fast write protect

2017-06-05 Thread Xiao Guangrong
On 06/05/2017 03:36 PM, Jay Zhou wrote: /* enable ucontrol for s390 */ struct kvm_s390_ucas_mapping { diff --git a/memory.c b/memory.c index 4c95aaf..b836675 100644 --- a/memory.c +++ b/memory.c @@ -809,6 +809,13 @@ static void address_space_update_ioeventfds(AddressSpace *as) flatv

Re: [PATCH 2/4] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor

2017-06-05 Thread Masahiro Yamada
2017-05-29 18:15 GMT+09:00 Kunihiko Hayashi : > Add devicetree binding documentation for thermal monitor implemented on > Socionext UniPhier SoCs. > > Signed-off-by: Kunihiko Hayashi > --- > .../bindings/thermal/uniphier-thermal.txt | 54 > ++ > 1 file changed, 54 in

[PATCH] EDAC: mv64x60 calculate memory size correctly

2017-06-05 Thread Chris Packham
The #address-cells and #size-cells properties need to be accounted for when dealing with the "memory" device tree node. Signed-off-by: Chris Packham --- drivers/edac/mv64x60_edac.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/edac/mv

Re: [PATCH 15/16] platform/x86: wmi-mof: New driver to expose embedded WMI MOF metadata

2017-06-05 Thread Darren Hart
On Tue, Jun 06, 2017 at 12:19:26AM +0200, Pali Rohár wrote: > On Tuesday 06 June 2017 00:14:56 Darren Hart wrote: > > On Sat, May 27, 2017 at 01:14:15PM +0200, Pali Rohár wrote: > > > > metadata. I think that Samba has tools to interpret it, but there > > > > is currently no interface to get the da

w1_therm should not unlock bus if strong pullup is forced

2017-06-05 Thread Ingo Flaschberger
Hi, If strong pullup is forced (=2) a strong pullup is placed for 750ms. Is also external power detected the bus will be unlocked and a additional 750ms sleep is performed. This 2nd sleep should be avoided. Kind regards, Ingo Flaschberger --- w1_therm.c_org 2017-06-06 04:05:48.02810

Re: [PATCH] arm: aspeed: Add clock-names property to timer node

2017-06-05 Thread Joel Stanley
On Tue, Jun 6, 2017 at 6:41 AM, Daniel Lezcano wrote: > On Mon, Jun 05, 2017 at 06:29:53PM +0930, Joel Stanley wrote: >> On Mon, Jun 5, 2017 at 5:18 PM, Andrew Jeffery wrote: >> > The merging of a number of clocksource drivers into fttmr010 means we >> > require clock-names to be specified in the

Re: [PATCH v6 00/11] Broadcom Stingray SOC Initial Support

2017-06-05 Thread Florian Fainelli
On 06/05/2017 09:51 AM, Florian Fainelli wrote: > On 06/01/2017 11:34 PM, Anup Patel wrote: >> This patchset adds initial support of Broadcom Stingray SOC >> by reusing existing Broadcom iProc device drivers. >> >> Most of the patches in this patchset are DT patches except >> the Stingray clock t

Re: [PATCH v3 32/37] mtd: nand: denali: support hardware-assisted erased page detection

2017-06-05 Thread Masahiro Yamada
Hi Boris, 2017-03-31 1:30 GMT+09:00 Boris Brezillon : > On Thu, 30 Mar 2017 17:15:03 +0900 > Masahiro Yamada wrote: > >> Recent versions of this IP support automatic erased page detection. >> If an erased page is detected on reads, the controller does not set >> INTR__ECC_UNCOR_ERR, but INTR__ER

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-06-05 Thread Peter Chen
On Mon, Jun 05, 2017 at 11:52:26AM +0200, Fabien Lahoudere wrote: > On Mon, 2017-06-05 at 17:43 +0800, Peter Chen wrote: > > On Mon, Jun 05, 2017 at 10:57:00AM +0200, Fabien Lahoudere wrote: > > > On Fri, 2017-06-02 at 15:00 -0700, Stephen Boyd wrote: > > > > On 05/26, Fabien Lahoudere wrote: > > >

linux-next: manual merge of the net-next tree with the net tree

2017-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/dsa/dsa2.c between commit: b07ac9894644 ("net: dsa: Fix stale cpu_switch reference after unbind then bind") from the net tree and commits: 8b0d3ea55587 ("net: dsa: store CPU port pointer in the tree") 937c7d

Re: [PATCH] Top Makefile: tiny correction on `make help`

2017-06-05 Thread Masahiro Yamada
Hi Cao, 2017-05-29 12:21 GMT+09:00 Cao jin : > The help info of `make -C=1` is little confusing, make it clear. `make C=1` instead of `make -C=1` > Signed-off-by: Cao jin > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index ef

Re: [PATCH] perf symbols: Fix plt entry calculation for ARM and AARCH64

2017-06-05 Thread Namhyung Kim
On Mon, Jun 5, 2017 at 9:34 AM, Li Bin wrote: > On x86, the plt header size is as same as the plt entry size, and > can be identified from shdr's sh_entsize of the plt. > But we cann't assume that the sh_entsize of the plt shdr is always > the plt entry size in all architecture, and the plt header

Re: [PATCH v2 3/3] perf test: Decompress kernel module before objdump

2017-06-05 Thread Namhyung Kim
Hi Adrian, On Mon, Jun 5, 2017 at 8:13 PM, Adrian Hunter wrote: > On 03/06/17 05:00, Namhyung Kim wrote: >> If a kernel modules is compressed, it should be decompressed before >> running objdump to parse binary data correctly. This fixes a failure of >> object code reading test for me. > > Makes

Re: [PATCH v2 1/3] perf tools: Introduce dso__decompress_kmodule_{fd,path}

2017-06-05 Thread Namhyung Kim
Hi Jiri, On Mon, Jun 5, 2017 at 6:58 PM, Jiri Olsa wrote: > On Sat, Jun 03, 2017 at 11:00:31AM +0900, Namhyung Kim wrote: >> Move decompress_kmodule() to util/dso.c and split it to two functions >> returning fd and (decompressed) file path. Existing user only wants the >> fd version but the path

Re: [PATCH 6/7] perf report: mark inlined frames in output by " (inlined)" suffix

2017-06-05 Thread Namhyung Kim
On Sat, Jun 3, 2017 at 10:51 PM, Milian Wolff wrote: > On Montag, 22. Mai 2017 14:48:18 CEST Namhyung Kim wrote: >> On Thu, May 18, 2017 at 09:34:10PM +0200, Milian Wolff wrote: >> > The original patch that introduced inline frame output in the >> > various browsers used this suffix already. The n

Re: [PATCH v2 13/13] perf tools: add feature header record to pipe-mode

2017-06-05 Thread David Carrillo-Cisneros
On Thu, May 25, 2017 at 1:10 AM, Jiri Olsa wrote: > On Tue, May 23, 2017 at 12:48:53AM -0700, David Carrillo-Cisneros wrote: > > SNIP > >> +int perf_event__synthesize_features(struct perf_tool *tool, >> + struct perf_session *session, >> +

Re: [PATCH v14 4/7] usb: core: add power sequence handling for USB devices

2017-06-05 Thread Peter Chen
On Mon, Jun 05, 2017 at 10:16:34AM -0400, Alan Stern wrote: > On Mon, 5 Jun 2017, Peter Chen wrote: > > > On Thu, May 18, 2017 at 08:49:00AM +0800, Peter Chen wrote: > > > Some hard-wired USB devices need to do power sequence to let the > > > device work normally, the typical power sequence like:

  1   2   3   4   5   6   7   8   9   10   >