Re: [PATCH v2 08/25] mtd: nand: qcom: reorganize nand page write

2017-08-02 Thread Archit Taneja
On 07/19/2017 05:17 PM, Abhishek Sahu wrote: Each NAND page consist of multiple codewords. Following is sequence for NAND page write according to hardware guide. 1. Program Power-up configuration, page row, page column address and flash configuration registers. 2. Write NAND_FLASH_CMD

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-08-02 Thread Zhiyong Tao
On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > Hi Zhiyong, > > > > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > <...> > > 3)Add "spec_dir_set" and "spec_dir_get" in "mtk_pinctrl_devdata". > > 4)Change "spec_dir_set" and add "spec_dir_get" in "pinctrl-mt2701.c" > > and

Re: [PATCH v2 09/25] mtd: nand: qcom: remove memset for clearing read register buffer

2017-08-02 Thread Archit Taneja
On 07/19/2017 05:17 PM, Abhishek Sahu wrote: The memset in clear_read_regs is overhead. All the register data will be filled by DMA during NAND operation so making these register variables zero is not required. Yeah, that's a good point. Reviewed-by: Archit Taneja Signed-off-by:

Re: [PATCH 1/2] mm, oom: do not rely on TIF_MEMDIE for memory reserves access

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 18:52:42, Michal Hocko wrote: > On Wed 02-08-17 00:30:33, Tetsuo Handa wrote: [...] > > > - if (gfp_pfmemalloc_allowed(gfp_mask)) > > > - alloc_flags = ALLOC_NO_WATERMARKS; > > > + /* > > > + * Distinguish requests which really need access to whole memory > > > + *

[PATCH v3 02/11] multi_v7_defconfig: Make rockchip phy built-in

2017-08-02 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..94d7e71 100644 ---

[PATCH v3 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-02 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch/arm64/configs/defconfig +++

[PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread David Wu
Support internal ethernet phy currently. Signed-off-by: David Wu --- drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 229 + 3 files changed, 235 insertions(+) create mode 100644

[PATCH v3 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-02 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index

[PATCH v3 00/11] Add the internal phy support

2017-08-02 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64:

[PATCH] pwm: Kconfig: Enable pwm-tiecap to be built for Keystone

2017-08-02 Thread Vignesh R
66AK2G SoC has ECAP subsystem that is used as pwm-backlight provider for display. Hence, enable pwm-tiecap driver to be built for Keystone architecture. Signed-off-by: Vignesh R --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig

[PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-02 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu --- .../devicetree/bindings/net/rockchip-dwmac.txt | 6 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 81 ++ 2 files changed, 86

[PATCH v3 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-08-02 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v3 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-08-02 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu ---

[PATCH v3 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-08-02 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index

[PATCH v3 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-08-02 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu --- arch/arm/boot/dts/rk3228-evb.dts | 20 1 file changed, 20 insertions(+) diff --git

[PATCH v3 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-02 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread Corentin Labbe
Hello I have some minor comment below > + > +#include > +#include > +#include > +#include > +#include > +#include in alphabetic order please [...] > +static int rockchip_init_tstmode(struct phy_device *phydev) > +{ > + int ret; > + > + /* Enable access to Analog and DSP register

[PATCH v3 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-02 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts

[PATCH] misc: Kconfig: fix missing tristate prompt and help for LIS3LV02D

2017-08-02 Thread H. Nikolaus Schaller
Signed-off-by: H. Nikolaus Schaller --- drivers/misc/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 8136dc7e863d..41781d61eac7 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -5,10 +5,13 @@ menu

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

2017-08-02 Thread Stephen Rothwell
Hi all, On Wed, 2 Aug 2017 15:45:54 +1000 Stephen Rothwell wrote: > > On Tue, 01 Aug 2017 09:08:01 -0400 "Zi Yan" wrote: > > > > I found two possible fixes. > > > > 1. This uses C++ zero initializer, GCC is OK with it. > > I tested with GCC 4.9.3 (has the initialization bug) and GCC 6.4.0. >

Query: rcu_sched detected stalls with function_graph tracer

2017-08-02 Thread Pratyush Anand
Hi Steve, I am using a 3.10 based kernel, and when I enable function_graph with one particular x86_64 machine, I encounter rcu_sched stall. echo function_graph > /sys/kernel/debug/tracing/current_tracer echo 1 > /sys/kernel/debug/tracing/tracing_on If I use 4.13-rc2, then its better, but

Re: [PATCH v2 5/6] phy: Add USB3 PHY support for Broadcom NS2 SoC

2017-08-02 Thread Kishon Vijay Abraham I
Hi, On Thursday 27 July 2017 04:26 AM, Jon Mason wrote: > From: Yendapally Reddy Dhananjaya Reddy > > This patch adds support for Broadcom NS2 USB3 PHY > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > Signed-off-by: Jon Mason > --- > drivers/phy/broadcom/Kconfig| 9 +

[PATCH_v4.1_1/3] Make call_usermodehelper_exec possible to set namespaces

2017-08-02 Thread Cao Shufeng
Current call_usermodehelper_work() can not set namespaces for the executed program. This patch add above function for call_usermodehelper_work(). The init_intermediate is introduced for init works which should be done before fork(). So that we get a method to set namespaces for children. The

[PATCH_v4.1_2/3] Limit dump_pipe program's permission to init for container

2017-08-02 Thread Cao Shufeng
Currently when we set core_pattern to a pipe, the pipe program is forked by kthread running with root's permission, and write dumpfile into host's filesystem. Same thing happened for container, the dumper and dumpfile are also in host(not in container). It have following program: 1: Not

[PATCH_v4.1_3/3] Make core_pattern support namespace

2017-08-02 Thread Cao Shufeng
Currently, each container shared one copy of coredump setting with the host system, if host system changed the setting, each running containers will be affected. Same story happened when container changed core_pattern, both host and other container will be affected. For container based on

linux-next: Tree for Aug 2

2017-08-02 Thread Stephen Rothwell
Hi all, Changes since 20170801: The drm-misc tree gained a conflict against Linus' tree. The tip tree gained a conflict against the fbdev tree. The tty tree gained a conflict against the tty.current tree. I again reverted a commit from the staging tree that was causing overnight build

[PATCH 0/3] Make core_pattern support namespace

2017-08-02 Thread Cao Shufeng
This patchset includes following function points: 1: Let usermodehelper function possible to set pid namespace done by: [PATCH_v4.1_1/3] Make call_usermodehelper_exec possible to set namespaces 2: Let pipe_type core_pattern write dump into container's rootfs done by: [PATCH_v4.1_2/3]

Re: [PATCH v5 1/3] pinctrl: Add sleep related state to indicate sleep related configs

2017-08-02 Thread Baolin Wang
Hi LinusW and Rob, On 14 July 2017 at 16:08, Baolin Wang wrote: > In some scenarios, we should set some pins as input/output/pullup/pulldown > when the specified system goes into deep sleep mode, then when the system > goes into deep sleep mode, these pins will be set automatically by hardware.

Re: [PATCH 1/3] phy: rockchip-inno-usb2: add companion grf quirk

2017-08-02 Thread Frank Wang
Hi Kishon, On 2017/8/2 13:03, Kishon Vijay Abraham I wrote: Hi, On Tuesday 01 August 2017 01:42 PM, Frank Wang wrote: The registers of usb-phy are distributed in grf and usbgrf on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this companion grf design. Signed-off-by:

linux-next: Signed-off-by missing for commits in the drm tree

2017-08-02 Thread Stephen Rothwell
Hi Dave, Commits 663ebbf63180 "drm/amdgpu: trace VM flags as 64bits" 5327dd8acf05 "drm/amdgpu: remove stale TODO comment" eabd76cef900 "drm/amd/sched: print sched job id in amd_sched_job trace" a69c7e0138fc "drm/amdgpu: update pctl1 ram index/data for mmhub on raven" 7504938f8e73

[PATCH v2] arm, am335x: add support for Moxa UC-8100-ME-T open platform

2017-08-02 Thread SZ Lin
Add support for Moxa UC-8100-ME-T open platform The UC-8100-ME-T computing platform is designed for embedded data acquisition industrial applications The features of UC-8100-ME-T series are: * eMMC * SPI flash * SD slot * 2x LAN * 2 RS-232/422/485 ports, software-selectable * Mini PCIe form

Re: [RHEL-ALT-7.4 PATCH 1/2] numa,sched: slow down scan rate if shared faults dominate

2017-08-02 Thread Mel Gorman
On Mon, Jul 31, 2017 at 03:28:46PM -0400, Rik van Riel wrote: > From: Rik van Riel > > The comment above update_task_scan_period says the scan period should > be increased (scanning slows down) if the majority of memory accesses > are on the local node, or if the majority of the page accesses

Re: [PATCH v6 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-08-02 Thread Jonathan Liu
Hi Priit, On 15 July 2017 at 00:49, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/sunxi-ng/Makefile |1 +- >

Re: [PATCH_v4.1_3/3] Make core_pattern support namespace

2017-08-02 Thread Aleksa Sarai
Currently, each container shared one copy of coredump setting with the host system, if host system changed the setting, each running containers will be affected. Same story happened when container changed core_pattern, both host and other container will be affected. For container based on

[PATCH] direct-io: Minor cleanups in do_blockdev_direct_IO

2017-08-02 Thread Nikolay Borisov
We already get the block counts and the calculate the end block at the beginning of the function. Let's use the local variables for consistency and readability. No functional changes Signed-off-by: Nikolay Borisov --- fs/direct-io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH] kvm: x86: reduce rtc 0x70 access vm-exit time

2017-08-02 Thread Peng Hao
some versions of windows guest access rtc frequently because of rtc as system tick.guest access rtc like this: write register index to 0x70, then write or read data from 0x71. writing 0x70 port is just as index and do nothing else. So writing 0x70 is not necessory to exit to userspace every

[PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. Signed-off-by: Harunobu Kurokawa --- drivers/pci/host/pcie-rcar.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c

[PATCH v2 0/4] pmbus: Expand fan support and add MAX31785 driver

2017-08-02 Thread Andrew Jeffery
Hello, v1[1] spent some time in the OpenBMC kernel tree and it shook out a few issues: 1. The machines I was testing against had pre-prammed the installed-bit in FAN_CONFIG_1_2 2. There appears to be a hardware issue with some back-to-back writes to the MAX31785 Point 1. is a policy issue

[PATCH v2 2/4] hwmon: pmbus: Add fan control support

2017-08-02 Thread Andrew Jeffery
Expose fanX_target, pwmX and pwmX_enable hwmon sysfs attributes. Fans in a PMBus device are driven by the configuration of two registers: FAN_CONFIG_x_y and FAN_COMMAND_x: FAN_CONFIG_x_y dictates how the fan and the tacho operate (if installed), while FAN_COMMAND_x sets the desired fan rate. The

[PATCH v2 4/4] pmbus: max31785: Work around back-to-back writes with FAN_CONFIG_1_2

2017-08-02 Thread Andrew Jeffery
Testing of the pmbus max31785 driver implementation revealed occasional NACKs from the device. Attempting the same transaction immediately after the failure appears to always succeed. The NACK has consistently been observed to happen on the second write of back-to-back writes to the device, where

[PATCH v2 3/4] pmbus: Add driver for Maxim MAX31785 Intelligent Fan Controller

2017-08-02 Thread Andrew Jeffery
The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan management with temperature and remote voltage sensing. Various fan control features are provided, including PWM frequency control, temperature hysteresis, dual tachometer measurements, and fan health monitoring. The

[PATCH v2 1/4] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-08-02 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- .../devicetree/bindings/hwmon/pmbus/max31785.txt | 126 + 1 file changed, 126 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt diff --git

Re: [PATCH v3 0/6] mediatek: pwm driver add MT2712/MT7622 support

2017-08-02 Thread Zhi Mao
Hi John, Matthais & Thierry, > > Just a gentle ping on this issue again. > Do you have any update? > > Regards, > Zhi On Mon, 2017-07-17 at 11:16 +0800, Zhi Mao wrote: > Hi John, Matthais & PWM Maintainers > > Just a Gentle ping on this issue :) > Is there anything should be modified? > >

Re: [Linux-ima-devel] [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-02 Thread James Morris
On Tue, 1 Aug 2017, Roberto Sassu wrote: > On 8/1/2017 12:27 PM, Christoph Hellwig wrote: > > On Tue, Aug 01, 2017 at 12:20:36PM +0200, Roberto Sassu wrote: > > > This patch introduces a parser for RPM packages. It extracts the digests > > > from the RPMTAG_FILEDIGESTS header section and converts

[PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member

2017-08-02 Thread Peter Rosin
The information is available elsewhere. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c index aa4a3bf9507f..20b90a7a1e61

[PATCH 1/2] i2c: mux: pinctrl: remove platform_data

2017-08-02 Thread Peter Rosin
No platform (at least no upstreamed platform) has ever used this platform_data. Just drop it and simplify the code. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/Kconfig | 1 + drivers/i2c/muxes/i2c-mux-pinctrl.c | 219

[PATCH 0/2] i2c: mux: pinctrl: remove platform_data and cleanup

2017-08-02 Thread Peter Rosin
Hi! As previously discussed [1], the platform_data interface of the i2c mux pinctrl driver has never been used (upstream at least). Deleting code is always nice, so here are two patches that gets rid of some lines... Cheers, peda [1] https://lkml.org/lkml/2017/5/22/104 Peter Rosin (2): i2c:

Re: [v4 2/4] mm, oom: cgroup-aware OOM killer

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 19:13:52, Roman Gushchin wrote: > On Tue, Aug 01, 2017 at 07:03:03PM +0200, Michal Hocko wrote: > > On Tue 01-08-17 16:25:48, Roman Gushchin wrote: > > > On Tue, Aug 01, 2017 at 04:54:35PM +0200, Michal Hocko wrote: > > [...] > > > > I would reap out the oom_kill_process into a

[PATCH v6 2/7] mm: migrate: fix barriers around tlb_flush_pending

2017-08-02 Thread Nadav Amit
Reading tlb_flush_pending while the page-table lock is taken does not require a barrier, since the lock/unlock already acts as a barrier. Removing the barrier in mm_tlb_flush_pending() to address this issue. However, migrate_misplaced_transhuge_page() calls mm_tlb_flush_pending() while the

[PATCH v6 6/7] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-08-02 Thread Nadav Amit
From: Minchan Kim Nadav reported parallel MADV_DONTNEED on same range has a stale TLB problem and Mel fixed it[1] and found same problem on MADV_FREE[2]. Quote from Mel Gorman "The race in question is CPU 0 running madv_free and updating some PTEs while CPU 1 is also running madv_free and

[PATCH v6 3/7] Revert "mm: numa: defer TLB flush for THP migration as long as possible"

2017-08-02 Thread Nadav Amit
While deferring TLB flushes is a good practice, the reverted patch caused pending TLB flushes to be checked while the page-table lock is not taken. As a result, in architectures with weak memory model (PPC), Linux may miss a memory-barrier, miss the fact TLB flushes are pending, and cause (in

[PATCH v6 4/7] mm: refactoring TLB gathering API

2017-08-02 Thread Nadav Amit
From: Minchan Kim This patch is a preparatory patch for solving race problems caused by TLB batch. For that, we will increase/decrease TLB flush pending count of mm_struct whenever tlb_[gather|finish]_mmu is called. Before making it simple, this patch separates architecture specific part and

[PATCH v6 1/7] mm: migrate: prevent racy access to tlb_flush_pending

2017-08-02 Thread Nadav Amit
From: Nadav Amit Setting and clearing mm->tlb_flush_pending can be performed by multiple threads, since mmap_sem may only be acquired for read in task_numa_work(). If this happens, tlb_flush_pending might be cleared while one of the threads still changes PTEs and batches TLB flushes. This can

[PATCH v6 0/7] fixes of TLB batching races

2017-08-02 Thread Nadav Amit
It turns out that Linux TLB batching mechanism suffers from various races. Races that are caused due to batching during reclamation were recently handled by Mel and this patch-set deals with others. The more fundamental issue is that concurrent updates of the page-tables allow for TLB flushes to

Re: [PATCH v1 04/15] perf, tools: Support weak groups

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:04PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Setting up groups can be complicated due to the > complicated scheduling restrictions of different PMUs. > User tools usually don't understand all these restrictions. > Still in many cases it is useful to set up

Re: [PATCH v1 03/15] perf, tools, stat: Fix saved values rbtree lookup

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:03PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The stat shadow saved values rbtree is indexed by a pointer. > Fix the comparison function: > > - We cannot return a pointer delta as an int because > that loses bits on 64bit. > - Doing pointer arithmetic on the

[PATCH v6 7/7] mm: fix KSM data corruption

2017-08-02 Thread Nadav Amit
From: Minchan Kim Nadav reported KSM can corrupt the user data by the TLB batching race[1]. That means data user written can be lost. Quote from Nadav Amit " For this race we need 4 CPUs: CPU0: Caches a writable and dirty PTE entry, and uses the stale value for write later. CPU1: Runs

Re: [PATCH v1 02/15] perf, tools: Tighten detection of BPF events

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:02PM -0700, Andi Kleen wrote: > From: Andi Kleen > > perf stat -e cpu/uops_executed.core,cmask=1/ > > would be detected as a BPF source event because the .c matches the .c > source BPF pattern. > > Add lookahead to the BPF patterns and reject them if they are

[PATCH v6 5/7] mm: make tlb_flush_pending global

2017-08-02 Thread Nadav Amit
From: Minchan Kim Currently, tlb_flush_pending is used only for CONFIG_[NUMA_BALANCING| COMPACTION] but upcoming patches to solve subtle TLB flush batching problem will use it regardless of compaction/NUMA so this patch doesn't remove the dependency. Signed-off-by: Minchan Kim Signed-off-by:

Re: [PATCH v2 22/22] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-08-02 Thread Wu Hao
On Tue, Aug 01, 2017 at 11:15:48AM -0700, Moritz Fischer wrote: > Hi Wu, > > couple of minor things inline below. Hi Moritz, Thanks a lot for your comments. :) I will fix all the problems below in the next version patchset. Thanks Hao > > On Sun, Jun 25, 2017 at 6:52 PM, Wu Hao wrote: > >

Re: [PATCH v1 05/15] perf, tools: Add missing newline to expr parser error messages

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:05PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/util/expr.y | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/expr.y

Re: [PATCH] KVM: nVMX: INVPCID support

2017-08-02 Thread Paolo Bonzini
On 01/08/2017 19:37, Radim Krčmář wrote: > > Do you it's less ugly than the other two options? It's awesome, but it's a non-trivial project of its own. :) Paolo

Re: [PATCH 09/28] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-08-02 Thread Shivappa Vikas
On Tue, 1 Aug 2017, Thomas Gleixner wrote: On Tue, 25 Jul 2017, Vikas Shivappa wrote: Hardware uses RMID(Resource monitoring ID) to keep track of each of the RDT events associated with tasks. The number of RMIDs is dependent on the SKU and is enumerated via CPUID. We add support to manage

Re: [PATCH 2/2] mm: rename global_page_state to global_zone_page_state

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 14:05:20, Andrew Morton wrote: [...] > WARNING: line over 80 characters > #187: FILE: mm/page-writeback.c:1408: > + * global_zone_page_state() too often. So scale it near-sqrt to the safety > margin > > > Liveable with, but the code would be quite a bit neater if we had a >

Re: [PATCH v2] KVM: X86: Fix loss of pending INIT due to race

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 01:05, Wanpeng Li wrote: > From: Wanpeng Li > > When SMP VM start, AP may lost INIT because of receiving INIT between > kvm_vcpu_ioctl_x86_get/set_vcpu_events. > >vcpu 0 vcpu 1 >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 01/08/17 21:11, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: >> On 01/08/17 16:44, Kirill A. Shutemov wrote: >>> On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26,

Re: [PATCH] kvm: x86: reduce rtc 0x70 access vm-exit time

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 17:24, Peng Hao wrote: > some versions of windows guest access rtc frequently because of > rtc as system tick.guest access rtc like this: write register index > to 0x70, then write or read data from 0x71. writing 0x70 port is > just as index and do nothing else. So writing 0x70 is

[PATCH 5/6] gpio: mxs: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mxs.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index

[PATCH 6/6] gpio: sodaville: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-sodaville.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-sodaville.c

[PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mxc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index

[PATCH 2/6] gpio: ml-ioh: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-ml-ioh.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c

[PATCH 0/6] gpio: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
We now provide resource managed versions of irq_alloc_generic_chip() and irq_setup_generic_chip(). Use them in all relevant gpio drivers. Bartosz Golaszewski (6): gpio: sta2x11: use devres for irq generic chip gpio: ml-ioh: use devres for irq generic chip gpio: pch: use devres for irq

[PATCH 3/6] gpio: pch: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pch.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index

[PATCH 1/6] gpio: sta2x11: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-sta2x11.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c

[PATCH v2 3/5] phy: rockchip-inno-usb2: add otg mux irq quirk

2017-08-02 Thread Frank Wang
The otg-id/otg-bvalid/linestate irqs are multiplexed to one irq in otg-port on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this mux irq feature. Signed-off-by: Frank Wang --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 68 ++- 1 file changed,

[PATCH v2 4/5] dt-bindings: phy-rockchip-inno-usb2: add otg mux irq quirk

2017-08-02 Thread Frank Wang
Add rockchip,otg_mux_irq_quirk property to support the otg-id/ otg-bvalid/linestate irqs that are multiplexed to one irq in otg-port on some special Rockchip SoCs (e.g RV1108). Signed-off-by: Frank Wang --- Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt | 5 + 1 file

[PATCH v2 2/5] dt-bindings: phy-rockchip-inno-usb2: add companion grf quirk

2017-08-02 Thread Frank Wang
Add rockchip,usbgrf and rockchip,companion_grf_quirk to support the registers of usb-phy that are distributed in grf and usbgrf on some special Rockchip SoCs (e.g RV1108). Signed-off-by: Frank Wang --- Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt | 4 1 file changed, 4

[PATCH v2 1/5] phy: rockchip-inno-usb2: add companion grf quirk

2017-08-02 Thread Frank Wang
The registers of usb-phy are distributed in grf and usbgrf on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this companion grf design. Signed-off-by: Frank Wang --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 112 +- 1 file changed, 74

[PATCH v2 0/5] add some quirks for Rockchip usb2-phy and add rv1108 SoCs' support

2017-08-02 Thread Frank Wang
These series of patches add companion_grf_quirk and otg_mux_irq_quirk for rockchip usb2-phy. In addition, this change also add rv1108 usb2-phy support. Changes from v1: - Send the dt-bindings as a separate patch and cc devicetree list. Frank Wang (5): phy: rockchip-inno-usb2: add companion

[PATCH v2 5/5] phy: rockchip-inno-usb2: add support of usb2-phy for rv1108 SoCs

2017-08-02 Thread Frank Wang
This adds support usb2-phy for rv1108 SoCs and amend phy Documentation. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 1 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 43 ++ 2 files changed, 44 insertions(+) diff --git

[PATCH v2 2/2] Introduce 8250_men_mcb

2017-08-02 Thread Michael Moese
This patch introduces the 8250_men_mcb driver for the MEN 16Z125 IP-Core. This is a 16550-type UART with a 60 byte FIFO. Due to strange old hardware, every board using this IP core requires different values for uartclk. A reasonable default is included in addition to the support of three boards.

[PATCH v2 1/2] mcb: introduce mcb_get_resource()

2017-08-02 Thread Michael Moese
From: Johannes Thumshirn Introduce mcb_get_resource() as a common accessor to a mcb device's memory or IRQ resources. Signed-off-by: Johannes Thumshirn --- drivers/mcb/mcb-core.c | 20 +++- include/linux/mcb.h| 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff

Re: [PATCH] f2fs: update cur_valid_map_mir together with cur_valid_map

2017-08-02 Thread Yunlong Song
Hi Chao, For the memory overflow or cache bit-transition case, when CHECK_FS is on, should f2fs enter panic or just provide WARNing information? I prefer WARNing, because it is not f2fs's fault, f2fs does not need to pay for it, why not use WARN_ON instead? On 2017/8/2 9:34, Chao Yu

Re: [PATCH V2] get_maintainer: Prepare for separate MAINTAINERS files

2017-08-02 Thread Joe Perches
On Sun, 2017-07-23 at 13:32 -0700, Joe Perches wrote: > Allow for MAINTAINERS to become a directory and if it is, > read all the files in the directory for maintained sections. ping? > Also look for all files named MAINTAINERS in all subdirectories > excluding the .git directory. > > This adds

Re: [PATCH] arc: arcv2: cache: Explicitly set MSB counterpart of region ops addresses

2017-08-02 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-08-02 at 09:09 +0530, Vineet Gupta wrote: > On 08/01/2017 03:29 PM, Alexey Brodkin wrote: > > > > It is necessary to explicitly set both SLC_AUX_RGN_START1 and > > SLC_AUX_RGN_END1 > > which hold MSB bits of the physical address correspondingly of region start > > and

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-02 Thread Wanpeng Li
2017-08-02 6:42 GMT+08:00 Wanpeng Li : > 2017-08-02 3:59 GMT+08:00 Radim Krčmář : >> 2017-07-31 19:25-0700, Wanpeng Li: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 >>> nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] >>>

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-08-02 Thread Noralf Trønnes
Den 02.08.2017 00.26, skrev David Lechner: On 08/01/2017 01:08 PM, Noralf Trønnes wrote: (cc: Daniel Vetter) Den 01.08.2017 18.51, skrev David Lechner: On 07/30/2017 12:14 PM, Noralf Trønnes wrote: Den 29.07.2017 21.40, skrev David Lechner: On 07/29/2017 02:17 PM, David Lechner wrote:

Re: [PATCH 2/5] staging/pi433/pi433_if.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c

Re: [PATCH 3/5] staging/pi433/rf69.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.h | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/drivers/staging/pi433/rf69.h

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Just reviewed, not tested. As far as I can see, there is no technical issue with this patch. I prefer the names of the enumerations in camel case, because then they are a bit shorter. If camel case is unwanted, for sure we need that change. Please mind the allignment.

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 11:23:12AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2017-08-02 at 00:59 +0200, Peter Zijlstra wrote: > > > PowerPC for example uses PTESYNC before the TBLIE, so does a SYNC after > > > work? Ben? > > > From what I gather it is not. You have TLBSYNC for it. So the good

Re: rcu_sched stall while waiting in csd_lock_wait()

2017-08-02 Thread Will Deacon
Hi Pratyush, On Wed, Aug 02, 2017 at 09:01:19AM +0530, Pratyush Anand wrote: > I am observing following rcu_sched stall while executing `perf record -a -- > sleep 1` with one of the arm64 platform. It looks like that stalled cpu was > waiting in csd_lock_wait() from where it never came out,and

Re: [PATCH 0/3] memdelay: memory health metric for systems and workloads

2017-08-02 Thread Michal Hocko
On Fri 28-07-17 15:43:37, Johannes Weiner wrote: > Hi Andrew, > > On Thu, Jul 27, 2017 at 01:43:25PM -0700, Andrew Morton wrote: > > On Thu, 27 Jul 2017 11:30:07 -0400 Johannes Weiner > > wrote: > > > > > This patch series implements a fine-grained metric for memory > > > health. > > > > I

Re: [PATCH] mux: include compiler.h from mux/consumer.h

2017-08-02 Thread Ulrich Hecht
On Mon, Jul 31, 2017 at 6:28 PM, Peter Rosin wrote: > On 2017-07-31 18:00, Greg Kroah-Hartman wrote: >> On Mon, Jul 31, 2017 at 12:04:35PM +0200, Peter Rosin wrote: >>> From: Ulrich Hecht >>> >>> Required for __must_check. >>> >>> Signed-off-by: Ulrich Hecht >>> Signed-off-by: Peter Rosin >>>

Re: [PATCH 4/5] staging/pi433/rf69.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe lnaGain should move to lna_gain instead of lnagain (also applies to the headers...) Marcus Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.c | 26 +- > 1 file changed,

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 10:05, Wanpeng Li wrote: >>> >>> SDM says that with acknowledge interrupt on exit, bit 31 of the VM-exit >>> interrupt information (valid interrupt) is always set to 1 on >>> EXIT_REASON_EXTERNAL_INTERRUPT. We don't want to break hypervisors >>> expecting an interrupt in that case,

[PATCH v6 0/3] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-08-02 Thread Alexey Budankov
Hi, By default, the userspace perf tool opens per-cpu task-bound events when sampling, so for N logical events requested by the user, the tool will open N * NR_CPUS events. In the kernel, we mux events with a hrtimer, periodically rotating the flexible group list and trying to schedule each

[PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-02 Thread Alexey Budankov
This patch moves event groups into rb tree sorted by CPU, so that multiplexing hrtimer interrupt handler would be able skipping to the current CPU's list and ignore groups allocated for the other CPUs. New API for manipulating event groups in the trees is implemented as well as adoption on the

Re: [PATCH 5/5] staging/pi433/rf69_enum.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69_enum.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/pi433/rf69_enum.h >

Re: [PATCH] KVM: X86: init irq->level in kvm_pv_kick_cpu_op

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 05:20, Longpeng(Mike) wrote: > 'lapic_irq' is a local variable and its 'level' field isn't > initialized, so 'level' is random, it doesn't matter but > makes UBSAN unhappy: > > UBSAN: Undefined behaviour in .../lapic.c:... > load of value 10 is not a valid value for type '_Bool' >

  1   2   3   4   5   6   7   8   9   10   >