Re: [PATCH -mm -V8] mm, swap: fix race between swapoff and some swap operations

2019-02-26 Thread Huang, Ying
Daniel Jordan writes: > On Tue, Feb 26, 2019 at 02:49:05PM +0800, Huang, Ying wrote: >> Do you have time to take a look at this patch? > > Hi Ying, is this handling all places where swapoff might cause a task to read > invalid data? For example, why don't other reads of swap_map (for example >

Re: linux-next: Fixes tag needs some work in the net-next tree

2019-02-26 Thread tanhuazhong
Hi Stephen & David, It is my mistake, so sorry about this. There is a redundant "net: hns3: " in the fixes tag. How could I fix it? Thanks. On 2019/2/25 16:00, Stephen Rothwell wrote: Hi all, In commit a638b1d8cc87 ("net: hns3: fix get VF RSS issue") Fixes tag Fixes: 374ad291762a

[PATCH net-next v2 0/8] net: Remove switchdev_ops

2019-02-26 Thread Florian Fainelli
Hi all, This patch series completes the removal of the switchdev_ops by converting switchdev_port_attr_set() to use either the blocking (process) or non-blocking (atomic) notifier since we typically need to deal with both depending on where in the bridge code we get called from. This was tested

[PATCH net-next v2 1/8] switchdev: Add SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
In preparation for allowing switchdev enabled drivers to veto specific attribute settings from within the context of the caller, introduce a new switchdev notifier type for port attributes. Suggested-by: Ido Schimmel Signed-off-by: Florian Fainelli --- include/net/switchdev.h | 27

[PATCH net-next v2 3/8] net: dsa: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use notifiers towards that goal. Prepare DSA to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET from both atomic and process context and use a small helper to translate the event notifier into

[PATCH net-next v2 2/8] rocker: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use notifiers towards that goal. Prepare rocker to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET from both atomic and process context and use a small helper to translate the event notifier

[PATCH net-next v2 4/8] mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use a notifier to perform those tasks. Prepare mlxsw to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET and utilize the switchdev_handle_port_attr_set() to handle stacking of devices.

[PATCH net-next v2 6/8] staging: fsl-dpaa2: ethsw: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use a blocking notifier to perform those tasks. Prepare ethsw to support receiving notifier events targeting SWITCHDEV_PORT_ATTR_SET and simply translate that into the existing swdev_port_attr_set() call.

[PATCH net-next v2 8/8] net: Remove switchdev_ops

2019-02-26 Thread Florian Fainelli
Now that we have converted all possible callers to using a switchdev notifier for attributes we do not have a need for implementing switchdev_ops anymore, and this can be removed from all drivers the net_device structure. Signed-off-by: Florian Fainelli ---

[PATCH net-next v2 5/8] net: mscc: ocelot: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-26 Thread Florian Fainelli
Following patches will change the way we communicate setting a port's attribute and use notifiers to perform those tasks. Ocelot does not currently have an atomic notifier registered for switchdev events, so we need to register one in order to deal with atomic context SWITCHDEV_PORT_ATTR_SET

[PATCH net-next v2 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-26 Thread Florian Fainelli
Drop switchdev_ops.switchdev_port_attr_set. Drop the uses of this field from all clients, which were migrated to use switchdev notification in the previous patches. Add a new function switchdev_port_attr_notify() that sends the switchdev notifications SWITCHDEV_PORT_ATTR_SET and calls the

[PATCH RESEND V2 1/2] clk: imx8mq: add GPIO clocks to clock tree

2019-02-26 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang --- No changes, just rebase to clk-next. --- drivers/clk/imx/clk-imx8mq.c | 5 + include/dt-bindings/clock/imx8mq-clock.h | 8 +++- 2 files changed, 12

[PATCH RESEND V2 2/2] arm64: dts: freescale: imx8mq: add clock for GPIO node

2019-02-26 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add clock info to GPIO node for clock management. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi

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

2019-02-26 Thread Baoquan He
On 02/26/19 at 11:46am, Borislav Petkov wrote: > On Tue, Feb 26, 2019 at 11:08:42AM +0800, Pingfan Liu wrote: > > I follow Baoquan's opinion. Due to the randomness caused by KASLR, a > > user may be surprised to find crashkernel=x@y not working sometime. > > And she/he will get told in dmesg that

[PATCH] regulator: wm8400: Get rid of wm8400_block_read/wm8400_set_bits functions

2019-02-26 Thread Axel Lin
The only user of wm8400_block_read/wm8400_set_bits functions is the wm8400 regulator driver. At the context of all the callers, we can use regmap_bulk_read/regmap_update_bits directly. Thus remove wm8400_block_read/wm8400_set_bits functions. Signed-off-by: Axel Lin --- drivers/mfd/wm8400-core.c

[PATCH v11 3/4] pstore/blk: support pmsg for pstore block

2019-02-26 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 253 + include/linux/pstore_blk.h | 1 +

[PATCH v11 0/4] pstore/block: new support logger for block devices

2019-02-26 Thread liaoweixiong
Why should we need pstore_block? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have

[PATCH v11 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-02-26 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS|

[PATCH v11 2/4] pstore/blk: add blkoops for pstore_blk

2019-02-26 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_BLKDEV" on Kconfig or "blkdev" on module parameter is valid.

Re: [PATCH v7 21/23] block: Avoid that flushing triggers a lockdep complaint

2019-02-26 Thread Ming Lei
On Tue, Feb 26, 2019 at 07:08:02PM +0100, Peter Zijlstra wrote: > On Fri, Feb 15, 2019 at 10:26:59AM +0800, Ming Lei wrote: > > There might be lots of blk_flush_queue instance which is allocated > > for each hctx, then lots of class key slot may be wasted. > > What is 'lots' ? for someone who

[PATCH v11 1/4] pstore/blk: new support logger for block devices

2019-02-26 Thread liaoweixiong
pstore_blk is similar to pstore_ram, but dump log to block devices rather than persistent ram. Why should we need pstore_blk? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fact, there is already a

Re: [PATCH v2 3/5] selftests/ima: define common logging functions

2019-02-26 Thread shuah
On 2/26/19 4:26 PM, Mimi Zohar wrote: Define log_info, log_pass, log_fail, and log_skip functions. Suggested-by: Petr Vorel Signed-off-by: Mimi Zohar --- tools/testing/selftests/ima/common_lib.sh | 43 +++--- tools/testing/selftests/ima/test_kexec_load.sh | 19

Re: [PATCH RESEND V2 1/2] clk: imx8mq: add GPIO clocks to clock tree

2019-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2019 at 10:28 PM Anson Huang wrote: > > i.MX8MQ has clock gate for each GPIO bank, add them > into clock tree for GPIO driver to manage. > > Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam

Re: [PATCH RESEND V2 2/2] arm64: dts: freescale: imx8mq: add clock for GPIO node

2019-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2019 at 10:29 PM Anson Huang wrote: > > i.MX8MQ has clock gate for each GPIO bank, add clock info > to GPIO node for clock management. > > Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam

Re: [bug report][stable] perf probe: failed to add events

2019-02-26 Thread Joseph Qi
On 19/2/26 21:08, Greg KH wrote: > On Tue, Feb 26, 2019 at 08:32:34PM +0800, Joseph Qi wrote: >> >> >> On 19/2/26 17:05, Greg KH wrote: >>> On Tue, Feb 26, 2019 at 03:31:14PM +0800, Joseph Qi wrote: Hi, I'm using kernel v4.19.24 and have found that there is an issue when

Re: [PATCH v2 4/5] selftests/ima: kexec_file_load syscall test

2019-02-26 Thread shuah
On 2/26/19 4:26 PM, Mimi Zohar wrote: The kernel can be configured to verify PE signed kernel images, IMA kernel image signatures, both types of signatures, or none. This test verifies only properly signed kernel images are loaded into memory, based on the kernel configuration and runtime

Re: Bug in spi: imx: Add support for SPI Slave mode

2019-02-26 Thread Jiada Wang
Hi Trent Thanks for reporting On 2019/02/27 6:41, Trent Piepho wrote: On Tue, 2017-09-05 at 14:12 +0900, Jiada Wang wrote: Previously i.MX SPI controller only works in Master mode. This patch adds support to i.MX51, i.MX53 and i.MX6 ECSPI controller to work also in Slave mode. Recently DMA

Re: [PATCH v2 5/5] selftests/ima: loading kernel modules

2019-02-26 Thread shuah
On 2/26/19 4:27 PM, Mimi Zohar wrote: While the appended kernel module signature can be verified, when loading a kernel module via either the init_module or the finit_module syscall, verifying the IMA signature requires access to the file descriptor, which is only available via the finit_module

[PATCH] arm64: dts: ls1028a: add pmu dt nodes

2019-02-26 Thread Alison Wang
This patch adds pmu dt nodes for LS1028A. Signed-off-by: Alison Wang --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

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

broken probe deferred for power-domains

2019-02-26 Thread Niklas Cassel
Hello Rob, Your patch e01afc325025 ("PM / Domains: Stop deferring probe at the end of initcall") breaks deferred probe for power domains. The patch looks like this: +++ b/drivers/base/power/domain.c @@ -2253,7 +2253,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device_node

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

2019-02-26 Thread Stephen Rothwell
Hi Joerg, After merging the iommu tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from drivers/pci/pci.c:32: include/linux/pci-ats.h:70:12: warning: 'pci_prg_resp_pasid_required' defined but not used [-Wunused-function] static int

Re: linux-next: Fixes tag needs some work in the net-next tree

2019-02-26 Thread Stephen Rothwell
Hi, On Wed, 27 Feb 2019 09:12:57 +0800 tanhuazhong wrote: > > It is my mistake, so sorry about this. There is a redundant "net: hns3: > " in the fixes tag. > > How could I fix it? Since Dave doesn't rebase his tree, there is no way to fix it (and it is not that important any in this case),

[PATCH] ARM: dmabounce: NULL check before some freeing functions is

2019-02-26 Thread WangBo
The function dma_pool_destroy(NULL) is safe, so removes NULL check before freeing the mem. This patch also fix the ifnullfree.cocci warnings. Signed-off-by: WangBo --- arch/arm/common/dmabounce.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] virt: vbox: Mark expected switch fall-through

2019-02-26 Thread Gustavo A. R. Silva
On 2/26/19 3:04 PM, Hans de Goede wrote: > Hi, > > On 26-02-19 20:23, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warning: >> >>

RE: [PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-26 Thread Ran Wang
Hi Rob, > -Original Message- > From: Rob Herring > Sent: Wednesday, February 27, 2019 00:40 > To: Ran Wang > Cc: Greg Kroah-Hartman ; Yang Li > ; linux-...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; Ran Wang > Subject: Re: [PATCH v3 1/2] usb: dwc3: Add

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

2019-02-26 Thread Patrick Venture
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, Patrick Venture wrote: > > > > The ASPEED AST2400, and AST2500 in some

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

2019-02-26 Thread Deepa Dinamani
On Tue, Feb 26, 2019 at 6:07 PM Xiongfeng Wang wrote: > > When I ran Syzkaller testsuite, I got the following call trace. > > UBSAN: Undefined behaviour in ./include/linux/time64.h:120:27 > signed integer overflow: >

Re: [PATCH v4 08/12] clk: mediatek: Add MT8183 clock support

2019-02-26 Thread Weiyi Lu
On Tue, 2019-02-26 at 09:50 -0800, Stephen Boyd wrote: > Quoting Weiyi Lu (2019-02-01 00:30:12) > > diff --git a/drivers/clk/mediatek/clk-mt8183.c > > b/drivers/clk/mediatek/clk-mt8183.c > > new file mode 100644 > > index ..e9de9fe774ca > > --- /dev/null > > +++

Re: [PATCH 02/18] clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability

2019-02-26 Thread Samuel Holland
On 02/26/19 15:23, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a -stable tag. > The stable tag indicates that it's relevant for the following trees: all > > The bot has tested the following trees: v4.20.12, v4.19.25,

Re: [PATCH] printk/console: Do not suppress information about dropped messages

2019-02-26 Thread Sergey Senozhatsky
On (02/26/19 17:26), John Ogness wrote: [..] > > if (console_seq < log_first_seq) { > > - len = sprintf(text, > > - "** %llu printk messages dropped **\n", > > - log_first_seq - console_seq); > > +

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

2019-02-26 Thread Wei Yang
On Tue, Feb 26, 2019 at 07:45:46PM +0100, Philippe Mathieu-Daudé wrote: >Hi Wei, > >On 2/26/19 8:31 AM, 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 >> --- >> drivers/firmware/qemu_fw_cfg.c |

Re: linux-next: Fixes tag needs some work in the net-next tree

2019-02-26 Thread tanhuazhong
On 2019/2/27 10:23, Stephen Rothwell wrote: Hi, On Wed, 27 Feb 2019 09:12:57 +0800 tanhuazhong wrote: It is my mistake, so sorry about this. There is a redundant "net: hns3: " in the fixes tag. How could I fix it? Since Dave doesn't rebase his tree, there is no way to fix it (and it is

Re: [PATCH v2] xfrm: correctly check policy index in verify_newpolicy_info

2019-02-26 Thread YueHaibing
On 2019/2/25 21:43, Herbert Xu wrote: > On Mon, Feb 25, 2019 at 05:56:00PM +0800, Yue Haibing wrote: >> >> the check. Then __xfrm_policy_unlink use the index to access array >> policy_count >> whose size is XFRM_POLICY_MAX * 2, triggering out of bounds access. > > No it doesn't. Even if it did

[PATCH] staging: rtl8712: assign initial value to a static variable in r8712_efuse_pg_packet_write()

2019-02-26 Thread Mao Wenan
repeat_times is a static variable, but each time when it enters r8712_efuse_pg_packet_write(), it is set to zero, this value is not consistent with last calling, so next behavior is not our expect. Signed-off-by: Mao Wenan --- drivers/staging/rtl8712/rtl8712_efuse.c | 3 +-- 1 file changed, 1

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

2019-02-26 Thread Xiongfeng Wang
On 2019/2/27 10:38, Deepa Dinamani wrote: > On Tue, Feb 26, 2019 at 6:07 PM Xiongfeng Wang > wrote: >> >> When I ran Syzkaller testsuite, I got the following call trace. >> >> UBSAN: Undefined behaviour in

Re: [PATCH 0/5] iommu/arm-smmu-v3: make smmu can be enabled in kdump kernel

2019-02-26 Thread Leizhen (ThunderTown)
Hi Will, Robin: Do you have time to review these patches? Hope you can give me some opinions. On 2019/2/19 15:54, Zhen Lei wrote: > This patch series include two parts: > 1. Patch1-2 use dummy STE tables with "ste abort" hardware feature to abort > unexpected >devices accessing. For more

[PATCH v2 0/2] misc: hpilo: Do not claim on unsupported hardware

2019-02-26 Thread Matt Hsiao
This patch series prevent unsupported hardwares from using the hpilo module: 1) Instead of having explicit if statement to check SSID 0x1979, provide a pci_device_id table of devices to blacklist. 2) Add unsupported hardware with SSID 0x0289 to the blacklist table. Changes since v1: - Merge v1

[PATCH v2 1/2] misc: hpilo: Exclude unsupported device via blacklist

2019-02-26 Thread Matt Hsiao
Instead of having explicit if statements excluding devices, use a pci_device_id table of devices to blacklist. HPE will put out minor updates to the iLO using the same device info except for the subsystem device id. hpilo driver takes the approach to claim based upon {Vendor, Device, SubVendor}

[PATCH v2 2/2] misc: hpilo: Do not claim unsupported hardware

2019-02-26 Thread Matt Hsiao
CL2600/CL2800 servers leveraged Proliant hardware but are targeted to a different market segment and come with a different firmware base. Based upon targeted market needs, the servers de-featured certain aspects of iLO. As a result, hpilo driver still claims the hardware but is not functional, so

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

2019-02-26 Thread Daniel Axtens
Christophe Leroy writes: > 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 randconfig_defconfig) > > arch/powerpc/kernel/exceptions-64e.S:576: Error:

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

2019-02-26 Thread Weiyi Lu
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 settings, or the new frequency > > settings (pcw) will not be applied. >

Re: [PATCH] i3c: master: dw-i3c-master: mark expected switch fall-through

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

[RFC dma-buf 0/3] Improve the dma-buf tracking

2019-02-26 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count,

[RFC dma-buf 1/3] dma-buf: give each buffer a full-fledged inode

2019-02-26 Thread Chenbo Feng
From: Greg Hackmann By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN can get a lot of fine-grained data about how shmem buffers are shared among processes. stat(2) on each entry gives the caller a unique ID (st_ino), the buffer's size (st_size), and even the number of

[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

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.

[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

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

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

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

[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

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

[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

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

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

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

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

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

[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

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

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

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,

[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

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

  1   2   3   4   5   6   7   8   9   10   >