Re: [PATCH v8] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-05-09 Thread Dmitry Torokhov
Hi, On Tue, May 09, 2017 at 10:50:11AM +0900, Tomohiro Yoshidomi wrote: > Mr.Torokhov > > Hi. > I fixed source, and sent v8 patch to you. > > * FF codes ('CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), > put together in one place. > > * psxpad_spi_suspend() stub removed again. Could you please tes

Re: [PATCH v6 4/4] mailbox: Introduce Qualcomm APCS IPC driver

2017-05-09 Thread Stephen Boyd
On 05/09, Bjorn Andersson wrote: > This implements a driver that exposes the IPC bits found in the APCS > Global block in various Qualcomm platforms. The bits are used to signal > inter-processor communication signals from the application CPU to other > masters. > > Signed-off-by: Bjorn Andersson

Re: [PATCH v2] Input: elan_i2c - check if device is there before really probing

2017-05-09 Thread Dmitry Torokhov
On Mon, May 08, 2017 at 10:43:36PM -0300, Fabio Estevam wrote: > On Mon, May 8, 2017 at 9:45 PM, Dmitry Torokhov > wrote: > > > + /* Make sure there is something at this address */ > > + error = i2c_smbus_read_byte(client); > > + if (error < 0) { > > + dev_dbg(&cli

Re: [PATCH] mnt: allow to add a mount into an existing group

2017-05-09 Thread Eric W. Biederman
Andrey Vagin writes: > On Tue, Jan 24, 2017 at 02:03:23PM +1300, Eric W. Biederman wrote: >> Andrei Vagin writes: >> >> > Now a shared group can be only inherited from a source mount. >> > This patch adds an ability to add a mount into an existing shared >> > group. >> >> This sounds like a lot

Re: [PATCH v2] Input: elan_i2c - check if device is there before really probing

2017-05-09 Thread Fabio Estevam
On Tue, May 9, 2017 at 9:46 PM, Dmitry Torokhov wrote: > That is the point of the patch - we want to fail silently if the device > is not actually there and fails even the simplest communication. Driver > core treats ENXIO and ENODEV as special and does not log errors. Got it, thanks for the exp

RE: [PATCH 4.4 06/28] cifs: Do not send echoes before Negotiate is complete

2017-05-09 Thread Pavel Shilovskiy
On Tue, May 9, 2017 5:13 AM, Ben Hutchings wrote: > > commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session > > reconnect long after socket reconnect") added support for Negotiate > > requests to be initiated by echo calls. > > > > To avoid delays in calling echo after a reconnect, I add

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-05-09 Thread Minchan Kim
Hi Huang, On Fri, Apr 28, 2017 at 08:21:37PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > On Thu, Apr 27, 2017 at 03:12:34PM +0800, Huang, Ying wrote: > >> Minchan Kim writes: > >> > >> > On Tue, Apr 25, 2017 at 08:56:56PM +0800, Huang, Ying wrote: > >> >> From: Huang Ying > >> >> >

[ANNOUNCE] 4.4.66-rt79

2017-05-09 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.66-rt79 stable release. This release is just an update to the new stable 4.4.66 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

[ANNOUNCE] 3.18.51-rt57

2017-05-09 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.18.51-rt57 stable release. This release is just an update to the new stable 3.18.51 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

[ANNOUNCE] 3.12.73-rt98

2017-05-09 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.73-rt98 stable release. This release is just an update to the new stable 3.12.73 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

Re: [PATCH v1] ACPI: Switch to use generic UUID API

2017-05-09 Thread Zhang Rui
On Thu, 2017-05-04 at 12:21 +0300, Andy Shevchenko wrote: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use uuid_le type. At the same time > we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion and it's

linux-next: build warning after merge of the block tree

2017-05-09 Thread Stephen Rothwell
Hi Jens, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: block/elevator.c: In function 'elv_iosched_store': block/elevator.c:1102:2: warning: ignoring return value of 'strstrip', declared with attribute warn_unused_result [-Wunused-result]

Re: [PATCH 3/4] ARM: dts: rockchip: use pin constants to describe IO in pinctrl

2017-05-09 Thread Kever Yang
Heiko, On 05/10/2017 05:43 AM, Heiko Stuebner wrote: Am Mittwoch, 12. April 2017, 15:10:43 CEST schrieb Kever Yang: Use command below to replace the IO naming in pinctrl: sed -i -e 's/ 31 RK_FUNC_/ RK_PD7 RK_FUNC_/' arch/arm/boot/dts/rk* sed -i -e 's/ 0 RK_FUNC_/ RK_PA0 RK_FUNC_/' arch/arm64/b

Re: [PATCH] CIFS: silence lockdep splat in cifs_relock_file()

2017-05-09 Thread Pavel Shilovsky
2017-05-03 8:17 GMT-07:00 Rabin Vincent : > From: Rabin Vincent > > cifs_relock_file() can perform a down_write() on the inode's lock_sem even > though it was already performed in cifs_strict_readv(). Lockdep complains > about this. AFAICS, there is no problem here, and lockdep just needs to be

Re: [PATCH] CIFS: silence lockdep splat in cifs_relock_file()

2017-05-09 Thread Steve French
merged into cifs-2.6.git for-next thx On Tue, May 9, 2017 at 8:34 PM, Pavel Shilovsky wrote: > 2017-05-03 8:17 GMT-07:00 Rabin Vincent : >> From: Rabin Vincent >> >> cifs_relock_file() can perform a down_write() on the inode's lock_sem even >> though it was already performed in cifs_strict_read

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-09 Thread Minchan Kim
On Wed, May 03, 2017 at 08:00:44AM +0200, Michal Hocko wrote: > On Wed 03-05-17 13:48:09, Minchan Kim wrote: > > On Tue, May 02, 2017 at 05:14:36PM +0200, Michal Hocko wrote: > > > On Tue 02-05-17 23:51:50, Minchan Kim wrote: > > > > Hi Michal, > > > > > > > > On Tue, May 02, 2017 at 09:54:32AM +0

Re: kvm: warning in kvm_load_guest_fpu

2017-05-09 Thread Wanpeng Li
2017-05-09 22:04 GMT+08:00 Andrey Konovalov : > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 (4.11+). > > A reproducer and .config are attached. If there are beauty codes for testing? > > [

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Andy Lutomirski
On Tue, May 9, 2017 at 4:31 PM, Kees Cook wrote: > On Tue, May 9, 2017 at 3:52 PM, Andy Lutomirski wrote: >> On Tue, May 9, 2017 at 9:50 AM, Kees Cook wrote: >>> On Tue, May 9, 2017 at 9:03 AM, Christoph Hellwig >>> wrote: On Tue, May 09, 2017 at 06:02:50AM -0700, Christoph Hellwig wrote:

Re: [PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-05-09 Thread Jason Wang
On 2017年05月09日 21:26, Michael S. Tsirkin wrote: On Wed, Apr 26, 2017 at 05:09:42PM +0800, Jason Wang wrote: On 2017年04月25日 00:01, Michael S. Tsirkin wrote: Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API f

[PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-09 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee Acked-by: Rob Herring --- .../bindings/pci/mediatek,mt7623-pcie.txt | 149 + 1 file changed, 149 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci

[PATCH v3 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-09 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c | 563 +++ 3 files cha

[PATCH v3 0/2] Add PCIe host driver support for Mediatek SoCs

2017-05-09 Thread Ryder Lee
Hi, This patch series add Mediatek Gen2 PCIe host controller driver and dt-binding document. It can be found on MT7623 series SoCs. This driver was validated using Broadcom Tigon3 and Intel(R) 82575/82576 gigabit ethernet card. Changes since v3: - correct sub-nodes unit addresses. Changes since

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Al Viro
On Tue, May 09, 2017 at 09:03:22AM -0700, Christoph Hellwig wrote: > On Tue, May 09, 2017 at 06:02:50AM -0700, Christoph Hellwig wrote: > > On Tue, May 09, 2017 at 06:00:01AM -0700, Andy Lutomirski wrote: > > > fs/splice.c has some, ahem, interesting uses that have been the source > > > of nasty ex

Re: [RESENT PATCH] x86/mem: fix the offset overflow when read/write mem

2017-05-09 Thread Xishi Qiu
On 2017/5/9 23:46, Rik van Riel wrote: > On Thu, 2017-05-04 at 10:28 +0800, zhong jiang wrote: >> On 2017/5/4 2:46, Rik van Riel wrote: > >>> However, it is not as easy as simply checking the >>> end against __pa(high_memory). Some systems have >>> non-contiguous physical memory ranges, with gaps

Re: [RESENT PATCH] x86/mem: fix the offset overflow when read/write mem

2017-05-09 Thread zhong jiang
On 2017/5/9 23:46, Rik van Riel wrote: > On Thu, 2017-05-04 at 10:28 +0800, zhong jiang wrote: >> On 2017/5/4 2:46, Rik van Riel wrote: >>> However, it is not as easy as simply checking the >>> end against __pa(high_memory). Some systems have >>> non-contiguous physical memory ranges, with gaps >>>

[PATCH] staging: android: ion: Resolve minor indentation issue.

2017-05-09 Thread Matthew Giassa
Resolving a minor checkpatch/indentation issue in ion_carveout_heap.c, ie: drivers/staging/android/ion/ion_carveout_heap.c --- CHECK: Alignment should match open parenthesis +static phys_addr_t ion_carveout_allocate(struct ion_heap *heap, +

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

2017-05-09 Thread Markus Trippelsdorf
On 2017.05.10 at 11:24 +1000, Stephen Rothwell wrote: > Hi Jens, > > After merging the block tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > block/elevator.c: In function 'elv_iosched_store': > block/elevator.c:1102:2: warning: ignoring return value of 'strstr

[lkp-robot] [x86] f2a6a70501: BUG:KASAN:null-ptr-deref_on_address

2017-05-09 Thread kernel test robot
FYI, we noticed the following commit: commit: f2a6a7050109e0a5c7a84c70aa6010f682b2f1ee ("x86: Convert the rest of the code to support p4d_t") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M

[PATCH] Staging: rtl8192u - changed include of asm/io.h

2017-05-09 Thread Derek Robson
Changed include of to be Complies, but I don't have hardware. Found using checkpatch. Signed-off-by: Derek Robson --- drivers/staging/rtl8192u/r8192U.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h ind

Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-09 Thread Baoquan He
On 05/08/17 at 05:25pm, Borislav Petkov wrote: > On Mon, May 08, 2017 at 09:36:49AM +0800, Baoquan He wrote: > > Thanks for explaining, Bhupesh. > > > > BIOS issue of SGI uv1 is still not fixed. There's a quirk for uv1 to > > use efi old map: > > > > void __init efi_apply_memmap_quirks(void) > >

Re: [PATCH v4 3/5] soc: qcom: Introduce APCS IPC driver

2017-05-09 Thread Jassi Brar
On Wed, May 10, 2017 at 12:41 AM, Bjorn Andersson wrote: > On Tue 09 May 09:41 PDT 2017, Jassi Brar wrote: >> >> >> >> The client should call mbox_client_txdone() after >> >> >> mbox_send_message(). >> >> > >> >> > So every time we call mbox_send_message() from any of the client drivers >> >> >

[PATCH net-next V3 2/9] skb_array: introduce skb_array_unconsume

2017-05-09 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index f4dfade..79850b6 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -156,6 +156,12 @@ static void __

[PATCH net-next V3 0/9] vhost_net rx batch dequeuing

2017-05-09 Thread Jason Wang
This series tries to implement rx batching for vhost-net. This is done by batching the dequeuing from skb_array which was exported by underlayer socket and pass the sbk back through msg_control to finish userspace copying. This is also the requirement for more batching implemention on rx path. Tes

Re: [PATCH] mm: fix spelling error

2017-05-09 Thread Wei Yang
On Tue, Apr 04, 2017 at 12:16:55AM +0800, Hao Lee wrote: >Fix variable name error in comments. No code changes. > >Signed-off-by: Hao Lee >--- > include/linux/gfp.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/include/linux/gfp.h b/include/linux/gfp.h >index db373b9..

[PATCH net-next V3 4/9] skb_array: introduce batch dequeuing

2017-05-09 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 79850b6..35226cd 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -97,21 +97,

[PATCH net-next V3 5/9] tun: export skb_array

2017-05-09 Thread Jason Wang
This patch exports skb_array through tun_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tun.c | 13 + include/linux/if_tun.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun

[PATCH net-next V3 7/9] tun: support receiving skb through msg_control

2017-05-09 Thread Jason Wang
This patch makes tun_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tun.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c

[PATCH net-next V3 6/9] tap: export skb_array

2017-05-09 Thread Jason Wang
This patch exports skb_array through tap_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tap.c | 13 + include/linux/if_tap.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tap.c b/drivers/net/tap

[PATCH net-next V3 3/9] ptr_ring: introduce batch dequeuing

2017-05-09 Thread Jason Wang
This patch introduce a batched version of consuming, consumer can dequeue more than one pointers from the ring at a time. We don't care about the reorder of reading here so no need for compiler barrier. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 65 +

[PATCH net-next V3 8/9] tap: support receiving skb from msg_control

2017-05-09 Thread Jason Wang
This patch makes tap_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tap.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index

[PATCH net-next V3 9/9] vhost_net: try batch dequing from skb array

2017-05-09 Thread Jason Wang
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 explicitly on the exported skb array and pass the skb back through msg_

[PATCH net-next V3 1/9] ptr_ring: add ptr_ring_unconsume

2017-05-09 Thread Jason Wang
From: "Michael S. Tsirkin" Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally can't do this and have to drop entries, but this implies ring is full

RE: [PATCH] net: fec: select queue depending on VLAN priority

2017-05-09 Thread Andy Duan
From: David Miller Sent: Tuesday, May 09, 2017 9:39 PM >To: ste...@agner.ch >Cc: Andy Duan ; and...@lunn.ch; >feste...@gmail.com; net...@vger.kernel.org; linux- >ker...@vger.kernel.org >Subject: Re: [PATCH] net: fec: select queue depending on VLAN priority > >From: Stefan Agner >Date: Mon, 8 May

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Al Viro
On Wed, May 10, 2017 at 03:11:18AM +0100, Al Viro wrote: > On Tue, May 09, 2017 at 09:03:22AM -0700, Christoph Hellwig wrote: > > On Tue, May 09, 2017 at 06:02:50AM -0700, Christoph Hellwig wrote: > > > On Tue, May 09, 2017 at 06:00:01AM -0700, Andy Lutomirski wrote: > > > > fs/splice.c has some, a

Re: [PATCH] oom: improve oom disable handling

2017-05-09 Thread Wei Yang
Hi, Michal If the subject is "improve the log message on oom disable handling" would be more accurate to me. The original subject sounds the patch will adjust the code path, while it doesn't. On Tue, Apr 04, 2017 at 03:47:05PM +0200, Michal Hocko wrote: >From: Michal Hocko > >Tetsuo has reporte

Re: [PATCH -mm] mm, swap: Remove unused function prototype

2017-05-09 Thread Wei Yang
On Wed, Apr 05, 2017 at 03:10:17PM +0800, Huang, Ying wrote: >From: Huang Ying > >This is a code cleanup patch, no functionality changes. There are 2 >unused function prototype in swap.h, they are removed. > >Signed-off-by: "Huang, Ying" >Cc: Tim Chen >--- > include/linux/swap.h | 3 --- > 1 fil

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

2017-05-09 Thread Jens Axboe
On 05/09/2017 08:20 PM, Markus Trippelsdorf wrote: > On 2017.05.10 at 11:24 +1000, Stephen Rothwell wrote: >> Hi Jens, >> >> After merging the block tree, today's linux-next build (arm >> multi_v7_defconfig) produced this warning: >> >> block/elevator.c: In function 'elv_iosched_store': >> block/el

[PATCH] x86/PCI: fix duplicate 'const' declaration specifier

2017-05-09 Thread Nick Desaulniers
Found with -Wduplicate-decl-specifier, a relatively new compiler flag in GCC7, and Clang. list_for_each_entry() eventually calls container_of(), which marks the loop variable as const. The first argument to list_for_each_entry() is a type, which should not already be marked const, otherwise the l

Re: Q. drm/i915 shrinker, synchronize_rcu_expedited() from handlers

2017-05-09 Thread Hugh Dickins
On Mon, 8 May 2017, Joonas Lahtinen wrote: > On pe, 2017-05-05 at 14:57 -0700, Hugh Dickins wrote: > > On Fri, 5 May 2017, Joonas Lahtinen wrote: > > > On ma, 2017-05-01 at 11:05 +0900, J. R. Okajima wrote: > > > > Thanx for the reply. > > > >  > > > > Andrea Arcangeli: > > > > >  > > > > > Yes I a

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Al Viro
On Wed, May 10, 2017 at 03:45:24AM +0100, Al Viro wrote: > FWIW, some parts of that queue are obviously sane; it's the conversions of > kernel_write() and friends to ->read_iter/->write_iter() that are > non-starters. Egads... OK, I *have* misread what you are doing there. Your vfs_iter_read()

Re: [PATCH] f2fs: split bio cache

2017-05-09 Thread Chao Yu
On 2017/5/9 9:49, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/5/9 5:23, Jaegeuk Kim wrote: >> Hi Chao, >> >> I can't see a strong reason to split meta from data/node and rename the >> existing >> function names. Instead, how about keeping the existing one while adding some >> page types to deal with

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Al Viro
On Wed, May 10, 2017 at 04:12:54AM +0100, Al Viro wrote: > Broken commit: "net: don't play with address limits in kernel_recvmsg". > It would be OK if it was only about data. Unfortunately, that's not > true in one case: svc_udp_recvfrom() wants ->msg_control. > > Another delicate place: you can

linux-next: build failure after merge of the tpmdd tree

2017-05-09 Thread Stephen Rothwell
Hi Jarkko, After merging the tpmdd tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_init': drivers/char/tpm/tpm_tis.c:193:23: error: passing argument 1 of 'check_acpi_tpm2' from incompatible pointer type [-Werror=incompatib

[PATCH] drm/mm: fix duplicate 'const' declaration specifier

2017-05-09 Thread Nick Desaulniers
Found with -Wduplicate-decl-specifier, a relatively new compiler flag in GCC7, and Clang. list_for_each_entry() eventually calls container_of(), which marks the loop variable as const. The first argument to list_for_each_entry() is a type, which should not already be marked const, otherwise the l

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

2017-05-09 Thread Stephen Rothwell
Hi Markus, On Wed, 10 May 2017 04:20:54 +0200 Markus Trippelsdorf wrote: > > Yes, it was missing a (void) like "(void)strlcpy(...)". But Jens > unfortunately removed both warnings, so the following patch should now > be enough: > > diff --git a/block/elevator.c b/block/elevator.c > index fda6be

Re: [PATCH 1/3] ptr_ring: batch ring zeroing

2017-05-09 Thread Jason Wang
On 2017年05月09日 21:33, Michael S. Tsirkin wrote: I love this idea. Reviewed and discussed the idea in-person with MST during netdevconf[1] at this laptop. I promised I will also run it through my micro-benchmarking[2] once I return home (hint ptr_ring gets used in network stack as skb_array).

[PATCH] drm: mediatek: change the variable type of rdma threshold

2017-05-09 Thread Bibby Hsieh
For some greater resolution, the rdma threshold variable will overflow. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_rdma.c b/drivers/gpu/drm/mediatek/mtk_disp

[PATCH net-next V4 03/10] skb_array: introduce skb_array_unconsume

2017-05-09 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index f4dfade..79850b6 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -156,6 +156,12 @@ static void __

[PATCH net-next V4 00/10] vhost_net batch dequeuing

2017-05-09 Thread Jason Wang
This series tries to implement rx batching for vhost-net. This is done by batching the dequeuing from skb_array which was exported by underlayer socket and pass the sbk back through msg_control to finish userspace copying. This is also the requirement for more batching implemention on rx path. Tes

[PATCH net-next V4 04/10] ptr_ring: introduce batch dequeuing

2017-05-09 Thread Jason Wang
This patch introduce a batched version of consuming, consumer can dequeue more than one pointers from the ring at a time. We don't care about the reorder of reading here so no need for compiler barrier. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 65 +

[PATCH net-next V4 02/10] ptr_ring: add ptr_ring_unconsume

2017-05-09 Thread Jason Wang
From: "Michael S. Tsirkin" Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally can't do this and have to drop entries, but this implies ring is full

[PATCH net-next V4 01/10] ptr_ring: batch ring zeroing

2017-05-09 Thread Jason Wang
From: "Michael S. Tsirkin" A known weakness in ptr_ring design is that it does not handle well the situation when ring is almost full: as entries are consumed they are immediately used again by the producer, so consumer and producer are writing to a shared cache line. To fix this, add batching t

[PATCH net-next V4 07/10] tap: export skb_array

2017-05-09 Thread Jason Wang
This patch exports skb_array through tap_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tap.c | 13 + include/linux/if_tap.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tap.c b/drivers/net/tap

[PATCH net-next V4 08/10] tun: support receiving skb through msg_control

2017-05-09 Thread Jason Wang
This patch makes tun_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tun.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c

[PATCH net-next V4 09/10] tap: support receiving skb from msg_control

2017-05-09 Thread Jason Wang
This patch makes tap_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tap.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index

[PATCH net-next V4 10/10] vhost_net: try batch dequing from skb array

2017-05-09 Thread Jason Wang
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 explicitly on the exported skb array and pass the skb back through msg_

[PATCH net-next V4 06/10] tun: export skb_array

2017-05-09 Thread Jason Wang
This patch exports skb_array through tun_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tun.c | 13 + include/linux/if_tun.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun

[PATCH net-next V4 05/10] skb_array: introduce batch dequeuing

2017-05-09 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 79850b6..35226cd 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -97,21 +97,

Re: [PATCH] drm/mm: fix duplicate 'const' declaration specifier

2017-05-09 Thread Nick Desaulniers
ah seems like there's more of these: drivers/gpu/drm/drm_mm.c:922 surprised compiling drivers/gpu/drm/drm_mm.o did not catch this the first time...

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Al Viro
On Wed, May 10, 2017 at 04:21:37AM +0100, Al Viro wrote: > On Wed, May 10, 2017 at 04:12:54AM +0100, Al Viro wrote: > > > Broken commit: "net: don't play with address limits in kernel_recvmsg". > > It would be OK if it was only about data. Unfortunately, that's not > > true in one case: svc_udp_r

Re: [PATCH 1/6] tty: serial: lpuart: introduce lpuart_soc_data to represent SoC property

2017-05-09 Thread Stefan Agner
On 2017-05-09 00:50, Dong Aisheng wrote: > This is used to dynamically check the SoC specific lpuart properies. > Currently only the checking of 32 bit register width is added which > functions the same as before. More will be added later for supporting > new chips. > > Cc: Greg Kroah-Hartman > C

Re: [PATCH] Allow to use DMA_CTRL_REUSE flag for all channel types

2017-05-09 Thread Vinod Koul
On Tue, May 02, 2017 at 03:16:18PM +, Eugeniy Paltsev wrote: > Hi Vinod, > > On Mon, 2017-05-01 at 11:21 +0530, Vinod Koul wrote: > > On Fri, Apr 28, 2017 at 04:37:46PM +0300, Eugeniy Paltsev wrote: > > > In the current implementation dma_get_slave_caps is used to check > > > state of descript

[PATCH] drm/vc4: Fix resource leak in 'vc4_get_hang_state_ioctl()' in error handling path

2017-05-09 Thread Christophe JAILLET
If one 'drm_gem_handle_create()' fails, we leak somes handles and some memory. In order to fix it: - move the 'free(bo_state)' at the end of the function in the error handling path. This has the side effect to also try to free it if the first 'kcalloc' fails. This is harmless. - delete

Re: [PATCH 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-09 Thread Stefan Agner
On 2017-05-09 00:50, Dong Aisheng wrote: > It's based on the exist lpuart32 read/write implementation. > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby (supporter:TTY LAYER) > Cc: Fugang Duan > Cc: Stefan Agner > Cc: Mingkai Hu > Cc: Yangbo Lu > Signed-off-by: Dong Aisheng > --- > drivers/tty/s

[PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior

2017-05-09 Thread Juergen Gross
When booted as pv-guest the p2m list presented by the Xen is already mapped to virtual addresses. In dom0 case the hypervisor might make use of 2M- or 1G-pages for this mapping. Unfortunately while being properly aligned in virtual and machine address space, those pages might not be aligned properl

Re: [PATCH 4/6] tty: serial: lpuart: add imx7ulp support

2017-05-09 Thread Stefan Agner
On 2017-05-09 00:50, Dong Aisheng wrote: > The lpuart of imx7ulp is basically the same as ls1021a. It's also > 32 bit width register, but unlike ls1021a, it's little endian. > Besides that, imx7ulp lpuart has a minor different register layout > from ls1021a that it has four extra registers (verid,

[PATCH] net: dsa: loop: Free resources if initialization is deferred

2017-05-09 Thread Christophe JAILLET
Free some devm'allocated memory in case of deferred driver initialization. This avoid to waste some memory in such a case. Suggested-by: Joe Perches Signed-off-by: Christophe JAILLET --- drivers/net/dsa/dsa_loop.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/n

[PATCH 2/3] autofs - make dev ioctl version and ismountpoint user accessible

2017-05-09 Thread Ian Kent
Some of the autofs miscellaneous device ioctls need to be accessable to user space applications without CAP_SYS_ADMIN to get information about autofs mounts. Start by making the autofs miscellaneous device ioctl header available and allow applications to use version and ismountpoint ioctls. Signe

[PATCH 3/3] autofs - fix AT_NO_AUTOMOUNT not being honored

2017-05-09 Thread Ian Kent
The fstatat(2) and statx() calls can pass the flag AT_NO_AUTOMOUNT which is meant to clear the LOOKUP_AUTOMOUNT flag and prevent triggering of an automount by the call. But this flag is unconditionally cleared for all stat family system calls except statx(). stat family system calls have always tr

[PATCH 1/3] autofs - make disc device user accessible

2017-05-09 Thread Ian Kent
The autofs miscellanous device ioctls that shouldn't require CAP_SYS_ADMIN need to be accessible to user space applications in order to be able to get information about autofs mounts. The module checks capabilities so the miscelaneous device should be fine with broad permissions. Signed-off-by: I

linux-next: Tree for May 10

2017-05-09 Thread Stephen Rothwell
Hi all, Please do not add any v4.13 destined material in your linux-next included branches until after v4.12-rc1 has been released. Changes since 20170509: The tpmdd tree gaind a build failure for which I applied a fix patch. Non-merge commits (relative to Linus' tree): 1220 1257

Re: [PATCH] cifs: cifsacl: Use a temporary ops variable to reduce code length

2017-05-09 Thread Shirish Pargaonkar
Looks correct. Acked-by: Shirish Pargaonkar On Sun, May 7, 2017 at 3:31 AM, Joe Perches via samba-technical wrote: > Create an ops variable to store tcon->ses->server->ops and cache > indirections and reduce code size a trivial bit. > > $ size fs/cifs/cifsacl.o* >textdata bss de

Re: [PATCH] net: dsa: loop: Free resources if initialization is deferred

2017-05-09 Thread Julia Lawall
On Wed, 10 May 2017, Christophe JAILLET wrote: > Free some devm'allocated memory in case of deferred driver initialization. > This avoid to waste some memory in such a case. I really think it would be helpful to mention the special behavior of -EPROBE_DEFER. It doesn't take much space, and it

Re: [PATCH] libertas: Avoid reading past end of buffer

2017-05-09 Thread Joe Perches
On Tue, 2017-05-09 at 16:23 -0700, Kees Cook wrote: > Using memcpy() from a string that is shorter than the length copied means > the destination buffer is being filled with arbitrary data from the kernel > rodata segment. Instead, use strncpy() which will fill the trailing bytes > with zeros. Addi

Re: [PATCH] net: dsa: loop: Check for memory allocation failure

2017-05-09 Thread Christophe JAILLET
Le 09/05/2017 à 17:18, Joe Perches a écrit : On Mon, 2017-05-08 at 17:35 -0700, Florian Fainelli wrote: On 05/08/2017 04:46 PM, Julia Lawall wrote: On Mon, 8 May 2017, Joe Perches wrote: Each time -EPROBE_DEFER occurs, another set of calls to dsa_switch_alloc and dev_kzalloc also occurs. Perh

[PATCH] staging: typec: Fix sparse warnings about incorrect types

2017-05-09 Thread Guru Das Srinagesh
Fix the following sparse warnings about incorrect type usage: tcpci.c:290:38: warning: incorrect type in argument 1 (different base types) tcpci.c:290:38:expected unsigned short [unsigned] [usertype] header tcpci.c:290:38:got restricted __le16 const [usertype] header tcpci.c:295:16: warnin

Re: [PATCH -v3 0/13] mm: make movable onlining suck less

2017-05-09 Thread Dan Williams
On Fri, Apr 21, 2017 at 5:05 AM, Michal Hocko wrote: > Hi, > The last version of this series has been posted here [1]. It has seen > some more testing (thanks to Reza Arbab and Igor Mammedov[2]), Jerome's > and Vlastimil's review resulted in few fixes mostly folded in their > respected patches. >

Re: [PATCH] net: dsa: loop: Check for memory allocation failure

2017-05-09 Thread Julia Lawall
On Wed, 10 May 2017, Christophe JAILLET wrote: > Le 09/05/2017 à 17:18, Joe Perches a écrit : > > On Mon, 2017-05-08 at 17:35 -0700, Florian Fainelli wrote: > > > On 05/08/2017 04:46 PM, Julia Lawall wrote: > > > > On Mon, 8 May 2017, Joe Perches wrote: > > > > > Each time -EPROBE_DEFER occurs,

Re: [PATCH] net: fec: select queue depending on VLAN priority

2017-05-09 Thread Stefan Agner
On 2017-05-09 06:39, David Miller wrote: > From: Stefan Agner > Date: Mon, 8 May 2017 22:37:08 -0700 > >> Since the addition of the multi queue code with commit 59d0f7465644 >> ("net: fec: init multi queue date structure") the queue selection >> has been handelt by the default transmit queue sel

Re: [PATCH] net: dsa: loop: Check for memory allocation failure

2017-05-09 Thread Marion & Christophe JAILLET
Le 10/05/2017 à 06:46, Julia Lawall a écrit : On Wed, 10 May 2017, Christophe JAILLET wrote: Le 09/05/2017 à 17:18, Joe Perches a écrit : On Mon, 2017-05-08 at 17:35 -0700, Florian Fainelli wrote: On 05/08/2017 04:46 PM, Julia Lawall wrote: On Mon, 8 May 2017, Joe Perches wrote: Each tim

Re: [patch V2 24/24] cpu/hotplug: Convert hotplug locking to percpu rwsem

2017-05-09 Thread Michael Ellerman
lock(); > if (atomic_read(&key->enabled) == 0) { > atomic_set(&key->enabled, -1); I seem to be hitting this assert from the ftrace event selftests, enabled at boot with CONFIG_FTRACE_STARTUP_TEST=y, using next-20170509 (on powerpc). [ 842.691191] Testing

[PATCH] socfpga_a10: fix a kexec boot issue

2017-05-09 Thread yanjiang.jin
From: Yanjiang Jin I guess socfpga's other boards may need this patch, but I have Arria10 board only. So add a new function socfpga_a10_cpu_kill(), keep the old function socfpga_cpu_kill() for other boards. I also verified CPU_HOTPLUG after applying this patch, everything seems well. Test steps

Re: WMI and Kernel:User interface

2017-05-09 Thread Greg Kroah-Hartman
On Tue, May 09, 2017 at 04:16:39PM -0700, Darren Hart wrote: > Linus and Greg, > > We are in the process of redesigning the Windows Management Instrumentation > (WMI) [1] system in the kernel. WMI is the Microsoft implementation of > Web-Based > Enterprise Management (WBEM). We are looking to pro

[PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-09 Thread yanjiang.jin
From: Yanjiang Jin Kexec's second kernel would hang if CPU1 isn't reset. Signed-off-by: Yanjiang Jin --- arch/arm/mach-socfpga/platsmp.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index 0ee7

Re: [PATCH] nfsd: avoid out of bounds read on array nfsd4_layout_ops

2017-05-09 Thread Ari Kauppi
> On 10.5.2017, at 0.14, Colin Ian King wrote: > > On 09/05/17 22:03, J . Bruce Fields wrote: >> On Tue, May 09, 2017 at 05:04:14PM +0300, Dan Carpenter wrote: >>> On Tue, May 09, 2017 at 02:31:21PM +0100, Colin King wrote: diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 1db

Re: [v4 3/4] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74

2017-05-09 Thread Linu Cherian
> On Tue May 09, 2017 at 02:02:58PM +0100, Robin Murphy wrote: > > On 09/05/17 12:45, Geetha sowjanya wrote: > > > From: Linu Cherian > > > > > > Cavium ThunderX2 SMMU implementation doesn't support page 1 register space > > > and PAGE0_REGS_ONLY option is enabled as an errata workaround. > > > T

Re: [PATCH v8] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-05-09 Thread Tomohiro Yoshidomi
Mr.Torokhov Hi. > Could you please test the version of the patch I sent to you? It had > more changes than the 2 you mentioned above. Sorry, what did you mail to me with the patch? I searched old mails, but I couldn't find it. Please tell me time when you mailed the patch? Thanks. --- Tomohir

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

2017-05-09 Thread Ingo Molnar
* Rafael J. Wysocki wrote: > On Tuesday, May 09, 2017 02:00:51 PM Kees Cook wrote: > > This switches the hibernate_64.S function names into character arrays > > to match other areas of the kernel where this is done (e.g., linker > > scripts). Specifically this fixes a compile-time error noticed

Re: [PATCH] drm/mm: fix duplicate 'const' declaration specifier

2017-05-09 Thread Nick Desaulniers
Please disregard this patch. I think I may have found a bug in Clang, or at least an incompatibility with GCC 7.1. Clang bug: https://bugs.llvm.org/show_bug.cgi?id=32985

Re: [PATCH -v3 0/13] mm: make movable onlining suck less

2017-05-09 Thread Michal Hocko
On Tue 09-05-17 21:43:16, Dan Williams wrote: > On Fri, Apr 21, 2017 at 5:05 AM, Michal Hocko wrote: > > Hi, > > The last version of this series has been posted here [1]. It has seen > > some more testing (thanks to Reza Arbab and Igor Mammedov[2]), Jerome's > > and Vlastimil's review resulted in

<    2   3   4   5   6   7   8   >