Re: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_")

2018-02-20 Thread Paul E. McKenney
On Mon, Feb 19, 2018 at 12:46:51AM +0900, Akira Yokosawa wrote: > On 2018/02/14 14:52:38 -0800, Paul E. McKenney wrote: > > On Thu, Feb 15, 2018 at 07:20:35AM +0900, Akira Yokosawa wrote: > >> On 2018/02/09 17:07:03 -0800, Paul E. McKenney wrote: > >>> On Sat, Feb 10, 2018 at 08:46:25AM +0900, Akir

[PATCH] max17042: propagate of_node to power supply device

2018-02-20 Thread Pierre Bourdon
max17042_get_status uses the core power_supply_am_i_supplied. That function relies on DT properties to figure out the power supply topology, and will error out without DT. Fixes max17042 battery status being reported as "unknown". Signed-off-by: Andre Heider --- drivers/power/supply/max17042_ba

Re: [PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Matthew Wilcox
On Tue, Feb 20, 2018 at 04:54:44PM +0200, Mike Rapoport wrote: > level. > > +Running the ``kernel-doc`` tool with increased verbosity and without actual > +output generation may be used to verify proper formating of the "formatting" > +documentation comments. For example:: > + > + scripts/

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Christian König
Am 20.02.2018 um 15:54 schrieb Peter Zijlstra: On Tue, Feb 20, 2018 at 03:34:07PM +0100, Christian König wrote: OK, but neither case would in fact need the !ctx case right? That's just there for completeness sake? Unfortunately not. TTM uses trylock to lock BOs which are about to be evicted to

[PATCH] cpuidle: stub out cpuidle_poll_state_init() without CONFIG_CPU_IDLE

2018-02-20 Thread Arnd Bergmann
Calling cpuidle_poll_state_init() from apm_init() results in a link failure since that directory is never entered without CONFIG_CPU_IDLE: arch/x86/kernel/apm_32.o: In function `apm_init': apm_32.c:(.init.text+0x62c): undefined reference to `cpuidle_poll_state_init' CONFIG_ARCH_HAS_CPU_RELAX can

Re: [PATCH v14 1/9] LIB: Introduce a generic PIO mapping method

2018-02-20 Thread John Garry
On 20/02/2018 14:33, Andy Shevchenko wrote: On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: From: Zhichang Yuan In commit 41f8bba7f555 ("of/pci: Add pci_register_io_range() and pci_pio_to_address()"), a new I/O space management was supported. With that driver, the I/O ranges configured for

[PATCH] EDAC, layerscape: allow building for LS1021A

2018-02-20 Thread Rasmus Villemoes
The LS1021A has a memory controller supported by this driver. It builds just fine, and I've done some rudimentary testing using the error injection facility, which suggests that it is indeed working. Signed-off-by: Rasmus Villemoes --- Hi York In https://patchwork.kernel.org/patch/9264623/, you

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Paolo Bonzini
On 20/02/2018 15:59, Van De Ven, Arjan wrote: > >>> I meant software wise. You're not going to live migrate from xen to >>> kvm or backwards. or between very radically different versions of the >>> kvm stack. >> >> Forwards migration to a radically newer version certainly happens. So >> when the

[PATCH] ARM: make CONFIG_DEBUG_WX depend on MMU

2018-02-20 Thread Arnd Bergmann
Without CONFIG_MMU, this results in a build failure: ./arch/arm/include/asm/memory.h:92:23: error: initializer element is not constant #define VECTORS_BASE vectors_base arch/arm/mm/dump.c:32:4: note: in expansion of macro 'VECTORS_BASE' { VECTORS_BASE, "Vectors" }, arch/arm/mm/dump.c:71:11:

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Alan Stern
On Tue, 20 Feb 2018, Paul E. McKenney wrote: > On Mon, Feb 19, 2018 at 09:28:44PM +0100, Peter Zijlstra wrote: > > On Mon, Feb 19, 2018 at 11:41:23AM -0800, Paul E. McKenney wrote: > > > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > > > This leaves us with a question: Do we want

[PATCH v2 00/19] R-Car M3-N initial support

2018-02-20 Thread Jacopo Mondi
Hello, second round for R-Car M3-N SoC and M3-N based Salvator-X board. I have fixed all comments I have received and re-based on latest Geert's renesas-drivers-2018-02-13-v4.16-rc1 I have applied requested changes, and updated PFC tables to comply with last patches applied to r8a7796 that were n

[PATCH v2 01/19] clk: renesas: cpg-mssr: Add support for R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Initial support for R-Car M3-N (r8a77965), including core and module clocks. Based on Table 8.2d of "R-Car Series, 3rd Generation User's Manual: Hardware (Rev. 0.80, Oct 31, 2017)". Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1->v2: - Add 'z' clock - Change "intc-ap" paren

[PATCH v2 02/19] soc: renesas: rcar-rst: Add support for R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/reset/renesas,rst.txt | 1 + drivers/soc/renesas/Kconfig | 4 ++-- drivers/soc/renesas/rcar-rst.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentat

[PATCH v2 03/19] soc: renesas: Identify R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Add support for indentifying R-Car M3-N (R8A77965) SoC. Signed-off-by: Jacopo Mondi --- drivers/soc/renesas/renesas-soc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index 0008343..7161983 100644 --- a/drivers

[PATCH v2 05/19] pinctrl: sh-pfc: Initial R-Car M3-N support

2018-02-20 Thread Jacopo Mondi
Add initial PFC support for R-Car M3-N (r8a77965) SoC. No groups or functions defined, just pin and registers enumeration. Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring --- v1 -> v2: Applied the following patches for r8a7796 on r8a77965: commit 0f4713d71f22d3b0ec3de6ae4a126cceecdea82b

[PATCH v2 11/19] ARM64: dts: r8a77965: Add dmac device nods

2018-02-20 Thread Jacopo Mondi
Add dmac[0-2] device nodes for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 96 ++- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8

[PATCH v2 07/19] ARM64: Add Renesas R-Car M3-N config symbol

2018-02-20 Thread Jacopo Mondi
Add configuration option for the R-Car M3-N (R8A77965) SoC. Signed-off-by: Jacopo Mondi --- arch/arm64/Kconfig.platforms | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b51db26..2b1535c 100644 --- a/arch/arm64/Kconfig.pl

[PATCH v2 12/19] dt-bindings: serial: sh-sci: Add support for r8a77965 (H)SCIF

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to Renesas sci-serial device tree bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/serial/renesas,sci-serial.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/seria

[PATCH v2 14/19] ARM64: dts: r8a77965: Add SCIF device nodes

2018-02-20 Thread Jacopo Mondi
Add SCIF[0-5] device nodes for M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace clock and power areas definition with raw numbers - Fix compatible strings s/r8a7796/r8a77965/ --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 85

[PATCH v2 16/19] ARM64: dts: r8a77965: Add GPIO nodes

2018-02-20 Thread Jacopo Mondi
Add GPIO nodes to r8a77965 SoC device tree file. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area define with numeric constant - Do not move gpio nodes --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 104 +++--- 1

[PATCH v2 04/19] soc: renesas: rcar-sysc: Add R-Car M3-N support

2018-02-20 Thread Jacopo Mondi
Add support for R-Car M3-N (R8A77965) power areas. Signed-off-by: Jacopo Mondi --- v1->v2: - Remove A2VC0 power area - Add A3VP power area --- .../bindings/power/renesas,rcar-sysc.txt | 1 + drivers/soc/renesas/Kconfig| 5 +++ drivers/soc/renesas/Makefile

[PATCH v2 19/19] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-20 Thread Jacopo Mondi
Populate the ethernet@e680 device node to enable Ethernet interface for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area identifier with numeric constant --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 43 ++

[PATCH v2 17/19] dt-bindings: net: ravb: Add support for r8a77965 SoC

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to renesas ravb device tree bindings documentation. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman Acked-by: Sergei Shtylyov Cc: sergei.shtyl...@cogentembedded.com, net...@vger.kernel.org --- Documentatio

[PATCH v2 18/19] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions

2018-02-20 Thread Jacopo Mondi
Add EtherAVB groups and functions definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 110 ++ 1 file changed, 110 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/

[PATCH] clk: hisilicon: mark wdt_mux_p[] as const

2018-02-20 Thread Arnd Bergmann
The symbol is in the __initconst section but not marked init, which caused a warning when building with LTO. This makes it 'const' as was obviously intended. Signed-off-by: Arnd Bergmann --- drivers/clk/hisilicon/crg-hi3516cv300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH v2 15/19] dt-bindings: gpio: Add support for r8a77965

2018-02-20 Thread Jacopo Mondi
Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Drop SoC-specific compatible string from drivers/gpio/gpio-rcar.c - Change patch subject to reflect it only changes dt bindings --- Documentation/devicetree

[PATCH v2 13/19] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions

2018-02-20 Thread Jacopo Mondi
Add SCIF[0-5] groups and pin function definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Remove _TANS --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 296 ++ 1 file changed, 296 insertions(+) diff --git a/drivers

[PATCH v2 10/19] dt-bindings: dmaengine: rcar-dmac: document R8A77965 support

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to rcar-dmac device tree bindings documentation. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman --- Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v2 08/19] ARM64: dts: Add Renesas R8A77965 SoC support

2018-02-20 Thread Jacopo Mondi
Basic support for the Gen 3 R-Car M3-N SoC. Based on original work from: Takeshi Kihara Magnus Damm Signed-off-by: Jacopo Mondi --- v1 -> v2: - Split r8a77965.dtsi from patch v1 [5/15] - Replace all PD_ and CLK_ defines with numeric entries - Move timer and pmu nodes outside of soc node and r

[PATCH v2 09/19] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-20 Thread Jacopo Mondi
Add basic support for R-Car Salvator-X M3-N (R8A77965) board. Based on original work from: Takeshi Kihara Magnus Damm Signed-off-by: Jacopo Mondi --- v1 -> v2: - split from patch v1 [05/15] - Remove "aliases" and "chosen" as they are defined already - Fix license header --- arch/arm64/boot/d

[PATCH v2 06/19] dt-bindings: arm: Document R-Car M3-N SoC DT bindings

2018-02-20 Thread Jacopo Mondi
Add device tree bindings documentation for Renesas R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetr

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Andrea Parri
On Tue, Feb 20, 2018 at 06:48:13AM -0800, Paul E. McKenney wrote: > On Mon, Feb 19, 2018 at 06:44:13PM +0100, Peter Zijlstra wrote: > > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > > Note that operations like atomic_add_unless() already include memory > > > barriers. > > > > It

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Masahiro Yamada
2018-02-19 18:22 GMT+09:00 Richard Weinberger : > Don't source the kernel config file in shell scripts. > The config file is not a shell script and often imported from untrusted > sources. > What could possible go wrong? ;-) Please enumerate your real problems. > Instead, read config file line

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 09:51:08AM -0500, Paul Moore wrote: > On Tue, Feb 20, 2018 at 9:06 AM, Peter Zijlstra wrote: > > It's not at all clear to me what that code does, I just stumbled upon > > __mutex_owner() outside of the mutex code itself and went WTF. > > If you don't want people to use __

Re: [PATCH] cpuidle: stub out cpuidle_poll_state_init() without CONFIG_CPU_IDLE

2018-02-20 Thread Rafael J. Wysocki
On Tuesday, February 20, 2018 4:05:44 PM CET Arnd Bergmann wrote: > Calling cpuidle_poll_state_init() from apm_init() results in a link > failure since that directory is never entered without CONFIG_CPU_IDLE: > > arch/x86/kernel/apm_32.o: In function `apm_init': > apm_32.c:(.init.text+0x62c): unde

Re: [RFCv4 10/21] videodev2.h: Add request_fd field to v4l2_buffer

2018-02-20 Thread Hans Verkuil
On 02/20/18 05:44, Alexandre Courbot wrote: > From: Hans Verkuil > > When queuing buffers allow for passing the request that should > be associated with this buffer. > > Signed-off-by: Hans Verkuil > [acour...@chromium.org: make request ID 32-bit] > Signed-off-by: Alexandre Courbot > --- > dr

Applied "ASoC: ak5558: Fix style for SPDX identifier" to the asoc tree

2018-02-20 Thread Mark Brown
The patch ASoC: ak5558: Fix style for SPDX identifier has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 04:05:49PM +0100, Christian König wrote: > Am 20.02.2018 um 15:54 schrieb Peter Zijlstra: > > On Tue, Feb 20, 2018 at 03:34:07PM +0100, Christian König wrote: > > > > OK, but neither case would in fact need the !ctx case right? That's just > > > > there for completeness sake

Re: stable-rc build: 3 warnings 0 failures (stable-rc/v4.14.20-119-g1b1ab1d)

2018-02-20 Thread Arnd Bergmann
On Tue, Feb 20, 2018 at 1:47 PM, Olof's autobuilder wrote: > Warnings: > > arm64.allmodconfig: > drivers/media/tuners/r820t.c:1334:1: warning: the frame size of 2896 bytes is > larger than 2048 bytes [-Wframe-larger-than=] Hi Greg, please add 16c3ada89cff ("media: r820t: fix r820t_wri

Re: [PATCH v3 3/6] x86/cpufeatures: Add AMD feature bits for Speculation Control

2018-02-20 Thread Tom Lendacky
On 1/24/2018 4:52 PM, Tom Lendacky wrote: > On 1/24/2018 11:57 AM, David Woodhouse wrote: >> On Wed, 2018-01-24 at 18:20 +0100, Greg KH wrote: >>> On Wed, Jan 24, 2018 at 04:57:02PM +, David Woodhouse wrote: AMD exposes the PRED_CMD/SPEC_CTRL MSRs slightly differently to Intel. S

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Richard Weinberger
Am Dienstag, 20. Februar 2018, 16:18:11 CET schrieb Masahiro Yamada: > 2018-02-19 18:22 GMT+09:00 Richard Weinberger : > > Don't source the kernel config file in shell scripts. > > The config file is not a shell script and often imported from untrusted > > sources. > > What could possible go wrong?

Re: Timekeeping warning during resume from suspend to disk

2018-02-20 Thread Rafael J. Wysocki
On Tuesday, February 20, 2018 2:49:24 PM CET Ivid Suvarna wrote: > Hi Greg, > > > 4.1.15 is a kernel that is very old and obsolete (released almost 3 > > years ago, and tens of thousands of changes old.) Please try something > > newer and more modern like 4.15. If the issue is still there, the >

Re: [RFC PATCH v2 1/6] dt-bindings: add bindings for USB physical connector

2018-02-20 Thread Rob Herring
On Tue, Feb 20, 2018 at 2:10 AM, Andrzej Hajda wrote: > On 19.02.2018 15:28, Rob Herring wrote: >> On Thu, Feb 15, 2018 at 11:39:15AM +0100, Andrzej Hajda wrote: >>> These bindings allow to describe most known standard USB connectors >>> and it should be possible to extend it if necessary. >>> USB

Re: [RFCv4 11/21] media: v4l2_fh: add request entity field

2018-02-20 Thread Hans Verkuil
On 02/20/18 05:44, Alexandre Courbot wrote: > Allow drivers to assign a request entity to v4l2_fh. This will be useful > for request-aware ioctls to find out which request entity to use. > > Signed-off-by: Alexandre Courbot > --- > include/media/v4l2-fh.h | 3 +++ > 1 file changed, 3 insertions(

Re: [PATCH] locking/ww_mutex: add ww_mutex_is_owned_by function v4

2018-02-20 Thread Eric Engestrom
On Tuesday, 2018-02-20 15:49:46 +0100, Christian König wrote: > amdgpu needs to verify if userspace sends us valid addresses and the simplest > way of doing this is to check if the buffer object is locked with the ticket > of the current submission. > > Clean up the access to the ww_mutex internal

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Steven Rostedt
On Tue, 20 Feb 2018 21:27:00 +0800 "Du, Changbin" wrote: > > > @@ -0,0 +1,3332 @@ > > > + > > > +ftrace - Function Tracer > > > + > > > + > > > +Copyright 2008 Red Hat Inc. > > > + > > > +:Author: Steven Rostedt > > > +:License: The GNU Free Doc

Re: [PATCH v2 02/19] soc: renesas: rcar-rst: Add support for R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical peo

Re: [PATCH v2 19/19] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-20 Thread Sergei Shtylyov
On 02/20/2018 06:12 PM, Jacopo Mondi wrote: > Populate the ethernet@e680 device node to enable Ethernet interface > for R-Car M3-N (r8a77965) SoC. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven > > --- > v1 -> v2: > - Replace ALWAYS_ON power area identifier with numeric

RE: [PATCH] watchdog: hpwdt: change maintainer.

2018-02-20 Thread Vance, Jimmy
Acked-by: JImmy Vance -Original Message- From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck Sent: Monday, October 9, 2017 7:27 PM To: Hoemann, Jerry ; linux-watch...@vger.kernel.org Cc: linux-kernel@vger.kernel.org; Vance, Jimmy Subject: Re: [PATCH] watchdog: hpwdt

[PATCH] arm64: dts: stratix10: Add PL330 DMAC to Stratix10 dts

2018-02-20 Thread Graham Moore
The Stratix10 SoCFPGA uses the PL330 DMAC. This patch adds the PL330 DMAC to the Stratix10 device tree. Signed-off-by: Graham Moore --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_s

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Alan Stern
On Tue, 20 Feb 2018, Andrea Parri wrote: > > This leaves us with a question: Do we want to change the kernel by > > adding memory barriers after unsuccessful RMW operations on Alpha, or > > do we want to change the model by excluding such operations from > > address dependencies? > > I'd like to

Re: [PATCH v2 03/19] soc: renesas: Identify R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add support for indentifying R-Car M3-N (R8A77965) SoC. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven > --- a/drivers/soc/renesas/renesas-soc.c > +++ b/drivers/soc/renesas/renesas-soc.c > @@ -149,6 +149,11 @@

Re: [PATCH v14 6/9] HISI LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2018-02-20 Thread John Garry
On 20/02/2018 14:50, Andy Shevchenko wrote: On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: From: Zhichang Yuan The low-pin-count(LPC) interface of Hip06/Hip07 accesses the peripherals in I/O port addresses. This patch implements the LPC host controller driver which perform the I/O operati

Re: [PATCH v14 0/9] LPC: legacy ISA I/O support

2018-02-20 Thread John Garry
On 20/02/2018 14:54, Andy Shevchenko wrote: On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > This patchset supports the IPMI-bt device attached to the Low-Pin-Count > interface implemented on Hisilicon Hip06/Hip07 SoC. > --- > | LPC ho

Re: [PATCH v3 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-20 Thread Lina Iyer
On Mon, Feb 19 2018 at 20:31 +, Rob Herring wrote: On Fri, Feb 16, 2018 at 03:46:14PM -0700, Lina Iyer wrote: From: Mahesh Sivasubramanian +The devicetree representation of the command DB driver should be: Need to state this is a child of /reserved-memory Yes, ofcourse. Will fix. +

Re: [PATCH 4/6] sched/isolation: Offload residual 1Hz scheduler tick

2018-02-20 Thread Frederic Weisbecker
On Sat, Feb 17, 2018 at 11:50:52AM +0100, Thomas Gleixner wrote: > On Thu, 15 Feb 2018, Frederic Weisbecker wrote: > > > When a CPU runs in full dynticks mode, a 1Hz tick remains in order to > > keep the scheduler stats alive. However this residual tick is a burden > > for bare metal tasks that ca

Re: [PATCH v2 07/19] ARM64: Add Renesas R-Car M3-N config symbol

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add configuration option for the R-Car M3-N (R8A77965) SoC. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge

Re: [PATCH v2 04/19] soc: renesas: rcar-sysc: Add R-Car M3-N support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add support for R-Car M3-N (R8A77965) power areas. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven We'll sort out the remaining issues later. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Ther

Re: [PATCH v2 08/19] ARM64: dts: Add Renesas R8A77965 SoC support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Basic support for the Gen 3 R-Car M3-N SoC. > > Based on original work from: > Takeshi Kihara > Magnus Damm > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytte

Re: [PATCH v2 09/19] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add basic support for R-Car Salvator-X M3-N (R8A77965) board. > > Based on original work from: > Takeshi Kihara > Magnus Damm > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Gee

Re: [PATCH v2 12/19] dt-bindings: serial: sh-sci: Add support for r8a77965 (H)SCIF

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add documentation for r8a77965 compatible string to Renesas sci-serial > device tree bindings documentation. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytter

Re: [PATCH] ALSA: hda/realtek: Limit mic boost on T480

2018-02-20 Thread Takashi Iwai
On Sat, 17 Feb 2018 14:54:02 +0100, Peter FP1 Zhang wrote: > > Hi Ben, > > My understanding is same as yours. Recently Realtek Audio expert Kailang (on > copy) submitted a patch for Dock as the attached, are you asking the same > thing? > Looks like the issue is related to Dock model, there are

[PATCH] ASoC: codecs: ak5558: Fix style for SPDX identifier

2018-02-20 Thread Daniel Baluta
Use // for .c and /* for .h files according to: Documentation/process/license-rules.rst file. Signed-off-by: Daniel Baluta --- sound/soc/codecs/ak5558.c | 11 +-- sound/soc/codecs/ak5558.h | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/ak5558.c

Re: [PATCH 2/7] sched/fair: Add group_misfit_task load-balance type

2018-02-20 Thread Morten Rasmussen
On Mon, Feb 19, 2018 at 02:58:42PM +0100, Peter Zijlstra wrote: > On Mon, Feb 19, 2018 at 02:56:44PM +0100, Peter Zijlstra wrote: > > On Thu, Feb 15, 2018 at 04:20:49PM +, Morten Rasmussen wrote: > > > @@ -6733,9 +6758,12 @@ done: __maybe_unused > > > if (hrtick_enabled(rq)) > > > h

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 2:00 AM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 3:19 PM, Thomas Gleixner wrote: >>> On Mon, 19 Feb 2018, Reinette Chatre wrote: On 2/19/2018 1:19 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote:

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Masahiro Yamada
2018-02-21 0:25 GMT+09:00 Richard Weinberger : > Am Dienstag, 20. Februar 2018, 16:18:11 CET schrieb Masahiro Yamada: >> 2018-02-19 18:22 GMT+09:00 Richard Weinberger : >> > Don't source the kernel config file in shell scripts. >> > The config file is not a shell script and often imported from untr

Re: [PATCH v2 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-02-20 Thread Lina Iyer
Hi Evan, Thanks for your review. On Fri, Feb 16 2018 at 23:51 +, Evan Green wrote: Hello Lina, On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: Sleep and wake requests are sent when the application processor subsystem of the SoC is entering deep sleep states like in suspend. These reque

[PATCH v4 1/2] ACPI / x86: boot: Not all platforms require acpi_reduced_hw_init()

2018-02-20 Thread Andy Shevchenko
Some platforms might take care of legacy devices on theirs own. Due to this, export acpi_reduced_hw_init() and put it into struct x86_init_acpi. While doing this, rename acpi_reduced_hw_init() to acpi_reduced_hw_early_init() to show the stage at which it's called. Signed-off-by: Andy Shevchenko

[PATCH v4 2/2] x86/platform/intel-mid: Add special handling of ACPI HW reduced platforms

2018-02-20 Thread Andy Shevchenko
When switching to ACPI HW reduced platforms we still want to initialize timers. Override x86_init.acpi.reduced_hw_init to achieve that. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/intel-mid.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/platform/intel-mid

RE: [PATCH] ALSA: hda/realtek: Limit mic boost on T480

2018-02-20 Thread Peter FP1 Zhang
Thank you Takashi. I will also double confirm it with our Accessory BU guys about Ben's question when I back to my office. And will let you know if there was any different answer from them. Peter Zhang \ 张福平, PMP ThinkPad & ThinkStation Linux Solutions Tel: (+86) 181-1611-8005 | Lenovo Shangh

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Paul E. McKenney
On Tue, Feb 20, 2018 at 10:11:06AM -0500, Alan Stern wrote: > On Tue, 20 Feb 2018, Paul E. McKenney wrote: > > > On Mon, Feb 19, 2018 at 09:28:44PM +0100, Peter Zijlstra wrote: > > > On Mon, Feb 19, 2018 at 11:41:23AM -0800, Paul E. McKenney wrote: > > > > On Mon, Feb 19, 2018 at 12:14:45PM -0500,

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Paul E. McKenney
On Tue, Feb 20, 2018 at 04:17:52PM +0100, Andrea Parri wrote: > On Tue, Feb 20, 2018 at 06:48:13AM -0800, Paul E. McKenney wrote: > > On Mon, Feb 19, 2018 at 06:44:13PM +0100, Peter Zijlstra wrote: > > > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > > > Note that operations like a

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Richard Weinberger
Am Dienstag, 20. Februar 2018, 17:00:39 CET schrieb Masahiro Yamada: > 2018-02-21 0:25 GMT+09:00 Richard Weinberger : > > Am Dienstag, 20. Februar 2018, 16:18:11 CET schrieb Masahiro Yamada: > >> 2018-02-19 18:22 GMT+09:00 Richard Weinberger : > >> > Don't source the kernel config file in shell scr

Re: [PATCH v19 00/10] Add backlight helper functions

2018-02-20 Thread Sean Paul
On Wed, Jan 24, 2018 at 11:32 AM, Meghana Madhyastha wrote: > Move drm helper functions from tinydrm-helpers to linux/backlight for > ease of use by callers in other drivers. > It was a long time coming, but this has finally been applied to -misc-next. Thanks for sticking with it! Sean > Change

[PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-20 Thread Jonathan Neuschäfer
This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is required to properly support the Nintendo Wii's memory layout, in which there are two blocks of RAM and MMIO in the middle. Previously, this memory layout was handled by code that joins the two RAM blocks into one, reserves the

[PATCH 3/6] powerpc: numa: Use the right #ifdef guards around functions

2018-02-20 Thread Jonathan Neuschäfer
of_node_to_nid and dump_numa_cpu_topology are declared inline in their respective header files, if CONFIG_NUMA is not set. Thus it is only valid to define these functions in numa.c if CONFIG_NUMA is set. (numa.c, despite the name, isn't conditionalized on CONFIG_NUMA, but CONFIG_NEED_MULTIPLE_NODES

[PATCH 6/6] powerpc: wii: Don't rely on reserved memory hack if DISCONTIGMEM is set

2018-02-20 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/platforms/embedded6xx/wii.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index 4682327f76a9..589ac87a3ce0 100644 --- a/arch/po

[PATCH 1/6] powerpc/mm/32: Use pfn_valid to check if pointer is in RAM

2018-02-20 Thread Jonathan Neuschäfer
The Nintendo Wii has a memory layout that places two chunks of RAM at non-adjacent addresses, and MMIO between them. Currently, the allocation of these MMIO areas is made possible by declaring the MMIO hole as reserved memory and allowing reserved memory to be allocated (cf. wii_memory_fixups). Th

[PATCH 4/6] powerpc: numa: Restrict fake NUMA enulation to CONFIG_NUMA systems

2018-02-20 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/mm/numa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index df03a65b658f..dfe279529463 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -738,7 +738,8 @@

Re: [RFCv4 13/21] media: videobuf2-v4l2: support for requests

2018-02-20 Thread Hans Verkuil
On 02/20/2018 05:44 AM, Alexandre Courbot wrote: > Add a new vb2_qbuf_request() (a request-aware version of vb2_qbuf()) > that request-aware drivers can call to queue a buffer into a request > instead of directly into the vb2 queue if relevent. > > This function expects that drivers invoking it ar

[PATCH 2/6] powerpc: numa: Fix overshift on PPC32

2018-02-20 Thread Jonathan Neuschäfer
When read_n_cells is compiled for PPC32, "result << 32" causes an overshift, which GCC doesn't like. Fix this by using u64 instead of unsigned long. Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/mm/numa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/

[PATCH 5/6] powerpc: Implement DISCONTIGMEM and allow selection on PPC32

2018-02-20 Thread Jonathan Neuschäfer
The implementation of pfn_to_nid and pfn_valid in mmzone.h is based on arch/metag's implementation. Signed-off-by: Jonathan Neuschäfer --- NOTE: Checking NODE_DATA(nid) in pfn_to_nid appears to be uncommon. Running up to MAX_NUMNODES instead of checking NODE_DATA(nid) would require the node_data

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Morten Rasmussen
On Mon, Feb 19, 2018 at 03:53:35PM +0100, Peter Zijlstra wrote: > On Mon, Feb 19, 2018 at 03:50:12PM +0100, Peter Zijlstra wrote: > > On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > > > On systems with asymmetric cpu capacities, a skewed load distribution > > > might yield bette

[PATCH 1/3] ARM: clps711x: mark clps711x_compat as const

2018-02-20 Thread Arnd Bergmann
The array of string pointers is put in __initconst, and the strings themselves are marke 'const' but the the pointers are not, which caused a warning when built with LTO: arch/arm/mach-clps711x/board-dt.c:72:20: error: 'clps711x_compat' causes a section type conflict with 'feroceon_ids' static c

[PATCH v3 03/15] dt-bindings: arm: tegra: Document #reset-cells property of the Tegra20 MC

2018-02-20 Thread Dmitry Osipenko
Memory Controller has a memory client "hot reset" functionality, which resets the DMA interface of a memory client, so MC is a reset controller. Documentation the new property. Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-mc.txt | 12 +++- 1 fi

[PATCH v3 06/15] memory: tegra: Setup interrupts mask before requesting IRQ

2018-02-20 Thread Dmitry Osipenko
This avoids unwanted interrupt during MC driver probe. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c index d2005b995821..e55b9733bd83 100644 -

[PATCH 2/3] ARM: orion: mark orion_ge00_mvmdio_bus_name as const

2018-02-20 Thread Arnd Bergmann
A section type mismatch warning shows up when building with LTO, since orion_ge00_mvmdio_bus_name was put in __initconst but not marked const itself: include/linux/of.h: In function 'spear_setup_of_timer': arch/arm/mach-spear/time.c:207:34: error: 'timer_of_match' causes a section type conflict w

[PATCH v3 09/15] memory: tegra: Squash tegra20-mc into common tegra-mc driver

2018-02-20 Thread Dmitry Osipenko
Tegra30+ has some minor differences in registers / bits layout compared to Tegra20. Let's squash Tegra20 driver into the common tegra-mc driver in a preparation for the upcoming MC hot reset controls implementation, avoiding code duplication. Signed-off-by: Dmitry Osipenko --- drivers/memory/Kco

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Richard Weinberger wrote: > An alternate approach would be this: > diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c > index 5c12dc91ef34..ff0a7c62344b 100644 > --- a/scripts/kconfig/confdata.c > +++ b/scripts/kconfig/confdata.c > @@ -161,6 +161,13 @@ static

[PATCH 3/3] ARM: davinci: mark spi_board_info arrays as const

2018-02-20 Thread Arnd Bergmann
Building with LTO revealed that three spi_board_info arrays are marked __initconst, but not const: arch/arm/mach-davinci/board-dm365-evm.c: In function 'dm365_evm_init': arch/arm/mach-davinci/board-dm365-evm.c:729:30: error: 'dm365_evm_spi_info' causes a section type conflict with 'dm646x_edma_de

[PATCH v3 08/15] memory: tegra: Remove unused headers inclusions

2018-02-20 Thread Dmitry Osipenko
Tegra210 contains some unused leftover headers, remove them for consistency. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra210.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/memory/tegra/tegra210.c b/drivers/memory/tegra/tegra210.c index 3b8d0100088c..b729f49ffc

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-02-20 Thread Neil Horman
On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: > On Tue, Feb 20, 2018 at 8:56 AM, Tommi Rantala > wrote: > > On 19.02.2018 20:59, Dmitry Vyukov wrote: > >> > >> On Sat, Feb 3, 2018 at 1:15 PM, Xin Long wrote: > > > > On 1/30/18 1:57 PM, David Ahern wrote: > >> > >>

Re: [PATCH v4 1/2] ACPI / x86: boot: Not all platforms require acpi_reduced_hw_init()

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 5:03 PM, Andy Shevchenko wrote: > Some platforms might take care of legacy devices on theirs own. Due to this, > export acpi_reduced_hw_init() and put it into struct x86_init_acpi. IMO this completely doesn't explain what really happens here. You basically want to provide

Re: [PATCH] blk: optimization for classic polling

2018-02-20 Thread Keith Busch
On Tue, Feb 20, 2018 at 02:21:37PM +0100, Peter Zijlstra wrote: > Also, set_current_state(TASK_RUNNING) is dodgy (similarly in > __blk_mq_poll), why do you need that memory barrier? You're right. The subsequent revision that was committed removed the barrier. The commit is here: https://git.kerne

[PATCH v3 05/15] memory: tegra: Do not handle spurious interrupts

2018-02-20 Thread Dmitry Osipenko
The ISR reads interrupts-enable mask, but doesn't utilize it. Apply the mask to the interrupt status and don't handle interrupts that MC driver haven't asked for. Kernel would disable spurious MC IRQ and report the error. This would happen only in a case of a very severe bug. Signed-off-by: Dmitry

Re: arm64 physmap (was Re: [kernel-hardening] [PATCH 4/6] Protectable Memory)

2018-02-20 Thread Igor Stoppa
On 14/02/18 21:29, Kees Cook wrote: > On Wed, Feb 14, 2018 at 11:06 AM, Laura Abbott wrote: [...] >> Kernel code should be fine, if it isn't that is a bug that should be >> fixed. Modules yes are not fully protected. The conclusion from past > > I think that's a pretty serious problem: we can

[PATCH v3 07/15] memory: tegra: Apply interrupts mask per SoC

2018-02-20 Thread Dmitry Osipenko
Currently we are enabling handling of interrupts specific to Tegra124+ which happen to overlap with previous generations. Let's specify interrupts mask per SoC generation for consistency and in a preparation of squashing of Tegra20 driver into the common one that will enable handling of GART faults

[PATCH v3 00/15] Memory controller hot reset

2018-02-20 Thread Dmitry Osipenko
Tegra's memory controller has a "memory hot reset" functionality that blocks all memory transactions for the memory client, which is required for a proper HW resetting. HW could perform DMA while being reset and this could lead to a system hang or memory corruption, so here comes the memory hot res

[PATCH v3 04/15] dt-bindings: memory: tegra: Add hot resets definitions

2018-02-20 Thread Dmitry Osipenko
Add definitions for the Tegra20+ memory controller hot resets. Signed-off-by: Dmitry Osipenko --- include/dt-bindings/memory/tegra114-mc.h | 19 +++ include/dt-bindings/memory/tegra124-mc.h | 25 + include/dt-bindings/memory/tegra20-mc.h | 21

[PATCH v3 02/15] dt-bindings: memory: tegra: Document #reset-cells property of the Tegra30 MC

2018-02-20 Thread Dmitry Osipenko
Memory Controller has a memory client "hot reset" functionality, which resets the DMA interface of a memory client. So MC is a reset controller in addition to IOMMU. Documentation the new property. Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/memory-controllers/nvidia,tegra30-mc.tx

<    1   2   3   4   5   6   7   8   9   >