[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

[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

[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

[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

[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

[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

[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

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

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

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

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

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] 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 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()

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

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

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 >

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

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:

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

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

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.

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

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] ARM: dts: stm32: add power supply of otm8009a on stm32mp157c-dk2

2019-04-10 Thread Alexandre Torgue
Hi Yannick On 3/29/19 11:13 AM, Yannick Fertré wrote: This patch adds a new property (power-supply) to panel otm8009a (orisetech) on stm32mp157c-dk2 & regulator v3v3 which is always set on until the implementation of regulator driver. Signed-off-by: Yannick Fertré ---

Re: [PATCH RESEND V11 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-04-10 Thread Rob Herring
:u?w]

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

2019-04-10 Thread Thomas-Mich Richter
On 4/9/19 10:53 AM, Mark Rutland wrote: > On Mon, Apr 08, 2019 at 11:50:31AM +0200, Peter Zijlstra wrote: >> On Mon, Apr 08, 2019 at 10:22:29AM +0200, Peter Zijlstra wrote: >>> On Mon, Apr 08, 2019 at 09:12:28AM +0200, Thomas-Mich Richter wrote: >> . >> >> Instead encode the CPU number in

Re: [RFC patch 41/41] lib/stackdepot: Remove obsolete functions

2019-04-10 Thread Alexander Potapenko
On Wed, Apr 10, 2019 at 1:06 PM Thomas Gleixner wrote: > > No more users of the struct stack_trace based interfaces. > > Signed-off-by: Thomas Gleixner Acked-by: Alexander Potapenko > --- > include/linux/stackdepot.h |4 > lib/stackdepot.c | 20 > 2

Re: [PATCH RESEND V11 1/4] dt-bindings: fsl: scu: add thermal binding

2019-04-10 Thread Rob Herring
On Wed, Apr 10, 2019 at 07:43:04AM +, Anson Huang wrote: > NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as > system controller, the system controller is in charge of system > power, clock and thermal sensors etc. management, Linux kernel > has to communicate with system controller

[PATCH] rtc: sirfsoc: Make sysrtc_regmap_config static

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

Re: [PATCH 2/2] ARM: dts: stm32: Enable STM32F769 clock driver

2019-04-10 Thread Alexandre Torgue
Hi Gabriel On 4/5/19 9:53 AM, Gabriel Fernandez wrote: This patch enables clocks for STM32F769 boards. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f769-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts

[PATCH v4 10/36] thunderbolt: Configure lanes when switch is initialized

2019-04-10 Thread Mika Westerberg
Thunderbolt 2 devices and beyond need to have additional bits set in link controller specific registers. This includes two bits in LC_SX_CTRL that tell the link controller which lane is connected and whether it is upstream facing or not. Signed-off-by: Mika Westerberg ---

[PATCH v4 01/36] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

2019-04-10 Thread Mika Westerberg
The XDomain protocol messages may start as soon as Thunderbolt control channel is started. This means that if the other host starts sending ThunderboltIP packets early enough they will be passed to the network driver which then gets confused because its resume hook is not called yet. Fix this by

[PATCH v4 06/36] thunderbolt: Do not allocate switch if depth is greater than 6

2019-04-10 Thread Mika Westerberg
Maximum depth in Thunderbolt topology is 6 so make sure it is not possible to allocate switches that exceed the depth limit. While at it update tb_switch_alloc() to use upper/lower_32_bits() following tb_switch_alloc_safe_mode(). Signed-off-by: Mika Westerberg --- drivers/thunderbolt/icm.c

Re: [RFC patch 19/41] lib/stackdepot: Provide functions which operate on plain storage arrays

2019-04-10 Thread Alexander Potapenko
On Wed, Apr 10, 2019 at 1:05 PM Thomas Gleixner wrote: > > The struct stack_trace indirection in the stack depot functions is a truly > pointless excercise which requires horrible code at the callsites. > > Provide interfaces based on plain storage arrays. > > Signed-off-by: Thomas Gleixner

[PATCH v2 5/6] dt-bindings: leds: Add LED bindings for the LM36274

2019-04-10 Thread Dan Murphy
Add the LM36274 LED specific bindings. Signed-off-by: Dan Murphy --- v2 - Changed 29-V to 29V - https://lore.kernel.org/patchwork/patch/1058779/ .../devicetree/bindings/leds/leds-lm36274.txt | 82 +++ 1 file changed, 82 insertions(+) create mode 100644

[PATCH v4 29/36] thunderbolt: Add XDomain UUID exchange support

2019-04-10 Thread Mika Westerberg
Currently ICM has been handling XDomain UUID exchange so there was no need to have it in the driver yet. However, since now we are going to add the same capabilities to the software connection manager it needs to be handled properly. For this reason modify the driver XDomain protocol handling so

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 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': > (.text+0xef6): undefined reference to `nand_bch_free' >

[PATCH v4 31/36] thunderbolt: Make tb_switch_alloc() return ERR_PTR()

2019-04-10 Thread Mika Westerberg
In order to detect possible connections to other domains we need to be able to find out why tb_switch_alloc() fails so make it return ERR_PTR() instead. This allows the caller to differentiate between errors such as -ENOMEM which comes from the kernel and for instance -EIO which comes from the

[PATCH v2 3/6] mfd: ti-lmu: Add LM36274 support to the ti-lmu

2019-04-10 Thread Dan Murphy
Add the LM36274 register support to the ti-lmu MFD driver. Signed-off-by: Dan Murphy --- v2 - No changes - https://lore.kernel.org/patchwork/patch/1058780/ drivers/mfd/Kconfig | 5 ++--- drivers/mfd/ti-lmu.c| 14 ++

[PATCH v2 2/6] dt-bindings: mfd: Add lm36274 bindings to ti-lmu

2019-04-10 Thread Dan Murphy
Add the LM36274 backlight driver with regulator support. This is a multi-function device for backlight applications. Backlight properties will be documented in it's a supplemental bindings document. Regulator support is documented in the regulator/lm363x-regulator.txt

[PATCH v2 6/6] leds: lm36274: Introduce the TI LM36274 LED driver

2019-04-10 Thread Dan Murphy
Introduce the LM36274 LED driver. This driver uses the ti-lmu MFD driver to probe this LED driver. The driver configures only the LED registers and enables the outputs according to the config file. The driver utilizes the ti-lmu-led-common framework to set the brightness bits. Signed-off-by:

[PATCH v2 4/6] regulator: lm363x: Add support for LM36274

2019-04-10 Thread Dan Murphy
Adding regulator support for the LM36274 backlight driver. This device can leverage this existing code as the functionality and registers are common enough between the LM36274 and the LM363x series of devices. Signed-off-by: Dan Murphy --- v2 - No changes -

[PATCH v4 22/36] thunderbolt: Add support for full PCIe daisy chains

2019-04-10 Thread Mika Westerberg
Currently the software connection manager (tb.c) has only supported creating a single PCIe tunnel, no PCIe device daisy chaining has been supported so far. This updates the software connection manager so that it now can create PCIe tunnels for full chain of six devices. Because PCIe allows DMA

Re: [PATCH] watchdog: wdat_wdt: fix get_timeleft call for wdat_wdt

2019-04-10 Thread Guenter Roeck
On 4/10/19 5:49 AM, Bryan Tan wrote: The get_timeleft call for wdat_wdt was using ACPI_WDAT_GET_COUNTDOWN when running an action on the device, which would return the configured countdown, instead of ACPI_WDAT_GET_CURRENT_COUNTDOWN, which returns the time left before the watchdog will fire. This

[PATCH v2 1/6] regulator: lm363x: Make the gpio register enable flexible

2019-04-10 Thread Dan Murphy
The use of and enablement of the GPIO can be used across devices. Use the enable_reg in the regulator descriptor for the register to write. Signed-off-by: Dan Murphy --- v2 - No changes - https://lore.kernel.org/patchwork/patch/1058777/ drivers/regulator/lm363x-regulator.c | 4 ++-- 1 file

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

2019-04-10 Thread Guenter Roeck
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 likelyhood of bugs. Other improvements as listed below. The conversion was done

Re: [PATCH v2 0/3] Add support for STPMIC1

2019-04-10 Thread Alexandre Torgue
Hi Pascal On 4/9/19 11:07 AM, Pascal PAILLET-LME wrote: Add support for STPMIC1 on: - stm32mp157c ed1 board - stm32mp157a dk1 board - arm multi_v7_defconfig Pascal Paillet (3): changes in v2: * Describe why we disable the DMAs for PMIC   ARM: dts: stm32: add stpmic1 support on stm32mp157c

Re: [PATCH v3 1/3] perf: use hweight64 instead of hweight_long

2019-04-10 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 10, 2019 at 10:10:42AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Apr 10, 2019 at 10:08:41AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Apr 10, 2019 at 04:16:43PM +0800, Mao Han escreveu: > > > On 32-bits platform with more than 32 registers, the 64 bits mask is > >

[tip:timers/urgent] alarmtimer: Return correct remaining time

2019-04-10 Thread tip-bot for Andrei Vagin
Commit-ID: 07d7e12091f4ab869cc6a4bb276399057e73b0b3 Gitweb: https://git.kernel.org/tip/07d7e12091f4ab869cc6a4bb276399057e73b0b3 Author: Andrei Vagin AuthorDate: Sun, 7 Apr 2019 21:15:42 -0700 Committer: Thomas Gleixner CommitDate: Wed, 10 Apr 2019 15:23:26 +0200 alarmtimer: Return

3b4ba6643d ("locking/rwsem: Enhance DEBUG_RWSEMS_WARN_ON() .."): WARNING: CPU: 0 PID: 0 at kernel/locking/rwsem.h:273 up_write

2019-04-10 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.locking/core commit 3b4ba6643d26a95e08067fca9a5da1828f9afabf Author: Waiman Long AuthorDate: Thu Apr 4 13:43:15 2019 -0400 Commit: Ingo

[PATCH] spi: spi-mem: Make spi_mem_default_supports_op() static inline

2019-04-10 Thread Yue Haibing
From: YueHaibing Stub helper spi_mem_default_supports_op() should be set to static inline Signed-off-by: YueHaibing --- include/linux/spi/spi-mem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h index 1941b84..af9ff2f 100644 ---

[PATCH] 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):

Re: [PATCH 12/22] watchdog: da9063_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Hi Steve, On 4/10/19 5:50 AM, Steve Twiss wrote: Hi Guenter, On 08 April 2019 20:39, Guenter Roeck: Subject: [PATCH 12/22] watchdog: da9063_wdt: Use 'dev' instead of dereferencing it repeatedly Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly.

Re: [LINUX PATCH v3] spi: spi-mem: Fix build error without CONFIG_SPI_MEM

2019-04-10 Thread YueHaibing
On 2019/4/10 20:35, Mark Brown wrote: > On Wed, Apr 10, 2019 at 12:30:37PM +, Naga Sureshkumar Relli wrote: > >>> Yeah, I'm surprised that builds... > >> Sorry, I tested with CONFIG_SPI_MEM enabled. It's my bad. > > I also see that I'd queued an earlier version for application. I've > lost

Re: [PATCH v3 1/3] perf: use hweight64 instead of hweight_long

2019-04-10 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 10, 2019 at 10:08:41AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Apr 10, 2019 at 04:16:43PM +0800, Mao Han escreveu: > > On 32-bits platform with more than 32 registers, the 64 bits mask is > > truncate to the lower 32 bits and the return value of hweight_long will > > always

Re: [PATCH v3 1/3] perf: use hweight64 instead of hweight_long

2019-04-10 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 10, 2019 at 04:16:43PM +0800, Mao Han escreveu: > On 32-bits platform with more than 32 registers, the 64 bits mask is > truncate to the lower 32 bits and the return value of hweight_long will > always smaller than 32. When kernel outputs more than 32 registers, but > the user perf

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

2019-04-10 Thread Marc Gonzalez
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 likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinelle using the >

Re: [PATCH v3] perf annotate/report: Remove hist__account_cycles from callback

2019-04-10 Thread Arnaldo Carvalho de Melo
Em Sat, Mar 16, 2019 at 05:16:17AM +0800, Jin Yao escreveu: > The hist__account_cycles is executed when the hist_iter__branch_callback > is called. But it looks it's not necessary. In hist__account_cycles, it > already walks on all branch entries. > > This patch moves the hist__account_cycles out

Re: [PATCH 1/3] sound: Add hikey960 i2s audio driver

2019-04-10 Thread Daniel Baluta
Hello Pengcheng, Make sure you run ./scripts/checkpatch.pl --strict yourpatchfile.patch On Thu, Feb 28, 2019 at 4:15 PM Pengcheng Li wrote: > > From: Youlin Wang > > Add i2s driver for hisi3660 soc found on the hikey960 board. > Add conpile line in make file. > Technical support by Guangke Ji.

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: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 help so it's fine

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

2019-04-10 Thread David Laight
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 --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h > index 28406aa1136d..7bc7ac9d2a44

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

2019-04-10 Thread Flavio Suligoi
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. Signed-off-by: Flavio Suligoi --- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-pxa2xx.c

[PATCH 1/2] spi: pxa2xx: fix SCR (divisor) calculation

2019-04-10 Thread Flavio Suligoi
Calculate the divisor for the SCR (Serial Clock Rate), avoiding that the SSP transmission rate can be greater than the device rate. When the division between the SSP clock and the device rate generates a reminder, we have to increment by one the divisor. In this way the resulting SSP clock will

Re: No 8254 PIT & no HPET on new Intel N3350 platforms causes kernel panic during early boot

2019-04-10 Thread Thomas Gleixner
On Tue, 9 Apr 2019, Daniel Drake wrote: > On Wed, Apr 3, 2019 at 7:21 PM Thomas Gleixner wrote: > > That means we need the following decision logic: > > > > 1) If HPET is available in ACPI, boot normal. > > > > 2) If HPET is not available, verify that the PIT actually counts. If it > >

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

2019-04-10 Thread Arnaldo Carvalho de Melo
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 for both hardware threads in a core. > > > > We

Re: [PATCH 0/2] ARM: dts: stm32: add spdifrx support on stm32mp157c

2019-04-10 Thread Alexandre Torgue
Hi Olivier On 3/29/19 11:12 AM, Olivier Moysan wrote: This patchset adds support of STM32 SPDFIRX on stm32mp157c Olivier Moysan (2): ARM: dts: stm32: add spdifrx support on stm32mp157c ARM: dts: stm32: add spdfirx pins to stm32mp157c arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 13

RE: [PATCH 12/22] watchdog: da9063_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Steve Twiss
Hi Guenter, On 08 April 2019 20:39, Guenter Roeck: > Subject: [PATCH 12/22] watchdog: da9063_wdt: Use 'dev' instead of > dereferencing it repeatedly > > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > The conversion was done automatically

Re: Device Description for FPGA Components on x86 system

2019-04-10 Thread Federico Vaga
Hi, P.S. sorry if I'm too verbose, hopefully it is useful thanks for the answer On Wednesday, April 10, 2019 12:30:14 PM CEST Eric Schwarz wrote: > Hi, > > everything you want is already available and on the way to mainline > concerning support for various FPGA loading modes or available for >

Re: [RFC patch 29/41] btrfs: ref-verify: Simplify stack trace retrieval

2019-04-10 Thread David Sterba
On Wed, Apr 10, 2019 at 12:28:23PM +0200, Thomas Gleixner wrote: > Replace the indirection through struct stack_trace with an invocation of > the storage array based interface. > > Signed-off-by: Thomas Gleixner > Cc: David Sterba > Cc: Chris Mason > Cc: Josef Bacik > Cc:

[PATCH] watchdog: wdat_wdt: fix get_timeleft call for wdat_wdt

2019-04-10 Thread Bryan Tan
The get_timeleft call for wdat_wdt was using ACPI_WDAT_GET_COUNTDOWN when running an action on the device, which would return the configured countdown, instead of ACPI_WDAT_GET_CURRENT_COUNTDOWN, which returns the time left before the watchdog will fire. This change corrects that. Signed-off-by:

Re: [PATCH] mm/memory_hotplug: Drop memory device reference after find_memory_block()

2019-04-10 Thread David Hildenbrand
On 10.04.19 14:28, Oscar Salvador wrote: > On Wed, Apr 10, 2019 at 12:14:55PM +0200, David Hildenbrand wrote: >> While current node handling is probably terribly broken for memory block >> devices that span several nodes (only possible when added during boot, >> and something like that should be

Re: [RFC patch 17/41] tracing: Make stack_trace_print() static and rename it

2019-04-10 Thread Steven Rostedt
On Wed, 10 Apr 2019 12:28:11 +0200 Thomas Gleixner wrote: > It's only used in the source file where it is defined and it's using the > stack_trace_ namespace. Rename it to free it up for stack trace related > functions. > Can you put it back to its original name "print_max_stack()" which was

<    1   2   3   4   5   6   7   8   9   >