[PATCH] scsi: fcoe: sanity check string size for store_ctrl_mode option

2017-03-22 Thread Colin King
From: Colin Ian King Reading and writing to mode[count - 1] implies the count should not be less than 1 so add a sanity check for this. Detected with CoverityScan, CID#1357345 ("Overflowed array index write") Signed-off-by: Colin Ian King

[PATCH v2 16/53] mtd: nand: denali_dt: use pdev instead of ofdev for platform_device

2017-03-22 Thread Masahiro Yamada
"pdev" is much more often used to point a platform_device, so this will help the driver code look consistent across the kernel. While we are here, fix "line over 80 characters" coding style violations. Signed-off-by: Masahiro Yamada --- Changes in v2: None

[PATCH v2 05/53] mtd: nand: denali: remove more unused struct members

2017-03-22 Thread Masahiro Yamada
These members are not used at all. Signed-off-by: Masahiro Yamada --- Changes in v2: - Add git description drivers/mtd/nand/denali.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index

[PATCH 00/17] PCI resource mmap cleanup

2017-03-22 Thread David Woodhouse
This started out as a fairly trivial "add pci_mmap_page_range() for ARM64" patch. But pci_mmap_page_range() is a vile interface, taking "user visible" resource addresses converted with pci_resource_to_user() on those platforms unlucky enough to use that... and even in the *sane* sysfs-based

[PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread David Woodhouse
From: David Woodhouse Signed-off-by: David Woodhouse --- drivers/pci/proc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 2d9cfa4..a940f4b 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@

Re: [PATCH] KVM: nVMX: Fix L2 guest hang if shadow page tables on EPT

2017-03-22 Thread Wanpeng Li
2017-03-22 20:00 GMT+08:00 Ladi Prosek : > On Sat, Mar 18, 2017 at 7:37 AM, Wanpeng Li wrote: >> 2017-03-18 1:28 GMT+08:00 Ladi Prosek : >>> On Fri, Mar 17, 2017 at 3:41 PM, Wanpeng Li wrote: From: Wanpeng Li

Re: [PATCH net-next 1/8] ptr_ring: introduce batch dequeuing

2017-03-22 Thread Michael S. Tsirkin
On Tue, Mar 21, 2017 at 12:04:40PM +0800, Jason Wang wrote: > Signed-off-by: Jason Wang > --- > include/linux/ptr_ring.h | 65 > > 1 file changed, 65 insertions(+) > > diff --git a/include/linux/ptr_ring.h

Re: [PATCHv3] x86/mm: set x32 syscall bit in SET_PERSONALITY()

2017-03-22 Thread Dmitry Safonov
On 03/22/2017 01:34 AM, Thomas Gleixner wrote: On Tue, 21 Mar 2017, h...@zytor.com wrote: On March 21, 2017 3:21:13 PM PDT, Thomas Gleixner wrote: On Tue, 21 Mar 2017, Dmitry Safonov wrote: v3: - clear x32 syscall flag during x32 -> x86-64 exec() (thanks, HPA). For

[PATCH v2 10/53] mtd: nand: denali: fix erased page checking

2017-03-22 Thread Masahiro Yamada
This part is wrong in multiple ways: [1] is_erased() is called against "buf" twice, so the second one is meaningless. The second call should check chip->oob_poi. [2] This code block is nested by double "if (check_erase_page)". The inner one is redundant. [3] Erased page checking without

[PATCH v2 04/53] mtd: nand: denali: remove redundant define of BANK(x)

2017-03-22 Thread Masahiro Yamada
This macro is defined twice in denali.c (around line 98 and line 651), so remove the second one. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c

[PATCH] x86: remove unused atomic_inc_short()

2017-03-22 Thread Dmitry Vyukov
It is completely unused and implemented only on x86. Remove it. Signed-off-by: Dmitry Vyukov Suggested-by: Andrey Ryabinin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Peter

[PATCH v2 09/53] mtd: nand: denali: use int where no reason to use fixed width variable

2017-03-22 Thread Masahiro Yamada
The page number is generally stored in an integer type variable. The uint16_t does not have enough width. I see no reason to use uint32_t for other members, either. Just use int. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.h

[PATCH v2 08/53] mtd: nand: denali: introduce capability flag

2017-03-22 Thread Masahiro Yamada
The Denali NAND controller IP has various customizable features. SoC vendors can choose desired functions when a delivery RTL is created. It means there are several variants for this IP. For example, the Intel version is equipped with 32bit DMA, whereas the IP for UniPhier SoC family with 64bit

[PATCH v2 07/53] mtd: nand: denali: consolidate INTR_STATUS__* and INTR_EN__* macros

2017-03-22 Thread Masahiro Yamada
The interrupts are enabled by INTR_EN register, then asserted interrupts can be observed via INTR_STATUS register. The bit fields are identical between INTR_EN and INTR_STATUS, so we can merge the bit field macros. Likewise for DATA_INTR. Signed-off-by: Masahiro Yamada

[PATCH v2 23/53] mtd: nand: denali: set DEVICES_CONNECTED 1 if not set

2017-03-22 Thread Masahiro Yamada
Currently, the driver expects DEVICE_CONNECTED is automatically set by the hardware, but this feature is disabled in some cases. In such cases, it is the software's responsibility to set up the DEVICES_CONNECTED register. Signed-off-by: Masahiro Yamada --- Changes

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Josh Poimboeuf
On Wed, Mar 22, 2017 at 08:46:16AM +0100, Ingo Molnar wrote: > > * Jiri Slaby wrote: > > > On 03/22/2017, 08:25 AM, Ingo Molnar wrote: > > > > > > * Pavel Machek wrote: > > > > > >> Hi! > > >> > > >>> -ENTRY(saved_rbp) .quad 0 > > >>> -ENTRY(saved_rsi)

[PATCH v2 20/53] mtd: nand: denali: do not set mtd->name

2017-03-22 Thread Masahiro Yamada
This will be filled by nand_scan_ident() later. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 3badb1d..1706975

[PATCH v2 11/53] mtd: nand: denali: fix bitflips calculation in handle_ecc()

2017-03-22 Thread Masahiro Yamada
This function is wrong in multiple ways: [1] Counting corrected bytes instead of corrected bits. The following code is counting the number of corrected _bytes_. /* correct the ECC error */ buf[offset] ^= err_cor_value; mtd->ecc_stats.corrected++; bitflips++; What the core

[PATCH v2 24/53] mtd: nand: denali: remove meaningless writes to read-only registers

2017-03-22 Thread Masahiro Yamada
The write accesses to LOGICAL_PAGE_{DATA,SPARE}_SIZE have no effect because the Denali User's Guide says these registers are read-only. The hardware automatically multiplies the main/spare size by the number of devices and update LOGICAL_PAGE_{DATA,SPARE}_SIZE. Signed-off-by: Masahiro Yamada

[PATCH v2 19/53] mtd: nand: denali: call nand_set_flash_node() to set DT node

2017-03-22 Thread Masahiro Yamada
This will allow nand_dt_init() to parse DT properties in the NAND controller device node. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/denali.c

[PATCH v2 12/53] mtd: nand: denali: support HW_ECC_FIXUP capability

2017-03-22 Thread Masahiro Yamada
Some old versions of the Denali IP (perhaps used only for Intel?) detects ECC errors and provides correct data via a register, but does not touch the transferred data. So, the software must fixup the data in the buffer according to the provided ECC correction information. Newer versions perform

Re: [PATCH v6 06/14] mmc: sdhci: Export sdhci_enable_sdio_irq() from sdhci.c

2017-03-22 Thread Adrian Hunter
On 14/02/17 19:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Export sdhci_enable_sdio_irq() from sdhci.c. > Thus vendor SDHC driver can implement its specific SDIO irq > control. > > Signed-off-by: Hu Ziji > Signed-off-by: Gregory CLEMENT

[RFC PATCH v2 41/41] arm64/sve: Documentation: Add overview of the SVE userspace ABI

2017-03-22 Thread Dave Martin
This patch adds initial documentation of the ABI provided by the kernel to enable userspace software to make use of SVE. Signed-off-by: Dave Martin --- Documentation/arm64/sve.txt | 475 1 file changed, 475 insertions(+) create

Re: [PATCH v6 04/14] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2017-03-22 Thread Adrian Hunter
On 14/02/17 19:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Export sdhci_set_ios() in sdhci.c. > Thus vendor sdhci driver can implement its own set_ios() routine. > > Signed-off-by: Hu Ziji > Signed-off-by: Gregory CLEMENT

Re: [PATCH v5] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-22 Thread Michal Hocko
On Wed 22-03-17 22:11:33, Yisheng Xie wrote: > From: Yisheng Xie > > By reviewing code, I find that when enter do_try_to_free_pages, the > may_thrash is always clear, and it will retry shrink zones to tap > cgroup's reserves memory by setting may_thrash when the former >

[RFC PATCH v2 33/41] arm64/sve: Wire up vector length control prctl() calls

2017-03-22 Thread Dave Martin
This patch provides implementation for the PR_SVE_SET_VL and PR_SVE_GET_VL prctls, which allow a task to set and query its vector length and associated control flags (although no flags are defined in this patch). Currently any thread can set its VL, allowing a mix of VLs within a single process

[GIT PULL] phy: for 4.11 -rc cycle

2017-03-22 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for this -rc cycle below. The major change is removing USB3 PHY driver for Broadcom NSP merged during the last merge window. It is found there already exists a PHY driver (used by NS) and it can be shared with NSP as well. So in the coming merge windows the

Re: [PATCH] percpu-refcount: support synchronous switch to atomic mode.

2017-03-22 Thread Tejun Heo
On Wed, Mar 22, 2017 at 12:50:12PM +1100, NeilBrown wrote: > > percpu_ref_switch_to_atomic_sync() schedules the switch > to atomic mode, then waits for it to complete. > > Also export percpu_ref_switch_to_* so they can be used from modules. > > This will be used in md/raid to count the number

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Eric Dumazet
On Wed, 2017-03-22 at 15:33 +0100, Peter Zijlstra wrote: > > But I would feel a whole lot better about the entire thing if we could > measure their impact. It would also give us good precedent to whack > other potential users of _nocheck over the head with -- show numbers. I wont be able to

[PATCH linux-next V2] tty: Disable default console blanking interval

2017-03-22 Thread Tim Gardner
BugLink: http://bugs.launchpad.net/bugs/869017 Console blanking is not enabling DPMS power saving (thereby negating any power-saving benefit), and is simply turning the screen content blank. This means that any crash output is invisible which is unhelpful on a server (virtual or otherwise).

[PATCH v3 2/5] drivers: watchdog: Add STM32 IWDG driver

2017-03-22 Thread Yannick Fertre
This patch adds IWDG (Independent WatchDoG) support for STM32 platform. Change-Id: Iab218745fc25566f12558fae7f52e2f8c21db74e Signed-off-by: Yannick FERTRE --- drivers/watchdog/Kconfig | 11 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/stm32_iwdg.c |

Re: [PATCH v2 04/18] arm64: cpu_errata: Allow an erratum to be match for all revisions of a core

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:15PM +, Marc Zyngier wrote: > Some minor erratum may not be fixed in further revisions of a core, > leading to a situation where the workaround needs to be updated each > time an updated core is released. > > Introduce a MIDR_ALL_VERSIONS match helper that will

[PATCH 12/17] mips: Use generic pci_mmap_resource_range()

2017-03-22 Thread David Woodhouse
From: David Woodhouse Signed-off-by: David Woodhouse --- arch/mips/include/asm/pci.h | 2 +- arch/mips/pci/pci.c | 25 - 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/arch/mips/include/asm/pci.h

[PATCH v1 1/5] dt-bindings: Document STM32 IWDG bindings

2017-03-22 Thread Yannick Fertre
From: Yannick Fertre This adds documentation of device tree bindings for the STM32 IWDG (Independent WatchDoG). Change-Id: Idadacc806d00205fe9af2e8606af229b4b760558 Signed-off-by: Yannick Fertre Reviewed-on: https://gerrit.st.com/45217

[PATCH v1 3/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Yannick Fertre
Signed-off-by: Yannick FERTRE --- arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ee0da97..148273b 100644 ---

[PATCH v1 4/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Yannick Fertre
Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 3c99466..aab81ed 100644 ---

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

2017-03-22 Thread gengdongjiu
Hi James, Thank you very much for your detailed comment and answer. On 2017/3/21 21:10, James Morse wrote: > Hi, > > On 21/03/17 06:32, gengdongjiu wrote: >> On 2017/3/20 23:08, James Morse wrote: >>> On 20/03/17 13:58, Marc Zyngier wrote: On 20/03/17 12:28, gengdongjiu wrote: > On

Re: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread Will Deacon
On Wed, Mar 22, 2017 at 10:15:04AM -0400, Sinan Kaya wrote: > On 3/22/2017 10:04 AM, David Woodhouse wrote: > > On Wed, 2017-03-22 at 09:54 -0400, Sinan Kaya wrote: > >> On 3/22/2017 9:25 AM, David Woodhouse wrote: > >>> > >>> > >>> +#ifdef __aarch64__ > >>> +/* ARM64 wants to be special and not

Re: [PATCH 1/5] x86: Implement __WARN using UD0

2017-03-22 Thread Josh Poimboeuf
On Wed, Mar 22, 2017 at 09:47:06AM +0100, Peter Zijlstra wrote: > > A little like so then. > > --- > Subject: x86: Implement __WARN using UD0 > From: Peter Zijlstra > Date: Thu Feb 2 14:43:51 CET 2017 > > By using "UD0" for WARNs we remove the function call and its

Re: [PATCH] sched: write better comments for weight calculations

2017-03-22 Thread Peter Zijlstra
On Fri, Mar 10, 2017 at 12:47:43PM -0800, Joel Fernandes wrote: > This patch rewrites comments related task priorities and CPU usage > along with an example to show how it works. To what purpose? Bigger word count?

[PATCH v2 03/53] mtd: nand: denali: remove unused CONFIG option and macros

2017-03-22 Thread Masahiro Yamada
All of these macros are not used at all. CONFIG_MTD_NAND_DENALI_SCRATCH_REG_ADDR is not used for anything but defining SCRATCH_REG_ADDR. The config option should go away as well. I am removing some register macros. They are not used, and do not exist in recent IP versions. Signed-off-by:

[PATCH v2 06/53] mtd: nand: denali: fix comment of denali_nand_info::flash_mem

2017-03-22 Thread Masahiro Yamada
The same comment "Mapped io reg base address" for flash_reg and flash_mem probably due to the mistake of copy-paste work. Of course, the latter is not the register base address. Reword the comments using the terminology in the Denali User's Guide. Signed-off-by: Masahiro Yamada

[PATCH v2 21/53] mtd: nand: denali: move multi device fixup code to a helper function

2017-03-22 Thread Masahiro Yamada
Collect multi NAND fixups into a helper function instead of scattering them in denali_init(). I am rewording the comment block to clearly explain what is called "multi device". Signed-off-by: Masahiro Yamada --- Changes in v2: - Reword the comment block for

[PATCH v2 15/53] mtd: nand: denali_dt: remove dma-mask DT property

2017-03-22 Thread Masahiro Yamada
The driver sets appropriate DMA mask. Delete the "dma-mask" DT property. See [1] for negative comments for this binding. [1] https://lkml.org/lkml/2016/2/8/57 Signed-off-by: Masahiro Yamada Acked-by: Rob Herring --- Changes in v2: None

Re: [PATCH v1 4/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick Fertre --- Please add a commit message and change commit header as following: ARM: dts: stm32: . arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH] clk: tegra: add missing Tegra210 clocks

2017-03-22 Thread Peter De Schrijver
iqc1, iqc2, tegra_clk_pll_a_out_adsp, tegra_clk_pll_a_out0_out_adsp, adsp and adsp neon were not modelled. dp2 wasn't modelled for Tegra210. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-id.h | 6 ++ drivers/clk/tegra/clk-tegra-periph.c

[PATCH] block: Invalidate cache on discard

2017-03-22 Thread Dmitry Monakhov
It is reasonable drop page cache on discard, otherwise that pages may be written by writeback second later, so thin provision devices will not be happy. This seems to be a security leak in case of secure discard case. Also add check for queue_discard flag on early stage. Signed-off-by: Dmitry

[PATCH] clockevents: fix syntax errors

2017-03-22 Thread Alexander Kochetkov
The patch fix syntax errors introduced by commit 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of"). Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") Signed-off-by: Alexander Kochetkov --- drivers/clocksource/clkevt-probe.c |

Re: [PATCH v1] mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd()

2017-03-22 Thread Christian Borntraeger
On 03/22/2017 01:53 PM, Christian Borntraeger wrote: > On 03/22/2017 03:31 AM, Naoya Horiguchi wrote: >> I found the race condition which triggers the following bug when >> move_pages() and soft offline are called on a single hugetlb page >> concurrently. >> >> [61163.578957] Soft offlining

Re: [PATCH v6 08/14] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2017-03-22 Thread Adrian Hunter
On 14/02/17 19:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Add Xenon eMMC/SD/SDIO host controller core functionality. > Add Xenon specific initialization process. > Add Xenon specific mmc_host_ops APIs. > Add Xenon specific register definitions. > > Add

[PATCH 0/7] power: supply: bq24190_charger: Various fixes + extcon support

2017-03-22 Thread Hans de Goede
Hi Sebastian, Liam, All, As discussed here is a v2 of my bq24190 charges. I'm not 100% sure the last patch should go upstream as is, we do want to remove the battery power_supply but I'm not sure about the timing of doing so. >From my pov the other patches are ready for merging, but I guess

Re: [PATCH 2/2] iommu: Add dummy implementations for !IOMMU_IOVA

2017-03-22 Thread Joerg Roedel
Hi Thierry On Mon, Mar 20, 2017 at 08:14:31PM +0100, Thierry Reding wrote: > I've got a series of patches that I'd like to merge for v4.12 that have > a build-time dependency on this patch. It would therefore be great to > get your Acked-by on this so that I can merge it through the DRM tree >

[PATCH v3 4/5] ARM: dts: stm32: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Yannick Fertre
This patch adds watchdog support for STM32x9I-Eval board. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index

[PATCH v3 0/5] STM32 Independant watchdog

2017-03-22 Thread Yannick Fertre
Version 3: - Update typo into bindings file - Reorder node in devicetree (ordering by address) - Remove unecessary lines in commits Version 2: - Add commit messages Version 1: - Initial commit The purpose of this set of patches is to add a new watchdog driver for stm32f429. This driver was

[PATCH v3 1/5] dt-bindings: Document STM32 IWDG bindings

2017-03-22 Thread Yannick Fertre
From: Yannick Fertre This adds documentation of device tree bindings for the STM32 IWDG (Independent WatchDoG). Change-Id: Idadacc806d00205fe9af2e8606af229b4b760558 Signed-off-by: Yannick Fertre ---

[PATCH v3 5/5] ARM: configs: Add watchdog support in STM32 defconfig

2017-03-22 Thread Yannick Fertre
This patch adds STM32 watchdog support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..83afa73

[PATCH v3 3/5] ARM: dts: stm32: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Yannick Fertre
Add watchdog into DT for stm32f429 family. Signed-off-by: Yannick FERTRE --- arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index

[PATCH] x86, asm-generic: add KASAN instrumentation to bitops

2017-03-22 Thread Dmitry Vyukov
Instrument bitops similarly to atomicops. See the following patches for details: asm-generic, x86: wrap atomic operations asm-generic: add KASAN instrumentation to atomic operations Signed-off-by: Dmitry Vyukov Cc: Mark Rutland Cc: Peter Zijlstra

Re: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread Sinan Kaya
On 3/22/2017 10:04 AM, David Woodhouse wrote: > On Wed, 2017-03-22 at 09:54 -0400, Sinan Kaya wrote: >> On 3/22/2017 9:25 AM, David Woodhouse wrote: >>> >>> >>> +#ifdef __aarch64__ >>> +/* ARM64 wants to be special and not expose this through /proc >>> like everyone else */ >>> +#undef

Re: [PATCH linux-next] tty: Disable default console blanking interval

2017-03-22 Thread Austin S. Hemmelgarn
On 2017-03-22 09:50, Tim Gardner wrote: BugLink: http://bugs.launchpad.net/bugs/869017 Signed-off-by: Tim Gardner Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Adam Borowski Cc: Scot Doyle

[PATCH v2 13/53] mtd: nand: denali_dt: enable HW_ECC_FIXUP for Altera SOCFPGA variant

2017-03-22 Thread Masahiro Yamada
There are various customizable parameters, so several variants for this IP. A generic compatible like "denali,denali-nand-dt" is useless. Moreover, there are multiple things wrong with this string. (Refer to Rob's comment [1]) The denali_dt.c was split out and this compatible was added by

Re: [PATCH v6 10/14] mmc: sdhci-xenon: Add SoC PHY PAD voltage control

2017-03-22 Thread Adrian Hunter
On 14/02/17 19:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Some SoCs have PHY PAD outside Xenon IP. > PHY PAD voltage should match signalling voltage in use. > > Add generic SoC PHY PAD voltage control interface. > Implement Aramda-3700 SoC PHY PAD voltage control. > >

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas wrote: > Hi Arnd, > > On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: >> This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as >> asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of >> arm64

Re: [PATCHSET for-4.11] cgroup: implement cgroup v2 thread mode

2017-03-22 Thread Peter Zijlstra
On Tue, Mar 21, 2017 at 01:39:58PM +0100, Peter Zijlstra wrote: > > And yes, having to consider views is new and a direct consequence of > this new optional feature. But I don't see how its a problem. > So aside from having (RO) links in thread groups for system controllers, we could also have

Re: [PATCH v7 3/6] i2c: designware: MASTER mode as separated driver

2017-03-22 Thread Luis Oliveira
On 22-Mar-17 14:47, Jarkko Nikula wrote: > On 03/20/17 13:10, Luis Oliveira wrote: >> - The functions related to I2C master mode of operation were transformed >> in a single driver. >> - Common definitions were moved to i2c-designware-core.h >> - The i2c-designware-core is now only a library

[v3 PATCH 4/4] powernv: Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" POWER9 DD1.0 hardware has an issue due to which the SPRs of a thread waking up from stop 0,1,2 with ESL=1 can endup being misplaced in the core. Thus the HSPRG0 of a thread waking up from can contain the paca pointer of its sibling. This patch

[v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently, the powernv cpu-offline function assumes that platform idle states such as stop on POWER9, winkle/sleep/nap on POWER8 are always available. On POWER8, it picks nap as the default state if other deep idle states like sleep/winkle are

Re: [PATCH 03/20] asm-generic/io.h: add PCI config space remap interface

2017-03-22 Thread Lorenzo Pieralisi
Hi Bjorn, Arnd, On Thu, Mar 16, 2017 at 04:12:43PM -0500, Bjorn Helgaas wrote: > [+cc Luis] > > On Mon, Feb 27, 2017 at 03:14:14PM +, Lorenzo Pieralisi wrote: > > The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and > > Posting") mandate non-posted configuration transactions. As

Re: [PATCH 11/17] cris: Use generic pci_mmap_resource_range()

2017-03-22 Thread Jesper Nilsson
On Wed, Mar 22, 2017 at 01:25:25PM +, David Woodhouse wrote: > From: David Woodhouse Acked-by: Jesper Nilsson > Signed-off-by: David Woodhouse > --- > arch/cris/arch-v32/drivers/pci/bios.c | 23 --- >

[PATCH v1 2/5] drivers: watchdog: Add STM32 IWDG driver

2017-03-22 Thread Yannick Fertre
This patch adds IWDG (Independent WatchDoG) support for STM32 platform. Change-Id: Iab218745fc25566f12558fae7f52e2f8c21db74e Signed-off-by: Yannick FERTRE Tested-by: Yannick FERTRE Reviewed-by: Ludovic BARRE ---

[PATCH] clk: tegra: Propagate clk_out_x rate to parent

2017-03-22 Thread Peter De Schrijver
From: Alex Frid Given that externx can only be used as a parent for clk_out_x, it makes sense to propagate requests to make clk_out_x easier to handle. Signed-off-by: Alex Frid Signed-off-by: Peter De Schrijver ---

Re: [PATCH 0/5] netfilter: Clean up tests if NULL returned on failure

2017-03-22 Thread Pablo Neira Ayuso
On Tue, Mar 21, 2017 at 02:14:34PM +0530, simran singhal wrote: > This patch series clean up tests if NULL returned on failure. $ git grep "== NULL" net/netfilter/ | wc -l 461 This is cleaning up just some of them, we still seem to have quite a bit of them. Main problem with this changes is

[PATCH v1 0/5] STM32 Independant watchdog

2017-03-22 Thread Yannick Fertre
Version 1: - Initial commit The purpose of this set of patches is to add a new watchdog driver for stm32f429. This driver was developed and tested on evaluation board stm32429i. Yannick Fertre (5): dt-bindings: Document STM32 IWDG bindings drivers: watchdog: Add STM32 IWDG driver ARM: dts:

Re: [PATCH v2 3/5] mm: use a dedicated workqueue for the free workers

2017-03-22 Thread Aaron Lu
On Wed, Mar 22, 2017 at 05:55:12PM +0900, Minchan Kim wrote: > On Wed, Mar 22, 2017 at 04:41:04PM +0800, Aaron Lu wrote: > > My understanding of the unbound workqueue is that it will create a > > thread pool for each node, versus each CPU as in the bound workqueue > > case, and use threads from

[PATCH v3 1/2] drivers: pwm: pwm-atmel: switch to atomic PWM

2017-03-22 Thread Claudiu Beznea
The currently Atmel PWM controllers supported by this driver could change period or duty factor without channel disable, for regular channels (sama5d3 support this by using period or duty factor update registers, sam9rl support this by writing channel update register and select the corresponding

Re: [PATCH v4 1/6] drm: bridge: dw-hdmi: Extract PHY interrupt setup to a function

2017-03-22 Thread Jose Abreu
Hi Neil, On 21-03-2017 15:12, Neil Armstrong wrote: > From: Laurent Pinchart > > In preparation for adding PHY operations to handle RX SENSE and HPD, > group all the PHY interrupt setup code in a single location and extract > it to a separate function.

Re: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread David Woodhouse
On Wed, 2017-03-22 at 09:54 -0400, Sinan Kaya wrote: > On 3/22/2017 9:25 AM, David Woodhouse wrote: > > > >   > > +#ifdef __aarch64__ > > +/* ARM64 wants to be special and not expose this through /proc > > like everyone else */ > > +#undef HAVE_PCI_MMAP > > +#endif > > + > Where is this ARM64

Re: [PATCH] power: supply: Add driver for TI BQ2416X battery charger

2017-03-22 Thread Wojciech Ziemba
Hi, On 20/03/17 05:58, Sebastian Reichel wrote: > Hi, > > On Tue, Feb 07, 2017 at 01:09:09AM +, Wojciech Ziemba wrote: >> There is interest in adding a Linux driver for TI BQ2416X battery >> charger. > This is a strange sentence to introduce a patch. If there wasn't > you wouldn't have sent a

Re: [PATCH v4 2/6] media: uapi: Add RGB and YUV bus formats for Synopsys HDMI TX Controller

2017-03-22 Thread Jose Abreu
Hi Neil, On 21-03-2017 15:12, Neil Armstrong wrote: > In order to describe the RGB and YUV bus formats used to feed the > Synopsys DesignWare HDMI TX Controller, add missing formats to the > list of Bus Formats. > > Documentation for these formats is added in a separate patch. > > Reviewed-by:

Re: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread Sinan Kaya
On 3/22/2017 9:25 AM, David Woodhouse wrote: > > +#ifdef __aarch64__ > +/* ARM64 wants to be special and not expose this through /proc like everyone > else */ > +#undef HAVE_PCI_MMAP > +#endif > + Where is this ARM64 special requirement coming from? -- Sinan Kaya Qualcomm Datacenter

Re: [PATCH v5 untested] kvm: better MWAIT emulation for guests

2017-03-22 Thread Gabriel L. Somlo
On Wed, Mar 22, 2017 at 03:35:18PM +0200, Michael S. Tsirkin wrote: > On Tue, Mar 21, 2017 at 05:02:25PM -0700, Nadav Amit wrote: > > > > > On Mar 21, 2017, at 3:51 PM, Gabriel Somlo wrote: > > > > > > And I get the exact same results on the MacBookAir4,2 (which exhibits > > >

[PATCH] ipmi: bt-bmc: Add ast2500 compatible string

2017-03-22 Thread Joel Stanley
The ast2500 SoCs contain the same IPMI BT device. Signed-off-by: Joel Stanley --- Documentation/devicetree/bindings/ipmi/aspeed,ast2400-ibt-bmc.txt | 4 +++- drivers/char/ipmi/bt-bmc.c| 1 + 2 files changed, 4 insertions(+), 1 deletion(-)

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Sudeep Holla
On 22/03/17 12:54, Mike Leach wrote: > > > On 21 March 2017 at 15:39, Sudeep Holla > wrote: > [...] > I disagree with this approach. One of the main usefulness of such > self hosted debug feature is to debug issues around features like >

Re: [PATCH v5 untested] kvm: better MWAIT emulation for guests

2017-03-22 Thread Michael S. Tsirkin
On Wed, Mar 22, 2017 at 10:10:05AM -0400, Gabriel L. Somlo wrote: > On Wed, Mar 22, 2017 at 03:35:18PM +0200, Michael S. Tsirkin wrote: > > On Tue, Mar 21, 2017 at 05:02:25PM -0700, Nadav Amit wrote: > > > > > > > On Mar 21, 2017, at 3:51 PM, Gabriel Somlo wrote: > > > > > > >

Re: [PATCH net-next 7/8] vhost_net: try batch dequing from skb array

2017-03-22 Thread Michael S. Tsirkin
On Tue, Mar 21, 2017 at 12:04:46PM +0800, Jason Wang wrote: > We used to dequeue one skb during recvmsg() from skb_array, this could > be inefficient because of the bad cache utilization and spinlock > touching for each packet. This patch tries to batch them by calling > batch dequeuing helpers

[PATCH v2 01/53] mtd: nand: allow to set only one of ECC size and ECC strength from DT

2017-03-22 Thread Masahiro Yamada
Currently, it is valid to specify both "nand-ecc-step-size" and "nand-ecc-strength", but not allowed to set only one of them. This requirement has a conflict with "nand-ecc-maximize"; this flag is used when you want the driver to choose the best ECC strength. If "nand-ecc-maximize" is set,

Re: [PATCH] cpufreq: schedutil: Always trace frequency if it does not change

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 01:52:04PM +0100, Rafael J. Wysocki wrote: > On Wed, Mar 22, 2017 at 10:29 AM, Peter Zijlstra wrote: > > So why not fix the tools? > > Because I can't. > > I just can't go and fix all of the tools binaries that people use out > there and I want

[PATCH] ARM: imx_v6_v7_defconfig: Select SMSC_PHY

2017-03-22 Thread Leonard Crestez
The imx6sl-evk board has a LAN8720A ethernet phy supported by SMSC_PHY. Add this driver to the default imx config since the device is present on one of the evaluation boards. This used to work mostly fine with the generic phy driver but since commit 0878fff1f42c18e448ab5b8b4f6a3eb32365b5b6 that

Re: [REGRESSION next-20170321] acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") causes silent kernel.

2017-03-22 Thread Philipp Zabel
Hi Ralph, On Wed, 2017-03-22 at 15:24 +0100, Ralph Sennhauser wrote: > Hi Philipp, > > Commit acbdad8dd1ab ("serial: 8250_dw: simplify optional reset > handling") causes the kernel to no longer print anything to the serial > console on a Linksys WRT3200ACM (Armada-385, a similar board would > be

Re: [PATCH v1 3/5] ARM: dts: stm32ap: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Alexandre Torgue
Hi On 03/22/2017 02:36 PM, Yannick Fertre wrote: Signed-off-by: Yannick FERTRE --- Please add a commit message, and change commit header as following: ARM: dts: stm32: ... arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1

Re: [PATCH v7 3/6] i2c: designware: MASTER mode as separated driver

2017-03-22 Thread Jarkko Nikula
On 03/20/17 13:10, Luis Oliveira wrote: - The functions related to I2C master mode of operation were transformed in a single driver. - Common definitions were moved to i2c-designware-core.h - The i2c-designware-core is now only a library file, the functions associated are in a source file

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 06:22:16AM -0700, Eric Dumazet wrote: > But admittedly we can replace all these by standard refcount_inc() and > simply provide a CONFIG option to turn off the checks, and let brave > people enable this option. Still brings us back to lacking a real reason to provide that

[RFC PATCH v2 00/41] Scalable Vector Extension (SVE) core support

2017-03-22 Thread Dave Martin
The Scalable Vector Extension (SVE) [1] is an extension to AArch64 which adds extra SIMD functionality and supports much larger vectors. This series implements core Linux support for SVE. Recipents not copied on the whole series can find the rest of the patches in the linux-arm-kernel archives

Re: [PATCH] clockevents: fix syntax errors

2017-03-22 Thread Daniel Lezcano
On Wed, Mar 22, 2017 at 05:32:49PM +0300, Alexander Kochetkov wrote: > The patch fix syntax errors introduced by commit 0c8893c9095d > ("clockevents: Add a clkevt-of mechanism like clksrc-of"). > > Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") > Signed-off-by:

Re: [PATCH v7 3/6] i2c: designware: MASTER mode as separated driver

2017-03-22 Thread Jarkko Nikula
On 03/20/17 13:10, Luis Oliveira wrote: - The functions related to I2C master mode of operation were transformed in a single driver. - Common definitions were moved to i2c-designware-core.h - The i2c-designware-core is now only a library file, the functions associated are in a source file

[v3 PATCH 0/4] powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, This is the third version of the patchset containing the fixes to make CPU-Hotplug working on correctly on POWER9 DD1 systems. The earlier versions can be found here: [v2] : https://lkml.org/lkml/2017/3/20/555 [v1] :

[v3 PATCH 1/4] powernv: Move CPU-Offline idle state invocation from smp.c to idle.c

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Move the piece of code in powernv/smp.c::pnv_smp_cpu_kill_self() which transitions the CPU to the deepest available platform idle state to a new function named pnv_cpu_offline() in powernv/idle.c. The rationale behind this code movement is that

[v3 PATCH 3/4] powernv:idle: Don't override default/deepest directly in kernel

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently during idle-init on power9, if we don't find suitable stop states in the device tree that can be used as the default_stop/deepest_stop, we set stop0 (ESL=1,EC=1) as the default stop state psscr to be used by power9_idle and deepest

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Peter Zijlstra
On Tue, Mar 21, 2017 at 04:51:13PM -0700, Kees Cook wrote: > On Tue, Mar 21, 2017 at 2:23 PM, Eric Dumazet wrote: > > Unfortunately there is no good test simulating real-world workloads, > > which are mostly using TCP flows. > > Sure, but there has to be _something_ that

Re: [PATCH v2] arm64: kaslr: Fix up the kernel image alignment

2017-03-22 Thread Srinivas Ramana
On 03/22/2017 06:10 PM, Will Deacon wrote: On Wed, Mar 22, 2017 at 12:16:24PM +, Ard Biesheuvel wrote: On 22 March 2017 at 11:38, Srinivas Ramana wrote: From: Neeraj Upadhyay If kernel image extends across alignment boundary, existing code

  1   2   3   4   5   6   7   8   9   10   >