Re: [PATCH 12/12] [PROBABLY WRONG] s390: void '0' constraint in inline assembly

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:25 +0200 Arnd Bergmann wrote: > clang does not understand the contraint "0" in the CALL_ON_STACK() > macro: > > ../arch/s390/mm/maccess.c:117:10: error: invalid input constraint '0' in asm > return CALL_ON_STACK(_memcpy_real, S390_lowcore.nodat_stack, >

Re: [PATCH 1/1] of: reserved_mem: fix reserve memory leak

2019-04-10 Thread Rob Herring
On Tue, Feb 19, 2019 at 03:45:00PM +0800, pierre Kuo wrote: > The __reserved_mem_init_node will call region specific reserved memory > init codes, but once all compatibled init codes failed, the memory region > will left in memory.reserved and cause leakage. > > Take cma reserve memory DTS for exa

Re: [PATCH 1/2] perf/x86/intel: Support adaptive PEBS for fixed counters

2019-04-10 Thread Liang, Kan
On 4/10/2019 3:41 AM, Peter Zijlstra wrote: On Tue, Apr 09, 2019 at 06:09:59PM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang Fixed counters can also generate adaptive PEBS record, if the corresponding bit in IA32_FIXED_CTR_CTRL is set. Otherwise, only basic record is generated. U

Re: [PATCH] ARM: dts: stm32: add I2C sleep pins muxing on stm32mp157

2019-04-10 Thread Alexandre Torgue
Hi Yannick On 3/29/19 11:48 AM, Yannick Fertré wrote: Add I2C sleep pins muxing for low power mode. Signed-off-by: Pierre-Yves MORDRET Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 29 + 1 file changed, 29 insertions(+) diff --gi

Re: [PATCH 2/2] perf/x86/intel: Add Tremont core PMU support

2019-04-10 Thread Liang, Kan
On 4/10/2019 3:51 AM, Peter Zijlstra wrote: On Tue, Apr 09, 2019 at 06:10:00PM -0700, kan.li...@linux.intel.com wrote: The generic purpose counter 0 and fixed counter 0 have less skid. Force :ppp events on generic purpose counter 0. Force instruction:ppp always on fixed counter 0. +static

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Boris Brezillon
On Wed, 10 Apr 2019 15:39:28 +0200 Boris Brezillon wrote: > On Wed, 10 Apr 2019 21:07:47 +0800 > Yue Haibing wrote: > > > From: YueHaibing > > > > Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH > > is set to module: > > > > drivers/mtd/nand/raw/nand_base.o: In function `nand_cleanup':

Re: [PATCH v1 1/4] platform/x86: intel_pmc_ipc: Use BIT() macro

2019-04-10 Thread Andy Shevchenko
On Tue, Apr 09, 2019 at 08:39:39PM +0300, Andy Shevchenko wrote: > On Tue, Apr 09, 2019 at 10:07:35AM -0700, sathyanarayanan kuppuswamy wrote: > > On 4/9/19 4:25 AM, Andy Shevchenko wrote: > > > Use BIT() and BIT_MASK() macros for definitions. > > Looks good to me. > > Thanks! If you have no furt

Re: [PATCH] of: use correct function prototype for of_overlay_fdt_apply()

2019-04-10 Thread Rob Herring
On Fri, Mar 22, 2019 at 01:23:41PM +1300, Chris Packham wrote: > When CONFIG_OF_OVERLAY is not enabled the fallback stub for > of_overlay_fdt_apply() does not match the prototype for the case when > CONFIG_OF_OVERLAY is enabled. Update the stub to use the correct > function prototype. > > Fixes: c

[PATCH -next] mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mtd/nand/raw/ingenic/ingenic_nand.c:140:32: warning: symbol 'jz4725b_ooblayout_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/mtd/nand/raw/ingenic/ingenic_nand.c | 2 +- 1 file changed, 1

Re: [PATCH] ARM: dts: stm32: add ltdc pins muxing on stm32mp157

2019-04-10 Thread Alexandre Torgue
Hi Yannick On 3/29/19 1:28 PM, Yannick Fertré wrote: Add ltdc pins muxing on stm32mp157. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dts

RE: [PATCH 2/2] spi: pxa2xx: use a module softdep for dw_dmac

2019-04-10 Thread Flavio Suligoi
Hi Mark, > On Wed, Apr 10, 2019 at 02:51:36PM +0200, Flavio Suligoi wrote: > > With dw_dmac, sometimes the request of a DMA channel fails because > > the DMA driver is not ready, so an explicit dependency request > > is necessary. > > While this isn't going to hurt anything and might actually hel

[PATCH -next] memory: tegra: Make terga20_mc_reset_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/memory/tegra/tegra20.c:277:33: warning: symbol 'terga20_mc_reset_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/memory/tegra/tegra20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH] of: Improve of_phandle_iterator_next() error message

2019-04-10 Thread Rob Herring
On Wed, Apr 03, 2019 at 10:56:33AM -0700, Florian Fainelli wrote: > Understanding why of_phandle_iterator_next() returns an error can > sometimes be hard to decipher based solely on the error message, a > typical error example is that #foo-cells = and the phandle property > used has a smaller numb

Re: [PATCH 23/23] watchdog: tangox_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Marc Gonzalez
On 10/04/2019 15:37, Guenter Roeck wrote: > On 4/10/19 6:04 AM, Marc Gonzalez wrote: > >> On 09/04/2019 19:24, Guenter Roeck wrote: >> >>> Use device managed functions to simplify error handling, reduce >>> source code size, improve readability, and reduce the likelihood of bugs. >>> Other improve

Re: [PATCH v1 0/2] add cec pins muxing

2019-04-10 Thread Alexandre Torgue
Hi Yannick On 3/29/19 1:41 PM, Yannick Fertré wrote: Add cec pins muxing Yannick Fertré (2): ARM: dts: stm32: add cec pins muxing on stm32mp157 ARM: dts: stm32: add sleep pinctrl for cec on stm32mp157c arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 21 + 1 file change

Re: [PATCH v2 1/2] dt-bindings: thermal: al-thermal: Add binding documentation

2019-04-10 Thread Rob Herring
On Thu, Apr 04, 2019 at 01:16:55PM +0300, Talel Shenhar wrote: > Add thermal binding documentation for Amazon's Annapurna Labs Thermal > Sensor. > > Signed-off-by: Talel Shenhar > Reviewed-by: David Woodhouse > --- > .../bindings/thermal/amazon,al-thermal.txt | 33 > +++

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Boris Brezillon
On Wed, 10 Apr 2019 15:58:56 +0200 Boris Brezillon wrote: > On Wed, 10 Apr 2019 15:39:28 +0200 > Boris Brezillon wrote: > > > On Wed, 10 Apr 2019 21:07:47 +0800 > > Yue Haibing wrote: > > > > > From: YueHaibing > > > > > > Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH > > > is set

Re: [PATCH] ARM: dts: stm32: enable cec on stm32mp157a-dk1 board

2019-04-10 Thread Alexandre Torgue
Hi Yannick On 3/29/19 1:29 PM, Yannick Fertré wrote: Enable CEC (Consumer Electronics Control) device. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dt

Re: [PATCH v3 1/4] perf: Add a 'percore' event qualifier

2019-04-10 Thread Jin, Yao
On 4/10/2019 8:54 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 10, 2019 at 09:36:41AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 19, 2019 at 04:56:53PM +0800, Jin Yao escreveu: Add a 'percore' event qualifier, like cpu/event=0,umask=0x3,percore=1/, that sums up the event counts

Re: [RFC][PATCH 13/16] sched: Add core wide task selection and scheduling.

2019-04-10 Thread Aubrey Li
On Wed, Apr 10, 2019 at 12:36 PM Aaron Lu wrote: > > On Tue, Apr 09, 2019 at 11:09:45AM -0700, Tim Chen wrote: > > Now that we have accumulated quite a number of different fixes to your > > orginal > > posted patches. Would you like to post a v2 of the core scheduler with the > > fixes? > > One

Re: Device Description for FPGA Components on x86 system

2019-04-10 Thread Alan Tull
On Wed, Apr 10, 2019 at 7:50 AM Federico Vaga wrote: Hi Federico, I wish I could point you to a complete solution, but there is a lot of work to be done in this area. Most of what is in the kernel is a low level in-kernel API [4]. As you correctly state, the hardest part of this is doing the e

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread YueHaibing
On 2019/4/10 21:58, Boris Brezillon wrote: > On Wed, 10 Apr 2019 15:39:28 +0200 > Boris Brezillon wrote: > >> On Wed, 10 Apr 2019 21:07:47 +0800 >> Yue Haibing wrote: >> >>> From: YueHaibing >>> >>> Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH >>> is set to module: >>> >>> drivers/mtd/n

[PATCH] ASoC: wcd9335: Fix missing regmap requirement

2019-04-10 Thread Marc Gonzalez
wcd9335.c: undefined reference to 'devm_regmap_add_irq_chip' Signed-off-by: Marc Gonzalez --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 419142111b6d..33778dc99108 100644 --- a/sound/soc/codecs/Kconfig ++

RE: [PATCH 1/1] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-10 Thread Reshetova, Elena
> * Elena Reshetova wrote: > > > 2) Andy's tests, misc-tests: ./timing_test_64 10M sys_enosys > > base:1000 loops in 1.62224s > > = 162.22 nsec / loop > > random_offset (prandom_u32() every syscall): 1000 loops in 1.64660s > > = > 166.2

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Boris Brezillon
On Wed, 10 Apr 2019 22:22:16 +0800 YueHaibing wrote: > On 2019/4/10 21:58, Boris Brezillon wrote: > > On Wed, 10 Apr 2019 15:39:28 +0200 > > Boris Brezillon wrote: > > > >> On Wed, 10 Apr 2019 21:07:47 +0800 > >> Yue Haibing wrote: > >> > >>> From: YueHaibing > >>> > >>> Fix gcc build err

Re: [PATCH] ASoC: wcd9335: Fix missing regmap requirement

2019-04-10 Thread Srinivas Kandagatla
On 10/04/2019 15:23, Marc Gonzalez wrote: wcd9335.c: undefined reference to 'devm_regmap_add_irq_chip' Signed-off-by: Marc Gonzalez --- Thanks for Fix, Acked-by: Srinivas Kandagatla sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig

Re: WARN_ON_ONCE() hit at kernel/events/core.c:330

2019-04-10 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 03:51:24PM +0200, Thomas-Mich Richter wrote: > Thanks for the fix with commit id 86071b11317550d994b55ce5e31aa06bcad783b5. > > However doing an fgrep on the pending_disable member of struct perf_event > reveals two more hits in file kernel/events/ringbuffer.c when events >

[PATCH RT] bpf: Guard bpf_prog_active with a locallock

2019-04-10 Thread Sebastian Andrzej Siewior
The bpf_prog_active counter is used to avoid recursion on the same CPU. On RT we can't keep it with the preempt-disable part because the syscall may need to acquire locks or allocate memory. Use a locallock() to avoid recursion on the same CPU. Signed-off-by: Sebastian Andrzej Siewior --- inclu

Re: [RFC][PATCH 13/16] sched: Add core wide task selection and scheduling.

2019-04-10 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 12:36:33PM +0800, Aaron Lu wrote: > On Tue, Apr 09, 2019 at 11:09:45AM -0700, Tim Chen wrote: > > Now that we have accumulated quite a number of different fixes to your > > orginal > > posted patches. Would you like to post a v2 of the core scheduler with the > > fixes? >

RE: [PATCH RESEND 1/1] PCI: Add ATS-disable quirk for AMD Radeon R7 GPUs

2019-04-10 Thread Deucher, Alexander
> -Original Message- > From: Bjorn Helgaas > Sent: Tuesday, April 9, 2019 5:59 PM > To: Nikolai Kostrigin > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > jroe...@suse.de; Deucher, Alexander > Subject: Re: [PATCH RESEND 1/1] PCI: Add ATS-disable quirk for AMD Radeon > R7

Re: [PATCH 1/1] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-10 Thread Andy Lutomirski
On Wed, Apr 10, 2019 at 4:43 AM Ingo Molnar wrote: > > > * Elena Reshetova wrote: > > > 2) Andy's tests, misc-tests: ./timing_test_64 10M sys_enosys > > base:1000 loops in 1.62224s > > = 162.22 nsec / loop > > random_offset (prandom_u32() ever

Re: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-10 Thread Andy Lutomirski
On Wed, Apr 10, 2019 at 3:24 AM Reshetova, Elena wrote: > > > > > > On Mon, Apr 08, 2019 at 09:13:58AM +0300, Elena Reshetova wrote: > > > > > diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c > > > > > index 7bc105f47d21..38ddc213a5e9 100644 > > > > > --- a/arch/x86/entry/common.c >

Re: [PATCH v14 1/3] /proc/pid/status: Add support for architecture specific output

2019-04-10 Thread Andy Lutomirski
On Tue, Apr 9, 2019 at 8:40 PM Li, Aubrey wrote: > > On 2019/4/10 10:36, Li, Aubrey wrote: > > On 2019/4/10 10:25, Andy Lutomirski wrote: > >> On Tue, Apr 9, 2019 at 7:20 PM Li, Aubrey > >> wrote: > >>> > >>> On 2019/4/10 9:58, Andy Lutomirski wrote: > On Tue, Apr 9, 2019 at 6:55 PM Aubrey

Re: [PATCH v8 00/20] Convert x86 & arm64 to use generic page walk

2019-04-10 Thread Steven Price
Hi all, Gentle ping: who can take this? Is there anything blocking this series? Thanks, Steve On 03/04/2019 15:16, Steven Price wrote: > Most architectures current have a debugfs file for dumping the kernel > page tables. Currently each architecture has to implement custom > functions for walki

Re: [PATCH v2 2/2] dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu

2019-04-10 Thread Maxime Ripard
On Tue, Apr 09, 2019 at 01:25:58PM -0400, Yangtao Li wrote: > Allwinner Process Voltage Scaling Tables defines the voltage and > frequency value based on the speedbin blown in the efuse combination. > The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to > provide the OPP framework

Re: [PATCH] KVM: x86: optimize check for valid PAT value

2019-04-10 Thread Sean Christopherson
On Wed, Apr 10, 2019 at 12:55:53PM +, David Laight wrote: > From: Paolo Bonzini > > Sent: 10 April 2019 10:55 > > > > This check will soon be done on every nested vmentry and vmexit, > > "parallelize" it using bitwise operations. > > > > Signed-off-by: Paolo Bonzini > > --- > ... > > diff --

Re: [PATCH] KVM: x86: optimize check for valid PAT value

2019-04-10 Thread Sean Christopherson
On Wed, Apr 10, 2019 at 11:55:26AM +0200, Paolo Bonzini wrote: > This check will soon be done on every nested vmentry and vmexit, > "parallelize" it using bitwise operations. > > Signed-off-by: Paolo Bonzini > --- Reviewed-by: Sean Christopherson

Re: [PATCH] KVM: x86: clear VM_EXIT_SAVE_IA32_PAT

2019-04-10 Thread Sean Christopherson
On Wed, Apr 10, 2019 at 11:55:21AM +0200, Paolo Bonzini wrote: > This is not needed, PAT writes always take an MSR vmexit. > > Signed-off-by: Paolo Bonzini > --- Reviewed-by: Sean Christopherson

Re: [RFC][PATCH 13/16] sched: Add core wide task selection and scheduling.

2019-04-10 Thread Peter Zijlstra
On Tue, Apr 09, 2019 at 02:38:55PM -0400, Julien Desfossez wrote: > We found the source of the major performance regression we discussed > previously. It turns out there was a pattern where a task (a kworker in this > case) could be woken up, but the core could still end up idle before that > task

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread YueHaibing
On 2019/4/10 22:29, Boris Brezillon wrote: > On Wed, 10 Apr 2019 22:22:16 +0800 > YueHaibing wrote: > >> On 2019/4/10 21:58, Boris Brezillon wrote: >>> On Wed, 10 Apr 2019 15:39:28 +0200 >>> Boris Brezillon wrote: >>> On Wed, 10 Apr 2019 21:07:47 +0800 Yue Haibing wrote: >>>

Re: [PATCH 1/2] drm: panel-simple: Add simple-panel driver.

2019-04-10 Thread Christoph Müllner
Hi Heiko, > On 10.04.2019, at 16:50, Heiko Stübner wrote: > > Hi Christoph, > > Am Mittwoch, 10. April 2019, 16:10:44 CEST schrieb Christoph Muellner: >> On our RK3399-Q7 EVK base board we have the option to connect an arbitrary >> monitor via DP cable. The actual monitor is therefore not known

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Peter Zijlstra
On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: > Because of writer lock stealing, it is possible that a constant > stream of incoming writers will cause a waiting writer or reader to > wait indefinitely leading to lock starvation. > > The mutex code has a lock handoff mechanism to pr

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Peter Zijlstra
On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: > +#define RWSEM_WAIT_TIMEOUT ((HZ - 1)/200 + 1) Given the choices in HZ, the above seems fairly 'optimistic'.

Re: Device Description for FPGA Components on x86 system

2019-04-10 Thread Federico Vaga
Hi Alan, thanks for your answer On Wednesday, April 10, 2019 4:21:09 PM CEST Alan Tull wrote: > On Wed, Apr 10, 2019 at 7:50 AM Federico Vaga wrote: > > Hi Federico, > > I wish I could point you to a complete solution, but there is a lot of > work to be done in this area. Most of what is in t

[PATCH v2 01/12] software node: Allow node creation without properties

2019-04-10 Thread Heikki Krogerus
Software nodes are not forced to have device properties. Adding check to property_entries_dup() to make it possible to create software nodes that don't have any properties. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bas

[PATCH 00/12] Software fwnode references

2019-04-10 Thread Heikki Krogerus
Hi, This is the second version of this series. In this version I'm introducing a new helper device_find_child_by_name() as proposed by Andy. Andy requested also another helper that could be used for chaining the fwnodes, but I decided not to add that now. I would like to still think about how we s

[PATCH v2 02/12] software node: Simplify software_node_release() function

2019-04-10 Thread Heikki Krogerus
It's possible to release the node ID immediately when fwnode_remove_software_node() is called, no need to wait for software_node_release() with that. This change has no functional effect. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c | 20 ++-- 1 file changed, 10 inser

[PATCH v2 04/12] software node: Implement .get_reference_args fwnode operation

2019-04-10 Thread Heikki Krogerus
This makes it possible to support drivers that use fwnode_property_get_reference_args() function. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/drivers/base/swnode.c b/drivers/base/swnode.

[PATCH v2 06/12] ACPI / property: Don't limit named child node matching to data nodes

2019-04-10 Thread Heikki Krogerus
There is no reason why we should limit the use of fwnode_get_named_child_node() to data nodes only. Signed-off-by: Heikki Krogerus --- drivers/acpi/property.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/pr

[PATCH v2 05/12] driver core: Add helper device_find_child_by_name()

2019-04-10 Thread Heikki Krogerus
It looks like the child device is often matched with a name. This introduces a helper that does it automatically. Signed-off-by: Heikki Krogerus --- drivers/base/core.c| 31 +++ include/linux/device.h | 2 ++ 2 files changed, 33 insertions(+) diff --git a/driver

[PATCH v2 07/12] device connection: Find connections also by checking the references

2019-04-10 Thread Heikki Krogerus
We can also use this API to find named references that the device nodes have by using fwnode_property_get_reference_args() function. Signed-off-by: Heikki Krogerus --- drivers/base/devcon.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/base/devcon.c b/

[PATCH v2 08/12] usb: typec: Registering real device entries for the muxes

2019-04-10 Thread Heikki Krogerus
Registering real device entries (struct device) for the mode muxes as well as for the orientation switches. The Type-C mux code was deliberately attempting to avoid creation of separate device entries for the orientation switch and the mode switch (alternate modes) because they are not physical de

[PATCH v2 12/12] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-04-10 Thread Heikki Krogerus
Now that the software nodes support references, and the device connection API support parsing fwnode references, replacing the old connection descriptions with software node references. Relying on device names when matching the connection would not have been possible to link the USB Type-C connecto

[PATCH v2 10/12] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-04-10 Thread Heikki Krogerus
In ACPI, and now also in DT, the USB connectors usually have their own device nodes. In case of USB Type-C, those connector (port) nodes are child nodes of the controller or PHY device, in our case the fusb302. The software fwnodes allow us to create a similar child node for fusb302 that represents

[PATCH v2 11/12] platform/x86: intel_cht_int33fe: Link with external dependencies using fwnodes

2019-04-10 Thread Heikki Krogerus
Supplying also external devices - the DisplayPort connector and the USB role switch - software fwnodes. After this the driver has access to all the components tied to the USB Type-C connector and can start creating software node references to actually associate them with the USB Type-C connector de

Re: [PATCH 2/3] clk: rockchip: Make rkpwm a critical clock on rk3288

2019-04-10 Thread Doug Anderson
Hi, On Tue, Apr 9, 2019 at 11:42 PM elaine.zhang wrote: > > hi, > > 在 2019/4/10 上午4:47, Douglas Anderson 写道: > > Most rk3288-based boards are derived from the EVB and thus use a PWM > > regulator for the logic rail. However, most rk3288-based boards don't > > specify the PWM regulator in their d

[PATCH v2 09/12] platform/x86: intel_cht_int33fe: Provide software nodes for the devices

2019-04-10 Thread Heikki Krogerus
Software nodes provide two features that we will need later. 1) Software nodes can have references to other software nodes. 2) Software nodes can exist before a device entry is created. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 124 +-- 1 f

Re: [PATCH 21/21] docs: hwmon: Add an index file and rename docs to *.rst

2019-04-10 Thread Jonathan Neuschäfer
Hello, On Wed, Apr 10, 2019 at 08:12:11AM -0300, Mauro Carvalho Chehab wrote: > Now that all files were converted to ReST format, rename them > and add an index. > > Signed-off-by: Mauro Carvalho Chehab > --- [...] > diff --git a/Documentation/hwmon/submitting-patches > b/Documentation/hwmon/su

[PATCH v2 03/12] software node: Add support for references

2019-04-10 Thread Heikki Krogerus
Introducing functions that can be used for adding and removing references to other software nodes. The goal is to support fwnode_property_get_reference_args() also with software nodes, however, get_reference_args fwnode operation callback is not yet implemented in this commit for the software nodes

Re: [PATCH 2/2] spi: pxa2xx: use a module softdep for dw_dmac

2019-04-10 Thread Mark Brown
On Wed, Apr 10, 2019 at 02:05:38PM +, Flavio Suligoi wrote: > Hi Mark, > > While this isn't going to hurt anything and might actually help so it's > > fine doesn't this also suggest that there's an issue with deferred probe > > going on as well? > I think that the problem could be related to

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Waiman Long
On 04/10/2019 11:07 AM, Peter Zijlstra wrote: > On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: >> Because of writer lock stealing, it is possible that a constant >> stream of incoming writers will cause a waiting writer or reader to >> wait indefinitely leading to lock starvation. >>

Re: [PATCH] PM / core: Propagate dev->power.wakeup_path when no callbacks

2019-04-10 Thread Alexandre Torgue
Hi Ulf On 4/10/19 11:55 AM, Ulf Hansson wrote: The dev->power.direct_complete flag may become set in device_prepare() in case the device don't have any PM callbacks (dev->power.no_pm_callbacks is set). This leads to a broken behaviour, when there is child having wakeup enabled and relies on its

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Waiman Long
On 04/10/2019 11:10 AM, Peter Zijlstra wrote: > On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: >> +#define RWSEM_WAIT_TIMEOUT ((HZ - 1)/200 + 1) > Given the choices in HZ, the above seems fairly 'optimistic'. I can tighten it up and make it less "optimistic" :-) Cheers, Longman

Applied "spi: spi-mem: Make spi_mem_default_supports_op() static inline" to the spi tree

2019-04-10 Thread Mark Brown
The patch spi: spi-mem: Make spi_mem_default_supports_op() static inline has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: [PATCH v3] platform: chrome: Add ChromeOS EC ISHTP driver

2019-04-10 Thread Jett Rink
Reviewed-by: Jett Rink Tested-by: Jett Rink On Sun, Apr 7, 2019 at 6:10 AM Rushikesh S Kadam wrote: > > This driver implements a slim layer to enable the ChromeOS > EC kernel stack (cros_ec) to communicate with ChromeOS EC > firmware running on the Intel Integrated Sensor Hub (ISH). > > The dr

[PATCH REBASED] mm: Throttle allocators when failing reclaim over memory.high

2019-04-10 Thread Chris Down
We're trying to use memory.high to limit workloads, but have found that containment can frequently fail completely and cause OOM situations outside of the cgroup. This happens especially with swap space -- either when none is configured, or swap is full. These failures often also don't have enough

[PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/pci/controller/pci-mvebu.c:557:28: warning: symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/pci/controller/pci-mvebu.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2] panic: add an option to replay all the printk message in buffer

2019-04-10 Thread Feng Tang
Currently on panic, kernel will lower the loglevel and print out new printk msg only with console_flush_on_panic(). Add an option for users to configure the "panic_print" to see all dmesg in buffer, some of which they may have never seen due to the loglevel setting, which will help debugging too.

Re: [PATCH 1/3] Revert "clk: rockchip: mark noc and some special clk as critical on rk3288"

2019-04-10 Thread Doug Anderson
Hi, On Tue, Apr 9, 2019 at 11:23 PM elaine.zhang wrote: > > hi, > > 在 2019/4/10 上午4:47, Douglas Anderson 写道: > > This reverts commit 55bb6a633c33caf68ab470907ecf945289cb733d. > > > > The clocks that were enabled by that patch are pretty questionable. > > Specifically looking at what has been ship

Re: [PATCH REBASED] mm: Throttle allocators when failing reclaim over memory.high

2019-04-10 Thread Chris Down
Hey Michal, Just to come back to your last e-mail about how this interacts with OOM. Michal Hocko writes: I am not really opposed to the throttling in the absence of a reclaimable memory. We do that for the regular allocation paths already (should_reclaim_retry). A swapless system with anon mem

[PATCH v2] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module: drivers/mtd/nand/raw/nand_base.o: In function `nand_cleanup': (.text+0xef6): undefined reference to `nand_bch_free' drivers/mtd/nand/raw/nand_base.o: In function `nand_scan_tail': nand_base.c:(.text+0xa101):

[PATCH v3 0/1] Use HMM for ODP v3

2019-04-10 Thread jglisse
From: Jérôme Glisse Changes since v1/v2 are about rebase and better comments in the code. Previous cover letter slightly updated. This patchset convert RDMA ODP to use HMM underneath this is motivated by stronger code sharing for same feature (share virtual memory SVM or Share Virtual Address S

[PATCH v3 1/1] RDMA/odp: convert to use HMM for ODP v3

2019-04-10 Thread jglisse
From: Jérôme Glisse Convert ODP to use HMM so that we can build on common infrastructure for different class of devices that want to mirror a process address space into a device. There is no functional changes. Changes since v2: - rebase on top of newer HMM patchset and mmu notifier patchset

Re: [PATCH] clk: rockchip: Fix video codec clocks on rk3288

2019-04-10 Thread Doug Anderson
Hi, On Fri, Mar 29, 2019 at 2:55 PM Douglas Anderson wrote: > > It appears that there is a typo in the rk3288 TRM. For > GRF_SOC_CON0[7] it says that 0 means "vepu" and 1 means "vdpu". It's > the other way around. > > How do I know? Here's my evidence: > > 1. Prior to commit 4d3e84f99628 ("clk

Re: rseq/x86: choosing rseq code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 2:54 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Apr 09, 2019 at 04:43:42PM -0400, Mathieu Desnoyers wrote: >> +/* >> + * RSEQ_SIG is used with the following privileged instructions, which trap >> in >> user-space: >> + * x86-32:0f 01 3d 53 30 05 53

Applied "ASoC: rt5645: fix a NULL pointer dereference" to the asoc tree

2019-04-10 Thread Mark Brown
The patch ASoC: rt5645: fix a NULL pointer dereference has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and s

Re: [External] Re: Basics : Memory Configuration

2019-04-10 Thread Christopher Lameter
Please respond to my comments in the way that everyone else communicates here. I cannot distinguish what you said from what I said before.

Re: [PATCH] firmware: arm_scmi: Fix leak in scmi_mailbox_check

2019-04-10 Thread Sudeep Holla
On Mon, Mar 25, 2019 at 05:37:22PM +, Steven Price wrote: > of_parse_phandle_with_args() requires the caller to call of_node_put() on > the returned args->np pointer. Otherwise the reference count will remain > incremented. > Good find and thanks for the fix. > However, in this case, since we

Re: rseq/s390: choosing code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) > Mathieu Desnoyers wrote: > >> Hi, >> >> We are about to include the code signature required prior to restartable >> sequences abort handlers into glibc, which will make this

[PATCH v3 0/9] klp-convert livepatch build tooling

2019-04-10 Thread Joe Lawrence
Hi folks, This is the third installment of the klp-convert tool for generating and processing livepatch symbols for livepatch module builds. For those following along at home, archive links to previous versions: RFC: https://lore.kernel.org/lkml/cover.1477578530.git.jpoim...@redhat.com/ v2:

[PATCH v3 7/9] livepatch: Add sample livepatch module

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Add a new livepatch sample in samples/livepatch/ to make use of symbols that must be post-processed to enable load-time relocation resolution. As the new sample is to be used as an example, it is annotated with KLP_MODULE_RELOC and with KLP_SYMPOS macros. The livepatch sampl

[PATCH v3 9/9] livepatch/selftests: add klp-convert

2019-04-10 Thread Joe Lawrence
Add a simple klp-convert livepatch selftest that exercises various symbol homonym sympos scenarios. Signed-off-by: Joe Lawrence --- lib/livepatch/Makefile| 10 ++ lib/livepatch/test_klp_convert1.c | 106 ++ lib/livepatch/test_klp_convert2.c

[PATCH v3 8/9] documentation: Update on livepatch elf format

2019-04-10 Thread Joe Lawrence
From: Joao Moreira Add a section to Documentation/livepatch/module-elf-format.txt describing how klp-convert works for fixing relocations. Signed-off-by: Joao Moreira Signed-off-by: Joe Lawrence --- Documentation/livepatch/livepatch.txt | 3 ++ Documentation/livepatch/module-elf-form

[PATCH v3 5/9] modpost: Integrate klp-convert

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Create cmd_klp_convert and hook it into scripts/Makefile.modpost. cmd_klp_convert invokes klp-convert with the right arguments for the conversion of unresolved symbols inside a livepatch. Signed-off-by: Josh Poimboeuf Signed-off-by: Konstantin Khlebnikov Signed-off-by: Mir

[PATCH v3 6/9] modpost: Add modinfo flag to livepatch modules

2019-04-10 Thread Joe Lawrence
From: Miroslav Benes Currently, livepatch infrastructure in the kernel relies on MODULE_INFO(livepatch, "Y") statement in a livepatch module. Then the kernel module loader knows a module is indeed livepatch module and can behave accordingly. klp-convert, on the other hand relies on LIVEPATCH_* s

[PATCH v3 4/9] livepatch: Add klp-convert annotation helpers

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Define macros KLP_MODULE_RELOC and KLP_SYMPOS in include/linux/livepatch.h to improve user-friendliness of the livepatch annotation process. Signed-off-by: Josh Poimboeuf Signed-off-by: Joao Moreira Signed-off-by: Joe Lawrence --- include/linux/livepatch.h | 12 +

[PATCH v3 3/9] livepatch: Add klp-convert tool

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Livepatches may use symbols which are not contained in its own scope, and, because of that, may end up compiled with relocations that will only be resolved during module load. Yet, when the referenced symbols are not exported, solving this relocation requires information on t

[PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Define klp prefixes in include/uapi/linux/livepatch.h, and use them for replacing hard-coded values in kernel/livepatch/core.c. Update MAINTAINERS. Note: Add defines to uapi as these are also to be used by a newly introduced klp-convert script. Signed-off-by: Josh Poimboeu

[PATCH v3 2/9] kbuild: Support for Symbols.list creation

2019-04-10 Thread Joe Lawrence
From: Joao Moreira For automatic resolution of livepatch relocations, a file called Symbols.list is used. This file maps symbols within every compiled kernel object allowing the identification of symbols whose name is unique, thus relocation can be automatically inferred, or providing information

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) Mathieu Desnoyers wrote: > - On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: > > > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >> Hi, > >> > >> We are about to include the code signature requi

Re: [PATCH 01/12] s390: remove -fno-strength-reduce flag

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:14 +0200 Arnd Bergmann wrote: > This was added as a workaround for really old compilers, and it prevents > building with clang now. I can see no reason for keeping it, as it has > already been removed for most architectures in the pre-git era, so > let's remove it everyw

Re: rseq/s390: choosing code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 11:52 AM, schwidefsky schwidef...@de.ibm.com wrote: > On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) > Mathieu Desnoyers wrote: > >> - On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: >> >> > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) >> > Mathieu Desn

Re: [PATCH 04/12] s390: qeth: address type mismatch warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:17 +0200 Arnd Bergmann wrote: > clang produces a harmless warning for each use for the qeth_adp_supported > macro: > > drivers/s390/net/qeth_l2_main.c:559:31: warning: implicit conversion from > enumeration type 'enum qeth_ipa_setadp_cmd' to > different enumerati

Re: [PATCH 02/12] s390: don't build vdso32 with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:15 +0200 Arnd Bergmann wrote: > clang does not support 31 bit object files on s390, so skip > the 32-bit vdso here, and only build it when using gcc to compile > the kernel. > > Signed-off-by: Arnd Bergmann Added to s390/linux:features for the next merge window. Thank

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-10 Thread Martin Schwidefsky
On Tue, 9 Apr 2019 11:54:30 +0200 Harald Freudenberger wrote: > On 08.04.19 23:26, Arnd Bergmann wrote: > > The 'func_code' variable gets printed in debug statements without > > a prior initialization in multiple functions, as reported when building > > with clang: > > > > drivers/s390/crypto/zcr

Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:19 +0200 Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true > [-

Re: [PATCH 09/12] s390: make __load_psw_mask work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:22 +0200 Arnd Bergmann wrote: > clang fails to use the %O and %R inline assembly modifiers > the same way as gcc, leading to build failures with every use > of __load_psw_mask(): > > /tmp/nmi-4a9f80.s: Assembler messages: > /tmp/nmi-4a9f80.s:571: Error: junk at end of l

Re: [PATCH 08/12] s390: syscall_wrapper: avoid clang warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:21 +0200 Arnd Bergmann wrote: > Building system calls with clang results in a warning > about an alias from a global function to a static one: > > ../fs/namei.c:3847:1: warning: unused function '__se_sys_mkdirat' > [-Wunused-function] > SYSCALL_DEFINE3(mkdirat, int, df

Re: [PATCH 11/12] s390: make chkbss work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:24 +0200 Arnd Bergmann wrote: > llvm skips an empty .bss section entirely, which makes > the check fail with an unexpected error: > > /tmp/binutils-multi-test/bin/s390x-linux-gnu-objdump: section '.bss' > mentioned in a -j option, but not found in any input file > erro

RE: [PATCH RESEND 1/1] PCI: Add ATS-disable quirk for AMD Radeon R7 GPUs

2019-04-10 Thread Deucher, Alexander
> -Original Message- > From: Deucher, Alexander > Sent: Wednesday, April 10, 2019 10:47 AM > To: Bjorn Helgaas ; Nikolai Kostrigin > ; Suthikulpanit, Suravee > (suravee.suthikulpa...@amd.com) ; > Lendacky, Thomas ; Kuehling, Felix > (felix.kuehl...@amd.com) ; Koenig, Christian > (christian.

<    1   2   3   4   5   6   7   8   9   >