Re: [PATCH 1/2] ASoC: sun8i-codec: Add ADC support for a33

2017-05-09 Thread Mylene Josserand
Hi Chen-Yu, Thank you for the review! On 03/05/2017 19:13, Chen-Yu Tsai wrote: Hi, On Wed, May 3, 2017 at 9:56 PM, Mylène Josserand wrote: Add ADC support for the sun8i-codec driver. This driver uses all the microphones widgets and routes provided by the analog part (sun8i-codec-analog). So

[PATCH] powerpc/modules: If mprofile-kernel is enabled add it to vermagic

2017-05-09 Thread Michael Ellerman
On powerpc we can build the kernel with two different ABIs for mcount(), which is used by ftrace. Kernels built with one ABI do not know how to load modules built with the other ABI. The new style ABI is called "mprofile-kernel", for want of a better name. Currently if we build a module using the

Re: [PATCH 0/4] net: stmmac: Fine-tuning for four function implementations

2017-05-09 Thread Giuseppe CAVALLARO
Hello Markus Thanks a lot for your effort on stmmac On 5/9/2017 1:51 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Tue, 9 May 2017 13:48:03 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Combine three seq_printf() cal

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

2017-05-09 Thread Christoph Hellwig
On Wed, May 10, 2017 at 04:39:12AM +0100, Al Viro wrote: > fcntl stuff: I've decided not to put something similar into work.compat > since I couldn't decide what to do with compat stuff - word-by-word copy > from userland converting to struct flock + conversion to posix_lock + > actual work + conve

[RESEND PATCH v5 3/3] arm64: dts: NS2: Add USB DRD PHY device tree node

2017-05-09 Thread Raviteja Garimella
This patch adds device tree node for USB Dual Role Device Phy for Broadcom's Northstar2 SoC. Signed-off-by: Raviteja Garimella --- arch/arm64/boot/dts/broadcom/ns2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dt

[RESEND PATCH v5 0/3] Support for USB DRD Phy driver for NS2

2017-05-09 Thread Raviteja Garimella
Resending the patchset v5. Commit message for dts patch is edited as suggested by Florian. Changes in v5: = Removed references to phy_ops in the same driver by connect_work event handler to change the phy modes. To support dynamically changing the mode of the phy, it does not require

[RESEND PATCH v5 1/3] dt-bindings:phy:Add DT bindings documentation for NS2 USB DRD phy

2017-05-09 Thread Raviteja Garimella
This patch adds documentation for NS2 DRD Phy driver DT bindings Signed-off-by: Raviteja Garimella Acked-by: Rob Herring --- .../devicetree/bindings/phy/brcm,ns2-drd-phy.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy

[RESEND PATCH v5 2/3] phy:phy-bcm-ns2-usbdrd:Broadcom USB DRD Phy driver for Northstar2

2017-05-09 Thread Raviteja Garimella
This is driver for USB DRD Phy used in Broadcom's Northstar2 SoC. The phy can be configured to be in Device mode or Host mode based on the type of cable connected to the port. The driver registers to extcon framework to get appropriate connect events for Host/Device cables connect/disconnect state

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

2017-05-09 Thread Christoph Hellwig
On Wed, May 10, 2017 at 04:12:54AM +0100, Al Viro wrote: > What's the point? What's wrong with having kernel_read()/kernel_readv()/etc.? > You still have set_fs() in there; doing that one level up in call chain would > be just fine... IDGI. The problem is that they modify the address limit, whic

[PATCH] mm/vmscan: fix unsequenced modification and access warning

2017-05-09 Thread Nick Desaulniers
Clang flags this file with the -Wunsequenced error that GCC does not have. unsequenced modification and access to 'gfp_mask' It seems that gfp_mask is both read and written without a sequence point in between, which is undefined behavior. Signed-off-by: Nick Desaulniers --- mm/vmscan.c | 4 +++

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

2017-05-09 Thread Christoph Hellwig
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. And that part is the main point! > That stuff is used in too many situations;

Re: [PATCH v2 for-4.12-fixes 2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-05-09 Thread Vincent Guittot
Hi Tejun, On 9 May 2017 at 18:18, Tejun Heo wrote: > Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all > live cfs_rqs which have ever been active on the CPU; unfortunately, > this makes update_blocked_averages() O(# total cgroups) which isn't > scalable at all. Dietmar raised si

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

2017-05-09 Thread Christoph Hellwig
On Tue, May 09, 2017 at 09:50:32AM -0700, Kees Cook wrote: > http://git.infradead.org/users/hch/vfs.git/commitdiff/018e0e9030777121fe87e89d43066691e7366587 > This accidentally(?) removes the kernel-doc comments. That was sort of intentional, the kerneldoc boilerplate adds very little value for met

Linux 3.12.74

2017-05-09 Thread Jiri Slaby
I'm announcing the release of the 3.12.74 kernel. All users of the 3.12 kernel series must upgrade. Note that this is very likely the last 3.12 stable kernel. Everybody should now really consider jumping to something newer. Besides that, it was nice experience with the 61 releases from .14 to th

Re: [PATCH v2] LSM: Enable multiple calls to security_add_hooks() for the same LSM

2017-05-09 Thread Mickaël Salaün
On 10/05/2017 01:35, Kees Cook wrote: > On Tue, May 9, 2017 at 4:08 PM, Mickaël Salaün wrote: >> The commit d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm") extend >> security_add_hooks() with a new parameter to register the LSM name, >> which may be useful to make the list of currently loaded

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-09 Thread Sergey Senozhatsky
On (05/09/17 20:41), Tetsuo Handa wrote: [..] > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > printk-safe disables local IRQs. so what I propose is something like this > > > > printk-safe-enter//disable local IRQs, use per-CPU buffer > > backtrace > >

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

2017-05-09 Thread Dong Aisheng
On Wed, May 10, 2017 at 11:58 AM, Stefan Agner wrote: > 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:

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

2017-05-09 Thread Markus Trippelsdorf
On 2017.05.09 at 21:00 -0600, Jens Axboe wrote: > 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: > >> > >

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

2017-05-09 Thread Dong Aisheng
Hi Stefan, On Wed, May 10, 2017 at 12:10 PM, Stefan Agner wrote: > 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

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

2017-05-09 Thread Michal Hocko
On Wed 10-05-17 10:46:54, Minchan Kim wrote: > On Wed, May 03, 2017 at 08:00:44AM +0200, Michal Hocko wrote: [...] > > @@ -1486,6 +1486,12 @@ static unsigned long isolate_lru_pages(unsigned long > > nr_to_scan, > > continue; > > } > > > > + /* > > +

Re: WMI and Kernel:User interface

2017-05-09 Thread Darren Hart
On Wed, May 10, 2017 at 07:13:41AM +0200, Greg Kroah-Hartman wrote: > 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 implem

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

2017-05-09 Thread Dong Aisheng
Hi Stefan, On Wed, May 10, 2017 at 11:50 AM, Stefan Agner wrote: > 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

Re: [PATCH] perf report: don't crash on invalid maps in `-g srcline` mode

2017-05-09 Thread Namhyung Kim
On Tue, May 09, 2017 at 10:50:46PM +0200, Milian Wolff wrote: > I just hit a segfault when doing `perf report -g srcline`. > Valgrind pointed me at this code as the culprit: > > ==8359== Invalid read of size 8 > ==8359==at 0x3096D9: map__rip_2objdump (map.c:430) > ==8359==by 0x2FC1A3: matc

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

2017-05-09 Thread Dmitry Torokhov
On Tue, May 9, 2017 at 10:40 PM, Tomohiro Yoshidomi wrote: > > 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 f

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-05-09 Thread Sergey Senozhatsky
fix !PRINTK config build. (Reported-by: kbuild test robot ). From: Sergey Senozhatsky Subject: [PATCH 2/5] printk: introduce printing kernel thread printk() is quite complex internally and, basically, it does two slightly independent things: a) adds a new message to a kern

Re: [RFC 09/10] x86/mm: Rework lazy TLB to track the actual loaded mm

2017-05-09 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Sun, 7 May 2017, Andy Lutomirski wrote: > > /* context.lock is held for us, so we don't need any locking. */ > > static void flush_ldt(void *current_mm) > > { > > + struct mm_struct *mm = current_mm; > > mm_context_t *pc; > > > > - if (current->active_m

Re: [PATCH v2] perf report: distinguish between inliners in the same function

2017-05-09 Thread Namhyung Kim
Hi, On Wed, May 03, 2017 at 11:35:36PM +0200, Milian Wolff wrote: > When different functions get inlined into the same function, we > want to show them individually in the reports. But when we group by > function, we would aggregate all IPs and would only keep the first > one in that function. E.g

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

Re: [PATCH] x86/PCI: 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] 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] 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 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: [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] 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

[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: 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: 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: [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

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] 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 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 -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. >

[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] 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

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: 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] 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

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

[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

[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

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] 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 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] 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] 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

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: [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] 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...

[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,

[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 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 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 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 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] 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

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).

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

[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

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

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

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 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: 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

[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: 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

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: [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] 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

[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

[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 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 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..

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 >> >> >

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) > >

[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

  1   2   3   4   5   6   7   8   >