[PATCH v2 08/51] block: comment on bio_alloc_pages()

2017-06-26 Thread Ming Lei
This patch adds comment on usage of bio_alloc_pages(). Signed-off-by: Ming Lei --- block/bio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index 89a51bd49ab7..a5db117e8dfa 100644 --- a/block/bio.c +++ b/block/bio.c @@

Re: [PATCH 6/6] mm, migration: do not trigger OOM killer when migrating memory

2017-06-26 Thread Vlastimil Babka
On 06/23/2017 10:53 AM, Michal Hocko wrote: > From: Michal Hocko > > Page migration (for memory hotplug, soft_offline_page or mbind) needs > to allocate a new memory. This can trigger an oom killer if the target > memory is depleated. Although quite unlikely, still possible,

[PATCH v2 07/51] bcache: comment on direct access to bvec table

2017-06-26 Thread Ming Lei
Looks all are safe after multipage bvec is supported. Cc: linux-bca...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/md/bcache/btree.c | 1 + drivers/md/bcache/super.c | 6 ++ drivers/md/bcache/util.c | 7 +++ 3 files changed, 14 insertions(+) diff --git

[PATCH v2 06/51] f2fs: f2fs_read_end_io: comment on direct access to bvec table

2017-06-26 Thread Ming Lei
Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net Signed-off-by: Ming Lei --- fs/f2fs/data.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index

[PATCH v2 05/51] fs/buffer: comment on direct access to bvec table

2017-06-26 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/buffer.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 4d5d03b42e11..1910f539770b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3052,8 +3052,13 @@ static void

[PATCH v2 44/51] gfs2: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: Steven Whitehouse Cc: Bob Peterson Cc: cluster-de...@redhat.com Signed-off-by: Ming Lei --- fs/gfs2/lops.c| 3 ++- fs/gfs2/meta_io.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/gfs2/lops.c

[PATCH v2 40/51] fs/block: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/block_dev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index a57c26bcb970..d82e43bd8e82 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -209,6 +209,7 @@

[PATCH v2 41/51] fs/iomap: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/iomap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/iomap.c b/fs/iomap.c index c71a64b97fba..4319284c1fbd 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -696,8 +696,9 @@ static void iomap_dio_bio_end_io(struct bio

[PATCH v2 46/51] exofs: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: Boaz Harrosh Signed-off-by: Ming Lei --- fs/exofs/ore.c | 3 ++- fs/exofs/ore_raid.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c index 8bb72807e70d..38a7d8bfdd4c 100644 ---

[PATCH v2 43/51] xfs: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org Signed-off-by: Ming Lei --- fs/xfs/xfs_aops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 11ef989b8629..621efe71c70a 100644 ---

[PATCH v2 42/51] ext4: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc: linux-e...@vger.kernel.org Signed-off-by: Ming Lei --- fs/ext4/page-io.c | 3 ++- fs/ext4/readpage.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v4] crypto: sun4i-ss: support the Security System PRNG

2017-06-26 Thread Frans Klaver
Hi, On Mon, Jun 26, 2017 at 2:20 PM, Corentin Labbe wrote: > The Security System have a PRNG, this patch add support for it via > crypto_rng. s,have,has, s,add,adds, > > Signed-off-by: Corentin Labbe > --- > > Changes since v3 (note: the

Re: [PATCH] ARM: dts: sun7i: Add A20 LCD0 RGB888 pins

2017-06-26 Thread Jonathan Liu
Hi Emmanuel, On 26 June 2017 at 22:45, Emmanuel Vadot wrote: > On Mon, 26 Jun 2017 22:42:49 +1000 > Jonathan Liu wrote: > >> The LCD0 controller on the A20 can do RGB output up to 8 bits per >> channel. Add the pins for RGB888 output. >> >>

[PATCH 09/20] serial: stm32: fix end of transfer

2017-06-26 Thread Bich HEMON
From: Bich Hemon tx_empty: poll TC (PIO mode) or DMAT (DMA mode) bit. flush_buffer: terminate on going DMA tx transfer. remove: terminate DMA rx and tx transfers. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 37

[PATCH 11/20] serial: stm32: add RTS support

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 13fc520..a7401b0 100644 ---

[PATCH 20/20] serial: stm32: fix rx interrupt handling in startup

2017-06-26 Thread Bich HEMON
From: Bich Hemon When stm32 dma is used, Data register has to be read in order to clear the RXNE interrupt in case we received data before usart probe. Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 11 ++- 1 file changed, 10

[PATCH] net/mlx4: fix spelling mistake: "coalesing" -> "coalescing"

2017-06-26 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in en_dbg debug message Signed-off-by: Colin Ian King --- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2] x86/xen: allow userspace access during hypercalls

2017-06-26 Thread Juergen Groß
On 06/26/2017 02:49 PM, Marek Marczykowski-Górecki wrote: Userspace application can do a hypercall through /dev/xen/privcmd, and some for some hypercalls argument is a pointers to user-provided structure. When SMAP is supported and enabled, hypervisor can't access. So, lets allow it. The same

[PATCH 12/20] serial: stm32: fix last_res value

2017-06-26 Thread Bich HEMON
From: Bich Hemon Set last_res value in each port Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 6 +++--- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 3/4] powerpc: Reduce ELF_ET_DYN_BASE

2017-06-26 Thread Michael Ellerman
Kees Cook writes: > On Fri, Jun 23, 2017 at 12:01 AM, Michael Ellerman > wrote: >> Kees Cook writes: >> >>> Now that explicitly executed loaders are loaded in the mmap region, >>> position PIE binaries lower in the address

Re: [PATCH net-next v2 4/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_changelink

2017-06-26 Thread David Ahern
On 6/26/17 2:43 AM, Matthias Schiffer wrote: > On 06/26/2017 06:08 AM, David Ahern wrote: >> On 6/25/17 10:04 PM, David Ahern wrote: >>> On 6/25/17 3:56 PM, Matthias Schiffer wrote: Add support for extended error reporting. Signed-off-by: Matthias Schiffer

Re: [PATCH net-next v2 4/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_changelink

2017-06-26 Thread David Ahern
On 6/26/17 7:45 AM, Matthias Schiffer wrote: > > Please read my patch again, I *am* changing br_port_slave_changelink to > match the new signature (this is the net/bridge/br_netlink.c change > appearing in the diffstat). > Hmmm right you are. sorry for the confusion.

Re: [patch-rt v2] rtmutex: Fix lock stealing logic

2017-06-26 Thread Sebastian Andrzej Siewior
On 2017-06-23 12:07:38 [+0200], Mike Galbraith wrote: > On Fri, 2017-06-23 at 09:37 +0200, Mike Galbraith wrote: > > V2 changes: > >   - beautification (ymmv) > >   - enable lock stealing when waiter is queued Applied. > (V3 s/steal/claim) Sebastian

Re: [PATCH v11 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-06-26 Thread Guodong Xu
Hi, Bjorn May I know what other comments you may have about this patchset? Do you need us to do any further clean up? If not, would you please pick patch 2 and 3 of v11 into your git tree for -next? Thank you for your time. Patch 1 of v11 has been picked up by platform maintainer, Wei Xu. I can

[tip:irq/core] genirq: Avoid unnecessary low level irq function calls

2017-06-26 Thread tip-bot for Jeffy Chen
Commit-ID: bf22ff45bed664aefb5c4e43029057a199b7070c Gitweb: http://git.kernel.org/tip/bf22ff45bed664aefb5c4e43029057a199b7070c Author: Jeffy Chen AuthorDate: Mon, 26 Jun 2017 19:33:34 +0800 Committer: Thomas Gleixner CommitDate: Mon, 26

Re: 答复: [RFC PATCH] char: misc: Init misc->list in a safe way

2017-06-26 Thread Arnd Bergmann
On Mon, Jun 26, 2017 at 4:00 PM, Zhongping Tan (谭中平) wrote: > hi Arnd: > Another way to describe this question, misc_register shouldn't modify the > member of the miscdevice especially when return error. Let the caller to > ensure the list have been initialized, >

Re: [RFC 06/55] KVM: arm64: Add EL2 execution context for nesting

2017-06-26 Thread Jintack Lim
Hi Christoffer, On Wed, Feb 22, 2017 at 6:10 AM, Christoffer Dall wrote: > On Mon, Jan 09, 2017 at 01:24:02AM -0500, Jintack Lim wrote: >> With the nested virtualization support, the context of the guest >> includes EL2 register states. The host manages a set of virtual EL2 >>

[PATCH 2/3] LSM: Convert security_hook_heads into explicit array of struct list_head

2017-06-26 Thread Igor Stoppa
From: Tetsuo Handa Commit 3dfc9b02864b19f4 ("LSM: Initialize security_hook_heads upon registration.") treats "struct security_hook_heads" as an implicit array of "struct list_head" so that we can eliminate code for static initialization. Although we haven't

[PATCH 3/3] Make LSM Writable Hooks a command line option

2017-06-26 Thread Igor Stoppa
From: Igor Stoppa This patch shows how it is possible to take advantage of pmalloc: instead of using the build-time option __lsm_ro_after_init, to decide if it is possible to keep the hooks modifiable, now this becomes a boot-time decision, based on the kernel command

Re: [PATCH 3/4] sched,numa: implement numa node level wake_affine

2017-06-26 Thread Peter Zijlstra
On Fri, Jun 23, 2017 at 12:55:29PM -0400, r...@redhat.com wrote: > From: Rik van Riel > > Since select_idle_sibling can place a task anywhere on a socket, > comparing loads between individual CPU cores makes no real sense > for deciding whether to do an affine wakeup across

Re: BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 !//RE: kernel BUG at kernel/locking/rtmutex.c:1027

2017-06-26 Thread Sebastian Andrzej Siewior
On 2017-06-26 10:24:18 [-0400], Steven Rostedt wrote: > > CPU: 17 PID: 1738811 Comm: ip Not tainted 4.4.70-thinkcloud-nfv #1 > > Hardware name: LENOVO System x3650 M5: -[8871AC1]-/01GR174, BIOS > > -[TCE124M-2.10]- 06/23/2016 > > task: 881cda2c27c0 ti: 881ea0538000 task.ti:

RE: [PATCH 1/2] fsl/fman: propagate dma_ops

2017-06-26 Thread Madalin-cristian Bucur
> -Original Message- > From: geert.uytterhoe...@gmail.com [mailto:geert.uytterhoe...@gmail.com] > On Behalf Of Geert Uytterhoeven > Sent: Monday, June 26, 2017 10:49 AM > To: Madalin-cristian Bucur > Cc: net...@vger.kernel.org; David S. Miller ;

Re: [PATCH 1/1] futex: remove duplicated code and fix UB

2017-06-26 Thread Jiri Slaby
On 06/23/2017, 09:51 AM, Thomas Gleixner wrote: > On Wed, 21 Jun 2017, Jiri Slaby wrote: >> diff --git a/arch/arm64/include/asm/futex.h b/arch/arm64/include/asm/futex.h >> index f32b42e8725d..5bb2fd4674e7 100644 >> --- a/arch/arm64/include/asm/futex.h >> +++ b/arch/arm64/include/asm/futex.h >> @@

[PATCH v2 34/51] block: convert to singe/multi page version of bio_for_each_segment_all()

2017-06-26 Thread Ming Lei
Signed-off-by: Ming Lei --- block/bio.c | 17 +++-- block/blk-zoned.c | 5 +++-- block/bounce.c| 6 -- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/block/bio.c b/block/bio.c index 22e5deec7ec7..c460888f14b5 100644 ---

[PATCH v2 35/51] bcache: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: linux-bca...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/md/bcache/btree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index 3da595ae565b..74cbb7387dc5 100644 ---

[PATCH v2 38/51] dm-crypt: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: Mike Snitzer Cc:dm-de...@redhat.com Signed-off-by: Ming Lei --- drivers/md/dm-crypt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 664ba3504f48..0f2f44a73a32 100644 ---

[PATCH v2 36/51] md: raid1: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Cc: Shaohua Li Cc: linux-r...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/md/raid1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 835c42396861..ca4b9ff8d39b 100644 ---

[PATCH v2 39/51] fs/mpage: convert to bio_for_each_segment_all_sp()

2017-06-26 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/mpage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/mpage.c b/fs/mpage.c index 0da38f401564..bdb4692ae30c 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -46,9 +46,10 @@ static void mpage_end_io(struct bio *bio) {

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

2017-06-26 Thread Michal Hocko
On Mon 26-06-17 14:17:30, Vlastimil Babka wrote: > On 06/26/2017 02:14 PM, Michal Hocko wrote: > > On Mon 26-06-17 13:45:19, Vlastimil Babka wrote: > >> On 06/23/2017 10:53 AM, Michal Hocko wrote: > > [...] > >>> - GFP_KERNEL - both background and direct reclaim are allowed and the > >>>

[PATCH 19/20] serial: stm32: add dma rx callback

2017-06-26 Thread Bich HEMON
From: Bich Hemon Initial usart driver behavior consists in looking for chars received in dma rx buffer as soon as it gets the interrupt telling that we received some data (RXNE or RTO). When stm32 dma is used combined with mdma, meaning that the third dmamux property in the

[PATCH 18/20] serial: stm32: update dma buffers length

2017-06-26 Thread Bich HEMON
From: Bich Hemon When stm32 dma is used alone for rx, meaning that the third dmamux property in the device tree is 0x0, then the received data are accumulated in dma internal fifo until it is full before being transferred to the memory. This dma fifo is 16 bytes wide on

[PATCH 00/20] Update STM32 usart driver

2017-06-26 Thread Bich HEMON
From: Bich Hemon This patchset updates the stm32 usart driver. It mainly adds support for fifo, dma, debugfs anf fixes various bugs. Bich Hemon (20): serial: stm32: adding fifo support dt-bindings: serial: each stm32 usart needs an alias serial: stm32: fix multi ports

[PATCH 15/20] serial: stm32: Add wakeup mechanism

2017-06-26 Thread Bich HEMON
From: Bich Hemon Add support for wake-up from low power modes. This extends stm32f7. Introduce new compatible for stm32h7 to manage wake-up capability. Signed-off-by: Fabrice Gasnier --- drivers/tty/serial/stm32-usart.c | 90

[PATCH 16/20] serial: stm32: fix fifo usage

2017-06-26 Thread Bich HEMON
From: Bich Hemon Fifo is available starting with stm32h7. Add has_fifo flag to use fifo only when possible. Signed-off-by: Fabrice Gasnier --- drivers/tty/serial/stm32-usart.c | 9 - drivers/tty/serial/stm32-usart.h | 2 ++ 2 files changed,

[PATCH 10/20] serial: stm32: fix dma receive

2017-06-26 Thread Bich HEMON
From: Bich Hemon Two improvements for dma receive in this patch: - usart dma receiver (DMAR) is disabled during receive - dma receive buffer is sync-ed for cpu before reading and given back to the dma just after Signed-off-by: Gerald Baeza ---

[PATCH 17/20] dt-bindings: serial: stm32: add dma using note

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Gerald Baeza --- .../devicetree/bindings/serial/st,stm32-usart.txt | 22 ++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt

[RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-06-26 Thread Michal Hocko
From: Michal Hocko David has noticed that the oom killer might kill additional tasks while the existing victim hasn't terminated yet because the oom_reaper marks the curent victim MMF_OOM_SKIP too early when mm->mm_users dropped down to 0. The race is as follows oom_reap_task

[PATCH v3 0/2] mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables

2017-06-26 Thread Cyrille Pitchen
Hi all, a new version of the SFDP patch based on next-20170626 tested on sama5d2 xplained with the following QSPI memories: Macronix - mx25l25673g Spansion/Cypress - s25fl164 - s25fl127 - s25fl512 Winbond - w25q256 - w25m512 SST - sst26vf064 Micron - m25q128 - n25q128a - m25ql512 - m25ql01g

[PATCH] checkpatch: Improve macro reuse test

2017-06-26 Thread Joe Perches
checkpatch reports a false positive when using token pasting argument multiple times in a macro. Fix it. Miscellanea: o Make the $tmp variable name used in the macro argument tests a bit more descriptive Reported-by: Johannes Berg Signed-off-by: Joe Perches

[PATCH] scsi: hpsa: fix spelling mistake: "encrypytion" -> "encryption"

2017-06-26 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_info message Signed-off-by: Colin Ian King --- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c

Re: [PATCH v5] trace: ras: add ARM processor error information trace event

2017-06-26 Thread Steven Rostedt
On Sat, 24 Jun 2017 11:38:23 +0800 Xie XiuQi wrote: > diff --git a/include/linux/cper.h b/include/linux/cper.h > index 4c671fc..17546bf 100644 > --- a/include/linux/cper.h > +++ b/include/linux/cper.h > @@ -275,6 +275,11 @@ enum { > #define CPER_ARM_INFO_FLAGS_PROPAGATED

Re: gcc 4.6.3 miscompile on ppc32 (was Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3)

2017-06-26 Thread Michael Ellerman
Al Viro writes: > On Sun, Jun 25, 2017 at 04:44:09PM -0500, Segher Boessenkool wrote: > >> Do you have a short stand-alone testcase? 4.6 is ancient, of course, but >> the actual problem may still exist in more recent compilers (if it _is_ >> a compiler problem; if it's

Re: [PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-26 Thread Mika Westerberg
On Fri, Jun 23, 2017 at 03:05:57AM +0200, Rafael J. Wysocki wrote: > On Thursday, June 22, 2017 04:38:49 PM Rafael J. Wysocki wrote: > > On Thursday, June 22, 2017 10:39:37 AM Mika Westerberg wrote: > > > On Mon, Jun 19, 2017 at 11:33:52PM +0200, Rafael J. Wysocki wrote: > > > > -#ifdef

Re: [PATCH v2 15/17] MIPS: JZ4770: Workaround for corrupted DMA transfers

2017-06-26 Thread Paul Cercueil
Hi, Le 2017-06-22 09:21, Marcin Nowakowski a écrit : Hi Paul, Maarten, On 20.06.2017 17:18, Paul Cercueil wrote: From: Maarten ter Huurne We have seen MMC DMA transfers read corrupted data from SDRAM when a burst interval ends at physical address 0x1000. To avoid

Re: BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 !//RE: kernel BUG at kernel/locking/rtmutex.c:1027

2017-06-26 Thread Steven Rostedt
On Mon, 26 Jun 2017 06:33:29 + Feng Feng24 Liu wrote: > Hi, dear RT experts > Thanks a lot! > I update our kernel to 4.4.70-rt83 as your suggestion. The incorrect > deadlock detection problem has been fixed in this version. > > But I found

[PATCH 1/5] [media] rockchip/rga: v4l2 m2m support

2017-06-26 Thread Jacob Chen
Rockchip RGA is a separate 2D raster graphic acceleration unit. It accelerates 2D graphics operations, such as point/line drawing, image scaling, rotation, BitBLT, alpha blending and image blur/sharpness. The drvier is mostly based on s5p-g2d v4l2 m2m driver. And supports various operations from

Re: [PATCH 1/2] dt-bindings: net: mediatek: update documentation for reset signals

2017-06-26 Thread Rob Herring
On Wed, Jun 21, 2017 at 03:49:51PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Since there's no user for the property reset inside the ethernet node > for current supported MediaTek SoCs and boards, so it should be safe to > update reset property in the

Re: Directly accessing serial ports from drivers w/o TTYs ?

2017-06-26 Thread Alan Cox
On Mon, 26 Jun 2017 00:43:12 +0200 "Enrico Weigelt, metux IT consult" wrote: > Hi folks, > > > is there already a way for accessing serial ports from drivers, > w/o having to go through the TTY subsystem ? > > Serdev seems provide a connection between arbitrary TTYs

[PATCH 0/5] Add Rockchip RGA V4l2 support

2017-06-26 Thread Jacob Chen
This patch series add a v4l2 m2m drvier for rockchip RGA direct rendering based 2d graphics acceleration module. Before, my colleague yakir have write a drm RGA drvier and send it to the lists. http://lists.infradead.org/pipermail/linux-arm-kernel/2016-March/416769.html I have been asked to

Re: [PATCH v1 6/6] [media] ov9650: add support of OV9655 variant

2017-06-26 Thread Hugues FRUCHET
On 06/26/2017 08:03 AM, H. Nikolaus Schaller wrote: > >> Am 22.06.2017 um 17:05 schrieb Hugues Fruchet : >> >> Add a first support of OV9655 variant. >> Because of register set slightly different from OV9650/9652, >> not all of the driver features are supported

[PATCH v2 20/51] block: introduce multipage/single page bvec helpers

2017-06-26 Thread Ming Lei
This patch introduces helpers which are suffixed with _mp and _sp for the multipage bvec/segment support. The helpers with _mp suffix are the interfaces for treating one bvec/segment as real multipage one, for example, .bv_len is the total length of the multipage segment. The helpers with _sp

[PATCH v2 18/51] block: bounce: don't access bio->bi_io_vec in copy_to_high_bio_irq

2017-06-26 Thread Ming Lei
As we need to support multipage bvecs, so don't access bio->bi_io_vec in copy_to_high_bio_irq(), and just use the standard iterator to do that. Signed-off-by: Ming Lei --- block/bounce.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git

[PATCH v2 22/51] block: introduce bio_for_each_segment_mp()

2017-06-26 Thread Ming Lei
This helper is used to iterate multipage bvec and it is required in bio_clone(). Signed-off-by: Ming Lei --- include/linux/bio.h | 39 ++- include/linux/bvec.h | 37 - 2 files changed, 66

[PATCH 03/20] serial: stm32: fix multi ports management

2017-06-26 Thread Bich HEMON
From: Bich Hemon alias definition in the device tree is mandatory for each port. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 6 -- drivers/tty/serial/stm32-usart.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff

[PATCH 13/20] serial: stm32: fix error handling in probe

2017-06-26 Thread Bich HEMON
From: Bich Hemon Signed-off-by: Fabrice Gasnier --- drivers/tty/serial/stm32-usart.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index

[PATCH 07/20] serial: stm32: less messages on dma alloc error

2017-06-26 Thread Bich HEMON
From: Bich Hemon Just display one info (instead of two) in the log buffer when there is no dma. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH v2 3/3] dmaengine: qcom: bam_dma: add command descriptor flag

2017-06-26 Thread Abhishek Sahu
If DMA_PREP_CMD flag is passed in prep_slave_sg then peripheral driver has passed the data is in BAM command descriptor format and BAM driver should set CMD bit for each of the HW descriptors. Signed-off-by: Abhishek Sahu --- drivers/dma/qcom/bam_dma.c | 6 +- 1 file

[PATCH 14/20] dt-bindings: serial: document option wake-up interrupt for STM32 USART

2017-06-26 Thread Bich HEMON
From: Bich Hemon Introduce new compatibles for "st,stm32h7-usart" and "st,stm32h7-uart". This new compatible allow to use optional wake-up interrupt. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/serial/st,stm32-usart.txt| 20

[PATCH v2] x86/xen: allow userspace access during hypercalls

2017-06-26 Thread Marek Marczykowski-Górecki
Userspace application can do a hypercall through /dev/xen/privcmd, and some for some hypercalls argument is a pointers to user-provided structure. When SMAP is supported and enabled, hypervisor can't access. So, lets allow it. The same applies to HYPERVISOR_dm_op, where additionally privcmd

[PATCH v2 2/3] dmaengine: qcom: bam_dma: wrapper functions for command descriptor

2017-06-26 Thread Abhishek Sahu
QCOM BAM also supports command descriptor which allows the SW to create descriptors of type command which does not generate any data transmissions but configures registers in the peripheral. In command descriptor the 32bit address point to the start of the command block which holds the command

[PATCH 05/20] serial: stm32: add debugfs

2017-06-26 Thread Bich HEMON
From: Bich Hemon Adding debugfs infrastructure and one virtual file allowing to change fifoen value. This value change is taken into account on next port setup or enabling. Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 49

[PATCH 02/20] dt-bindings: serial: each stm32 usart needs an alias

2017-06-26 Thread Bich HEMON
From: Bich Hemon Each usart controller should have an alias correctly numbered in "aliases" node. Signed-off-by: Gerald Baeza --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 13 +++-- 1 file changed, 11 insertions(+), 2

[PATCH 06/20] serial: stm32: fix pio transmit timeout

2017-06-26 Thread Bich HEMON
From: Bich Hemon 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c

[PATCH v2 0/3] Support for QCOM BAM DMA command descriptor

2017-06-26 Thread Abhishek Sahu
v2: 1. Added DMA_PREP_CMD flag and used the same for BAM DMA command descriptor 2. Removed custom mapping API patches v1: https://www.spinics.net/lists/dmaengine/msg12009.html These patches mainly add the support for QCOM BAM command descriptor implementing BAM DMA support for some QCOM

[PATCHv2] ARM: dts: imx53: Add GE Healthcare PPD

2017-06-26 Thread Sebastian Reichel
From: Fabien Lahoudere PPD is a product from GE Healthcare to monitor vital biometric signals. Signed-off-by: Fabien Lahoudere Signed-off-by: Sebastian Reichel --- Hi, Changes since

RE: [Xen-devel] [PATCH] x86/xen: allow userspace access during hypercalls

2017-06-26 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Marek Marczykowski-Górecki > Sent: 26 June 2017 13:45 > To: Juergen Groß > Cc: Andrew Cooper ; x...@kernel.org; linux- > ker...@vger.kernel.org;

Re: [PATCH v4] mmc: dw_mmc-k3: add sd support for hi3660

2017-06-26 Thread Guodong Xu
Hi, Ulf, Jaehoon Sorry to disturb. Would it be possible to get some of your bandwidth on this patch? Would you please give us your opinion? Thank you. -Guodong On Tue, Jun 13, 2017 at 3:25 PM, liwei wrote: > Add sd card support for hi3660 soc > > Signed-off-by: Li Wei

Re: [PATCH v5 4/7] drivers: dma-coherent: Introduce default DMA pool

2017-06-26 Thread Vladimir Murzin
On 26/06/17 10:42, Christoph Hellwig wrote: > On Tue, Jun 20, 2017 at 03:24:21PM +0100, Robin Murphy wrote: >> True, but the case here is where we need a special piece of coherent >> memory for *all* devices, and it was more complicated *not* to reuse the >> existing infrastructure. This would

Re: [PATCH] x86/mm/hotplug: fix BUG_ON() after hotremove by not freeing pud v3

2017-06-26 Thread Jerome Glisse
On Mon, Jun 26, 2017 at 11:43:04AM +0200, Ingo Molnar wrote: > > * jgli...@redhat.com wrote: > > > From: Jérôme Glisse > > > > With commit af2cf278ef4f we no longer free pud so that we do not > > have synchronize all pgd on hotremove/vfree. But the new

[PATCH 1/2] mfd: da9052: fix manual ADC read after timed out read

2017-06-26 Thread Sebastian Reichel
It is possible that under heavy system load, the counter in the completion struct, used for waiting for end of AD conversion, gets incremented twice. To make sure the driver recovers from this situation, the completion struct should be reinitialized. Signed-off-by: Sebastian Reichel

[PATCH 2/2] hwmon: da9052: add support for TSI channel

2017-06-26 Thread Sebastian Reichel
TSI channel has a 4 channel mux connected to it and is normally used for touchscreen support. The hardware may alternatively use it as general purpose adc. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/mfd/da9052-i2c.txt | 8 +

[PATCH 0/2] DA9052 hardware monitoring improvements

2017-06-26 Thread Sebastian Reichel
Hi, GE Healthcare's PPD [0] uses DA9053's touchscreen pins for hardware monitoring purposes. This adds support for the feature and fixes a bug, which came up during stress-testing of the driver. [0] https://patchwork.kernel.org/patch/9809681/ -- Sebastian Sebastian Reichel (2): mfd: da9052:

Re: [f2fs-dev] [PATCH 2/2] f2fs: report # of free inodes more precisely

2017-06-26 Thread Jaegeuk Kim
On 06/26, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/6/25 0:25, Jaegeuk Kim wrote: > > If the partition is small, we don't need to report total # of inodes > > including > > hidden free nodes. > > > > Signed-off-by: Jaegeuk Kim > > --- > > fs/f2fs/super.c | 14 +++---

Re: [PATCH] x86: xen: remove unnecessary variable in xen_foreach_remap_area()

2017-06-26 Thread Juergen Groß
On 06/24/2017 12:01 AM, Gustavo A. R. Silva wrote: Remove unnecessary variable mfn in function xen_foreach_remap_area() and, refactor the code. Variable mfn at line 518:mfn = xen_remap_buf.mfns[i]; is only being used to store a value to be passed as an argument to the xen_update_mem_tables()

Re: [PATCH 4/6] mm: kvmalloc support __GFP_RETRY_MAYFAIL for all sizes

2017-06-26 Thread Vlastimil Babka
On 06/23/2017 10:53 AM, Michal Hocko wrote: > From: Michal Hocko > > Now that __GFP_RETRY_MAYFAIL has a reasonable semantic regardless of the > request size we can drop the hackish implementation for !costly orders. > __GFP_RETRY_MAYFAIL retries as long as the reclaim makes a

Re: [PATCH 1/1] futex: remove duplicated code and fix UB

2017-06-26 Thread Will Deacon
On Mon, Jun 26, 2017 at 02:02:31PM +0200, Jiri Slaby wrote: > On 06/23/2017, 09:51 AM, Thomas Gleixner wrote: > > On Wed, 21 Jun 2017, Jiri Slaby wrote: > >> diff --git a/arch/arm64/include/asm/futex.h > >> b/arch/arm64/include/asm/futex.h > >> index f32b42e8725d..5bb2fd4674e7 100644 > >> ---

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

2017-06-26 Thread Vlastimil Babka
On 06/26/2017 02:14 PM, Michal Hocko wrote: > On Mon 26-06-17 13:45:19, Vlastimil Babka wrote: >> On 06/23/2017 10:53 AM, Michal Hocko wrote: > [...] >>> - GFP_KERNEL - both background and direct reclaim are allowed and the >>> _default_ page allocator behavior is used. That means that !costly

[PATCH v2 25/51] block: blk-merge: remove unnecessary check

2017-06-26 Thread Ming Lei
In this case, 'sectors' can't be zero at all, so remove the check and let the bio be splitted. Signed-off-by: Ming Lei --- block/blk-merge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/blk-merge.c b/block/blk-merge.c index

[PATCH v2 30/51] block: introduce bvec_get_last_page()

2017-06-26 Thread Ming Lei
BTRFS and guard_bio_eod() need to get the last page, so introduce this helper to make them happy. Signed-off-by: Ming Lei --- include/linux/bvec.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/bvec.h b/include/linux/bvec.h index

[PATCH v2 32/51] btrfs: use bvec_get_last_page to get bio's last page

2017-06-26 Thread Ming Lei
Preparing for supporting multipage bvec. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Ming Lei --- fs/btrfs/compression.c | 5 - fs/btrfs/extent_io.c | 8 ++-- 2

[PATCH v4 3/3] arm64: kvm: inject SError with user space specified syndrome

2017-06-26 Thread Dongjiu Geng
when SError happen, kvm notifies user space to record the CPER, user space specifies and passes the contents of ESR_EL1 on taking a virtual SError interrupt to KVM, KVM enables virtual system error or asynchronous abort with this specifies syndrome. This patch modify the world-switch to restore

Re: [PATCH] powerpc/sysfs: Expose MMCR2 spr in sysfs

2017-06-26 Thread Michael Ellerman
Madhavan Srinivasan writes: > Monitor Mode Control Register 2 (MMCR2) is a 64-bit > register that contains 9-bit control fields for > controlling the operation of PMC1 - PMC6. Patch > to expose the MMCR2 spr in sysfs. > > Signed-off-by: Madhavan Srinivasan

[PATCH 1/3] x86/mce: Always save severity in machine_check_poll()

2017-06-26 Thread Borislav Petkov
From: Yazen Ghannam The MCE severity gives a hint as to how to handle the error. The notifier blocks can then use the severity to decide on an action. It's not necessary for machine_check_poll() to filter errors for the notifier chain, since each block will check its own

[PATCH 2/3] RAS/CEC: Check the correct variable in the debugfs error handling

2017-06-26 Thread Borislav Petkov
From: Christophe JAILLET Check the correct variable when handling a potential error from debugfs_create_file(). Most likely a copy-paste botch. Signed-off-by: Christophe JAILLET Fixes: 011d82611172 ("RAS: Add a Corrected Errors

[PATCH 3/3] x86/microcode: Make a couple of symbols static

2017-06-26 Thread Borislav Petkov
From: Colin Ian King The helper function __load_ucode_amd() and pointer intel_ucode_patch do not need to be in global scope, so make them static. Fixes those sparse warnings: "symbol '__load_ucode_amd' was not declared. Should it be static?" "symbol 'intel_ucode_patch'

Re: [PATCH] x86/xen: allow userspace access during hypercalls

2017-06-26 Thread Marek Marczykowski-Górecki
On Mon, Jun 26, 2017 at 02:05:48PM +0200, Juergen Groß wrote: > On 06/23/2017 02:47 PM, Marek Marczykowski-Górecki wrote: > > Userspace application can do a hypercall through /dev/xen/privcmd, and > > some for some hypercalls argument is a pointers to user-provided > > structure. When SMAP is

Re: [PATCH] ARM: dts: sun7i: Add A20 LCD0 RGB888 pins

2017-06-26 Thread Emmanuel Vadot
On Mon, 26 Jun 2017 22:42:49 +1000 Jonathan Liu wrote: > The LCD0 controller on the A20 can do RGB output up to 8 bits per > channel. Add the pins for RGB888 output. > > Signed-off-by: Jonathan Liu > --- > arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ >

[PATCH v2 1/2] scripts/gdb: lx-dmesg: Cast log_buf to void* for addr fetch

2017-06-26 Thread Leonard Crestez
In some cases it is possible for the str() conversion here to throw encoding errors because log_buf might not point to valid ascii. For example: (gdb) python print str(gdb.parse_and_eval("log_buf")) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't

[PATCH v2 2/2] scripts/gdb: lx-dmesg: Use explicit encoding=utf8 errors=replace

2017-06-26 Thread Leonard Crestez
Use errors=replace because it is never desirable for lx-dmesg to fail on string decoding errors, not even if the log buffer is corrupt and we show incorrect info. The kernel will sometimes print utf8, for example the copyright symbol from jffs2. In order to make this work specify 'utf8'

Re: [PATCH v2 1/2] kernel/module.c: Invert add_usage_link and del_usage_link functions

2017-06-26 Thread Jessica Yu
+++ Corentin Labbe [20/06/17 08:45 +0200]: On Mon, Jun 19, 2017 at 06:26:23PM +0200, Jessica Yu wrote: +++ Corentin Labbe [06/06/17 14:17 +0200]: >This patch just swap del_usage_link() before add_usage_link(). > >Signed-off-by: Corentin Labbe Could you combine this

  1   2   3   4   5   6   7   8   9   10   >