Re: [PATCH 1/3] remoteproc: qcom: mdt_loader: add include for sizes

2016-12-02 Thread Bjorn Andersson
On Tue 22 Nov 09:02 PST 2016, Stanimir Varbanov wrote: > Add linux/sizes.h to prevent build failure on non ARM architectures > as: > > CC [M] drivers/remoteproc/qcom_mdt_loader.o > In file included from include/linux/cache.h:4:0, > from include/linux/printk.h:8, >

Re: [PATCH v4] x86/suspend: fix false positive KASAN warning on suspend/resume

2016-12-02 Thread Andrey Ryabinin
On 12/02/2016 08:42 PM, Josh Poimboeuf wrote: > Resuming from a suspend operation is showing a KASAN false positive > warning: > > BUG: KASAN: stack-out-of-bounds in unwind_get_return_address+0x11d/0x130 at > addr 8803867d7878 > Read of size 8 by task pm-suspend/7774 >

Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks

2016-12-02 Thread Xiaolong Zhang
On 二, 11月 29, 2016 at 01:10:54下午 -0800, Stephen Boyd wrote: > On 11/24, Xiaolong Zhang wrote: > > On 三, 11月 23, 2016 at 04:38:33下午 -0800, Stephen Boyd wrote: > > > > > We're really off track now though. Can you please point to some > > > code that needs this change? If we're using DT then we

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-12-02 Thread Ingo Molnar
* Boris Ostrovsky wrote: > > It is tricky to do so safely, because at this stage almost nothing of the C > > execution environment has been set up. Yeah - but we do have a fair amount of early C code though. > I can still give it a try but I'd rather not tie it to

Re: [PATCH] hotplug: make register and unregister notifier API symmetric

2016-12-02 Thread kbuild test robot
Hi Michal, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc7 next-20161202] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michal-Hocko/hotplug-make-register

3.5%LOAN OFFER

2016-12-02 Thread DIRECT LOANS.
APPLY 3.5%LOAN.pdf Description: Adobe PDF document Application Form.pdf Description: Adobe PDF document

Re: [PATCH 1/7] vfs - merge path_is_mountpoint() and path_is_mountpoint_rcu()

2016-12-02 Thread Al Viro
FWIW, I've folded that pile into vfs.git#work.autofs. Problems: * (fixed) __path_is_mountpoint() should _not_ treat NULL from __lookup_mnt() as "nothing's mounted there" until it has checked that mount_lock hadn't been touched - mount --move on something unrelated can race with

[PATCH] remoteproc: Remove "experimental" warning

2016-12-02 Thread Bjorn Andersson
Warning users that remoteproc and it's binary format are under development doesn't serve much of a purpose. Different drivers support different image formats and the resource table has a version field that would need to be bumped when incompatible changes are introduced. So lets drop this warning

Re: [PATCH] hotplug: make register and unregister notifier API symmetric

2016-12-02 Thread kbuild test robot
Hi Michal, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc7 next-20161202] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michal-Hocko/hotplug-make-register

[PATCH] btrfs: limit async_work allocation and worker func duration

2016-12-02 Thread Maxim Patlasov
Problem statement: unprivileged user who has read-write access to more than one btrfs subvolume may easily consume all kernel memory (eventually triggering oom-killer). Reproducer (./mkrmdir below essentially loops over mkdir/rmdir): [root@kteam1 ~]# cat prep.sh DEV=/dev/sdb mkfs.btrfs -f $DEV

[x86/asm] cdfac81296: kernel_BUG_at_arch/x86/kernel/alternative.c

2016-12-02 Thread kernel test robot
FYI, we noticed the following commit: commit: cdfac8129693572ef91b9e7022d6ae07f1c8cc38 ("x86/asm: Rewrite sync_core() to use IRET-to-self") https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/boot in testcase: boot on test machine: qemu-system-i386 -enable-kvm -smp 2 -m 256M

Re: [PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-12-02 Thread Duc Dang
On Fri, Dec 2, 2016 at 3:39 PM, Bjorn Helgaas wrote: > > On Thu, Dec 01, 2016 at 11:08:23PM -0500, Jon Masters wrote: > > Hi Bjorn, Duc, Mark, > > > > I switched my brain to the on mode and went and read some specs, and a few > > tables, so here's my 2 cents on this... > > > >

Re: [PATCH] staging: Replaced BUG_ON with warnings

2016-12-02 Thread Allen
On Sat, Dec 3, 2016 at 12:32 PM, Shilpa Puttegowda wrote: > From: Shilpa P > > Don't crash the Kernel for driver errors > > Signed-off-by: Shilpa P > --- > drivers/staging/media/bcm2048/radio-bcm2048.c | 12 ++-- > 1 file

[PATCH] Fix style issues in kernel/cpu.c

2016-12-02 Thread Thomas Casey
This patch fixes style issues in kernel/cpu.c such as wrapping an 80 character line, calling EXPORT_SYMBOL() immediately after a function is defined, and whitespace and spacing issues. Signed-off-by: Thomas Casey --- kernel/cpu.c | 13 - 1 file changed, 8

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-12-02 Thread hpa
On December 2, 2016 9:49:50 PM PST, Ingo Molnar wrote: > >* Boris Ostrovsky wrote: > >> > It is tricky to do so safely, because at this stage almost nothing >of the C >> > execution environment has been set up. > >Yeah - but we do have a fair amount

[PATCH] staging: Replaced BUG_ON with warnings

2016-12-02 Thread Shilpa Puttegowda
From: Shilpa P Don't crash the Kernel for driver errors Signed-off-by: Shilpa P --- drivers/staging/media/bcm2048/radio-bcm2048.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2] lkdtm: Add tests for LIST_POISON and ZERO_SIZE_PTR

2016-12-02 Thread kbuild test robot
Hi Michael, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.9-rc7] [cannot apply to next-20161202] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michael

Re: [PATCH 1/3] ARM: dts: at91: add dma1 definition to sama5d2

2016-12-02 Thread Alexandre Belloni
On 01/12/2016 at 11:49:47 +0100, Nicolas Ferre wrote : > The sama5d2 SoC has a second DMA controller and can be used just like DMA0. > By default both DMA controllers are configured as "Secure" in > MATRIX_SPSELR so we can use whichever we want in a "single Secure World" > configuration. >

Re: [PATCH 5/7] Documentation: DT: net: cpsw: allow to specify descriptors pool size

2016-12-02 Thread Ivan Khoronzhuk
On Thu, Dec 01, 2016 at 05:34:30PM -0600, Grygorii Strashko wrote: > Add optional property "descs_pool_size" to specify buffer descriptor's > pool size. The "descs_pool_size" should define total number of CPDMA > CPPI descriptors to be used for both ingress/egress packets > processing. If not

Re: [PATCH v2 5/6] x86/xen: Add a Xen-specific sync_core() implementation

2016-12-02 Thread Andrew Cooper
On 02/12/16 00:35, Andy Lutomirski wrote: > On Xen PV, CPUID is likely to trap, and Xen hypercalls aren't > guaranteed to serialize. (Even CPUID isn't *really* guaranteed to > serialize on Xen PV, but, in practice, any trap it generates will > serialize.) Well, Xen will enabled CPUID Faulting

Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses.

2016-12-02 Thread Pavel Machek
Hi! > >Well, if you have a workload that sends and receive packets, it tends > >to work ok, as you do tx_clean() in stmmac_poll(). My workload is not > >like that -- it is "sending packets at 3MB/sec, receiving none". So > >the stmmac_tx_timer() is rescheduled and rescheduled and rescheduled, >

RE: [PATCH] perf/x86: fix event counter update issue

2016-12-02 Thread Odzioba, Lukasz
On Tuesday, November 29, 2016 9:33 PM, Liang, Kan wrote: > Yes, the patch as below fixes the issue on my SLM. It works for me as well. Can we still have it in 4.9? Thanks, Lukas

Re: [PATCH 3/3] pinctrl: sx150x: handle missing 'advanced' reg in sx1504 and sx1505

2016-12-02 Thread Linus Walleij
On Fri, Dec 2, 2016 at 11:51 AM, Peter Rosin wrote: > This fixes a problem where sx150x_regmap_reg_width() returns 8 for the > data register (reg 0) for sx1504 where it should return 4, and return > a correct 8 for sx1505 but for the wrong reason (both chips lack the >

Re: [PATCH v8] mtd: spi-nor: Add support for S3AN spi-nor devices

2016-12-02 Thread Marek Vasut
On 12/02/2016 11:52 AM, Ricardo Ribalda Delgado wrote: > Hi Marek Hi, > On Thu, Dec 1, 2016 at 7:11 PM, Marek Vasut wrote: >> On 12/01/2016 06:52 PM, Ricardo Ribalda Delgado wrote: >>> Hi Marek >> >> Hi, >> >>> Thanks for your review >>> >>> On Thu, Dec 1, 2016 at 5:05

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-12-02 Thread Paul E. McKenney
On Fri, Dec 02, 2016 at 10:37:35AM +0100, Michal Hocko wrote: > On Thu 01-12-16 21:10:01, Boris Zhmurov wrote: > > Michal Hocko 30/11/16 21:25: > > > > >>> Do I get it right that s@cond_resched_rcu_qs@cond_resched@ didn't help? > > >> > > >> I didn't try that. I've tried 4 patches from Paul's

Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses.

2016-12-02 Thread Giuseppe CAVALLARO
On 12/2/2016 1:32 PM, Pavel Machek wrote: Hi! Well, if you have a workload that sends and receive packets, it tends to work ok, as you do tx_clean() in stmmac_poll(). My workload is not like that -- it is "sending packets at 3MB/sec, receiving none". So the stmmac_tx_timer() is rescheduled and

[PATCH 3/8] rtc: add STM32 RTC driver

2016-12-02 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 777 3 files changed, 788 insertions(+) create mode

[PATCH 0/8] Add support for STM32 RTC

2016-12-02 Thread Amelie Delaunay
This patchset adds support for the STM32 Real-Time Clock. This RTC is an independent BCD timer/counter and provides a time-of-day clock/calendar with programmable alarm interrupt. RTC calendar can be driven by three clock sources LSE, LSI or HSE. Amelie Delaunay (8): ARM: dts: stm32: set

[PATCH 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-02 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/rtc/st,stm32-rtc.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644

[PATCH 4/6] net: stmmac: dwmac1000: fix define DMA_BUS_MODE_RPBL_MASK

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel DMA_BUS_MODE_RPBL_MASK is really 6 bits, just like DMA_BUS_MODE_PBL_MASK. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/dwmac1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/6] net: stmmac: simplify the common DMA init API

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel Use struct stmmac_dma_cfg *dma_cfg as an argument rather than using all the struct members as individual arguments. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/common.h| 4 ++--

RE: [RFC] ARC: mm: Restrict definition of pfn_valid() macro for CONFIG_FLATMEM

2016-12-02 Thread Yuriy Kolerov
> -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Wednesday, November 30, 2016 7:55 PM > To: Yuriy Kolerov ; Michal Hocko > > Cc: linux-snps-...@lists.infradead.org; alexey.brod...@synopsys.com; linux- >

[PATCH 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because X2 crystal for LSE is not fitted by default. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f429-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 4/8] ARM: dts: stm32: Add STM32 RTC support for STM32F429 MCU

2016-12-02 Thread Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f429.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index

[PATCH 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts

[PATCH 5/6] net: stmmac: add support for independent DMA pbl for tx/rx

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel GMAC and newer supports independent programmable burst lengths for DMA tx/rx. Add new optional devicetree properties representing this. To be backwards compatible, snps,pbl will still be valid, but snps,txpbl/snps,rxpbl will override the value in

[PATCH 6/6] net: smmac: allow configuring lower pbl values

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel The driver currently always sets the PBLx8/PBLx4 bit, which means that the pbl values configured via the pbl/txpbl/rxpbl DT properties are always multiplied by 8/4 in the hardware. In order to allow the DT to configure lower pbl values, while at the

[PATCH 8/8] ARM: configs: stm32: Add STM32 RTC support in STM32 defconfig

2016-12-02 Thread Amelie Delaunay
This patch adds STM32 RTC support in stm32_defconfig file. Signed-off-by: Amelie Delaunay --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index e7b56d4..71f9787

[PATCH 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429

2016-12-02 Thread Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to the RTC must be 1 MHz. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f429.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

[PATCH 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval

2016-12-02 Thread Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts

[PATCH 1/3] pinctrl: sx150x: access the correct bits in the 4-bit regs of sx150[147]

2016-12-02 Thread Peter Rosin
The code assumes 8-bit or 16-bit width registers, but three of the chips (sx1501/sx1504/sx1507) are 4-bit. So, try to handle 4-bit chips as well, they leave the high part of each register unused. Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 3 ++- 1 file

Re: [PATCH] trace: extend trace_clock to support arch_arm clock counter

2016-12-02 Thread Will Deacon
On Fri, Dec 02, 2016 at 01:44:55PM +0530, Srinivas Ramana wrote: > Extend the trace_clock to support the arch timer cycle > counter so that we can get the monotonic cycle count > in the traces. This will help in correlating the traces with the > timestamps/events in other subsystems in the soc

Re: [PATCH v2] intelrdt: resctrl: recommend locking for resctrlfs

2016-12-02 Thread Thomas Gleixner
On Thu, 1 Dec 2016, Marcelo Tosatti wrote: > > There is a locking problem between different applications > reading/writing to resctrlfs directory at the same time (read the patch > below for details). > > Suggest a standard locking scheme for applications to use. > +To coordinate atomic

[PATCH 2/2] mm: page_alloc: High-order per-cpu page allocator v6

2016-12-02 Thread Mel Gorman
SLUB has been the default small kernel object allocator for quite some time but it is not universally used due to performance concerns and a reliance on high-order pages. The high-order concerns has two major components -- high-order pages are not always available and high-order page allocations

[PATCH 1/2] MAINTAINERS: convert first part to ReST markup

2016-12-02 Thread Mauro Carvalho Chehab
- Fix document section markups; - Use tables; - Use monotonic font for field names; - adjust spaces and blank lines. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 213 ++-- 1 file changed, 136

[PATCH 2/2] MAINTAINERS: add it to the admin-guide

2016-12-02 Thread Mauro Carvalho Chehab
The MAINTAINER's file has different things inside it: - Tips for patch submitters; - Descriptions for the MAINTAINER file entries; - the MAINTAINERS database. As its contents is useful for someone reporting a bug or by a newbie submitting a patch, let's add it to the

[PATCH 0/2] Add maintainers to the admin guide

2016-12-02 Thread Mauro Carvalho Chehab
That's my third attempt to add the MAINTAINERS contents to the admin-guide. On the past approaches, was planning to keep the documentation about what's at the MAINTAINERS file inside it, but that would require running an external script or use some Sphinx extension. This time, I took a much

Re: [PATCH v4] Fixes for compiling with clang

2016-12-02 Thread Michal Marek
On 2016-12-01 19:13, Peter Foley wrote: > On Tue, Nov 29, 2016 at 6:22 AM, Michal Marek wrote: >> Dne 28.11.2016 v 07:44 Peter Foley napsal(a): >> This adds new -Wno-* options also for the gcc case, is there a reason >> for this? Also, the -Wno-missing-field-initializers option

Re: [PATCH 2/3] pinctrl: sx150x: rename 'reg_advance' to 'reg_advanced'

2016-12-02 Thread Linus Walleij
On Fri, Dec 2, 2016 at 11:51 AM, Peter Rosin wrote: > This matches the datasheets and is less confusing since the register > has nothing to with advancing anything. > > Signed-off-by: Peter Rosin Patch applied. Yours, Linus Walleij

Re: [PATCH 1/1] usb: xhci: fix possible wild pointer

2016-12-02 Thread Mathias Nyman
On 02.12.2016 04:29, Lu Baolu wrote: handle_cmd_completion() frees a command structure which might be still referenced by xhci->current_cmd. This might cause problem when xhci->current_cmd is accessed after that. A real-life case could be like this. The host takes a very long time to respond to

[PATCH 2/5] MIPS: Stack unwinding while on IRQ stack

2016-12-02 Thread Matt Redfearn
Within unwind stack, check if the stack pointer being unwound is within the CPU's irq_stack and if so use that page rather than the task's stack page. Signed-off-by: Matt Redfearn --- arch/mips/kernel/process.c | 15 ++- 1 file changed, 14 insertions(+), 1

[PATCH 5/5] MIPS: Select HAVE_IRQ_EXIT_ON_IRQ_STACK

2016-12-02 Thread Matt Redfearn
Since do_IRQ is now invoked on a separate IRQ stack, we select HAVE_IRQ_EXIT_ON_IRQ_STACK so that softirq's may be invoked directly from irq_exit(), rather than requiring do_softirq_own_stack. Signed-off-by: Matt Redfearn --- arch/mips/Kconfig | 1 + 1 file changed, 1

[PATCH 4/5] MIPS: Switch to the irq_stack in interrupts

2016-12-02 Thread Matt Redfearn
When enterring interrupt context via handle_int or except_vec_vi, switch to the irq_stack of the current CPU if it is not already in use. The current stack pointer is masked with the thread size and compared to the base or the irq stack. If it does not match then the stack pointer is set to the

Re: [PATCH] scsi: hisi_sas: fix free'ing in probe and remove

2016-12-02 Thread Quentin Lambert
On 11/29/2016 04:45 PM, John Garry wrote: From: Xiaofei Tan This patch addresses 4 problems in the module probe/remove: - When hisi_sas_shost_alloc() fails after we alloc shost memory, we should free shost memory before the function returns. - When hisi_sas_probe()

Re: [PATCH] HID: intel_ish-hid: use %pUL for uuid formatting

2016-12-02 Thread Jiri Kosina
On Wed, 30 Nov 2016, Rasmus Villemoes wrote: > We have the %pU printf extension for doing exactly this. Saves some > .text, and is likely also a little faster. > > Signed-off-by: Rasmus Villemoes Applied, thanks. -- Jiri Kosina SUSE Labs

Aw: Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses.

2016-12-02 Thread Lino Sanfilippo
Hi, > > There's nothing that protect stmmac_poll() from running concurently > with stmmac_dma_interrupt(), right? > could it be that there is also another issue concerned locking?: The tx completion handler takes the xmit_lock in case that the netif_queue is stopped. This is AFAICS

Re: [PATCH] stmmac: reduce code duplication getting basic descriptors

2016-12-02 Thread Alexandre Torgue
Hi Pavel, On 11/28/2016 01:17 PM, Pavel Machek wrote: Remove code duplication getting basic descriptors. I agree with your patch, it will make code easier to understand. After fix kbuild issue you can add my Acked-by; Regards Alex Signed-off-by: Pavel Machek diff --git

[PATCH 1/3] ARM: dts: STiH410-b2260: Identify the UART RTS line

2016-12-02 Thread Lee Jones
Configure the UART RTS line as a GPIO for manipulation within the UART driver. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-b2260.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts

[PATCH 11/11] megaraid_sas: driver version upgrade

2016-12-02 Thread Sasikumar Chandrasekaran
Upgrade driver version. This patch is depending on patch 10 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h

[PATCH 2/3] serial: st-asc: Provide RTS functionality

2016-12-02 Thread Lee Jones
Until this point, it has not been possible for serial applications to toggle the UART RTS line. This can be useful with certain configurations. For example, when using a Mezzanine on a Linaro 96board, RTS line is used to take the the on-board microcontroller in and out of reset. Signed-off-by:

Re: [PATCH] mmc: sdhci-of-at91: remove bogus MMC_SDHCI_IO_ACCESSORS select

2016-12-02 Thread Adrian Hunter
On 01/12/16 06:05, Masahiro Yamada wrote: > I see no override of read/write callbacks in sdhci-of-at91.c. > > Signed-off-by: Masahiro Yamada Acked-by: Adrian Hunter > --- > > BTW, this config may not be so useful in recent

[PATCH 09/11] megaraid_sas: ldio_outstanding variable is not decremented in completion path

2016-12-02 Thread Sasikumar Chandrasekaran
ldio outstanding variable needs to be decremented in io completion path for iMR dual queue depth This patch is depending on patch 8 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [PATCH 1/2] mm, page_alloc: Keep pcp count and list contents in sync if struct page is corrupted

2016-12-02 Thread Vlastimil Babka
On 12/02/2016 12:29 PM, Mel Gorman wrote: Vlastimil Babka pointed out that commit 479f854a207c ("mm, page_alloc: defer debugging checks of pages allocated from the PCP") will allow the per-cpu list counter to be out of sync with the per-cpu list contents if a struct page is corrupted. The

net/can: warning in raw_setsockopt/__alloc_pages_slowpath

2016-12-02 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. A reproducer is attached. On commit d8e435f3ab6fea2ea324dce72b51dd7761747523 (Nov 26). [ cut here ] WARNING: CPU: 0 PID: 4009 at mm/page_alloc.c:3511 __alloc_pages_slowpath+0x3d4/0x1bf0 Modules

Re: [PATCH v2] x86/suspend: fix false positive KASAN warning on suspend/resume

2016-12-02 Thread Pavel Machek
Hi! > Resuming from a suspend operation is showing a KASAN false positive > warning: > KASAN instrumentation poisons the stack when entering a function and > unpoisons it when exiting the function. However, in the suspend path, > some functions never return, so their stack never gets

Re: [PATCH 0/3] pinctrl: sx150x fixes for the 4-pin chips

2016-12-02 Thread Linus Walleij
On Fri, Dec 2, 2016 at 11:51 AM, Peter Rosin wrote: > I found some more issues when reading the sx150x code. Thanks, I applied all for v4.10. > Only the first patch actually fixes a problem. I didn't want to add a > Fixes tag, since I don't know if commits on the pinctrl devel

Re: [PATCH v3 7/7] ARM: dts: stm32: add stm32 general purpose timer driver in DT

2016-12-02 Thread Lee Jones
On Fri, 02 Dec 2016, Benjamin Gaignard wrote: > Add general purpose timers and it sub-nodes into DT for stm32f4. > Define and enable pwm1 and pwm3 for stm32f469 discovery board > > version 3: > - use "st,stm32-timer-trigger" in DT > > version 2: > - use parameters to describe hardware

[PATCH 1/5] MIPS: Introduce irq_stack

2016-12-02 Thread Matt Redfearn
Allocate a per-cpu irq stack for use within interrupt handlers. Also add a utility function on_irq_stack to determine if a given stack pointer is within the irq stack for that cpu. Signed-off-by: Matt Redfearn --- arch/mips/include/asm/irq.h| 12

Re: [PATCH v3 7/7] ARM: dts: stm32: add stm32 general purpose timer driver in DT

2016-12-02 Thread Alexandre Torgue
Hi Benjamin, On 12/02/2016 11:17 AM, Benjamin Gaignard wrote: Add general purpose timers and it sub-nodes into DT for stm32f4. Define and enable pwm1 and pwm3 for stm32f469 discovery board version 3: - use "st,stm32-timer-trigger" in DT version 2: - use parameters to describe hardware

[PATCH] IB/core: fix unmap_sg argument

2016-12-02 Thread Sebastian Ott
Hi, using dapltest on s390 I ran into the following warning: [ 20.781709] mlx4_core :00:00.0: DMA-API: device driver frees DMA sg list with different entry count [map count=2] [unmap count=1] [ 20.781760] [ cut here ] [ 20.781767] WARNING: CPU: 4 PID: 1063 at

Re: [PATCH v2] zswap: only use CPU notifier when HOTPLUG_CPU=y

2016-12-02 Thread Michal Hocko
On Wed 30-11-16 13:15:16, Yu Zhao wrote: > __unregister_cpu_notifier() only removes registered notifier from its > linked list when CPU hotplug is configured. If we free registered CPU > notifier when HOTPLUG_CPU=n, we corrupt the linked list. > > To fix the problem, we can either use a static

Re: [PATCH v3 5/7] IIO: add bindings for stm32 timer trigger driver

2016-12-02 Thread Lee Jones
On Fri, 02 Dec 2016, Benjamin Gaignard wrote: > Define bindings for stm32 timer trigger > > version 3: > - change file name > - add cross reference with mfd bindings > > version 2: > - only keep one compatible > - add DT parameters to set lists of the triggers: > one list describe the

Re: [PATCH v2] x86/suspend: fix false positive KASAN warning on suspend/resume

2016-12-02 Thread Josh Poimboeuf
On Fri, Dec 02, 2016 at 04:41:09PM +0300, Andrey Ryabinin wrote: > > > On 12/01/2016 11:31 PM, Josh Poimboeuf wrote: > > > arch/x86/kernel/acpi/wakeup_64.S | 16 > > 1 file changed, 16 insertions(+) > > > > diff --git a/arch/x86/kernel/acpi/wakeup_64.S > >

[PATCH 02/11] megaraid_sas: 128 MSIX Support

2016-12-02 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid based Controllers will have the support for 128 MSI-X vectors, resulting in the need to support 128 reply queues This patch is depending on patch 1 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 1 +

[PATCH 04/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detection and IO Coalescing

2016-12-02 Thread Sasikumar Chandrasekaran
Detect sequential IO streams and pass those IOs directly to FW. This patch is depending on patch 3 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 1 + drivers/scsi/megaraid/megaraid_sas_base.c | 40 +++-

[PATCH 00/11] Updates for scsi-next

2016-12-02 Thread Sasikumar Chandrasekaran
Sasikumar Chandrasekaran (11): megaraid_sas: Add new pci device Ids for SAS3.5 Generic Megaraid Controllers megaraid_sas: 128 MSIX Support megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream

[PATCH 1/6] net: stmmac: return error if no DMA configuration is found

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel All drivers except pci glue layer calls stmmac_probe_config_dt. stmmac_probe_config_dt does a kzalloc dma_cfg. pci glue layer does kzalloc dma_cfg explicitly, so all current drivers does a kzalloc dma_cfg. Return an error if no DMA configuration is

[PATCH 3/6] net: stmmac: stmmac_platform: fix parsing of DT binding

2016-12-02 Thread Niklas Cassel
From: Niklas Cassel commit 64c3b252e9fc ("net: stmmac: fixed the pbl setting with DT") changed the parsing of the DT binding. Before 64c3b252e9fc, snps,fixed-burst and snps,mixed-burst were parsed regardless if the property snps,pbl existed or not. After the commit,

Re: 4.9-rc: only 3 CPUs out of 4 used

2016-12-02 Thread Meelis Roos
> > I have a HP ProLiant DL380 G3 server. It has two > > dual-core 32-bit Xeon CPUs. CONFIG_NR_CPUS=4 and has always been. > > Same happens on DL360 G3 - 1U server of the same era. And the next generation of it, DL380 G4, shows the same problem. -- Meelis Roos (mr...@linux.ee)

Re: [PATCH v2 2/5] ia64: reuse append_elf_note() and final_note() functions

2016-12-02 Thread Hari Bathini
Hi Dave, Thanks for the review. On Thursday 01 December 2016 10:26 AM, Dave Young wrote: Hi Hari Personally I like V1 more, but split the patch 2 is easier for ia64 people to reivew. I did basic x86 testing, it runs ok. On 11/25/16 at 05:24pm, Hari Bathini wrote: Get rid of multiple

Re: fsnotify_mark_srcu wtf?

2016-12-02 Thread Amir Goldstein
On Fri, Dec 2, 2016 at 12:48 PM, Jan Kara wrote: > On Fri 02-12-16 09:26:51, Miklos Szeredi wrote: ... >> >> Hmm, how about this: when removing mark from inode, drop refcount. If >> refcount is zero can remove from list. Otherwise mark the mark "dead" >> and leave it on the list.

Re: [RFC PATCH] PCI: designware: add host_init() error handling

2016-12-02 Thread Srinivas Kandagatla
On 02/12/16 10:32, Joao Pinto wrote: Hi Srinivas, Às 11:51 AM de 12/1/2016, Srinivas Kandagatla escreveu: drivers/pci/host/pci-dra7xx.c | 4 +++- drivers/pci/host/pci-exynos.c | 4 +++- drivers/pci/host/pci-imx6.c | 4 +++- drivers/pci/host/pci-keystone.c

Re: [PATCH net v3] tipc: check minimum bearer MTU

2016-12-02 Thread Ying Xue
On 12/02/2016 04:33 PM, Michal Kubecek wrote: Qian Zhang (张谦) reported a potential socket buffer overflow in tipc_msg_build() which is also known as CVE-2016-8632: due to insufficient checks, a buffer overflow can occur if MTU is too short for even tipc headers. As anyone can set device MTU in a

[PATCH 3/3] pinctrl: sx150x: handle missing 'advanced' reg in sx1504 and sx1505

2016-12-02 Thread Peter Rosin
This fixes a problem where sx150x_regmap_reg_width() returns 8 for the data register (reg 0) for sx1504 where it should return 4, and return a correct 8 for sx1505 but for the wrong reason (both chips lack the 'advanced' register). This is not a real problem, since nothing depends on the function

Re: [RESEND PATCH] pinctrl: mt8173: set GPIO16 to usb iddig mode

2016-12-02 Thread Linus Walleij
On Wed, Nov 30, 2016 at 3:21 AM, Chunfeng Yun wrote: > the default mode of GPIO16 pin is gpio, when set EINT16 to > IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be > fixed when set its default mode as usb iddig. > > Signed-off-by: Chunfeng Yun

Re: [RFC, PATCH, v3.9] default exported asm symbols to zero

2016-12-02 Thread Geert Uytterhoeven
On Fri, Dec 2, 2016 at 1:40 PM, Arnd Bergmann wrote: > With binutils-2.16 and before, a weak missing symbol was kept during the 2.26? > final link, and a missing CRC for an export would lead to that CRC > being treated as zero implicitly. With binutils-2.17, the crc 2.27? >

Re: [PATCH 1/3] pinctrl: sx150x: access the correct bits in the 4-bit regs of sx150[147]

2016-12-02 Thread Linus Walleij
On Fri, Dec 2, 2016 at 11:51 AM, Peter Rosin wrote: > The code assumes 8-bit or 16-bit width registers, but three of the > chips (sx1501/sx1504/sx1507) are 4-bit. So, try to handle 4-bit chips as > well, they leave the high part of each register unused. > > Signed-off-by: Peter

[PATCH 06/11] megaraid_sas: Dynamic Raid Map Changes for SAS3.5 Generic Megaraid Controllers

2016-12-02 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid Controllers FW will support new dynamic RaidMap to have different sizes for different number of supported VDs. This patch is depending on patch 5 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 7 +

[PATCH 07/11] megaraid_sas: Add the Support for SAS3.5 Generic Megaraid Controllers Capabilities

2016-12-02 Thread Sasikumar Chandrasekaran
The Megaraid driver has to support the SAS3.5 Generic Megaraid Controllers Firmware functionality. This patch is depending on patch 6 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas_base.c | 53 ++---

[PATCH 03/11] megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers

2016-12-02 Thread Sasikumar Chandrasekaran
An UNMAP command on a PI formatted device will leave the Logical Block Application Tag and Logical Block Reference Tag as all F's (for those LBAs that are unmapped). To avoid IO errors if those LBAs are subsequently read before they are written with valid tag fields, the MPI SCSI IO requests

Re: [PATCH v2 0/7] Tests for sync infrastructure

2016-12-02 Thread Shuah Khan
On 12/01/2016 06:17 PM, Shuah Khan wrote: > On 10/19/2016 06:49 AM, Emilio López wrote: >> Hello everyone, >> >> This is a series of tests to exercise the sync kernel infrastructure. It is >> meant to be a test suite for the work Gustavo has been doing to destage it. >> >> These tests were

[PATCH 10/11] megaraid_sas: Implement the PD Map support for SAS3.5 Generic Megaraid Controllers

2016-12-02 Thread Sasikumar Chandrasekaran
Update Linux driver to use new pdTargetId field for JBOD target ID This patch is depending on patch 9 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 106 +--- drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH 08/11] megaraid_sas: Enable or Disable Fast path based on the PCI Threshold Bandwidth

2016-12-02 Thread Sasikumar Chandrasekaran
Large SEQ IO workload should sent as non fast path commands This patch is depending on patch 7 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 8 + drivers/scsi/megaraid/megaraid_sas_base.c | 49

Re: [PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-02 Thread Lee Jones
On Fri, 02 Dec 2016, Benjamin Gaignard wrote: > Define bindings for pwm-stm32 > > version 2: > - use parameters instead of compatible of handle the hardware configuration > > Signed-off-by: Benjamin Gaignard > --- > .../devicetree/bindings/pwm/pwm-stm32.txt

[tip:locking/core] locking/rtmutex: Explain locking rules for rt_mutex_proxy_unlock()/init_proxy_locked()

2016-12-02 Thread tip-bot for Thomas Gleixner
Commit-ID: 84d82ec5b9046ecdf16031d3e93a66ef50257402 Gitweb: http://git.kernel.org/tip/84d82ec5b9046ecdf16031d3e93a66ef50257402 Author: Thomas Gleixner AuthorDate: Wed, 30 Nov 2016 21:04:45 + Committer: Ingo Molnar CommitDate: Fri, 2 Dec 2016

[PATCH 0/2] High-order per-cpu cache v6

2016-12-02 Thread Mel Gorman
Changelog since v5 o Changelog clarification in patch 1 o Additional comments in patch 2 Changelog since v4 o Avoid pcp->count getting out of sync if struct page gets corrupted Changelog since v3 o Allow high-order atomic allocations to use reserves Changelog since v2 o Correct initialisation

[PATCH 1/2] mm, page_alloc: Keep pcp count and list contents in sync if struct page is corrupted

2016-12-02 Thread Mel Gorman
Vlastimil Babka pointed out that commit 479f854a207c ("mm, page_alloc: defer debugging checks of pages allocated from the PCP") will allow the per-cpu list counter to be out of sync with the per-cpu list contents if a struct page is corrupted. The consequence is an infinite loop if the per-cpu

Re: [PATCH v2] ACPI / APEI: Fix NMI notification handling

2016-12-02 Thread Fu Wei
Hi Rafael, On 2 December 2016 at 07:12, Rafael J. Wysocki wrote: > On Thursday, December 01, 2016 11:47:17 PM Borislav Petkov wrote: >> On Thu, Dec 01, 2016 at 11:29:45PM +0100, Rafael J. Wysocki wrote: >> > Well, there's another ARM-related patch touching APEI. >> > >> > I

Re: [PATCH 1/2] Add crypto driver support for some MediaTek chips

2016-12-02 Thread mtk09577
Hello, On Fri, 2016-12-02 at 09:18 +0100, Corentin Labbe wrote: > Hello > > I have some minor comment inline > > On Fri, Dec 02, 2016 at 11:26:44AM +0800, Ryder Lee wrote: > > This adds support for the MediaTek hardware accelerator on > > mt7623/mt2701/mt8521p SoC. > > > > This driver

epoll_wait inaccurate timeout

2016-12-02 Thread Dmitry Banschikov
Hi! I have a problem caused by inaccurate timeouts in epoll_wait(2). Here are some parts of strace -tt output: 22578 09:33:46.959791 epoll_wait(5, 22578 09:33:50.010794 <... epoll_wait resumed> [], 128, 1498) = 0 ... 22034 09:35:07.686896 epoll_wait(5, 22034 09:35:09.482526 <... epoll_wait

  1   2   3   4   5   6   7   8   9   10   >