[PATCH 4/8 v4] dma: k3dma: Delete axi_config

2019-01-16 Thread John Stultz
From: Li Yu Axi_config controls whether DMA resources can be accessed in non-secure mode, such as linux kernel. The register should be set by the bootloader stage and depends on the device. Thus, this patch removes axi_config from k3dma driver. Cc: Dan Williams Cc: Vinod Koul Cc: Tanglei Han

[PATCH 8/8 v4] arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-channel-mask

2019-01-16 Thread John Stultz
A undocumented and unimplemented binding got into the hi3660 dtsi, and this switches that binding to the now documented one. Cc: Tanglei Han Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH 3/8 v4] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-16 Thread John Stultz
From: Youlin Wang On the hi3660 hardware there are two (at least) DMA controllers, the DMA-P (Peripherial DMA) and the DMA-A (Audio DMA). The two blocks are similar, but have some slight differences. This resulted in the vendor implementing two separate drivers, which after review, they have

[PATCH 0/8 v4] k3dma patches to add support for hi3660/HiKey960

2019-01-16 Thread John Stultz
This patch series is based on recent work by Tanglei Han, and adds support for hi3660 SoCs as found on the HiKey960 board, along with a few patches I've been carrying. thanks -john New in v4: * Rework hisi,dma-avail-chans to generic dma-channel-mask, per Rob's suggestion Cc: Tanglei Han Cc:

Re: [PATCH] iommu/amd: Fix IOMMU page flush when detach all devices from a domain

2019-01-16 Thread j...@8bytes.org
On Wed, Jan 16, 2019 at 02:40:59PM +, Suthikulpanit, Suravee wrote: > Actually, device_flush_dte(alias) should be needed regardless of this patch. > Are you planning to add this? Yes, I stumbled over this while writing the diff. I'll submit that as a separate patch. Thanks, Joerg

Re: [PATCH] iommu/amd: Fix IOMMU page flush when detach all devices from a domain

2019-01-16 Thread j...@8bytes.org
On Wed, Jan 16, 2019 at 02:08:55PM +, Suthikulpanit, Suravee wrote: > Actually, I am not sure how we would be missing the flush on the last device. > In my test, I am seeing the flush command being issued correctly during > vfio_unmap_unpin(), which is after all devices are detached. >

Re: [PATCH 0/8] Virtio-over-PCIe on non-MIC

2019-01-16 Thread Arnd Bergmann
On Wed, Jan 16, 2019 at 5:33 PM Vincent Whitchurch wrote: > > The Virtio-over-PCIe framework living under drivers/misc/mic/vop implements a > generic framework to use virtio between two Linux systems, given shared memory > and a couple of interrupts. It does not actually require the Intel MIC >

[PATCH] wan: dscc4: fix various indentation issues

2019-01-16 Thread Colin King
From: Colin Ian King There are some lines that have indentation issues, fix these. Signed-off-by: Colin Ian King --- drivers/net/wan/dscc4.c | 50 - 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/net/wan/dscc4.c

Re: [PATCH] irq: convert the code format to BIT()

2019-01-16 Thread Randy Dunlap
On 1/16/19 8:03 AM, Yangtao Li wrote: > Use BIT() to do some clean-up. > > Signed-off-by: Yangtao Li > --- > include/linux/irq.h | 106 ++-- > 1 file changed, 53 insertions(+), 53 deletions(-) > Hi, >From Documentation/process/submit-checklist.rst,

Re: [PATCH] sysctl: Add panic-fatal-signals

2019-01-16 Thread Kees Cook
On Wed, Jan 16, 2019 at 4:54 AM Vincent Whitchurch wrote: > > Add a sysctl which asks the kernel to panic when any userspace process > receives a fatal signal which would trigger a core dump. This has > proven to be quite useful when debugging problems seen during testing of > embedded systems:

Re: [PATCH 13/14] staging: android: ion: Do not sync CPU cache on map/unmap

2019-01-16 Thread Andrew F. Davis
On 1/16/19 9:19 AM, Brian Starkey wrote: > Hi :-) > > On Tue, Jan 15, 2019 at 12:40:16PM -0600, Andrew F. Davis wrote: >> On 1/15/19 12:38 PM, Andrew F. Davis wrote: >>> On 1/15/19 11:45 AM, Liam Mark wrote: On Tue, 15 Jan 2019, Andrew F. Davis wrote: > On 1/14/19 11:13 AM, Liam

Re: [PATCH 2/8] libertas: change snprintf to scnprintf for possible overflow

2019-01-16 Thread Willy Tarreau
On Wed, Jan 16, 2019 at 06:40:29PM +0200, Kalle Valo wrote: > Ok, I'll queue this for 5.0 and apply it to wireless-drivers instead. Thank you! Willy

Re: linux-next: Tree for Jan 16 (PCI config warning?)

2019-01-16 Thread Randy Dunlap
On 1/15/19 10:38 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190115: > on x86_64: when CONFIG_PCI is not enabled (via randconfig): WARNING: unmet direct dependencies detected for PCI_LOCKLESS_CONFIG Depends on [n]: PCI [=n] Selected by [y]: - X86 [=y] -- ~Randy

INFO: rcu detected stall in tipc_disc_timeout

2019-01-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:80b3671e9377 ip6_gre: update version related info when cha.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=151e546b40 kernel config: https://syzkaller.appspot.com/x/.config?x=8a4dffabfb4e36f9

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-16 Thread Jernej Škrabec
Dne sreda, 16. januar 2019 ob 13:09:58 CET je Priit Laes napisal(a): > On Thu, Jan 10, 2019 at 06:10:59PM +0100, Jernej Škrabec wrote: > > Dne četrtek, 10. januar 2019 ob 10:15:48 CET je Priit Laes napisal(a): > > > On Sun, Nov 04, 2018 at 07:26:39PM +0100, Jernej Skrabec wrote: > > > > Currently

[PATCH v3 2/2] powerpc: use probe_user_read()

2019-01-16 Thread Christophe Leroy
Instead of opencoding, use probe_user_read() to failessly read a user location. Signed-off-by: Christophe Leroy --- v3: No change v2: Using probe_user_read() instead of probe_user_address() arch/powerpc/kernel/process.c | 12 +--- arch/powerpc/mm/fault.c | 6 +-

[PATCH v3 1/2] mm: add probe_user_read()

2019-01-16 Thread Christophe Leroy
In powerpc code, there are several places implementing safe access to user data. This is sometimes implemented using probe_kernel_address() with additional access_ok() verification, sometimes with get_user() enclosed in a pagefault_disable()/enable() pair, etc. : show_user_instructions()

Re: [PATCH] selftests: add binderfs selftests

2019-01-16 Thread Christian Brauner
On January 16, 2019 6:42:20 PM GMT+02:00, Greg KH wrote: >On Wed, Jan 16, 2019 at 06:21:12PM +0200, Christian Brauner wrote: >> On January 16, 2019 5:54:50 PM GMT+02:00, Greg KH > wrote: >> >On Wed, Jan 16, 2019 at 02:19:03PM +0100, Christian Brauner wrote: >> >> This adds the promised selftest

Re: [PATCH] mm: hwpoison: use do_send_sig_info() instead of force_sig() (Re: PMEM error-handling forces SIGKILL causes kernel panic)

2019-01-16 Thread Dan Williams
On Wed, Jan 16, 2019 at 1:33 AM Naoya Horiguchi wrote: > > [ CCed Andrew and linux-mm ] > > On Fri, Jan 11, 2019 at 08:14:02AM +, Horiguchi Naoya(堀口 直也) wrote: > > Hi Dan, Jane, > > > > Thanks for the report. > > > > On Wed, Jan 09, 2019 at 03:49:32PM -0800, Dan Williams wrote: > > > [ switch

Re: [PATCH 4.14 00/27] 4.14.94-stable review

2019-01-16 Thread Jon Hunter
On 16/01/2019 16:02, Greg Kroah-Hartman wrote: > On Wed, Jan 16, 2019 at 09:25:12AM +, Jon Hunter wrote: >> >> On 15/01/2019 16:35, Greg Kroah-Hartman wrote: >>> This is the start of the stable review cycle for the 4.14.94 release. >>> There are 27 patches in this series, all will be posted

Re: [PATCH] arm64: dts: sdm845: Add lpasscc node

2019-01-16 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-01-15 22:09:10) > On Wed 05 Dec 00:00 PST 2018, Taniya Das wrote: > > > This adds the low pass audio clock controller node to sdm845 based on > > the example in the bindings. > > > > Applying this causes my MTP to reboot as clk_disable_unused() tries to > disable

Re: [RFC v3 14/21] iommu: introduce device fault data

2019-01-16 Thread Jean-Philippe Brucker
On 15/01/2019 21:27, Auger Eric wrote: [...] /* iommu fault flags */ -#define IOMMU_FAULT_READ 0x0 -#define IOMMU_FAULT_WRITE 0x1 +#define IOMMU_FAULT_READ (1 << 0) +#define IOMMU_FAULT_WRITE (1 << 1) +#define IOMMU_FAULT_EXEC (1 << 2)

Re: [PATCH] locking/qspinlock: Add bug check for exceeding MAX_NODES

2019-01-16 Thread Waiman Long
On 01/16/2019 11:47 AM, Will Deacon wrote: > On Tue, Jan 15, 2019 at 04:55:44PM -0500, Waiman Long wrote: >> On some architectures, it is possible to have nested NMIs taking >> spinlocks nestedly. Even though the chance of having more than 4 nested >> spinlocks with contention is extremely small,

[PATCH] arm64: dts: meson: fix g12a buses

2019-01-16 Thread Jerome Brunet
periph and hiu bus addresses/size are wrong. cbus, aobus and apb just don't exist in the memory map so remove them. Fixes: 9c8c52f7cb4f ("arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support") Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 70

[PATCH v3 2/2] iio: adc: add NPCM ADC driver

2019-01-16 Thread Tomer Maimon
Add Nuvoton NPCM BMC Analog-to-Digital Converter(ADC) driver. The NPCM ADC is a 10-bit converter for eight channel inputs. Signed-off-by: Tomer Maimon --- drivers/iio/adc/Kconfig| 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/npcm_adc.c | 335

[PATCH v3 0/2] iio: adc: npcm: add NPCM ADC driver

2019-01-16 Thread Tomer Maimon
This patch set adds Analog-to-Digital Converter (ADC) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The NPCM ADC is a 10-bit converter for eight channel inputs. The NPCM ADC driver tested on NPCM750 evaluation board. Addressed comments from:. - Jonathan Cameron:

[PATCH v3 1/2] dt-binding: iio: add NPCM ADC documentation

2019-01-16 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Analog-to-Digital Converter(ADC). Signed-off-by: Tomer Maimon Reviewed-by: Rob Herring --- .../bindings/iio/adc/nuvoton,npcm-adc.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

Re: [PATCH v4 2/3] locking: Implement an algorithm choice for Wound-Wait mutexes

2019-01-16 Thread Thomas Hellstrom
Hi, On Wed, 2019-01-16 at 09:24 -0500, Rob Clark wrote: > So, I guess this is to do w/ the magic of merge commits, but it looks > like the hunk changing the crtc_ww_class got lost: So what happened here is that this commit changed it to DEFINE_WD_CLASS and the following commit changed it back

Re: [PATCH] clockchips: convert the code format to BIT()

2019-01-16 Thread Randy Dunlap
On 1/16/19 8:09 AM, Yangtao Li wrote: > Use BIT() to do some clean-up. > > Signed-off-by: Yangtao Li Hi, Looks to me like this header file needs to #include and not assume that the bitops.h header file will be pulled in by some side effect. > --- > include/linux/clockchips.h | 16

Re: arm64: copy_from_user access the last page of ddr has problem on 4.14 kernel

2019-01-16 Thread Will Deacon
[I'm due to get on a long flight shortly, so I've added LAKML and a few others to CC] On Wed, Jan 16, 2019 at 11:25:15AM +0800, Kassey wrote: > Hi, Will and team: > >we met a issue when copy_from_user to access the last page of DDR > on 4.14 kenrel, below is the detail steps, >can you

Re: [PATCH v2 1/2] i2c: imx: fix dma_request_chan error handling

2019-01-16 Thread Uwe Kleine-König
Hello, On Wed, Jan 16, 2019 at 01:28:54PM +0200, Laurentiu Tudor wrote: > Use the correct error pointer when extracting the error code. > > Fixes: ea1e5f176e97 ("i2c: imx: notify about real errors on dma > i2c_imx_dma_request") > Signed-off-by: Laurentiu Tudor Reviewed-by: Uwe Kleine-König

[RFC PATCH v2] akcipher: Introduce verify_rsa/verify for public key algorithms

2019-01-16 Thread Vitaly Chikunov
To my opinion this new version may fit suggestions of Herbert and David - we only have single general top level crypto_akcipher_verify() call, but two low level ->verify() and ->verify_rsa() calls. Final signature verification is moved from each caller of crypto_akcipher_verify() into

Re: [PATCH] locking/qspinlock: Add bug check for exceeding MAX_NODES

2019-01-16 Thread Will Deacon
On Tue, Jan 15, 2019 at 04:55:44PM -0500, Waiman Long wrote: > On some architectures, it is possible to have nested NMIs taking > spinlocks nestedly. Even though the chance of having more than 4 nested > spinlocks with contention is extremely small, there could still be a > possibility that it may

Re: [PATCH] kasan: Remove use after scope bugs detection.

2019-01-16 Thread Will Deacon
On Fri, Jan 11, 2019 at 09:58:42PM +0300, Andrey Ryabinin wrote: > Use after scope bugs detector seems to be almost entirely useless > for the linux kernel. It exists over two years, but I've seen only > one valid bug so far [1]. And the bug was fixed before it has been > reported. There were some

Re: [PATCH 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-01-16 Thread Uwe Kleine-König
Hello, On Wed, Jan 16, 2019 at 04:40:42PM +0530, Yash Shah wrote: > On Wed, Jan 16, 2019 at 3:30 AM Uwe Kleine-König > wrote: > > On Fri, Jan 11, 2019 at 01:52:44PM +0530, Yash Shah wrote: > > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > > > Signed-off-by:

[PATCH] misc: ibmvsm: Fix potential NULL pointer dereference

2019-01-16 Thread Gustavo A. R. Silva
There is a potential NULL pointer dereference in case kzalloc() fails and returns NULL. Fix this by adding a NULL check on *session* Also, update the function header with information about the expected return on failure and remove unnecessary variable rc. This issue was detected with the help

Re: [PATCH v2] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd, line option

2019-01-16 Thread Bartlomiej Zolnierkiewicz
On 01/07/2019 11:35 AM, Peter Rosin wrote: > On 2019-01-07 10:11, Geert Uytterhoeven wrote: >> Hi Peter, >> >> On Mon, Jan 7, 2019 at 10:03 AM Peter Rosin wrote: >>> On 2019-01-07 09:59, Peter Rosin wrote: On 2019-01-07 09:40, Geert Uytterhoeven wrote: > On Mon, Jan 7, 2019 at 9:26 AM

Re: [PATCH] selftests: add binderfs selftests

2019-01-16 Thread Greg KH
On Wed, Jan 16, 2019 at 06:21:12PM +0200, Christian Brauner wrote: > On January 16, 2019 5:54:50 PM GMT+02:00, Greg KH > wrote: > >On Wed, Jan 16, 2019 at 02:19:03PM +0100, Christian Brauner wrote: > >> This adds the promised selftest for binderfs. It will verify the > >following > >> things: >

RE: [PATCH lora-next 1/4] dt-bindings: lora: sx130x: add basic documentation

2019-01-16 Thread Ben Whitten
Hi Andreas, > Am 08.01.19 um 09:41 schrieb Ben Whitten: > > Add basic documentation in YAML format for the sx130x series concentrators > > from Semtech. > > Required is; the location on the SPI bus, the reset gpio and the node for > > downstream IQ radios, typically sx125x. > > > > Signed-off-by:

Re: [PATCH 2/8] libertas: change snprintf to scnprintf for possible overflow

2019-01-16 Thread Kalle Valo
Willy Tarreau writes: > On Tue, Jan 15, 2019 at 07:55:36AM +0200, Kalle Valo wrote: >> Willy Tarreau writes: >> >> > From: Silvio Cesare >> > >> > Change snprintf to scnprintf. There are generally two cases where using >> > snprintf causes problems. >> > >> > 1) Uses of size += snprintf(buf,

Re: [PATCH 2/7] coresight: perf: Add "sinks" group to PMU directory

2019-01-16 Thread Mathieu Poirier
On Wed, 16 Jan 2019 at 09:33, Greg KH wrote: > > On Wed, Jan 16, 2019 at 09:14:33AM -0700, Mathieu Poirier wrote: > > On Wed, 16 Jan 2019 at 08:39, Greg KH wrote: > > > > > > On Tue, Jan 15, 2019 at 04:07:37PM -0700, Mathieu Poirier wrote: > > > > Add a "sinks" directory entry so that users can

Re: [PATCH] clk: mmp2: avoid disabling the SP clock when unused

2019-01-16 Thread Stephen Boyd
Quoting Lubomir Rintel (2019-01-16 01:35:05) > There could be vital functionality running on the SP PJ1 core it can not be > restarted just by turning the clock back on. > > On the OLPC laptop, the keyboard controller code runs there. It > wouldn't be possible to load the driver for it as a

Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

2019-01-16 Thread Daniel Stone
On Wed, 16 Jan 2019 at 16:06, h...@lst.de wrote: > On Wed, Jan 16, 2019 at 07:28:13AM +, Koenig, Christian wrote: > > To summarize once more: We have an array of struct pages and want to > > coherently map that to a device. > > And the answer to that is very simple: you can't. What is so

Re: [PATCH] kvm: add proper frame pointer logic for vmx

2019-01-16 Thread Sean Christopherson
On Wed, Jan 16, 2019 at 08:56:59AM -0600, Josh Poimboeuf wrote: > On Tue, Jan 15, 2019 at 04:54:38PM -0800, Sean Christopherson wrote: > > On Tue, Jan 15, 2019 at 04:38:49PM -0600, Josh Poimboeuf wrote: > > > On Tue, Jan 15, 2019 at 11:06:17AM -0800, Sean Christopherson wrote: > > > > > I can see

Re: [RFC PATCH 5/5] net: lorawan: Split skb definitions into another header

2019-01-16 Thread Jian-Hong Pan
Andreas Färber 於 2019年1月16日 週三 下午10:50寫道: > > Am 16.01.19 um 15:36 schrieb Jiri Pirko: > > Wed, Jan 16, 2019 at 03:25:02PM CET, starni...@g.ncu.edu.tw wrote: > >> Split LoRaWAN related skb definitions from lora/lorawan_netdev.h into > >> another header lora/lorawan_skb.h. > > > > What is the

Re: [Xen-devel] [PATCH v5 2/2] xen/blkback: rework connect_ring() to avoid inconsistent xenstore 'ring-page-order' set by malicious blkfront

2019-01-16 Thread Konrad Rzeszutek Wilk
On Tue, Jan 08, 2019 at 04:24:32PM +0800, Dongli Zhang wrote: > oops. Please ignore this v5 patch. > > I just realized Linus suggested in an old email not use BUG()/BUG_ON() in the > code. > > I will switch to the WARN() solution and resend again. OK. Did I miss it?

[PATCH 0/8] Virtio-over-PCIe on non-MIC

2019-01-16 Thread Vincent Whitchurch
The Virtio-over-PCIe framework living under drivers/misc/mic/vop implements a generic framework to use virtio between two Linux systems, given shared memory and a couple of interrupts. It does not actually require the Intel MIC hardware, x86-64, or even PCIe for that matter. This patch series

[PATCH 2/8] vop: Cast pointers to uintptr_t

2019-01-16 Thread Vincent Whitchurch
Fix these on 32-bit: vop_vringh.c:711:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/vop/vop_main.c | 8 drivers/misc/mic/vop/vop_vringh.c | 4 ++-- 2 files changed, 6 insertions(+), 6

Re: [PATCH 2/7] coresight: perf: Add "sinks" group to PMU directory

2019-01-16 Thread Greg KH
On Wed, Jan 16, 2019 at 09:14:33AM -0700, Mathieu Poirier wrote: > On Wed, 16 Jan 2019 at 08:39, Greg KH wrote: > > > > On Tue, Jan 15, 2019 at 04:07:37PM -0700, Mathieu Poirier wrote: > > > Add a "sinks" directory entry so that users can see all the sinks > > > available in the system in a

[PATCH 6/8] vop: Fix handling of >32 feature bits

2019-01-16 Thread Vincent Whitchurch
This is needed, for example, for VIRTIO_F_IOMMU_PLATFORM. Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/vop/vop_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c index

[PATCH 4/8] vop: Allow building on more systems

2019-01-16 Thread Vincent Whitchurch
VOP_BUS does not actually depend on 32-bit X86 or PCI. The code uses archdata.dma_ops so it can be built on ARM too. Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mic/Kconfig

[PATCH 1/8] vop: Use %z for size_t

2019-01-16 Thread Vincent Whitchurch
Fixes these kind of errors on 32-bit: drivers/misc/mic/vop/vop_vringh.c:590:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}' [-Werror=format=] Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/vop/vop_vringh.c | 4

[PATCH 5/8] vop: vringh: Do not crash if no DMA channel

2019-01-16 Thread Vincent Whitchurch
Fallback gracefully if no DMA channel is provided instead of dereferencing NULL pointers. Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/vop/vop_vringh.c | 32 +++ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git

[PATCH 8/8] vop: Add loopback

2019-01-16 Thread Vincent Whitchurch
Add a loopback driver to allow testing and evaluation of the VOP framework without special hardware. The host and the guest will run under the same kernel. Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/Kconfig| 10 + drivers/misc/mic/vop/Makefile | 2 +

[PATCH 3/8] vop: Add definition of readq/writeq if missing

2019-01-16 Thread Vincent Whitchurch
Include so that readq/writeq are replaced by two readl/writel on systems that do not support them. The values read/written are pointers which will be 32-bit on 32-bit systems so the non-atomicity should not matter. Signed-off-by: Vincent Whitchurch --- drivers/misc/mic/vop/vop_main.c | 1 + 1

[PATCH 7/8] vop: Use consistent DMA

2019-01-16 Thread Vincent Whitchurch
The vop code maps buffers using the streaming DMA API but never syncs them so it doesn't work on systems without cache coherence. The vrings want consistent mappings, and not streaming mappings so use that API to allocate and map buffers. Signed-off-by: Vincent Whitchurch ---

Re: [PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-16 Thread Jonathan Corbet
On Wed, 16 Jan 2019 21:53:36 +0530 Seeteena Thoufeek wrote: > Support both Python 2 and Python 3 in mem-phys-addr.py. ``print`` is now a > function rather than a statement. This should have no functional change. > > Fix lambda syntax error. So, I just picked one of these at random >

Re: [PATCH v2,2/2] usb: chipidea: imx: set power polarity

2019-01-16 Thread Sergei Shtylyov
Hello! On 01/16/2019 01:51 PM, Philipp Puschmann wrote: > This patch adds support to set the power line polarity for i.MX6q/dl. > > To let the USB controller control the power it may be necessary to configure > the polarity of the power line. So far the polarity was configured > by Bootloader

Re: [Openipmi-developer] [PATCH] ipmi: fix use-after-free of user->release_barrier.rda

2019-01-16 Thread Corey Minyard
On 1/15/19 11:33 PM, Yang Yingliang wrote: When we do the following test, we got oops in ipmi_msghandler driver while((1)) do service ipmievd restart & service ipmievd restart done Thanks, I have this queued and will get it in to 5.0, with stable backports. This should be a new issue

[PATCH v10 perf, bpf-next 9/9] bpf: add module name [bpf] to ksymbols for bpf programs

2019-01-16 Thread Song Liu
With this patch, /proc/kallsyms will show BPF programs as t bpf_prog__ [bpf] Signed-off-by: Song Liu --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index f3a04994e063..14934afa9e68 100644 ---

[PATCH v10 perf, bpf-next 3/9] perf, bpf: introduce PERF_RECORD_BPF_EVENT

2019-01-16 Thread Song Liu
For better performance analysis of BPF programs, this patch introduces PERF_RECORD_BPF_EVENT, a new perf_event_type that exposes BPF program load/unload information to user space. Each BPF program may contain up to BPF_MAX_SUBPROGS (256) sub programs. The following example shows kernel symbols

[PATCH v10 perf, bpf-next 4/9] sync tools/include/uapi/linux/perf_event.h

2019-01-16 Thread Song Liu
sync for PERF_RECORD_BPF_EVENT Reviewed-by: Arnaldo Carvalho de Melo Signed-off-by: Song Liu --- tools/include/uapi/linux/perf_event.h | 29 ++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h

Re: [PATCH] rt61pci: Work around a firmware bug with shared keys

2019-01-16 Thread Kalle Valo
Stanislaw Gruszka writes: > On Tue, Jan 15, 2019 at 02:01:29PM +, Bernd Edlinger wrote: >> Apparently the rt2x61 firmware fails temporarily to decode >> broadcast packets if the shared keys are not assigned >> in the "correct" sequence. At the same time unicast >> packets work fine, since

[PATCH v10 perf, bpf-next 2/9] sync tools/include/uapi/linux/perf_event.h

2019-01-16 Thread Song Liu
sync changes for PERF_RECORD_KSYMBOL Reviewed-by: Arnaldo Carvalho de Melo Signed-off-by: Song Liu --- tools/include/uapi/linux/perf_event.h | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h

[PATCH v10 perf, bpf-next 7/9] perf tools: synthesize PERF_RECORD_* for loaded BPF programs

2019-01-16 Thread Song Liu
This patch synthesize PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT for BPF programs loaded before perf-record. This is achieved by gathering information about all BPF programs via sys_bpf. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 6 + tools/perf/util/bpf-event.c | 241

[PATCH][V2] cifs: fix memory leak of an allocated cifs_ntsd structure

2019-01-16 Thread Colin King
From: Colin Ian King The call to SMB2_queary_acl can allocate memory to pntsd and also return a failure via a call to SMB2_query_acl (and then query_info). This occurs when query_info allocates the structure and then in query_info the call to smb2_validate_and_copy_iov fails. Currently the

[PATCH v10 perf, bpf-next 5/9] perf util: handle PERF_RECORD_KSYMBOL

2019-01-16 Thread Song Liu
This patch handles PERF_RECORD_KSYMBOL in perf record/report. Specifically, map and symbol are created for ksymbol register, and removed for ksymbol unregister. This patch also set perf_event_attr.ksymbol properly. The flag is ON by default. Signed-off-by: Song Liu --- tools/perf/util/event.c

[PATCH v10 perf, bpf-next 0/9] reveal invisible bpf programs

2019-01-16 Thread Song Liu
This set catches symbol for all bpf programs loaded/unloaded before/during/after perf-record run PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT. PERF_RECORD_KSYMBOL and PERF_RECORD_BPF_EVENT includes key information of a bpf program load and unload. They are sent through perf ringbuffer, and

[PATCH v10 perf, bpf-next 1/9] perf, bpf: Introduce PERF_RECORD_KSYMBOL

2019-01-16 Thread Song Liu
For better performance analysis of dynamically JITed and loaded kernel functions, such as BPF programs, this patch introduces PERF_RECORD_KSYMBOL, a new perf_event_type that exposes kernel symbol register/unregister information to user space. The following data structure is used for

[PATCH v10 perf, bpf-next 8/9] perf top: Synthesize BPF events for pre-existing loaded BPF programs

2019-01-16 Thread Song Liu
From: Arnaldo Carvalho de Melo So that we can resolve symbols and map names. Cc: Song Liu Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: David Ahern Cc: Peter Zijlstra Cc: kernel-t...@fb.com Cc: net...@vger.kernel.org Link:

[PATCH v10 perf, bpf-next 6/9] perf util: handle PERF_RECORD_BPF_EVENT

2019-01-16 Thread Song Liu
This patch adds basic handling of PERF_RECORD_BPF_EVENT. Tracking of PERF_RECORD_BPF_EVENT is OFF by default. Option --bpf-event is added to turn it on. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 1 + tools/perf/perf.h | 1 + tools/perf/util/Build | 2 ++

Re: [PATCH] etnaviv: allow to build on ARC

2019-01-16 Thread Lucas Stach
Am Mittwoch, den 16.01.2019, 08:21 -0800 schrieb Christoph Hellwig: > On Mon, Jan 14, 2019 at 07:31:57PM +0300, Eugeniy Paltsev wrote: > > ARC HSDK SoC has Vivante GPU IP so allow build etnaviv for ARC. > > > > Signed-off-by: Eugeniy Paltsev > > --- > >  drivers/gpu/drm/etnaviv/Kconfig | 2 +- >

[PATCH] perf scripts python: Add Python 3 support to futex-contention.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in futex-contention.py. ``print`` is now a function rather than a statement. This should have no functional change. The "has_key()" method is deprecated in favor of the "in" operator. So incorporate those changes here. Signed-off-by: Seeteena Thoufeek

[PATCH] perf scripts python: Add Python 3 support to stat-cpi.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in stat-cpi.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/stat-cpi.py | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] perf scripts python: Add Python 3 support to export-to-postgresql.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in export-to-postgresql.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/export-to-postgresql.py | 16 1

[PATCH] perf scripts python: Add Python 3 support to syscall-counts-by-pid.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in syscall-counts-by-pid.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria ---

[PATCH] perf scripts python: Add Python 3 support to syscall-counts.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in syscall-counts.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax error Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/syscall-counts.py | 16

[PATCH] perf scripts python: Add Python 3 support to event_analyzing_sample.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in event_analyzing_sample.py. ``print`` is now a function rather than a statement. This should have no functional change. Fixes indentation issue, replace spaces with tab. The "has_key()" method is deprecated in favor of the "in" operator. So incorporate those

[PATCH] perf scripts python: Add Python 3 support to net_dropmonitor.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in net_dropmonitor.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/net_dropmonitor.py | 8 1 file changed, 4

[PATCH] perf scripts python: Add Python 3 support to stackcollapse.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in stackcollapse.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/stackcollapse.py | 2 +- 1 file changed, 1 insertion(+),

[PATCH] perf scripts python: Add Python 3 support to intel-pt-events.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in intel-pt-events.py.``print`` is now a function rather than a statement. This should have no functional change. Fixes indentation issue, replace spaces with tab. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria ---

[PATCH] perf scripts python: Add Python 3 support to exported-sql-viewer.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in exported-sql-viewer.py. ``print`` is now a function rather than a statement. This should have no functional change. Add support of _pickle module in Python3 Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria ---

[PATCH] perf scripts python: Add Python 3 support to powerpc-hcalls.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in powerpc-hcalls.py. ``print`` is now a function rather than a statement. This should have no functional change. The "has_key()" method is deprecated in favor of the "in" operator. So incorporate those changes here. Signed-off-by: Seeteena Thoufeek

[PATCH] perf scripts python: Add Python 3 support to sctop.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in sctop.py.``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/sctop.py | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH] perf scripts python: Add Python 3 support to failed-syscalls-by-pid.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in failed-syscalls-by-pid.py. ``print`` is now a function rather than a statement. This should have no functional change. Fixes lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria Please enter the commit message for your changes.

[PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in mem-phys-addr.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/mem-phys-addr.py | 12

[PATCH] perf scripts python: Add Python 3 support to export-to-sqlite.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in export-to-sqlite.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/export-to-sqlite.py | 10 +- 1 file changed,

[PATCH] perf scripts python: Add Python 3 support to netdev-times.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in netdev-times.py. ``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/netdev-times.py | 76 +++ 1

[PATCH] perf scripts python: Add Python 3 support to check-perf-trace.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in check-perf-trace.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix indentation issue, replace spaces with tab Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria ---

Re: [PATCH 1/3] mailbox: Add ability for clients to abort data in channel

2019-01-16 Thread Jassi Brar
On Tue, Jan 15, 2019 at 11:07 PM CK Hu wrote: > > This patch supplies a new framework API, mbox_abort_channel(), and > a new controller interface, abort_data(). > > For some client's application, it need to clean up the data in channel > but keep the channel so it could send data to channel

Re: [RFC PATCH] akcipher: Introduce verify2 for public key algorithms

2019-01-16 Thread David Howells
Vitaly Chikunov wrote: > This will be hard to do since there is at least tree device that use > this interface (and who know how much out of tree): > > drivers$ git grep cra_name.*rsa > crypto/caam/caampkc.c: .cra_name = "rsa", > crypto/ccp/ccp-crypto-rsa.c:.cra_name

Re: [PATCH] etnaviv: allow to build on ARC

2019-01-16 Thread Christoph Hellwig
On Mon, Jan 14, 2019 at 07:31:57PM +0300, Eugeniy Paltsev wrote: > ARC HSDK SoC has Vivante GPU IP so allow build etnaviv for ARC. > > Signed-off-by: Eugeniy Paltsev > --- > drivers/gpu/drm/etnaviv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] selftests: add binderfs selftests

2019-01-16 Thread Christian Brauner
On January 16, 2019 5:54:50 PM GMT+02:00, Greg KH wrote: >On Wed, Jan 16, 2019 at 02:19:03PM +0100, Christian Brauner wrote: >> This adds the promised selftest for binderfs. It will verify the >following >> things: >> - binderfs mounting works >> - binder device allocation works >> - performing

Re: [PATCH] libertas: remove ifdef OLPC noise

2019-01-16 Thread Lubomir Rintel
On Wed, 2019-01-16 at 18:04 +0200, Kalle Valo wrote: > Lubomir Rintel writes: > > > provides machine_is_olpc() stub for CONFIG_OLPC=n, > > compiler should just optimize the unneeded bits away. > > > > Signed-off-by: Lubomir Rintel > > --- > > drivers/net/wireless/marvell/libertas/if_usb.c |

Re: [PATCH 14/14] staging: android: ion: Add UNMAPPED heap type and helper

2019-01-16 Thread Andrew F. Davis
On 1/15/19 1:11 PM, Laura Abbott wrote: > On 1/15/19 10:43 AM, Laura Abbott wrote: >> On 1/15/19 7:58 AM, Andrew F. Davis wrote: >>> On 1/14/19 8:32 PM, Laura Abbott wrote: On 1/11/19 10:05 AM, Andrew F. Davis wrote: > The "unmapped" heap is very similar to the carveout heap except >

Re: [RFC PATCH 2/4] akcipher: Introduce verify2 for public key algorithms

2019-01-16 Thread David Howells
Vitaly Chikunov wrote: > Current akcipher .verify() just decrypts signature to uncover message > hash, which is then verified in upper level public_key_verify_signature > by memcmp with the expected signature value, which is never passed into > verify(). I think it would be better to make

Re: [PATCH STABLE v4.19.15] gpiolib: fix line event timestamps for nested irqs

2019-01-16 Thread Bartosz Golaszewski
śr., 16 sty 2019 o 17:02 Greg KH napisał(a): > > On Wed, Jan 16, 2019 at 04:35:57PM +0100, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Nested interrupts run inside the calling thread's context and the top > > half handler is never called which means that we never read the >

[PATCH 2/4] livepatch: Handle failing allocation of shadow variables in the selftest

2019-01-16 Thread Petr Mladek
Do not dereference pointers to the shadow variables when either klp_shadow_alloc() or klp_shadow_get() fail. There is no need to check the other locations explicitly. The test would fail if any allocation fails. And the existing messages, printed during the test, provide enough information to

Re: [PATCH V2] wlcore: sdio: Fixup power on/off sequence

2019-01-16 Thread Kalle Valo
Ulf Hansson writes: > On Wed, 16 Jan 2019 at 16:43, Tony Lindgren wrote: >> >> * Ulf Hansson [190116 11:37]: >> > During "wlan-up", we are programming the FW into the WiFi-chip. However, >> > re-programming the FW doesn't work, unless a power cycle of the WiFi-chip >> > is made in-between the

[PATCH 3/4] livepatch: Module coming and going callbacks can proceed all listed patches

2019-01-16 Thread Petr Mladek
Livepatches can not longer get enabled and disabled repeatedly. The list klp_patches contains only enabled patches and eventually the patch in transition. The module coming and going callbacks do not longer need to check for these state. They have to proceed all listed patches. Suggested-by:

<    2   3   4   5   6   7   8   9   10   11   >