[PATCH] ARM: dts: Remove min and max voltage values for dcdc3

2017-06-02 Thread Keerthy
dcdc3 supplies to DDR on AM43x series. When we set both min and max values to the same value. The regulator framework sets that particular voltage. This is bad as we are changing the ddr voltage when executing from ddr. Hence remove the min and max values. The ddr supply voltage shall be set from b

Re: [PATCH V2] ARM: cpuidle: Support asymmetric idle definition

2017-06-02 Thread Sudeep Holla
On 01/06/17 12:39, Daniel Lezcano wrote: > Some hardware have clusters with different idle states. The current code does > not support this and fails as it expects all the idle states to be identical. > > Because of this, the Mediatek mtk8173 had to create the same idle state for a > big.Little

Re: sparc gcc 7.1 compile issue

2017-06-02 Thread John Paul Adrian Glaubitz
On Wed, May 31, 2017 at 05:10:08PM -0400, David Miller wrote: > A fix for this is in Linus's tree and was submitted to -stable last > night: What remains to be fixed though is that the gcc-7 testsuite *reproducibly* kills the kernel on sparc64 when building with more than around 20 jobs: [617633.

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-02 Thread Thomas Meyer
Am Freitag, den 02.06.2017, 10:30 +0200 schrieb Richard Weinberger: > Thomas, > > Am 02.06.2017 um 10:04 schrieb Thomas Meyer: > > Am Donnerstag, den 01.06.2017, 22:49 -0700 schrieb Florian > > Fainelli: > > I see this in the kernel log: > > > > [0.00] [ cut here ]

[PATCH 3/4 DONOTMERGE] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-06-02 Thread Corentin Labbe
From: Chen-Yu Tsai The BPI-M3 is an Allwinner A83T based SBC in the Bananapi/Bpi family. It is roughly the same form factor as the BPI-M1+, with roughly the same peripherals and connectors: - 2GB LPDDR3 DRAM - 8GB eMMC - Micro-SD card slot - HDMI output - Headset (stereo + mic) jack

[PATCH 4/4DONOTMERGE] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

2017-06-02 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the bananapi m3 It uses an external PHY rtl8211e via RGMII. This patch create the needed emac and phy nodes. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH 2/4] ARM: dts: sun8i-a83t: add dwmac-sun8i ethernet driver

2017-06-02 Thread Corentin Labbe
The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 28 1 file changed, 28 insertions(+) diff --git

[PATCH 1/4] ARM: dts: sun8i-a83t: Add dt node for the syscon control module

2017-06-02 Thread Corentin Labbe
This patch add the dt node for the syscon register present on the Allwinner A83T Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 1dc4cfe81534

Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet driver

2017-06-02 Thread Maxime Ripard
On Fri, Jun 02, 2017 at 08:37:52AM +0200, Maxime Ripard wrote: > On Thu, Jun 01, 2017 at 02:58:19PM -0400, David Miller wrote: > > From: Corentin Labbe > > Date: Wed, 31 May 2017 09:18:31 +0200 > > > > > This patch series add the driver for dwmac-sun8i which handle the > > > Ethernet MAC > > > p

[PATCH][media] atomisp: make repool_pgnr and punit_ddr_dvfs_enable static

2017-06-02 Thread Colin King
From: Colin Ian King integer repool_pgnr and function punit_ddr_dvfs_enable can be made static as they do not need to be in global scope. Cleans up sparse warnings: "symbol 'repool_pgnr' was not declared. Should it be static?" "symbol 'punit_ddr_dvfs_enable' was not declared. Should it be stat

Re: [PATCH] mm: introduce MADV_CLR_HUGEPAGE

2017-06-02 Thread Mike Rapoport
On Thu, Jun 01, 2017 at 03:45:22PM +0200, Andrea Arcangeli wrote: > On Thu, Jun 01, 2017 at 10:09:09AM +0200, Michal Hocko wrote: > > That is a bit surprising. I didn't think that the userfault syscall > > (ioctl) can be faster than a regular #PF but considering that > > __mcopy_atomic bypasses the

[RFC][PATCHv4 4/7] printk: enable printk offloading

2017-06-02 Thread Sergey Senozhatsky
Initialize kernel printing thread and make printk offloading possible. By default `atomic_print_limit' is set to 0, so no offloading will take place, unless requested by user. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 54 ++ 1

[RFC][PATCHv4 7/7] printk: add printk cpumask sysctl

2017-06-02 Thread Sergey Senozhatsky
Add `sysctl kernel.printk_cpumask' knob so user can enforce printk kthread cpumask and control both the number of kthreads we wake up during printk offloading and the CPUs those wake ups happen. For example, sysctl kernel.printk_cpumask = 0-3 will force printk to offload printing only to CPU

[RFC][PATCHv4 6/7] printk: register syscore notifier

2017-06-02 Thread Sergey Senozhatsky
We need to switch to emergency printk mode in kernel_kexec(). One kernel_kexec() branch calls kernel_restart_prepare(), which updates `system_state', however, the other one, when user requested to ->preserve_context, does not and we are lacking the information in printk about kexec being executed.

[RFC][PATCHv4 5/7] printk: register PM notifier

2017-06-02 Thread Sergey Senozhatsky
It's not always possible/safe to wake_up() printk kernel thread. For example, late suspend/early resume may printk() while timekeeping is not initialized yet, so calling into the scheduler may result in recursive warnings. Another thing to notice is the fact PM at some point freezes user space and

[RFC][PATCHv4 3/7] printk: add enforce_emergency parameter

2017-06-02 Thread Sergey Senozhatsky
This param permits user-space to forcibly on/off printk emergency mode via /sys/module/printk/parameters/enforce_emergency node. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel

[RFC][PATCHv4 2/7] printk: introduce printing kernel SMP threads

2017-06-02 Thread Sergey Senozhatsky
printk() is quite complex internally and, basically, it does two slightly independent things: a) adds a new message to a kernel log buffer (log_store()) b) prints kernel log messages to serial consoles (console_unlock()) while (a) is guaranteed to be executed by printk(), (b) is not, for a varie

[RFC][PATCHv4 0/7] printk: introduce printing kernel threads

2017-06-02 Thread Sergey Senozhatsky
Hello, RFC This patch set adds a printk() SMP kernel threads which let us to print kernel messages to the console from a non-atomic/schedule-able context, avoiding different sort of lockups, stalls, etc. A completely reworked version, for more details please see 0003 comm

[RFC][PATCHv4 1/7] printk: move printk_pending out of per-cpu

2017-06-02 Thread Sergey Senozhatsky
Do not keep `printk_pending' in per-CPU area. We set the following bits of printk_pending: a) PRINTK_PENDING_WAKEUP when we need to wakeup klogd b) PRINTK_PENDING_OUTPUT when there is a pending output from deferred printk and we need to call console_unlock(). So none of the

Re: [PATCH 3/4] mtd: mchp23k256: add partitioning support

2017-06-02 Thread Boris Brezillon
On Thu, 1 Jun 2017 15:01:56 -0700 Brian Norris wrote: > On Thu, Jun 01, 2017 at 10:47:12PM +0200, Boris Brezillon wrote: > > Le Thu, 1 Jun 2017 11:43:40 -0700, > > Brian Norris a écrit : > > > On Wed, May 17, 2017 at 05:29:11PM +0200, Boris Brezillon wrote: > > > > On Wed, 17 May 2017 17:39:

Re: [PATCH 1/6] dt-bindings: mfd: Add hi6421v530 bindings

2017-06-02 Thread Guodong Xu
On Thu, Jun 1, 2017 at 2:07 AM, Rob Herring wrote: > On Fri, May 26, 2017 at 02:35:13PM +0800, Guodong Xu wrote: >> DT bindings for hisilicon HI655x PMIC chip. >> >> Signed-off-by: Guodong Xu >> --- >> .../bindings/mfd/hisilicon,hi6421v530.txt | 25 >> ++ >> 1 file

Re: [PATCH V10 3/3] irq: Compute the periodic interval for interrupts

2017-06-02 Thread Daniel Lezcano
On 23/05/2017 14:55, Daniel Lezcano wrote: > On 16/05/2017 21:44, Daniel Lezcano wrote: >> An interrupt behaves with a burst of activity with periodic interval of time >> followed by one or two peaks of longer interval. >> >> As the time intervals are periodic, statistically speaking they follow a

[PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

2017-06-02 Thread Colin King
From: Colin Ian King function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not need to be in global scope. Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/net/wireless/marvell/mwifiex/st

[PATCH v2 2/6] mfd: hi6421-pmic: add support for HiSilicon Hi6421v530

2017-06-02 Thread Guodong Xu
Add support for HiSilicon Hi6421v530 PMIC. Hi6421v530 communicates with main SoC via memory-mapped I/O. Hi6421v530 and Hi6421 are PMIC chips from the same vendor, HiSilicon, but at different revisions. They share the same memory-mapped I/O design. They differ in integrated devices, such as regulat

[PATCH v2 4/6] regulator: hi6421: Describe consumed platform device

2017-06-02 Thread Guodong Xu
The hi6421-regulator driver consumes a similarly named platform device. Adding that to the module device table, allows modprobe to locate this driver once the device is created. Cc: Jeremy Linton Cc: Mark Brown Signed-off-by: Guodong Xu --- drivers/regulator/hi6421-regulator.c | 7 +++ 1 f

[PATCH v2 6/6] arm64: defconfig: enable support hi6421v530 PMIC

2017-06-02 Thread Guodong Xu
Enable configs for hi6421v530 mfd and regulator driver + CONFIG_MFD_HI6421_PMIC=y + CONFIG_REGULATOR_HI6421V530=y Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c

[GIT PULL]: dmaengine fixes for 4.12-rc4

2017-06-02 Thread Vinod Koul
Hi Linus, Here is the dmaengine fixes request for 4.12. Fixes bunch of issues in the driver, npthing exciting though.. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.i

[PATCH v2 5/6] arm64: dts: hikey960: add device node for pmic and regulators

2017-06-02 Thread Guodong Xu
From: Wang Xiaoyin add device node for hi6421 pmic core and hi6421v530 voltage regulator,include LDO(1,3,9,11,15,16) Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 46 +++ 1 file changed, 46 insertions(+) diff

[PATCH v2 3/6] regulator: hi6421v530: add driver for hi6421v530 voltage regulator

2017-06-02 Thread Guodong Xu
From: Wang Xiaoyin add the driver for hi6421v530 voltage regulator Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu --- drivers/regulator/Kconfig| 10 ++ drivers/regulator/Makefile | 1 + drivers/regulator/hi6421v530-regulator.c | 209

[PATCH v2 1/6] dt-bindings: mfd: hi6421: Add hi6421v530 compatible string

2017-06-02 Thread Guodong Xu
Add compatible string for HiSilicon Hi6421v530 PMIC. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/mfd/hi6421.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/hi6421.txt b/Documentation/devicetree/bindings/mfd/hi6

[PATCH v2 0/6] MFD: add driver for HiSilicon Hi6421v530 PMIC

2017-06-02 Thread Guodong Xu
This patchset adds driver for HiSilicon Hi6421v530 PMIC. Mainline kernel already has driver support to a similar chip, Hi6421. Hi6421 and Hi6421v530 are both from the same vendor, HiSilicon, but they are at different revisions. They both use the same Memory-mapped I/O method to communicate with Ma

Re: single-threaded wq lockdep is broken

2017-06-02 Thread Johannes Berg
On Fri, 2017-06-02 at 15:03 +0800, Lai Jiangshan wrote: > > the @w2 is not queued before flush_work(&w2), it is expected > that @w2 is not associated with @wq, and the dependence > mtx -> wq will not be recorded. And it is expected no warning. Lockdep is symmetric. So then maybe it won't warn whe

[PATCH v2 0/1] tty: add TIOCGPTPEER ioctl

2017-06-02 Thread Aleksa Sarai
Changes in v2: * Reordered addition to ioctls.h to follow correct hex ordering. Aleksa Sarai (1): tty: add TIOCGPTPEER ioctl arch/alpha/include/uapi/asm/ioctls.h | 1 + arch/mips/include/uapi/asm/ioctls.h| 1 + arch/parisc/include/uapi/asm/ioctls.h | 1 + arch/powerpc/include/uapi

[PATCH v2 1/1] tty: add TIOCGPTPEER ioctl

2017-06-02 Thread Aleksa Sarai
When opening the slave end of a PTY, it is not possible for userspace to safely ensure that /dev/pts/$num is actually a slave (in cases where the mount namespace in which devpts was mounted is controlled by an untrusted process). In addition, there are several unresolvable race conditions if usersp

[PATCH v9 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed

2017-06-02 Thread Brendan Higgins
The Aspeed 24XX/25XX chips share a single hardware interrupt across 14 separate I2C busses. This adds a dummy irqchip which maps the single hardware interrupt to software interrupts for each of the busses. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled "aspeed_i2c_controller" out into

Re: [RFC 08/55] KVM: arm64: Set virtual EL2 context depending on the guest exception level

2017-06-02 Thread Marc Zyngier
On 01/06/17 21:22, Bandan Das wrote: > Jintack Lim writes: > >> From: Christoffer Dall >> >> Set up virutal EL2 context to hardware if the guest exception level is >> EL2. >> >> Signed-off-by: Christoffer Dall >> Signed-off-by: Jintack Lim >> --- >> arch/arm64/kvm/context.c | 32 +

[PATCH v9 1/5] irqchip/aspeed-i2c-ic: binding docs for Aspeed I2C Interrupt Controller

2017-06-02 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C Interrupt Controller. Signed-off-by: Brendan Higgins Acked-by: Rob Herring --- Added in v6: - Pulled "aspeed_i2c_controller" out into a interrupt controller since that is what it actually does. Changes for v7: - None Changes for v8:

[PATCH v9 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-02 Thread Brendan Higgins
Added initial master support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Changes for v2: - Added single module_init (multiple was breaking some builds). Changes for v3: - Removed "bus" device tree pa

[PATCH v9 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-06-02 Thread Brendan Higgins
Added slave support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled slave support out of initial driver commit into its own commit. - No longer arbitrarily restrict bus to be slave

[PATCH v9 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-06-02 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C busses. Signed-off-by: Brendan Higgins Acked-by: Rob Herring --- Changes for v2: - None Changes for v3: - Removed reference to "bus" device tree param Changes for v4: - None Changes for v5: - None Changes for v6: - Replaced the con

[PATCH v9 0/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-02 Thread Brendan Higgins
Addressed comments from: - Ben in: http://www.spinics.net/lists/devicetree/msg179006.html Changes since previous update: - Fairly minimal changes in master support patch, all else is the same As before, tested on Aspeed 2500 evaluation board and a real platform with an Aspeed 2520.

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-06-02 Thread Michal Hocko
On Wed 31-05-17 14:01:45, Johannes Weiner wrote: > On Wed, May 31, 2017 at 06:25:04PM +0200, Michal Hocko wrote: > > On Thu 25-05-17 13:08:05, Johannes Weiner wrote: > > > Everything the user would want to dynamically program in the kernel, > > > say with bpf, they could do in userspace and then up

Re: [PATCH 05/10] VFIO: pci: Introduce direct EOI INTx interrupt handler

2017-06-02 Thread Marc Zyngier
On 01/06/17 21:40, Auger Eric wrote: > Hi Alex, > > On 31/05/2017 20:24, Alex Williamson wrote: >> On Wed, 24 May 2017 22:13:18 +0200 >> Eric Auger wrote: >> >>> We add two new fields in vfio_pci_irq_ctx struct: deoi and handler. >>> If deoi is set, this means the physical IRQ attached to the vir

Re: [PATCH v6 4/6] vfio: Define vfio based vgpu's dma-buf operations

2017-06-02 Thread Gerd Hoffmann
> struct vfio_vgpu_surface_info { > __u64 start; > __u32 width; > __u32 height; > __u32 stride; > __u32 size; > __u32 x_pos; > __u32 y_pos; > __u32 padding; > /* Only used when VFIO_VGPU_SURFACE_DMABUF_* flags set */ >    

Re: [PATCH] PCI: rockchip: Handle return value of clk_prepare_enable

2017-06-02 Thread Heiko Stuebner
Am Donnerstag, 1. Juni 2017, 15:51:45 CEST schrieb Arvind Yadav: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav looks good, but you may want to include Bjorn Helgaas who is the maintainer of the pci subsystem and would be the one to ap

Re: [PATCH v5 0/3] drm/mali-dp: Add support for memory writeback engine

2017-06-02 Thread Boris Brezillon
On Mon, 15 May 2017 18:23:59 +0100 Liviu Dudau wrote: > Hi, > > This series introduces support for Mali DP's memory writeback engine > using the generic writeback connector support introduced in the > "[PATCH v5 0/2] drm: Introduce writeback connectors" series [1] > > This version updates the M

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-02 Thread Richard Weinberger
Thomas, Am 02.06.2017 um 10:04 schrieb Thomas Meyer: > Am Donnerstag, den 01.06.2017, 22:49 -0700 schrieb Florian Fainelli: > I see this in the kernel log: > > [0.00] [ cut here ] > [0.00] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/fpu/xstate.c:595 > fpu__i

Re: [RFC PATCH 00/10] x86: undwarf unwinder

2017-06-02 Thread Jiri Slaby
On 06/01/2017, 03:58 PM, Jiri Slaby wrote: > On 06/01/2017, 03:50 PM, Ingo Molnar wrote: >> That's not what I meant! The speedup comes from (hopefully) being able to >> disable >> CONFIG_FRAME_POINTER, which: > > BTW when you are mentioning this -- my measurements were with FP disabled. > > Is

Re: [PATCH 1/2] fs: configfs: make qw_sign attribute symmetric

2017-06-02 Thread Felipe Balbi
Hi, Stefan Agner writes: > Hi Felipe, > > On 2017-04-19 01:53, Krzysztof Opasiak wrote: >> On 04/15/2017 03:35 AM, Stefan Agner wrote: >>> Currently qw_sign requires UTF-8 character to set, but returns UTF-16 >>> when read. This isn't obvious when simply using cat since the null >>> characters a

[PATCH 4/7] irqchip/irq-mbigen: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-mbigen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index 31d6b5a582d2..567b29c47608 100644 -

[PATCH 1/7] irqchip/aspeed-vic: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Cc: Joel Stanley Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-aspeed-vic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-aspeed-vic.c b/drivers/irqchip/irq-aspeed-vic.c index d2445

[PATCH 2/7] irqchip/i8259: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c index 1aec12c6d9ac..7aafbb091b67 100644 ---

[PATCH 7/7] irqchip/irq-renesas-h8s: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-renesas-h8s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-h8s.c

[PATCH 0/7] irqchip: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
Constify all remaining non-const instances of irq_domain_ops in the irqchip drivers. These can be made const as they are never modified. Tobias Klauser (7): irqchip/aspeed-vic: constify irq_domain_ops irqchip/i8259: constify irq_domain_ops irqchip/irq-imx-gpcv2: constify irq_domain_ops irq

Re: [PATCH 9/9] [HSLPM] usb: dwc2: Enable LPM

2017-06-02 Thread Felipe Balbi
Greg Kroah-Hartman writes: > On Fri, Apr 28, 2017 at 12:56:42PM +0400, Sevak Arakelyan wrote: >> From: John Youn >> >> Set 'lpm_capable' flag in the gadget structure so >> indicating that LPM is supported. >> >> Signed-off-by: Sevak Arakelyan > > No signed-off-by from John? right, I only too

[PATCH 6/7] irqchip/irq-renesas-h8300h: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-renesas-h8300h.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-h83

[PATCH 5/7] irqchip/irq-mips-gic: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-mips-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index eb7fbe159963..65642a78b8a3 10

[PATCH 3/7] irqchip/irq-imx-gpcv2: constify irq_domain_ops

2017-06-02 Thread Tobias Klauser
struct irq_domain_ops is not modified, so it can be made const. Signed-off-by: Tobias Klauser --- drivers/irqchip/irq-imx-gpcv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index 9463f3557e82..bb36f572e322

Re: [PATCH] swap: cond_resched in swap_cgroup_prepare()

2017-06-02 Thread Michal Hocko
On Thu 01-06-17 12:56:35, Yu Zhao wrote: > Saw need_resched() warnings when swapping on large swapfile (TBs) > because page allocation in swap_cgroup_prepare() took too long. Hmm, but the page allocator makes sure to cond_resched for sleeping allocations. I guess what you mean is something differe

Re: [PATCH v2] mm,oom: add tracepoints for oom reaper-related events

2017-06-02 Thread Michal Hocko
On Thu 01-06-17 19:41:13, Roman Gushchin wrote: > On Wed, May 31, 2017 at 06:39:29PM +0200, Michal Hocko wrote: > > On Tue 30-05-17 19:52:31, Roman Gushchin wrote: > > > >From c57e3674efc609f8364f5e228a2c1309cfe99901 Mon Sep 17 00:00:00 2001 > > > From: Roman Gushchin > > > Date: Tue, 23 May 2017

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-02 Thread Martin Schwidefsky
On Fri, 2 Jun 2017 09:25:54 +0200 Christian Borntraeger wrote: > On 06/02/2017 09:18 AM, Christian Borntraeger wrote: > > On 06/02/2017 09:16 AM, Martin Schwidefsky wrote: > >> On Fri, 2 Jun 2017 09:13:03 +0200 > >> Christian Borntraeger wrote: > >> > >>> On 06/02/2017 09:02 AM, Heiko Carste

Re: [PATCH v3 net-next 1/3] perf, bpf: Add BPF support to all perf_event types

2017-06-02 Thread Peter Zijlstra
On Thu, Jun 01, 2017 at 07:03:34PM -0700, Alexei Starovoitov wrote: > diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c > index 172dc8ee0e3b..ab93490d1a00 100644 > --- a/kernel/bpf/arraymap.c > +++ b/kernel/bpf/arraymap.c > @@ -452,39 +452,18 @@ static void bpf_event_entry_free_rcu(struct

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-02 Thread Thomas Meyer
Am Donnerstag, den 01.06.2017, 22:49 -0700 schrieb Florian Fainelli: > > On 06/01/2017 02:25 PM, Thomas Meyer wrote: > > Am Donnerstag, den 01.06.2017, 22:58 +0200 schrieb Richard > > Weinberger: > > > > > > Sorry, I thought you are CC'ed. > > > Thomas please speak up. AFAIR UML fails to boot on

Re: [PATCH v6 0/7] perf report: Show branch type

2017-06-02 Thread Jin, Yao
Hi maintainers, Is this patch series (v6) OK for merging? Thanks Jin Yao On 4/20/2017 5:36 PM, Jiri Olsa wrote: On Thu, Apr 20, 2017 at 08:07:48PM +0800, Jin Yao wrote: v6: Update according to the review comments from Jiri Olsa . Major modifications are: 1. Move that multiline

Re: [PATCH 1/9] mm: introduce kv[mz]alloc helpers

2017-06-02 Thread Michal Hocko
On Fri 02-06-17 07:40:12, Sasha Levin wrote: > On Fri, Jun 02, 2017 at 09:28:56AM +0200, Michal Hocko wrote: > > On Fri 02-06-17 07:17:22, Sasha Levin wrote: > > > On Mon, Mar 06, 2017 at 11:30:24AM +0100, Michal Hocko wrote: > > > > +void *kvmalloc_node(size_t size, gfp_t flags, int node) > > > >

Re: [PATCH 1/9] mm: introduce kv[mz]alloc helpers

2017-06-02 Thread Levin, Alexander (Sasha Levin)
On Fri, Jun 02, 2017 at 09:28:56AM +0200, Michal Hocko wrote: > On Fri 02-06-17 07:17:22, Sasha Levin wrote: > > On Mon, Mar 06, 2017 at 11:30:24AM +0100, Michal Hocko wrote: > > > +void *kvmalloc_node(size_t size, gfp_t flags, int node) > > > +{ > > > + gfp_t kmalloc_flags = flags; > > > + void *r

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-02 Thread Richard Weinberger
Thomas, Am 02.06.2017 um 07:49 schrieb Florian Fainelli: >> the put_fp_registers fails with errno 4 if I recall correctly. >> >> I didn't investigate yet further, why the the xstate ptrace call fails. > > Which of the branches is put_fp_registers() taking? The > restore_fpx_registers() or restore

[PATCH] ahci: qoriq: add ls1088a platforms support

2017-06-02 Thread Yuantian Tang
Ls1088a is new introduced arm-based soc with sata support with following features: * Complies with the serial ATA 3.0 specification and the AHCI 1.3.1 specification * Contains a high-speed descriptor-based DMA controller * Supports the following: * Speeds of 1.5 Gb/s (first-generation SATA), 3

[PATCH v4 4/6] stmmac: pci: Select quark_pci_dmi_data from quark_default_data

2017-06-02 Thread Jan Kiszka
No need to carry this reference in stmmac_pci_info - the Quark-specific setup handler knows that it needs to use the Quark-specific DMI table. This also allows to drop the stmmac_pci_info reference from the setup handler parameter list. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko ---

[PATCH v4 5/6] stmmac: pci: Use dmi_system_id table for retrieving PHY addresses

2017-06-02 Thread Jan Kiszka
Avoids reimplementation of DMI matching in stmmac_pci_find_phy_addr. Signed-off-by: Jan Kiszka --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 99 1 file changed, 66 insertions(+), 33 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/d

[PATCH v4 0/6] stmmac: pci: Refactor DMI probing

2017-06-02 Thread Jan Kiszka
Some cleanups of the way we probe DMI platforms in the driver. Reduces a bit of open-coding and makes the logic easier reusable for any potential DMI platform != Quark. Tested on IOT2000 and Galileo Gen2. Changes in v4: - Refactor patch 5 according to feedback Jan Jan Kiszka (6): stmmac: pci

[PATCH v4 2/6] stmmac: pci: Use stmmac_pci_info for all devices

2017-06-02 Thread Jan Kiszka
Make stmmac_default_data compatible with stmmac_pci_info.setup and use an info structure for all devices. This allows to make the probing more regular. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 36 +++- 1 fi

[PATCH v4 6/6] stmmac: pci: Remove setup handler indirection via stmmac_pci_info

2017-06-02 Thread Jan Kiszka
By now, stmmac_pci_info only contains a single entry. Register this directly with the PCI device table, removing one indirection. Signed-off-by: Jan Kiszka --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 34 +--- 1 file changed, 12 insertions(+), 22 deletions(-) diff

[PATCH v4 3/6] stmmac: pci: Make stmmac_pci_find_phy_addr truly generic

2017-06-02 Thread Jan Kiszka
Move the special case for the early Galileo firmware into quark_default_setup. This allows to use stmmac_pci_find_phy_addr for non-quark cases. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 20 +--- 1 file changed,

[PATCH v4 1/6] stmmac: pci: Make stmmac_pci_info structure constant

2017-06-02 Thread Jan Kiszka
By removing the PCI device reference from the structure and passing it as parameters to the interested functions, we can make quark_pci_info const. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 23 +++ 1 file ch

[PATCH v5 11/11] serial: exar: Add support for IOT2040 device

2017-06-02 Thread Jan Kiszka
This implements the setup of RS232 and the switch-over to RS485 or RS422 for the Siemens IOT2040. That uses an EXAR XR17V352 with external logic to switch between the different modes. The external logic is controlled via MPIO pins of the EXAR controller. Only pin 10 can be exported as GPIO on the

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-02 Thread Nikolay Borisov
On 2.06.2017 02:02, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > --- > mm/memcontrol.c | 71 > +---

[PATCH v5 06/11] gpio: exar: Fix reading of directions and values

2017-06-02 Thread Jan Kiszka
First, the logic for translating a register bit to the return code of exar_get_direction and exar_get_value were wrong. And second, there was a flip regarding the register bank in exar_get_direction. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij --- drivers/gpi

[PATCH 2/2] sched/deadline: Don't return invalid cpu in cpudl_maximum_cpu()

2017-06-02 Thread Byungchul Park
When the heap tree is empty, cp->elements[0].cpu has meaningless value. We need to consider the case. Signed-off-by: Byungchul Park --- kernel/sched/cpudeadline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c index d

[PATCH v5 03/11] gpio-exar/8250-exar: Fix passing in of parent PCI device

2017-06-02 Thread Jan Kiszka
This fixes reloading of the GPIO driver for the same platform device instance as created by the exar UART driver: First of all, the driver sets drvdata to its own value during probing and does not restore the original value on exit. But this won't help anyway as the core clears drvdata after the dr

Re: [PATCH] HID: asus: Stop underlying hardware on remove

2017-06-02 Thread Benjamin Tissoires
On May 30 2017 or thereabouts, Carlo Caione wrote: > From: Carlo Caione > > We are missing a call to hid_hw_stop() on the remove hook. > Among other things this is causing an Oops when (re-)starting GNOME / > upowerd / ... after the module has been already rmmod-ed. Good catch: Reviewed-by: Benj

[PATCH 1/2] sched/deadline: Add cpudl_maximum_dl()

2017-06-02 Thread Byungchul Park
Current code uses cpudl_maximum() to get the root node's cpu, while it directly accesses the root node using 'cp->elements[0].dl' to get the root node's dl. It would be better and more readible if a function to get the dl is added. So add it. Signed-off-by: Byungchul Park --- kernel/sched/cpudea

Re: [PATCH 10/12] apparmorfs: Replace CURRENT_TIME with current_time()

2017-06-02 Thread John Johansen
On 04/07/2017 05:57 PM, Deepa Dinamani wrote: > CURRENT_TIME macro is not y2038 safe on 32 bit systems. > > The patch replaces all the uses of CURRENT_TIME by > current_time(). > > This is also in preparation for the patch that transitions > vfs timestamps to use 64 bit time and hence make them >

[PATCH v5 08/11] serial: exar: Factor out platform hooks

2017-06-02 Thread Jan Kiszka
This prepares the addition of IOT2040 platform support by preparing the needed setup and rs485_config hooks. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_exar.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) di

[PATCH v5 09/11] platform: Accept const properties

2017-06-02 Thread Jan Kiszka
Aligns us with device_add_properties, the function we call. Signed-off-by: Jan Kiszka --- drivers/base/platform.c | 2 +- include/linux/platform_device.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a102152

[PATCH v5 05/11] gpio: exar: Fix iomap request

2017-06-02 Thread Jan Kiszka
The UART driver already maps the resource for us. Trying to do this here only fails and leaves us with a non-working device. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij --- drivers/gpio/gpio-exar.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions

[PATCH v5 07/11] gpio-exar/8250-exar: Rearrange gpiochip parenthood

2017-06-02 Thread Jan Kiszka
Set the parent of the exar gpiochip to its platform device, like other gpiochips are doing it. In order to keep the relationship discoverable for ACPI systems, set the platform device companion to the PCI device. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij ---

[PATCH v5 10/11] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-06-02 Thread Jan Kiszka
On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the rest is required to operate the UART. To allow modeling this case, expand the platform device data structure to specify a (consecutive) pin subset for exporting by the gpio-exar driver. Signed-off-by: Jan Kiszka Reviewed-by: And

[PATCH v5 00/11] serial/gpio: exar: Fixes and support for IOT2000

2017-06-02 Thread Jan Kiszka
This makes the gpio-exar driver usable, which was prevented by a number of fatal bugs, and adds support for the SIMATIC IOT2040 to the 8250-exar driver and, indirectly, to gpio-exar as well. It's a cross-subsystem series, so I'm also cross-posting to the serial and gpio lists. Changes in v5: - fa

[PATCH v5 02/11] gpio-exar/8250-exar: Do not even instantiate a GPIO device for Commtech cards

2017-06-02 Thread Jan Kiszka
Commtech adapters need the MPIOs for internal purposes, and the gpio-exar driver already refused to pick them up. But there is actually no point in even creating the underlying platform device. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij --- drivers/gpio/gpio

[PATCH v5 04/11] gpio: exar: Allocate resources on behalf of the platform device

2017-06-02 Thread Jan Kiszka
Do not allocate resources on behalf of the parent device but on our own. Otherwise, cleanup does not properly work if gpio-exar is removed but not the parent device. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij --- drivers/gpio/gpio-exar.c | 4 ++-- 1 file cha

[PATCH v5 01/11] serial: exar: Leave MPIOs as output for Commtech adapters

2017-06-02 Thread Jan Kiszka
Commtech adapters apparently need the original setting as outputs, see https://marc.info/?l=linux-gpio&m=149557425201323&w=2. Account for that. Fixes: 7dea8165f1d6 ("serial: exar: Preconfigure xr17v35x MPIOs as output") Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/tty/seri

Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp

2017-06-02 Thread Benjamin Tissoires
On Jun 01 2017 or thereabouts, Bastien Nocera wrote: > On Thu, 2017-06-01 at 11:06 -0700, Dave Hansen wrote: > > On 03/27/2017 07:59 AM, Benjamin Tissoires wrote: > > > this is finally a rework of the series that provides kernel > > > power_supply > > > for hidpp devices. > > > > > > This will all

Re: [PATCH v4 0/6] ARM: at91: initial samx7 support

2017-06-02 Thread Nicolas Ferre
Le 01/06/2017 à 22:05, Alexandre Belloni a écrit : > This series adds initial support for Atmel armv7m SoCs. Acked-by: Nicolas Ferre To the whole series. Thanks Szemző and Alexandre for having taken care of this support! Best regards, > Changes in v4: > - rename the family samv7 as the intern

Re: [PATCH 1/9] mm: introduce kv[mz]alloc helpers

2017-06-02 Thread Michal Hocko
On Fri 02-06-17 07:17:22, Sasha Levin wrote: > On Mon, Mar 06, 2017 at 11:30:24AM +0100, Michal Hocko wrote: > > +void *kvmalloc_node(size_t size, gfp_t flags, int node) > > +{ > > + gfp_t kmalloc_flags = flags; > > + void *ret; > > + > > + /* > > +* vmalloc uses GFP_KERNEL for some inter

Re: [PATCH] PCI: rockchip: Handle return value of clk_prepare_enable

2017-06-02 Thread Shawn Lin
Hi, 在 2017/6/1 18:21, Arvind Yadav 写道: clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav Acked-by: Shawn Lin --- drivers/pci/host/pcie-rockchip.c | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-)

Re: [PATCH V1 14/15] spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq

2017-06-02 Thread kgunda
On 2017-05-31 23:23, Stephen Boyd wrote: On 05/30, Kiran Gunda wrote: From: Subbaraman Narayanamurthy Currently, cleanup_irq() is invoked when a peripheral's interrupt fires and there is no mapping present in the interrupt domain of spmi interrupt controller. The cleanup_irq clears the arbite

Re: [PATCH RFC 0/2] KVM: s390: avoid having to enable vm.alloc_pgste

2017-06-02 Thread Christian Borntraeger
On 06/02/2017 09:18 AM, Christian Borntraeger wrote: > On 06/02/2017 09:16 AM, Martin Schwidefsky wrote: >> On Fri, 2 Jun 2017 09:13:03 +0200 >> Christian Borntraeger wrote: >> >>> On 06/02/2017 09:02 AM, Heiko Carstens wrote: On Thu, Jun 01, 2017 at 12:46:51PM +0200, Martin Schwidefsky wrote

Re: [WIP PATCH 0/4] Rework the unreliable LID switch exported by ACPI

2017-06-02 Thread Benjamin Tissoires
On Jun 01 2017 or thereabouts, Bastien Nocera wrote: > On Thu, 2017-06-01 at 20:46 +0200, Benjamin Tissoires wrote: > > Hi, > > > > Sending this as a WIP as it still need a few changes, but it mostly > > works as > > expected (still not fully compliant yet). > > > > So this is based on Lennart's

[PATCH 1/3] dt-bindings: spi: mediatek: Add bindings for mediatek MT7622 soc platform

2017-06-02 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7622 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-

<    3   4   5   6   7   8   9   >