Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-26 Thread Aubrey Li
On Tue, Feb 26, 2019 at 4:26 PM Aubrey Li wrote: > > On Sat, Feb 23, 2019 at 3:27 AM Tim Chen wrote: > > > > On 2/22/19 6:20 AM, Peter Zijlstra wrote: > > > On Fri, Feb 22, 2019 at 01:17:01PM +0100, Paolo Bonzini wrote: > > >> On 18/02/19 21:40, Peter Zijlstra wrote: > > >>> On Mon, Feb 18, 2019

Re: [PATCH 1/5] ocxl: Rename struct link to ocxl_link

2019-02-26 Thread Andrew Donnellan
On 27/2/19 6:34 pm, Alastair D'Silva wrote:>>> diff --git a/drivers/misc/ocxl/file.c b/drivers/misc/ocxl/file.c index e6a607488f8a..16eb8a60d5c7 100644 --- a/drivers/misc/ocxl/file.c +++ b/drivers/misc/ocxl/file.c @@ -152,7 +152,7 @@ static long afu_ioctl_enable_p9_wait(struct ocxl_context *ctx,

Re: [PATCH v2 1/3] Bluetooth: btusb: add QCA6174A compatible properties

2019-02-26 Thread Marcel Holtmann
Hi Brian, > We may need to specify a GPIO wake pin for this device, so add a > compatible property for it. > > There are at least to USB PID/VID variations of this chip: one with a > Lite-On ID and one with an Atheros ID. > > Signed-off-by: Brian Norris > Reviewed-by: Matthias Kaehlcke > ---

[PATCH v2] posix-cpu-timers: Avoid undefined behaviour in timespec64_to_ns()

2019-02-26 Thread Xiongfeng Wang
When I ran Syzkaller testsuite, I got the following call trace. UBSAN: Undefined behaviour in ./include/linux/time64.h:120:27 signed integer overflow: 8243129037239968815 * 10 cannot be represented in type

Re: [PATCH] cpufreq: kyro: Reduce frame-size of qcom_cpufreq_kryo_probe()

2019-02-26 Thread Viresh Kumar
On 20-02-19, 16:44, Viresh Kumar wrote: > With the introduction of commit 846a415bf440 ("arm64: default NR_CPUS to > 256"), we have started getting following compilation warning: > > qcom-cpufreq-kryo.c:168:1: warning: the frame size of 2160 bytes is larger > than 2048 bytes

Re: [PATCH 0/2] Reduce delay after sending baudrate request for WCN3990

2019-02-26 Thread Marcel Holtmann
Hi Matthias, > The current 300ms delay after a baudrate change is extremely long. > For WCM3990 it is sufficient to wait 10ms after the baudrate change > request has been sent over the wire. > > Also use msleep() instead of a set_current_state() / schedule_timeout() > combo. > > Matthias

Re: [PATCH v2 1/3] Bluetooth: hci_qca: Pass boolean 'on/off' to qca_send_power_pulse()

2019-02-26 Thread Marcel Holtmann
Hi Matthias, > There are only two types of power pulses 'on' or 'off', pass a boolean > instead of the power pulse 'command'. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Balakrishna Godavarthi > --- > Changes in v2: > - added 'Reviewed-by: Balakrishna Godavarthi ' tag > --- >

Re: [PATCH] Bluetooth: hci_bcm: fix double-free irq on removal

2019-02-26 Thread Marcel Holtmann
Hi Andreas, >>> after rmmod hci_uart a warning about doubly freed >>> interrupts appears, so do it only once. Instead disable it. >>> It is already implicitely freed by the devm framework. >>> >>> [ 230.782948] [ cut here ] >>> [ 230.787708] WARNING: CPU: 0 PID: 2715 at

Re: [RFC PATCH 0/4] tracing/probes: uaccess: Add support user-space access

2019-02-26 Thread Masami Hiramatsu
On Tue, 26 Feb 2019 16:38:50 -0500 Joel Fernandes wrote: > On Mon, Feb 25, 2019 at 11:04:42PM +0900, Masami Hiramatsu wrote: > > Note that kprobe event provides these methods, but it doesn't > > change it from kernel to user automatically because we do not > > know whether the given address is

RE: [PATCH 1/5] ocxl: Rename struct link to ocxl_link

2019-02-26 Thread Alastair D'Silva
> -Original Message- > From: Andrew Donnellan > Sent: Wednesday, 27 February 2019 6:16 PM > To: Alastair D'Silva ; alast...@d-silva.org > Cc: Greg Kurz ; Frederic Barrat ; > Arnd Bergmann ; Greg Kroah-Hartman > ; linuxppc-...@lists.ozlabs.org; linux- > ker...@vger.kernel.org > Subject:

Re: [PATCH] x86/boot/KASLR: skip the specified crashkernel reserved region

2019-02-26 Thread Borislav Petkov
+ Kees. @Kees, you might want to go upthread a bit for context. On Wed, Feb 27, 2019 at 09:30:34AM +0800, Baoquan He wrote: > Agree that 'crashkernel=x' should be encouraged to use as the first > choice when reserve crashkernel. If we decide to not obsolete > 'crashkernel=x@y', it will leave a

[PATCH] arm64: dts: qcom: Add Dragonboard 845c

2019-02-26 Thread Bjorn Andersson
This adds an initial dts for the Dragonboard 845. Supported functionality includes Debug UART, UFS, USB-C (peripheral), USB-A (host), Ethernet, microSD-card and Bluetooth. Initializing the SMMU is clearing the mapping used for the splash screen framebuffer, which causes the baord to reboot. This

Re: [PATCH v2 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-26 Thread Life is hard, and then you die
On Tue, Feb 26, 2019 at 11:20:59AM +0200, Andy Shevchenko wrote: > On Thu, Feb 21, 2019 at 02:56:09AM -0800, Ronald Tschalär wrote: > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > > of USB, as

[PATCH 4/5] Add driver for SUNIX Multi-I/O board

2019-02-26 Thread Morris Ku
Support SUNIX serial board. --- char/snx/snx_serial.c | 4771 + 1 file changed, 4771 insertions(+) create mode 100644 char/snx/snx_serial.c diff --git a/char/snx/snx_serial.c b/char/snx/snx_serial.c new file mode 100644 index ..94caac1a ---

[PATCH 5/5] Add driver for SUNIX parallel board

2019-02-26 Thread Morris Ku
Support SUNIX parallel board. --- char/snx/snx_ieee1284.c | 207 ++ char/snx/snx_ieee1284_ops.c | 257 char/snx/snx_lp.c | 1019 + char/snx/snx_parallel.c | 437 + char/snx/snx_ppdev.c| 1209

[PATCH 3/5] Add SUNIX Multi-I/O board driver

2019-02-26 Thread Morris Ku
Add driver, Kconfig and Makefile entry. --- char/snx/Kconfig|7 + char/snx/Makefile |9 + char/snx/snx_devtable.c | 669 + char/snx/snx_main.c | 1583 +++ 4 files changed, 2268 insertions(+) create mode 100644

[PATCH 2/5] Add header files for SUNIX Multi-I/O board driver

2019-02-26 Thread Morris Ku
This patch add header files. --- char/snx/driver_extd.h | 209 +++ char/snx/snx_common.h | 1339 char/snx/snx_lp.h | 143 + char/snx/snx_ppdev.h | 41 ++ 4 files changed, 1732 insertions(+) create mode 100644 char/snx/driver_extd.h

[PATCH 1/5] Add support SUNIX Multi-I/O board

2019-02-26 Thread Morris Ku
Add Kconfig and Makefile entry. --- Kconfig | 2 ++ Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/Kconfig b/Kconfig index 4f9f9905..645dcc85 100644 --- a/Kconfig +++ b/Kconfig @@ -228,4 +228,6 @@ source "drivers/siox/Kconfig" source "drivers/slimbus/Kconfig" +source

Re: [PATCH 1/5] ocxl: Rename struct link to ocxl_link

2019-02-26 Thread Andrew Donnellan
On 27/2/19 3:57 pm, Alastair D'Silva wrote: From: Alastair D'Silva The term 'link' is ambiguous (especially when the struct is used for a list), so rename it for clarity. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz --- drivers/misc/ocxl/file.c | 2 +- drivers/misc/ocxl/link.c

Re: CONFIG_KCOV causing crash in svm_vcpu_run()

2019-02-26 Thread Eric Biggers
Reviving this old thread because it wasn't fully fixed after all... On Tue, May 15, 2018 at 07:33:48AM +0200, Dmitry Vyukov wrote: > On Mon, May 14, 2018 at 7:25 PM, Eric Biggers wrote: > > On Mon, May 14, 2018 at 07:14:41AM +0200, Dmitry Vyukov wrote: > >> On Mon, May 14, 2018 at 5:02 AM, Eric

[PATCH -next] habanalabs: goya: Make some functions static

2019-02-26 Thread Yue Haibing
From: YueHaibing Fixes the following sparse warnings: drivers/misc/habanalabs/goya/goya.c:1233:5: warning: symbol 'goya_init_cpu_queues' was not declared. Should it be static? drivers/misc/habanalabs/goya/goya.c:2914:5: warning: symbol 'goya_suspend' was not declared. Should it be static?

[PATCH v2] arm64: dts: qcom: sdm845: Add GEN2 PCIe controller and PHY

2019-02-26 Thread Bjorn Andersson
SDM845 sports two PCIe controller/phy pairs; one GEN2 and one GEN3. Add the nodes for the GEN2 pair. Signed-off-by: Bjorn Andersson --- Changes since v1: - "reg" is spelled without a 't' arch/arm64/boot/dts/qcom/sdm845.dtsi | 103 +++ 1 file changed, 103 insertions(+)

[PATCH] phy: renesas: rcar-gen2: Fix memory leak at error paths

2019-02-26 Thread Yoshihiro Shimoda
This patch fixes memory leak at error paths of the probe function. In for_each_child_of_node, if the loop returns, the driver should call of_put_node() before returns. Reported-by: Julia Lawall Fixes: 1233f59f745 ("phy: Renesas R-Car Gen2 PHY driver") Signed-off-by: Yoshihiro Shimoda ---

Re: [PATCH v8 02/11] powerpc: prepare string/mem functions for KASAN

2019-02-26 Thread Daniel Axtens
Christophe Leroy writes: > CONFIG_KASAN implements wrappers for memcpy() memmove() and memset() > Those wrappers are doing the verification then call respectively > __memcpy() __memmove() and __memset(). The arches are therefore > expected to rename their optimised functions that way. > > For

Re: [PATCH] powerpc/fsl: Fix the flush of branch predictor.

2019-02-26 Thread Diana Madalina Craciun
Reviewed-by: Diana Craciun Thanks for fixing it! On 2/26/2019 8:18 PM, Christophe Leroy wrote: > The commit identified below adds MC_BTB_FLUSH macro only when > CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error > on some configs (seen several times with kisskb

Re: [PATCH 0/5] PCI: dwc: support remove

2019-02-26 Thread Jisheng Zhang
On Tue, 26 Feb 2019 15:11:03 -0600 Bjorn Helgaas wrote: > > > On Tue, Feb 26, 2019 at 5:55 AM Jisheng Zhang > wrote: > > > > Currently, the PCI dwc host users don't support the remove, but nothing > > prevent us from supporting it. To achieve this goal, we need to ensure > > we can do

linux-next: Tree for Feb 27

2019-02-26 Thread Stephen Rothwell
Hi all, Changes since 20190226: The mmc-fixes tree still has its build failure for which I reverted a commit. The hwmon-staging tree lost its build failure. The net-next tree gained a conflict against the rdma tree. The vhost tree gained a conflict against the iommu tree. Non-merge commits

[PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec

2019-02-26 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v4 3/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-26 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index

[PATCH v4 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-26 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22

[PATCH v4 4/5] arm64: dts: imx8mq-evk: Enable SAI2 node

2019-02-26 Thread Daniel Baluta
This sets up clock hierarchy and pin configuration. Use PLL1 to derive a proper rate for playing files with a rate multiple of 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v4 0/5] Enable wm8524 on i.MX8MQ-EVK

2019-02-26 Thread Daniel Baluta
On i.MX8MQ-EVK we can start the party using the wm8524 codec which gets it's data through the SAI2 interface. In order to make it work this patch series enables the SDMA nodes, sets the correct pinctrl configuration and uses the simple card machine driver to put everything together. Changes

[PATCH v4 2/5] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-02-26 Thread Daniel Baluta
Add imx8mq sdma support. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt index

Re: [PATCH v2 0/3] Bluetooth: hci_qca: Add delay after power-off pulse

2019-02-26 Thread Bjorn Andersson
On Tue, Feb 26, 2019 at 11:47 AM Matthias Kaehlcke wrote: > > Initialization of the QCA WCN3990 often fails at boot time: > > [ 15.205224] Bluetooth: hci0: setting up wcn3990 > [ 17.341062] Bluetooth: hci0: command 0xfc00 tx timeout > [ 22.101453] ERROR: Bluetooth initialization failed >

Re: [PATCH] MIPS: fix memory setup for platforms with PHY_OFFSET != 0

2019-02-26 Thread Mike Rapoport
Hi, On Tue, Feb 26, 2019 at 03:06:32PM +0100, Thomas Bogendoerfer wrote: > For platforms, which use a PHY_OFFSET != 0, symbol _end also Nit: PHYS_OFFSET, the same typo in subject > contains that offset. So when calling memblock_reserve() for > reserving kernel and initrd

Re: kernel BUG at include/linux/mm.h:LINE! (3)

2019-02-26 Thread Dmitry Vyukov
On Wed, Feb 27, 2019 at 7:11 AM Eric Biggers wrote: > > On Tue, Feb 26, 2019 at 10:02:04PM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:8e7f81e2ebc4 Add linux-next specific files for 20190226 > > git

Re: [PATCH 3/8] tlan: use pci_zalloc instead of pci_alloc

2019-02-26 Thread Joe Perches
On Tue, 2019-02-26 at 22:09 -0800, Robert Eshleman wrote: > This patch replaces a pci_alloc_consistent and memset(,0) call > with a single call to pci_zalloc_consistent. [] > diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c [] > @@ -845,17 +845,16 @@ static int

RE: [PATCH v4] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-02-26 Thread Zhang, Lei
Hi James, > -Original Message- > From: linux-arm-kernel On > Behalf Of James Morse > Sent: Tuesday, February 26, 2019 2:29 AM > To: Zhang, Lei/張 雷 > Cc: Mark Rutland ; 'Catalin Marinas' > ; 'Will Deacon' ; > 'linux-kernel@vger.kernel.org' ; > 'linux-arm-ker...@lists.infradead.org' >

Re: [PATCH v2] ARM: tegra: enforce PM requirement

2019-02-26 Thread Sameer Pujar
On 2/26/2019 10:22 PM, Dmitry Osipenko wrote: 26.02.2019 12:13, Russell King - ARM Linux admin пишет: On Tue, Feb 26, 2019 at 01:55:37PM +0530, Sameer Pujar wrote: The requirement for this came while adding runtime PM support for HDA driver. There were concerns about driver explicitly

[PATCH RFC v6] integrity: support EC-RDSA signatures for asymmetric_verify

2019-02-26 Thread Vitaly Chikunov
Allow to use EC-RDSA signatures for IMA by determining signature type by the hash algorithm name. This works good for EC-RDSA since Streebog and EC-RDSA should always be used together. Cc: Mimi Zohar Cc: Dmitry Kasatkin Cc: linux-integr...@vger.kernel.org Signed-off-by: Vitaly Chikunov ---

Re: [PATCH v2] ARM: tegra: enforce PM requirement

2019-02-26 Thread Sameer Pujar
On 2/26/2019 8:16 PM, Dmitry Osipenko wrote: 26.02.2019 11:25, Sameer Pujar пишет: The requirement for this came while adding runtime PM support for HDA driver. There were concerns about driver explicitly handling !PM case. In general, drivers need to handle !PM case with work arounds for

[PATCH] sched/cputime: Remove unnecessary assignment statement

2019-02-26 Thread Ketan Patil
The original code assigns the value from rtime to utime variable, and then jumps to the update label. And the value of utime is then updated, so the earlier value of utime is not used. Hence remove that unnecessary assignment statement. This fixes one of the coverity defects. Based on work by

Re: kernel BUG at include/linux/mm.h:LINE! (3)

2019-02-26 Thread Eric Biggers
On Tue, Feb 26, 2019 at 10:02:04PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:8e7f81e2ebc4 Add linux-next specific files for 20190226 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=10

[PATCH 7/8] net: seeq: replace kmalloc / memset(,0) with kzalloc

2019-02-26 Thread Robert Eshleman
This patch reduces a call to memset(,0) by replacing a kmalloc call with a kzalloc call. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/seeq/ether3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/seeq/ether3.c

[PATCH 8/8] net: ethernet: ixp4xx_eth: remove memset(,0) with zalloc

2019-02-26 Thread Robert Eshleman
This patch removes a call to memset(,0) by replacing the prior call to dma_pool_alloc with a call to dma_pool_zalloc. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 1/8] net/mlx4: use kzalloc instead of kmalloc

2019-02-26 Thread Robert Eshleman
This patch replaces a kmalloc/memset(,0) call with a call to kzalloc. It also removes a memset(,0) call that always follows a *zalloc call. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/mellanox/mlx4/cmd.c | 1 - drivers/net/ethernet/mellanox/mlx4/en_rx.c | 3 +-- 2 files changed, 1

[PATCH 2/8] net/mlxsw: use pci_zalloc_consistent instead of pci_alloc_consistent

2019-02-26 Thread Robert Eshleman
This patch replaces a call to pci_alloc_consistent and then memset(0,) with a single call to pci_zalloc_consistent. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/mellanox/mlxsw/pci.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 4/8] qed: remove unnecessary memsets

2019-02-26 Thread Robert Eshleman
This patch replaces unnecessary memset(,0) calls with simply assigning structs to zero. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/qlogic/qed/qed_cxt.c | 4 +- drivers/net/ethernet/qlogic/qed/qed_hw.c | 3 +- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 70 ---

[PATCH 3/8] tlan: use pci_zalloc instead of pci_alloc

2019-02-26 Thread Robert Eshleman
This patch replaces a pci_alloc_consistent and memset(,0) call with a single call to pci_zalloc_consistent. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/ti/tlan.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ti/tlan.c

[PATCH 5/8] at12: use pci_zalloc instead of pci_alloc

2019-02-26 Thread Robert Eshleman
This patch replaces a pci_alloc and memset(,0) call with a single call to pci_zalloc. Signed-off-by: Robert Eshleman --- drivers/net/ethernet/atheros/atlx/atl2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c

Re: [PATCH -next] scsi: libfc: Fix potential NULL pointer dereference

2019-02-26 Thread YueHaibing
Friendly ping: Who can review or take this, please? Thanks On 2019/1/30 18:11, YueHaibing wrote: > There is a potential NULL pointer dereference in case > fc_rport_create() fails and returns NULL. > > Fixes: 2580064b5ec6 ("scsi: libfc: Replace ->rport_create callback with > function call")

[PATCH 6/8] netxen: remove unnecessary memset(,0) calls

2019-02-26 Thread Robert Eshleman
This patch reduces calls to memset(,0) by replacing memset(,0) calls that only zero-out newly declared structs with simply assigning those structs to zero structs. It also removes a pci_alloc_consistent call followed by a memset(,0) call by simply using pci_zalloc_consistent. Signed-off-by:

RE: question about drivers/phy/renesas/phy-rcar-gen2.c

2019-02-26 Thread Julia Lawall
On Wed, 27 Feb 2019, Yoshihiro Shimoda wrote: > Hello, > > > From: Julia Lawall, Sent: Tuesday, February 26, 2019 6:01 PM > > > > On Tue, 26 Feb 2019, Yoshihiro Shimoda wrote: > > > > > Hello, > > > (Sergei made this code, so I added his email as CC) > > > > > > I'm sorry for the delayed

[PATCH 0/8] net: ethernet: reduce calls to memset(,0)

2019-02-26 Thread Robert Eshleman
This patch series removes calls to memset(,0) that are redundant when used in conjunction with a zalloc call or by simple zero-assignment of structs. Robert Eshleman (8): net/mlx4: use kzalloc instead of kmalloc net/mlxsw: use pci_zalloc_consistent instead of pci_alloc_consistent tlan: use

kernel BUG at include/linux/mm.h:LINE! (3)

2019-02-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8e7f81e2ebc4 Add linux-next specific files for 20190226 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10381714c0 kernel config: https://syzkaller.appspot.com/x/.config?x=2fa10211b8a4a56e

[PATCH -next] media: rockchip-vpu: Remove duplicated include from rockchip_vpu_drv.c

2019-02-26 Thread Yue Haibing
From: YueHaibing Remove duplicated include. Signed-off-by: YueHaibing --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c b/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c

[PATCH -next] staging: rtl8723bs: Remove duplicated include from drv_types.h

2019-02-26 Thread Yue Haibing
From: YueHaibing Remove duplicated include. Signed-off-by: YueHaibing --- drivers/staging/rtl8723bs/include/drv_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index 062fda9..bafb2c3

[PATCH] regulator: wm8400: Fix trivial typo

2019-02-26 Thread Axel Lin
Use WM8400_DC2_ENA_MASK for DCDC2 enable_mask. The define is the same as WM8400_DC1_ENA_MASK, just a cleanup. Signed-off-by: Axel Lin --- drivers/regulator/wm8400-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/wm8400-regulator.c

Re: [PATCH 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-26 Thread Andrew Jeffery
On Wed, 27 Feb 2019, at 13:04, Patrick Venture wrote: > On Tue, Feb 26, 2019 at 5:05 PM Andrew Jeffery wrote: > > > > > > > > On Wed, 27 Feb 2019, at 08:12, Patrick Venture wrote: > > > On Sun, Feb 24, 2019 at 5:26 PM Andrew Jeffery wrote: > > > > > > > > On Fri, 22 Feb 2019, at 08:55,

Re: [-next] um: Remove duplicated include from vector_user.c

2019-02-26 Thread YueHaibing
Friendly ping: Who can take this, please? On 2019/1/21 2:54, Anton Ivanov wrote: > > > On 1/3/19 3:12 AM, YueHaibing wrote: >> Remove duplicated include. >> >> Signed-off-by: YueHaibing >> --- >> arch/um/drivers/vector_user.c | 3 --- >> 1 file changed, 3 deletions(-) >> >> diff --git

[PATCH 3/3] staging: erofs: fix mis-acted TAIL merging behavior

2019-02-26 Thread Gao Xiang
EROFS has an optimized path called TAIL merging, which is designed to merge multiple reads and the corresponding decompressions into one if these requests read continuous pages almost at the same time. In general, it behaves as follows:

[PATCH 1/3] staging: erofs: compressed_pages should not be accessed again after freed

2019-02-26 Thread Gao Xiang
This patch resolves the following page use-after-free issue, z_erofs_vle_unzip: ... for (i = 0; i < nr_pages; ++i) { ... z_erofs_onlinepage_endio(page); (1) } for (i = 0; i < clusterpages; ++i) { page = compressed_pages[i]; if (page->mapping ==

[PATCH 2/3] staging: erofs: fix illegal address access under memory pressure

2019-02-26 Thread Gao Xiang
Considering a read request with two decompressed file pages, If a decompression work cannot be started on the previous page due to memory pressure but in-memory LTP map lookup is done, builder->work should be still NULL. Moreover, if the current page also belongs to the same map, it won't try to

Re: [PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-26 Thread Wei Yang
On Tue, Feb 26, 2019 at 11:10:06AM -0500, Michael S. Tsirkin wrote: >On Tue, Feb 26, 2019 at 03:31:59PM +0800, Wei Yang wrote: >> Leverage __ATTR_RO_MODE to define rev sysfs instead of using open code >> to define the attribute. >> >> Signed-off-by: Wei Yang >> --- >>

Re: [PATCH 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-26 Thread Florian Fainelli
On 2/21/2019 2:25 PM, Patrick Venture wrote: > The ASPEED AST2400, and AST2500 in some configurations include a > PCI-to-AHB MMIO bridge. This bridge allows a server to read and write > in the BMC's memory space. This feature is especially useful when using > this bridge to send large files

[PATCH 1/5] ocxl: Rename struct link to ocxl_link

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva The term 'link' is ambiguous (especially when the struct is used for a list), so rename it for clarity. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz --- drivers/misc/ocxl/file.c | 2 +- drivers/misc/ocxl/link.c | 36 ++-- 2

[PATCH 0/5] ocxl: OpenCAPI Cleanup

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva Some minor cleanups for the OpenCAPI driver as a prerequisite for an ocxl driver refactoring to allow the driver core to be utilised by external drivers. Alastair D'Silva (5): ocxl: Rename struct link to ocxl_link ocxl: Clean up printf formats ocxl: read_pasid never

[PATCH 2/5] ocxl: Clean up printf formats

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva Use %# instead of using a literal '0x' Signed-off-by: Alastair D'Silva --- drivers/misc/ocxl/config.c | 6 +++--- drivers/misc/ocxl/context.c | 2 +- drivers/misc/ocxl/trace.h | 10 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH 4/5] ocxl: Remove superfluous 'extern' from headers

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva The 'extern' keyword adds no value here. Signed-off-by: Alastair D'Silva --- drivers/misc/ocxl/ocxl_internal.h | 54 +++ include/misc/ocxl.h | 36 ++--- 2 files changed, 44 insertions(+), 46 deletions(-) diff

[PATCH 5/5] ocxl: Remove some unused exported symbols

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva Remove some unused exported symbols. Signed-off-by: Alastair D'Silva --- drivers/misc/ocxl/config.c| 2 -- drivers/misc/ocxl/ocxl_internal.h | 26 +- include/misc/ocxl.h | 23 --- 3 files changed, 25

[PATCH 3/5] ocxl: read_pasid never returns an error, so make it void

2019-02-26 Thread Alastair D'Silva
From: Alastair D'Silva No need for a return value in read_pasid as it only returns 0. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz --- drivers/misc/ocxl/config.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/misc/ocxl/config.c

[PATCH v4 10/10] ARM: multi_v7_defconfig: add ARCH_MILBEAUT and ARCH_MILBEAUT_M10V

2019-02-26 Thread Sugaya Taichi
Add and enable the Milbeaut M10V architecture. These configs select those of the clock, timer and serial driver for M10V. Signed-off-by: Sugaya Taichi --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v4 07/10] dt-bindings: serial: Add Milbeaut serial driver description

2019-02-26 Thread Sugaya Taichi
Add DT bindings document for Milbeaut serial driver. Signed-off-by: Sugaya Taichi Reviewed-by: Rob Herring --- .../devicetree/bindings/serial/milbeaut-uart.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644

[PATCH v4 06/10] clocksource/drivers/timer-milbeaut: Introduce timer for Milbeaut SoCs

2019-02-26 Thread Sugaya Taichi
Add timer driver for Milbeaut SoCs series. The timer has two 32-bit width down counters, one of which is configured as a clockevent device and the other is configured as a clock source. Signed-off-by: Sugaya Taichi Acked-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 9 ++

[PATCH v4 09/10] ARM: configs: Add Milbeaut M10V defconfig

2019-02-26 Thread Sugaya Taichi
This patch adds the minimal defconfig for the Milbeaut M10V. Signed-off-by: Sugaya Taichi --- arch/arm/configs/milbeaut_m10v_defconfig | 119 +++ 1 file changed, 119 insertions(+) create mode 100644 arch/arm/configs/milbeaut_m10v_defconfig diff --git

[PATCH v4 08/10] ARM: dts: milbeaut: Add device tree set for the Milbeaut M10V board

2019-02-26 Thread Sugaya Taichi
Add devicetree for Milbeaut M10V SoC and M10V Evaluation board. Signed-off-by: Sugaya Taichi --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/milbeaut-m10v-evb.dts | 32 +++ arch/arm/boot/dts/milbeaut-m10v.dtsi| 95 + 3 files

[PATCH v4 04/10] ARM: milbeaut: Add basic support for Milbeaut m10v SoC

2019-02-26 Thread Sugaya Taichi
This adds the basic M10V SoC support under arch/arm. Since all cores are activated in the custom bootloader before booting linux, it is necessary to wait for the secondary-cores using cpu-enable- method and special sram. Signed-off-by: Sugaya Taichi --- arch/arm/Kconfig | 2 +

[PATCH v4 02/10] dt-bindings: arm: Add SMP enable-method for Milbeaut

2019-02-26 Thread Sugaya Taichi
This adds a compatible string "socionext,milbeaut-m10v-smp" for Milbeaut M10V to the 32 bit ARM CPU device tree binding. Signed-off-by: Sugaya Taichi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 03/10] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-26 Thread Sugaya Taichi
This adds a DT binding documentation for the M10V and its evaluation board. Signed-off-by: Sugaya Taichi --- .../bindings/arm/socionext/milbeaut.yaml | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH v4 01/10] dt-bindings: sram: milbeaut: Add binding for Milbeaut smp-sram

2019-02-26 Thread Sugaya Taichi
The Milbeaut M10V SoC needs a part of sram for smp, so this adds the M10V sram compatible and binding. Signed-off-by: Sugaya Taichi Reviewed-by: Rob Herring --- .../devicetree/bindings/sram/milbeaut-smp-sram.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644

[PATCH v4 05/10] dt-bindings: timer: Add Milbeaut M10V timer description

2019-02-26 Thread Sugaya Taichi
Add DT bindings document for Milbeaut M10V timer. Signed-off-by: Sugaya Taichi Reviewed-by: Rob Herring --- .../bindings/timer/socionext,milbeaut-timer.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644

[PATCH v4 00/10] Add basic support for Socionext Milbeaut M10V SoC

2019-02-26 Thread Sugaya Taichi
Hi, Here is the series of patches the initial support for SC2000(M10V) of Milbeaut SoCs. "M10V" is the internal name of SC2000, so commonly used in source code. SC2000 is a SoC of the Milbeaut series. equipped with a DSP optimized for computer vision. It also features advanced functionalities

Re: [PATCH] rapidio/mport_cdev: mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can review or take this, please? Thanks -- Gustavo On 2/12/19 11:50 AM, Gustavo A. R. Silva wrote: > n preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warning: > >

[PATCH 4/8] PCI: rockchip: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by coccinelle with the

[PATCH 8/8] PCI: rpadlpar: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_find_node_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pci/hotplug/rpadlpar_core.c:55:1-7: ERROR: missing of_node_put; acquired a node pointer

Re: [PATCH v2 1/1] lib/string: Add strscpy_pad() function

2019-02-26 Thread Tobin C. Harding
On Mon, Feb 25, 2019 at 01:38:44PM -0800, Kees Cook wrote: > On Sun, Feb 24, 2019 at 8:16 PM Tobin C. Harding wrote: > > > > We have a function to copy strings safely and we have a function to copy > > strings and zero the tail of the destination (if source string is > > shorter than destination

[PATCH 5/8] PCI: aardvark: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by coccinelle with the

[PATCH 3/8] PCI: dwc: layerscape: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pci/controller/dwc/pci-layerscape.c:204:1-7: ERROR: missing of_node_put; acquired a node

[PATCH 1/8] PCI: dwc: pci-dra7xx: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by coccinelle with the

[PATCH 7/8] PCI: mediatek: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by coccinelle with the

[PATCH 6/8] PCI: iproc: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. iproc_msi_init also calls of_node_get to increase refcount (proc_msi_init -> iproc_msi_alloc_domains -> pci_msi_create_irq_domain -> msi_create_irq_domain ->

[PATCH 2/8] PCI: uniphier: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by coccinelle with the

Re: [PATCH v4 01/12] clk: mediatek: Disable tuner_en before change PLL rate

2019-02-26 Thread Weiyi Lu
On Wed, 2019-02-27 at 11:51 +0800, Weiyi Lu wrote: > On Tue, 2019-02-26 at 16:59 +0100, Matthias Brugger wrote: > > > > On 01/02/2019 09:30, Weiyi Lu wrote: > > > From: Owen Chen > > > > > > PLLs with tuner_en bit, such as APLL1, need to disable > > > tuner_en before apply new frequency

Re: [RFC PATCH 11/20] ia64: Add unconditional mmiowb() to arch_spin_unlock()

2019-02-26 Thread Nicholas Piggin
Will Deacon's on February 23, 2019 4:50 am: > The mmiowb() macro is horribly difficult to use and drivers will continue > to work most of the time if they omit a call when it is required. > > Rather than rely on driver authors getting this right, push mmiowb() into > arch_spin_unlock() for ia64.

Re: [PATCH v2 2/7] dt-bindings: phy: Add binding for Qualcomm PCIe2 PHY

2019-02-26 Thread Bjorn Andersson
On Fri 22 Feb 11:57 PST 2019, Rob Herring wrote: > On Mon, Feb 18, 2019 at 10:04:02PM -0800, Bjorn Andersson wrote: > > The Qualcomm PCIe2 PHY is a Synopsys based PCIe PHY found in a number of > > Qualcomm platforms, add a binding to describe this. > > > > Signed-off-by: Bjorn Andersson > > ---

linux-next: manual merge of the vhost tree with the iommu tree

2019-02-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vhost tree got conflicts in: drivers/iommu/Kconfig drivers/iommu/Makefile between commit: 004240dcc222 ("iommu/hyper-v: Add Hyper-V stub IOMMU driver") from the iommu tree and commit: d906f4225497 ("iommu: Add virtio-iommu driver") from the

[sgi-xp] Missing break or false positive?

2019-02-26 Thread Gustavo A. R. Silva
Hi all, I'm taking a look into the following piece of code in drivers/misc/sgi-xp/xpc_uv.c: 561 case XPC_ACTIVATE_MQ_MSG_CHCTL_OPENCOMPLETE_UV: { 562 struct xpc_activate_mq_msg_chctl_opencomplete_uv *msg; 563 564 if (!part_setup) 565

Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-02-26 Thread David R. Bergstein
This message is in regard to a bug I have open on bugs.launchpad.net, 1813372, linked below.  This issue, originally identified in an Ubuntu kernel, has been duplicated in the most current mainline kernel, 5.0-rc8, and is in regard to problems attaining a wireless connection at 802.11ac speeds.

[RFC dma-buf 3/3] dma-buf: add show_fdinfo handler

2019-02-26 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[RFC dma-buf 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-02-26 Thread Chenbo Feng
From: Greg Hackmann This patch adds complimentary DMA_BUF_SET_NAME and DMA_BUF_GET_NAME ioctls, which lets userspace processes attach a free-form name to each buffer. This information can be extremely helpful for tracking and accounting shared buffers. For example, on Android, we know what

  1   2   3   4   5   6   7   8   9   10   >