[PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-04 Thread Alexey Dobriyan
Detect POPCNT instruction support and inline hweigth*() functions if it is supported by CPU. Detect POPCNT at boot time and conditionally refuse to boot. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/arch_hweight.h | 24 arch/x86/include/asm/segment.h |

[PATCH 4/5] x86_64, -march=native: REP STOSB support

2019-07-04 Thread Alexey Dobriyan
Use REP STOSB everywhere if CPU advertises fast REP STOSB. Gcc LOVES to unroll memset(), using -mmemset-strategy saves terabytes of .text. Signed-off-by: Alexey Dobriyan --- Makefile | 3 +++ arch/x86/boot/compressed/head_64.S | 4 arch/x86/crypto/sha1_ssse3_asm

[PATCH 5/5] x86_64, -march=native: MOVBE support

2019-07-04 Thread Alexey Dobriyan
Use MOVBE if it is available. Internally MOVBE probably translates to MOV+BSWAP anyway, but who knows. Do it because it is easy to do... Signed-off-by: Alexey Dobriyan --- arch/x86/crypto/des3_ede-asm_64.S | 28 arch/x86/kernel/verify_cpu.S | 7 +++ scrip

[PATCH v3 0/1] builddeb: generate multi-arch friendly linux-libc-dev

2019-07-04 Thread Cedric Hombourger
Changes in v3: - add Multi-Arch: same to debian/control for linux-libc-dev Changes in v2: - forward $debarch from mkdebian to builddeb - use dpkg-architecture -qDEB_HOST_MULTIARCH instead of $CC -dumpmachine Cedric Hombourger (1): builddeb: generate multi-arch friendly linux-libc-dev packa

[PATCH v3 1/1] builddeb: generate multi-arch friendly linux-libc-dev package

2019-07-04 Thread Cedric Hombourger
Debian-based distributions place libc header files in a machine specific directory (/usr/include/) instead of /usr/include/asm to support installation of the linux-libc-dev package from multiple architectures. Move headers installed by "make headers_install" accordingly using Debian's tuple from dp

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-07-04 Thread Andrew Morton
On Thu, 4 Jul 2019 19:59:38 + Jason Gunthorpe wrote: > On Thu, Jul 04, 2019 at 11:53:24AM -0700, Andrew Morton wrote: > > On Wed, 26 Jun 2019 20:35:51 -0700 Andrew Morton > > wrote: > > > > > > Let me know and I can help orchestate this. > > > > > > Well. Whatever works. In this situati

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-07-04 Thread Robin Murphy
On 2019-07-04 8:59 pm, Jason Gunthorpe wrote: On Thu, Jul 04, 2019 at 11:53:24AM -0700, Andrew Morton wrote: On Wed, 26 Jun 2019 20:35:51 -0700 Andrew Morton wrote: Let me know and I can help orchestate this. Well. Whatever works. In this situation I'd stage the patches after linux-next

[git pull] do_move_mount() fix

2019-07-04 Thread Al Viro
Regression fix... The following changes since commit d728cf79164bb38e9628d15276e636539f857ef1: fs/namespace: fix unprivileged mount propagation (2019-06-17 17:36:09 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes for y

[PATCH v2] media: dvb_frontend.h: Fix shifting signed 32-bit value problem

2019-07-04 Thread Luke Nowakowski-Krijger
Fix DVBFE_ALGO_RECOVERY and DVBFE_ALGO_SEARCH_ERROR use BIT macro which fixes undefined behavior error by certain compilers. Also changed all other bit shifted definitions to use macro for better readability. Signed-off-by: Luke Nowakowski-Krijger --- Changes in V2: + Added BIT macro to all

Re: [PATCH] cpu/hotplug: Cache number of online CPUs

2019-07-04 Thread Mathieu Desnoyers
- On Jul 4, 2019, at 4:42 PM, Thomas Gleixner t...@linutronix.de wrote: > Revaluating the bitmap wheight of the online cpus bitmap in every > invocation of num_online_cpus() over and over is a pretty useless > exercise. Especially when num_online_cpus() is used in code pathes like the > IPI de

Re: [PATCH v2 1/2] nvmet: Fix use-after-free bug when a port is removed

2019-07-04 Thread Max Gurtovoy
Hi Logan, On 7/4/2019 2:03 AM, Logan Gunthorpe wrote: When a port is removed through configfs, any connected controllers are still active and can still send commands. This causes a use-after-free bug which is detected by KASAN for any admin command that dereferences req->port (like in nvmet_exec

Re: [PATCH v2 1/2] nvmet: Fix use-after-free bug when a port is removed

2019-07-04 Thread Logan Gunthorpe
On 2019-07-04 3:00 p.m., Max Gurtovoy wrote: > Hi Logan, > > On 7/4/2019 2:03 AM, Logan Gunthorpe wrote: >> When a port is removed through configfs, any connected controllers >> are still active and can still send commands. This causes a >> use-after-free bug which is detected by KASAN for any

Re: linux-next: manual merge of the akpm-current tree with the hmm tree

2019-07-04 Thread Stephen Rothwell
Hi Jason, On Thu, 4 Jul 2019 13:28:41 + Jason Gunthorpe wrote: > > BTW, do you use a script to get these conflicting patch commit ID > automatically? It is so helpful to have them. No, I just use gitk and a bit of searching. Though often there are not many possible commits to search. -- C

Re: [PATCH] cpu/hotplug: Cache number of online CPUs

2019-07-04 Thread Thomas Gleixner
On Thu, 4 Jul 2019, Mathieu Desnoyers wrote: > - On Jul 4, 2019, at 4:42 PM, Thomas Gleixner t...@linutronix.de wrote: > > > Revaluating the bitmap wheight of the online cpus bitmap in every > > invocation of num_online_cpus() over and over is a pretty useless > > exercise. Especially when nu

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-07-04 Thread Andrew Morton
On Thu, 4 Jul 2019 21:54:36 +0100 Robin Murphy wrote: > >> mm-clean-up-is_device__page-definitions.patch > >> mm-introduce-arch_has_pte_devmap.patch > >> arm64-mm-implement-pte_devmap-support.patch > >> arm64-mm-implement-pte_devmap-support-fix.patch > > > > This one we discussed, and I thought

Re: [PATCH] swap_readpage: avoid blk_wake_io_task() if !synchronous

2019-07-04 Thread Hugh Dickins
On Thu, 4 Jul 2019, Andrew Morton wrote: > On Thu, 4 Jul 2019 18:03:01 +0200 Oleg Nesterov wrote: > > > swap_readpage() sets waiter = bio->bi_private even if synchronous = F, > > this means that the caller can get the spurious wakeup after return. This > > can be fatal if blk_wake_io_task() does

Re: [PATCH 01/12 v2] Platform: add a dev_groups pointer to struct platform_driver

2019-07-04 Thread Dmitry Torokhov
Hi Greg, On Thu, Jul 4, 2019 at 5:15 AM Greg Kroah-Hartman wrote: > > Platform drivers like to add sysfs groups to their device, but right now > they have to do it "by hand". The driver core should handle this for > them, but there is no way to get to the bus-default attribute groups as > all pl

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-07-04 Thread Jason Gunthorpe
On Thu, Jul 04, 2019 at 01:53:32PM -0700, Andrew Morton wrote: > On Thu, 4 Jul 2019 19:59:38 + Jason Gunthorpe wrote: > > > On Thu, Jul 04, 2019 at 11:53:24AM -0700, Andrew Morton wrote: > > > On Wed, 26 Jun 2019 20:35:51 -0700 Andrew Morton > > > wrote: > > > > > > > > Let me know and I c

Re: [GIT PULL] FSI changes for 5.3

2019-07-04 Thread Stephen Rothwell
Hi Joel, On Thu, 4 Jul 2019 06:03:18 + Joel Stanley wrote: > > On Wed, 3 Jul 2019 at 05:32, Benjamin Herrenschmidt > wrote: > > > > On Wed, 2019-07-03 at 03:39 +, Joel Stanley wrote: > > > > > > We've not had a MAINAINERS entry for drivers/fsi, so this fixes that. It > > > names > >

Re: [PATCH v2 1/7] x86/paravirt: Make read_cr2() CALLEE_SAVE

2019-07-04 Thread Andy Lutomirski
On Thu, Jul 4, 2019 at 1:03 PM Peter Zijlstra wrote: > > The one paravirt read_cr2() implementation (Xen) is actually quite > trivial and doesn't need to clobber anything other than the return > register. By making read_cr2() CALLEE_SAVE we avoid all the PUSH/POP > nonsense and allow more convenie

Re: [PATCH v2 2/7] x86/entry/32: Simplify common_exception

2019-07-04 Thread Andy Lutomirski
On Thu, Jul 4, 2019 at 1:03 PM Peter Zijlstra wrote: > > By adding one more option to SAVE_ALL we can make use of it in > common_exception and simplify things. This saves duplication later > where page_fault will no longer use common_exception. > Reviewed-by: Andy Lutomirski Although I'm still

Re: [PATCH v2 3/7] x86/entry/64: Simplify idtentry a little

2019-07-04 Thread Andy Lutomirski
On Thu, Jul 4, 2019 at 1:03 PM Peter Zijlstra wrote: > > There's a bunch of duplication in idtentry, namely the > .Lfrom_usermode_switch_stack is a paranoid=0 copy of the normal flow. > > Make this explicit by creating a idtentry_part helper macro. > > Signed-off-by: Peter Zijlstra (Intel) > ---

Re: [PATCH v2 4/7] x86/entry/64: Update comments and sanity tests for create_gap

2019-07-04 Thread Andy Lutomirski
On Thu, Jul 4, 2019 at 1:03 PM Peter Zijlstra wrote: > > Acked-by: Andy Lutomirski

Re: [PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-04 Thread Paweł Dembicki
On 4/7/19 09:22 Linus Walleij wrote: > > My devices do not have direct access to the reset line so I > can't assert reset no matter how I try, if it works for you, the > code is certainly better like this. > In P2020RDB, VSC7385 reset is connected to GPIO. U-boot put binary file to iCPU and make

Re: [PATCH] cpu/hotplug: Cache number of online CPUs

2019-07-04 Thread Mathieu Desnoyers
- On Jul 4, 2019, at 5:10 PM, Thomas Gleixner t...@linutronix.de wrote: > On Thu, 4 Jul 2019, Mathieu Desnoyers wrote: > >> - On Jul 4, 2019, at 4:42 PM, Thomas Gleixner t...@linutronix.de wrote: >> >> > Revaluating the bitmap wheight of the online cpus bitmap in every >> > invocation of

mmotm 2019-07-04-15-01 uploaded

2019-07-04 Thread akpm
The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH] Convert get_task_struct to return the task

2019-07-04 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Returning the pointer that was passed in allows us to write slightly more idiomatic code. Convert a few users. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/sched/task.h| 6 +- kernel/events/core.c | 9 +++-- kernel/irq/m

Re: [PATCH net-next 0/9] net: hns3: some cleanups & bugfixes

2019-07-04 Thread Jakub Kicinski
On Thu, 4 Jul 2019 22:04:19 +0800, Huazhong Tan wrote: > This patch-set includes cleanups and bugfixes for > the HNS3 ethernet controller driver. > > [patch 1/9] fixes VF's broadcast promisc mode not enabled after > initializing. > > [patch 2/9] adds hints for fibre port not support flow control.

[PATCH][next] ubifs: remove redundant assignment to pointer fname

2019-07-04 Thread Colin King
From: Colin Ian King The pointer fname rc is being assigned with a value that is never read because the function returns after the assignment. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- fs/ubifs/debug.c | 1 - 1 file c

[PATCH v3 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-04 Thread Pawel Dembicki
Driver allow to use devices with disabled iCPU only. Some devices have pre-initialised iCPU by bootloader. That state make switch unmanaged. This patch force reset if device is in unmanaged state. In the result chip lost internal firmware from RAM and it can be managed. Signed-off-by: Pawel Dembi

[PATCH v3 0/4] net: dsa: Add Vitesse VSC73xx parallel mode

2019-07-04 Thread Pawel Dembicki
Main goal of this patch series is to add support for CPU attached parallel bus in Vitesse VSC73xx switches. Existing driver supports only SPI mode. Second change is needed for devices in unmanaged state. V3: - fix commit messages and descriptions about memory-mapped I/O mode V2: - drop changes i

[PATCH v3 1/4] net: dsa: Change DT bindings for Vitesse VSC73xx switches

2019-07-04 Thread Pawel Dembicki
This commit introduce how to use vsc73xx platform driver. Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- .../bindings/net/dsa/vitesse,vsc73xx.txt | 58 +-- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/Documentat

[PATCH v3 2/4] net: dsa: vsc73xx: Split vsc73xx driver

2019-07-04 Thread Pawel Dembicki
This driver (currently) only takes control of the switch chip over SPI and configures it to route packages around when connected to a CPU port. But Vitesse chip support also parallel interface. This patch split driver into two parts: core and spi. It is required for add support to another managing

[PATCH v3 3/4] net: dsa: vsc73xx: add support for parallel mode

2019-07-04 Thread Pawel Dembicki
This patch add platform part of vsc73xx driver. It allows to use chip connected to a parallel memory bus and work in memory-mapped I/O mode. (aka PI bus in chip manual) By default device is working in big endian mode. Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij --- drivers/net/dsa

Re: [PATCH] media: bcm2048: Macros with complex values should be enclosed in parentheses

2019-07-04 Thread kbuild test robot
Hi Lukas, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [cannot apply to v5.2-rc7 next-20190704] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] cpu/hotplug: Cache number of online CPUs

2019-07-04 Thread Thomas Gleixner
On Thu, 4 Jul 2019, Mathieu Desnoyers wrote: > - On Jul 4, 2019, at 5:10 PM, Thomas Gleixner t...@linutronix.de wrote: > > > > num_online_cpus() is racy today vs. CPU hotplug operations as > > long as you don't hold the hotplug lock. > > Fair point, AFAIU none of the loads performed within num

[tip:WIP.x86/ipi 1/25] arch/x86/kernel/kgdb.c:427:28: error: 'VECTOR_NMI' undeclared; did you mean 'ESTACK_NMI'?

2019-07-04 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/ipi head: 64fca03f132d830b48b20a8547fb8337e89715cd commit: 3883fea4fbeb4a505c6db87b0ba9af910e10a07e [1/25] x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI config: x86_64-allyesconfig (attached as .config) compiler: gc

[tip:WIP.x86/ipi 1/25] arch/x86/kernel/kgdb.c:427:28: error: 'VECTOR_NMI' undeclared

2019-07-04 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/ipi head: 64fca03f132d830b48b20a8547fb8337e89715cd commit: 3883fea4fbeb4a505c6db87b0ba9af910e10a07e [1/25] x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI config: i386-allmodconfig (attached as .config) compiler: gcc-

Re: suspend broken in next-20190704 on Thinkpad X60

2019-07-04 Thread Rafael J. Wysocki
On Thu, Jul 4, 2019 at 9:20 PM Pavel Machek wrote: > > Hi! > > Suspend is broken in next-20190704 on Thinkpad X60. Broken in what way? Any details? > It very very probably worked ok in 20190701. Well, please try the linux-next branch from linux-pm.git (git://git.kernel.or

[PATCH v7 net-next 1/5] net: core: page_pool: add user refcnt and reintroduce page_pool_destroy

2019-07-04 Thread Ivan Khoronzhuk
Jesper recently removed page_pool_destroy() (from driver invocation) and moved shutdown and free of page_pool into xdp_rxq_info_unreg(), in-order to handle in-flight packets/pages. This created an asymmetry in drivers create/destroy pairs. This patch reintroduce page_pool_destroy and add page_pool

[PATCH v7 net-next 4/5] net: ethernet: ti: cpsw_ethtool: allow res split while down

2019-07-04 Thread Ivan Khoronzhuk
That's possible to set channel num while interfaces are down. When interface gets up it should resplit budget. This resplit can happen after phy is up but only if speed is changed, so should be set before this, for this allow it to happen while changing number of channels, when interfaces are down.

[PATCH v7 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ivan Khoronzhuk
Add XDP support based on rx page_pool allocator, one frame per page. Page pool allocator is used with assumption that only one rx_handler is running simultaneously. DMA map/unmap is reused from page pool despite there is no need to map whole page. Due to specific of cpsw, the same TX/RX handler ca

[PATCH v7 net-next 2/5] net: ethernet: ti: davinci_cpdma: add dma mapped submit

2019-07-04 Thread Ivan Khoronzhuk
In case if dma mapped packet needs to be sent, like with XDP page pool, the "mapped" submit can be used. This patch adds dma mapped submit based on regular one. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/davinci_cpdma.c | 89 ++--- drivers/net/ethernet/ti/davi

[PATCH v7 net-next 3/5] net: ethernet: ti: davinci_cpdma: allow desc split while down

2019-07-04 Thread Ivan Khoronzhuk
That's possible to set ring params while interfaces are down. When interface gets up it uses number of descs to fill rx queue and on later on changes to create rx pools. Usually, this resplit can happen after phy is up, but it can be needed before this, so allow it to happen while setting number of

[PATCH v7 net-next 0/5] net: ethernet: ti: cpsw: Add XDP support

2019-07-04 Thread Ivan Khoronzhuk
This patchset adds XDP support for TI cpsw driver and base it on page_pool allocator. It was verified on af_xdp socket drop, af_xdp l2f, ebpf XDP_DROP, XDP_REDIRECT, XDP_PASS, XDP_TX. It was verified with following configs enabled: CONFIG_JIT=y CONFIG_BPFILTER=y CONFIG_BPF_SYSCALL=y CONFIG_XDP_SOC

Re: audio lost from speaker after reboot from windows on the device ALC295

2019-07-04 Thread Hui Wang
Maybe your machine has an external amplifier which needs to be set by software before it can work. On 2019/7/4 下午8:02, He, Bo wrote: Hi, patch_realtek.c maintainer: I see one issue that reboot from windows and boot to ubuntu, the audio lost from speaker, I suspect there are some bugs i

Re: [PATCH] dax: Fix missed PMD wakeups

2019-07-04 Thread Dan Williams
On Thu, Jul 4, 2019 at 12:14 PM Matthew Wilcox wrote: > > On Thu, Jul 04, 2019 at 06:54:50PM +0200, Jan Kara wrote: > > On Wed 03-07-19 20:27:28, Matthew Wilcox wrote: > > > So I think we're good for all current users. > > > > Agreed but it is an ugly trap. As I already said, I'd rather pay the >

Re: linux-next: manual merge of the akpm-current tree with the hmm tree

2019-07-04 Thread Dan Williams
Guys, Andrew has kicked the subsection patches out of -mm because of the merge conflicts. Can we hold off on the hmm cleanups for this cycle? On Thu, Jul 4, 2019 at 2:08 PM Stephen Rothwell wrote: > > Hi Jason, > > On Thu, 4 Jul 2019 13:28:41 + Jason Gunthorpe wrote: > > > > BTW, do you use

Re: [PATCH net-next 4/6] arm64: dts: fsl: ls1028a: Add Felix switch port DT node

2019-07-04 Thread Vladimir Oltean
On Tue, 25 Jun 2019 at 00:23, Alexandre Belloni wrote: > > On 24/06/2019 18:24:31+0200, Andrew Lunn wrote: > > On Mon, Jun 24, 2019 at 05:23:45PM +0200, Allan W. Nielsen wrote: > > > Hi Andrew, > > > > > > The 06/24/2019 16:26, Andrew Lunn wrote: > > > > > > Yeah, there are 2 ethernet controller p

Re: [PATCH] cpu/hotplug: Cache number of online CPUs

2019-07-04 Thread Mathieu Desnoyers
- On Jul 4, 2019, at 6:33 PM, Thomas Gleixner t...@linutronix.de wrote: > On Thu, 4 Jul 2019, Mathieu Desnoyers wrote: >> - On Jul 4, 2019, at 5:10 PM, Thomas Gleixner t...@linutronix.de wrote: >> > >> > num_online_cpus() is racy today vs. CPU hotplug operations as >> > long as you don't h

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-07-04 Thread Dan Williams
On Thu, Jul 4, 2019 at 12:59 PM Jason Gunthorpe wrote: > > On Thu, Jul 04, 2019 at 11:53:24AM -0700, Andrew Morton wrote: > > On Wed, 26 Jun 2019 20:35:51 -0700 Andrew Morton > > wrote: > > > > > > Let me know and I can help orchestate this. > > > > > > Well. Whatever works. In this situation

[PATCH 6/8] net: nixge: Fix misuse of strlcpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/net/ethernet/ni/nixge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c index 96f7a9818294..0b384f97d2fd 100644 --- a

[PATCH 1/8] Input: synaptics: Fix misuse of strlcpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/input/mouse/synaptics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 1080c0c49815..00a0cf14f27f 100644 --- a

[PATCH 0/8] treewide: correct misuses of strscpy/strlcpy

2019-07-04 Thread Joe Perches
These are all likely copy/paste defects where the field size of the 'copied to' array is incorrect. Each patch in this series is independent. Joe Perches (8): Input: synaptics: Fix misuse of strlcpy leds: as3645a: Fix misuse of strlcpy media: m2m-deinterlace: Fix misuse of strscpy media:

[PATCH 8/8] nfsd: Fix misuse of strlcpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- fs/nfsd/nfs4idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c index 2961016097ac..d1f285245af8 100644 --- a/fs/nfsd/nfs4idmap.c +++ b/fs/nfsd/n

[PATCH 5/8] net: ethernet: sun4i-emac: Fix misuse of strlcpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/net/ethernet/allwinner/sun4i-emac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c b/drivers/net/ethernet/allwinner/sun4i-emac.c inde

[PATCH 3/8] media: m2m-deinterlace: Fix misuse of strscpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/media/platform/m2m-deinterlace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index beb7fd7442f

[PATCH 7/8] tty: hvcs: Fix odd use of strlcpy

2019-07-04 Thread Joe Perches
Use the typical style of array, not the equivalent &array[0]. Signed-off-by: Joe Perches --- drivers/tty/hvc/hvcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index cb4db1b3ca3c..b6c1c1be06f9 100644 --- a/drivers/tty/hv

[PATCH 4/8] media: go7007: Fix misuse of strscpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/media/usb/go7007/snd-go7007.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/go7007/snd-go7007.c b/drivers/media/usb/go7007/snd-go7007.c index 4a449c62fc32..b05fa2

[PATCH 2/8] leds: as3645a: Fix misuse of strlcpy

2019-07-04 Thread Joe Perches
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- drivers/leds/leds-as3645a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c index 14ab6b0e4de9..050088dff8dd 100644 --- a/drivers/led

[GIT PULL] dax fix for v5.2-rc8

2019-07-04 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/dax-fix-5.2-rc8 ...to receive a single dax fix that has been soaking awaiting other fixes under discussion to join it. As it is getting late in the cycle lets proceed with this fix and save follow-on ch

[PATCH bpf-next] Enable zext optimization for more RV64G ALU ops

2019-07-04 Thread Luke Nelson
commit 66d0d5a854a6 ("riscv: bpf: eliminate zero extension code-gen") added the new zero-extension optimization for some BPF ALU operations. Since then, bugs in the JIT that have been fixed in the bpf tree require this optimization to be added to other operations: commit 1e692f09e091 ("bpf, riscv:

Re: [PATCH v2 1/3] vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock

2019-07-04 Thread Jason Wang
On 2019/7/4 下午5:20, Stefano Garzarella wrote: This is still suspicious, can we access the_virtio_vsock through vdev->priv? If yes, we may still get use-after-free since it was not protected by RCU. We will free the object only after calling the del_vqs(), so we are sure that the vq_callbacks e

[GIT PULL] ARM: SoC fixes

2019-07-04 Thread Olof Johansson
Hi Linus, Greg, The following changes since commit 6fbc7275c7a9ba97877050335f290341a1fd8dbf: Linux 5.2-rc7 (2019-06-30 11:25:36 +0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes for you to fetch changes up to 2659dc8d

Re: [PATCH] perf/x86/intel: Fix spurious NMI on fixed counter

2019-07-04 Thread Jin, Yao
On 6/25/2019 10:58 PM, Jiri Olsa wrote: On Tue, Jun 25, 2019 at 07:21:35AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang If a user first sample a PEBS event on a fixed counter, then sample a non-PEBS event on the same fixed counter on Icelake, it will trigger spurious NMI. For exa

RE: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM

2019-07-04 Thread Anson Huang
Hi, Philipp > On Thu, 2019-07-04 at 17:44 +0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible > > property and related info to support i.MX8MM. > > > > Signed-off-by: Anson Huang > > --- > > Changes since V2: > > - A

Re: [RFC v2] vhost: introduce mdev based hardware vhost backend

2019-07-04 Thread Jason Wang
On 2019/7/4 下午3:02, Tiwei Bie wrote: On Thu, Jul 04, 2019 at 02:35:20PM +0800, Jason Wang wrote: On 2019/7/4 下午2:21, Tiwei Bie wrote: On Thu, Jul 04, 2019 at 12:31:48PM +0800, Jason Wang wrote: On 2019/7/3 下午9:08, Tiwei Bie wrote: On Wed, Jul 03, 2019 at 08:16:23PM +0800, Jason Wang wrote:

[PATCH v2 04/11] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-07-04 Thread Wu Hao
This patch introduces more sysfs interfaces for Accelerated Function Unit (AFU). These interfaces allow users to read current AFU Power State (APx), read / clear AFU Power (APx) events which are sticky to identify transient APx state, and manage AFU's LTR (latency tolerance reporting). Signed-off-

[PATCH v2 06/11] fpga: dfl: add id_table for dfl private feature driver

2019-07-04 Thread Wu Hao
This patch adds id_table for each dfl private feature driver, it allows to reuse same private feature driver to match and support multiple dfl private features. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- v2: reb

[PATCH v2 05/11] fpga: dfl: afu: add userclock sysfs interfaces.

2019-07-04 Thread Wu Hao
This patch introduces userclock sysfs interfaces for AFU, user could use these interfaces for clock setting to AFU. Please note that, this is only working for port header feature with revision 0, for later revisions, userclock setting is moved to a separated private feature, so one revision sysfs

[PATCH v2 10/11] fpga: dfl: fme: add capability sysfs interfaces

2019-07-04 Thread Wu Hao
This patch adds 3 read-only sysfs interfaces for FPGA Management Engine (FME) block for capabilities including cache_size, fabric_version and socket_id. Signed-off-by: Luwei Kang Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- v2: rebased. -

[PATCH v2 08/11] fpga: dfl: afu: add error reporting support.

2019-07-04 Thread Wu Hao
Error reporting is one important private feature, it reports error detected on port and accelerated function unit (AFU). It introduces several sysfs interfaces to allow userspace to check and clear errors detected by hardware. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Si

[PATCH v2 03/11] fpga: dfl: pci: enable SRIOV support.

2019-07-04 Thread Wu Hao
This patch enables the standard sriov support. It allows user to enable SRIOV (and VFs), then user could pass through accelerators (VFs) into virtual machine or use VFs directly in host. Signed-off-by: Zhang Yi Z Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Morit

[PATCH v2 09/11] fpga: dfl: afu: add STP (SignalTap) support

2019-07-04 Thread Wu Hao
STP (SignalTap) is one of the private features under the port for debugging. This patch adds private feature driver support for it to allow userspace applications to mmap related mmio region and provide STP service. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by

[PATCH v2 00/11] FPGA DFL updates

2019-07-04 Thread Wu Hao
Hi Greg / Moritz This is v2 patchset which adds more features to FPGA DFL. This patchset is made on top of patch[1] and char-misc-next tree. Documentation patch for DFL is dropped from this patchset, and will resubmit it later to avoid conflict. Main changes from v1: - remove DRV/MODULE_VERSION

[PATCH v2 11/11] fpga: dfl: fme: add global error reporting support

2019-07-04 Thread Wu Hao
This patch adds support for global error reporting for FPGA Management Engine (FME), it introduces sysfs interfaces to report different error detected by the hardware, and allow user to clear errors or inject error for testing purpose. Signed-off-by: Luwei Kang Signed-off-by: Ananda Ravuri Signe

[PATCH v2 01/11] fpga: dfl: fme: support 512bit data width PR

2019-07-04 Thread Wu Hao
In early partial reconfiguration private feature, it only supports 32bit data width when writing data to hardware for PR. 512bit data width PR support is an important optimization for some specific solutions (e.g. XEON with FPGA integrated), it allows driver to use AVX512 instruction to improve the

[PATCH v2 02/11] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-07-04 Thread Wu Hao
In order to support virtualization usage via PCIe SRIOV, this patch adds two ioctls under FPGA Management Engine (FME) to release and assign back the port device. In order to safely turn Port from PF into VF and enable PCIe SRIOV, it requires user to invoke this PORT_RELEASE ioctl to release port f

[PATCH v2 07/11] fpga: dfl: afu: export __port_enable/disable function.

2019-07-04 Thread Wu Hao
As these two functions are used by other private features. e.g. in error reporting private feature, it requires to check port status and reset port for error clearing. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by: Moritz Fischer ---

Re: [PATCH 1/2] scsi_host: add support for request batching

2019-07-04 Thread Ming Lei
On Mon, Jun 3, 2019 at 4:16 PM Paolo Bonzini wrote: > > On 31/05/19 05:27, Ming Lei wrote: > > It should be fine to implement scsi_commit_rqs() as: > > > > if (shost->hostt->commit_rqs) > >shost->hostt->commit_rqs(shost, hctx->queue_num); > > > > then scsi_mq_ops_no_commit can be saved. >

Re: [PATCH 05/10] sched,fair: remove cfs rqs from leaf_cfs_rq_list bottom up

2019-07-04 Thread Rik van Riel
On Thu, 2019-07-04 at 11:33 +0200, Vincent Guittot wrote: > On Fri, 28 Jun 2019 at 22:49, Rik van Riel wrote: > > Reducing the overhead of the CPU controller is achieved by not > > walking > > all the sched_entities every time a task is enqueued or dequeued. > > @@ -7687,6 +7700,10 @@ static inli

Re: [PATCH v2 31/35] ocfs2: Use kmemdup rather than duplicating its implementation

2019-07-04 Thread Joseph Qi
On 19/7/4 00:31, Fuqian Huang wrote: > kmemdup is introduced to duplicate a region of memory in a neat way. > Rather than kmalloc/kzalloc + memcpy, which the programmer needs to > write the size twice (sometimes lead to mistakes), kmemdup improves > readability, leads to smaller code and also re

Re: linux-next: build failure after merge of the clk tree

2019-07-04 Thread Stephen Rothwell
Hi all, On Tue, 2 Jul 2019 12:03:50 +1000 Stephen Rothwell wrote: > > This at least passes my (few) build tests (this will be in linux-next > today): > > From: Stephen Rothwell > Date: Tue, 2 Jul 2019 11:53:07 +1000 > Subject: [PATCH] clk: consoldiate the __clk_get_hw() declarations > > Witho

Re: [patch V2 21/25] x86/smp: Enhance native_send_call_func_ipi()

2019-07-04 Thread Nadav Amit
> On Jul 4, 2019, at 8:52 AM, Thomas Gleixner wrote: > > Nadav noticed that the cpumask allocations in native_send_call_func_ipi() > are noticeable in microbenchmarks. > > Use the new cpumask_or_equal() function to simplify the decision whether > the supplied target CPU mask is either equal to c

Re: [PATCH 2/2] usbip: Implement SG support to vhci

2019-07-04 Thread Alan Stern
On Fri, 5 Jul 2019, Suwan Kim wrote: > On Mon, Jun 24, 2019 at 01:24:15PM -0400, Alan Stern wrote: > > On Mon, 24 Jun 2019, Suwan Kim wrote: > > > > > > > + hcd->self.sg_tablesize = ~0; > > > > > + hcd->self.no_sg_constraint = 1; > > > > > > > > You probably shouldn't do this, for two re

RE: [EXT] [BUG BISECT] Net boot fails on VF50 after "dmaengine: fsl-edma: support little endian for edma driver"

2019-07-04 Thread Peng Ma
Hi Fabio, Thanks very much for your suggestion, I will do some changes then to Send upstream review. Best Regards, Peng >-Original Message- >From: Fabio Estevam >Sent: 2019年7月4日 20:07 >To: Peng Ma >Cc: Krzysztof Kozłowski ; Vinod Koul >; dmaeng...@vger.kernel.org; >linux-kernel@vger.ker

RE: [EXT] [BUG BISECT] Net boot fails on VF50 after "dmaengine: fsl-edma: support little endian for edma driver"

2019-07-04 Thread Peng Ma
Hi Krzysztof, Got it. Thanks for your help Best Regards, Peng >-Original Message- >From: Krzysztof Kozlowski >Sent: 2019年7月4日 20:57 >To: Peng Ma >Cc: Vinod Koul ; dmaeng...@vger.kernel.org; >linux-kernel@vger.kernel.org; Fabio Estevam ; Leo >Li ; Andy Tang >Subject: Re: [EXT] [BUG BISE

Re: [PATCH v2] checkpatch: add several Kconfig default value tests

2019-07-04 Thread Miles Chen
On Thu, 2019-07-04 at 11:49 -0700, Joe Perches wrote: > On Thu, 2019-07-04 at 17:40 +0800, Miles Chen wrote: > > This change adds 3 Kconfig default value tests: > [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] > > @@ -3005,6 +3005,27 @@ sub process { > >

Re: [PATCH] fs: ocfs2: dlmglue: Unneeded variable: "status"

2019-07-04 Thread Joseph Qi
On 19/7/3 02:32, Hariprasad Kelam wrote: > fix below issue reported by coccicheck > fs/ocfs2/dlmglue.c:4410:5-11: Unneeded variable: "status". Return "0" on > line 4428 > > We can not change return type of ocfs2_downconvert_thread as its > registered as callback of kthread_create. > > Signed-o

Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corruption

2019-07-04 Thread Linus Torvalds
On Fri, Jul 5, 2019 at 5:03 AM Peter Zijlstra wrote: > > Despire the current efforts to read CR2 before tracing happens there > still exist a number of possible holes: So this whole series disturbs me for the simple reason that I thought tracing was supposed to save/restore cr2 and make it unnece

Re: [PATCH v2] RDMA/core: Fix race when resolving IP address

2019-07-04 Thread Parav Pandit
On Fri, Jun 28, 2019 at 2:20 PM Dag Moxnes wrote: > > Use neighbour lock when copying MAC address from neighbour data struct > in dst_fetch_ha. > > When not using the lock, it is possible for the function to race with > neigh_update, causing it to copy an invalid MAC address. > > It is possible to

Re: [RFC v2] vhost: introduce mdev based hardware vhost backend

2019-07-04 Thread Tiwei Bie
On Fri, Jul 05, 2019 at 08:30:00AM +0800, Jason Wang wrote: > On 2019/7/4 下午3:02, Tiwei Bie wrote: > > On Thu, Jul 04, 2019 at 02:35:20PM +0800, Jason Wang wrote: > > > On 2019/7/4 下午2:21, Tiwei Bie wrote: > > > > On Thu, Jul 04, 2019 at 12:31:48PM +0800, Jason Wang wrote: > > > > > On 2019/7/3 下午9

Re: [PATCH v2] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-04 Thread Chris Chiu
On Fri, Jul 5, 2019 at 12:43 AM Jes Sorensen wrote: > > On 7/4/19 6:55 AM, Chris Chiu wrote: > > The WiFi tx power of RTL8723BU is extremely low after booting. So > > the WiFi scan gives very limited AP list and it always fails to > > connect to the selected AP. This module only supports 1x1 anten

Re: [PATCH v2] ASoC: sunxi: sun50i-codec-analog: Add earpiece

2019-07-04 Thread Chen-Yu Tsai
On Thu, Jul 4, 2019 at 2:49 AM Luca Weiss wrote: > > This adds the necessary registers and audio routes to play audio using > the Earpiece, that's supported on the A64. > > Signed-off-by: Luca Weiss LGTM. Reviewed-by: Chen-Yu Tsai

RE: [PATCHv5 02/20] PCI: mobiveil: Format the code without functionality change

2019-07-04 Thread Z.q. Hou
Hi Lorenzo, > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年7月4日 18:57 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm

RE: audio lost from speaker after reboot from windows on the device ALC295

2019-07-04 Thread Kailang
Hi Bo He, Could you help to dump info for us? Please use attach file to get results. ./alsa-info.sh --no-upload You will find dump file in folder /tmp/alsa-info.txt-. Please run one time in normal state and one time in fail state. Please send two result files to me. BR, Kailang >

RE: audio lost from speaker after reboot from windows on the device ALC295

2019-07-04 Thread Kailang
Sorry!! Forgot attach file. > -Original Message- > From: Kailang > Sent: Friday, July 5, 2019 10:41 AM > To: 'He, Bo' ; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > dr...@endlessm.com; c...@endlessm.com; hui.w..

WITH DUE RESPECT

2019-07-04 Thread Mr.Salif Naba
Compliment of the day, I am Mr. Salif Naba I Have a Business Proposal of $15.5)million For You. I am aware of the unsafe nature of the internet, and was compelled to use this medium due to the nature of this project. I have access to very vital information that can be used to transfer this huge a

RE: [EXT] Re: [PATCH nvmem 1/1] nvmem: imx: correct the fuse word index

2019-07-04 Thread Andy Duan
From: Andy Duan Sent: Friday, July 5, 2019 12:08 AM > From: Lothar Waßmann Sent: Thursday, July 4, > 2019 11:46 PM > > Hi, > > > > On Thu, 4 Jul 2019 22:20:15 +0800 fugang.d...@nxp.com wrote: > > > From: Fugang Duan > > > > > > iMX8 fuse word index represent as one 4-bytes word, it should not be

Re: [GIT PULL] ARM: SoC fixes

2019-07-04 Thread pr-tracker-bot
The pull request you sent on Thu, 4 Jul 2019 17:22:23 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ecbe5086adc2876b22c898987d8a20f932de87a9 Thank you! -- Deet-doot-dot, I am a bot

<    1   2   3   4   5   6   7   >