[PATCH v1] memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20

2018-07-19 Thread Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --gi

Re: [DISCUSSION] spi multi chipselect support

2018-07-19 Thread Mark Brown
On Wed, Jul 18, 2018 at 07:19:19PM +0200, Lars-Peter Clausen wrote: > My preferred solution would to have something like > i2c_new_secondary_device(), but for SPI. This way the driver that binds to > the compatible string can allocate devices for additional chip selects as > necessary. Also make u

[PATCH] x86: Use PTR_ERR_OR_ZERO

2018-07-19 Thread YueHaibing
Replace IS_ERR/PTR_ERR Signed-off-by: YueHaibing --- arch/x86/kernel/pcspeaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/pcspeaker.c b/arch/x86/kernel/pcspeaker.c index da5190a..4a710ff 100644 --- a/arch/x86/kernel/pcspeaker.c +++ b/arch/x86/kernel/pcs

[PATCH v4 3/8] dt: bindings: Move tegra20-emc binding to memory-controllers directory

2018-07-19 Thread Dmitry Osipenko
Move tegra20-emc binding to the memory-controllers directory for consistency with the other Tegra memory bindings. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../{arm/tegra => memory-controllers}/nvidia,tegra20-emc.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) ren

Re: [PATCHv5 08/19] x86/mm: Introduce variables to store number, shift and mask of KeyIDs

2018-07-19 Thread Kirill A. Shutemov
On Thu, Jul 19, 2018 at 03:18:03PM +0200, Thomas Gleixner wrote: > On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > > On Thu, Jul 19, 2018 at 02:37:35PM +0200, Thomas Gleixner wrote: > > > On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > > > > On Wed, Jul 18, 2018 at 04:19:10PM -0700, Dave Hansen w

[PATCH v4 2/8] dt: bindings: tegra20-emc: Document clock property

2018-07-19 Thread Dmitry Osipenko
Embedded memory controller has a corresponding clock, document the clock property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[PATCH v4 6/8] clk: tegra20: Turn EMC clock gate into divider

2018-07-19 Thread Dmitry Osipenko
Kernel should never gate the EMC clock as it causes immediate lockup, so removing clk-gate functionality doesn't affect anything. Turning EMC clk gate into divider allows to implement glitch-less EMC scaling, avoiding reparenting to a backup clock. Signed-off-by: Dmitry Osipenko Acked-by: Peter D

[PATCH v4 5/8] ARM: dts: tegra20: Add clock entry to External Memory Controller

2018-07-19 Thread Dmitry Osipenko
Add clock entry into the EMC DT node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 9eb4163a4390..979f38293fe5 100644 --- a/arch/arm/boot/dts/tegra20.dtsi

[PATCH v4 7/8] clk: tegra20: Check whether direct PLLM sourcing is turned off for EMC

2018-07-19 Thread Dmitry Osipenko
Ensure that direct PLLM sourcing is turned off for EMC as we don't support that configuration in the clk driver. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra20.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/tegra/clk-

[PATCH v4 0/8] Tegra20 External Memory Controller driver

2018-07-19 Thread Dmitry Osipenko
Hello, Couple years ago the Tegra20 EMC driver was removed from the kernel due to incompatible changes in the Tegra's clock driver. This patchset introduces a modernized EMC driver. Currently the sole purpose of the driver is to initialize DRAM frequency to maximum rate during of the kernels boot-

[PATCH v4 8/8] memory: tegra: Introduce Tegra20 EMC driver

2018-07-19 Thread Dmitry Osipenko
Introduce driver for the External Memory Controller (EMC) found on Tegra20 chips, which controls the external DRAM on the board. The purpose of this driver is to program memory timing for external memory on the EMC clock rate change. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --

[PATCH v4 1/8] dt: bindings: tegra20-emc: Document interrupt property

2018-07-19 Thread Dmitry Osipenko
EMC has a dedicated interrupt that is used to notify about completion of HW operations. Document the interrupt property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring Acked-by: Peter De Schrijver --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed,

[PATCH v4 4/8] ARM: dts: tegra20: Add interrupt entry to External Memory Controller

2018-07-19 Thread Dmitry Osipenko
Add interrupt entry into the EMC DT node. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 15b73bd377f0..9eb4163a4390 100644 --

Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO

2018-07-19 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 08:50:38AM -0400, Johannes Weiner wrote: > On Thu, Jul 19, 2018 at 11:26:14AM +0200, Peter Zijlstra wrote: > > On Wed, Jul 18, 2018 at 02:03:18PM +0200, Peter Zijlstra wrote: > > > > > Leaving us just 5 bytes short of needing a single cacheline :/ > > > > > > struct ponies

Re: [PATCH 1/3] mm/page_alloc: Move ifdefery out of free_area_init_core

2018-07-19 Thread Pavel Tatashin
> + zone_set_nid(nid); > > This should be: > > zone_set_nid(zone, nid); > > I fixed it up in your patch, I hope that is ok. Yes, thank you. I fixed this when compile tested this patch, but must have forgotten to regenerate the patch before sending it. Thank you, Pavel > > Thanks > -

Re: [PATCH 4.4 0/3] 4.4.142-stable review

2018-07-19 Thread Guenter Roeck
On 07/18/2018 08:01 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.142 release. There are 3 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCHv5 08/19] x86/mm: Introduce variables to store number, shift and mask of KeyIDs

2018-07-19 Thread Thomas Gleixner
On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > On Thu, Jul 19, 2018 at 02:37:35PM +0200, Thomas Gleixner wrote: > > On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > > > On Wed, Jul 18, 2018 at 04:19:10PM -0700, Dave Hansen wrote: > > > > > } else { > > > > > /* > > > > >

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Thu, Jul 19, 2018 at 08:16:47AM +0200, David Woodhouse wrote: > > > On Wed, 2018-07-18 at 20:11 -0700, Paul E. McKenney wrote: > > > > > That is interesting. As I replied to Paul, we are already calling > > > rcu_user_enter/exit() on guest_enter/exit_irqsoff(). So I'm wondering why > > > you'

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Wed, Jul 18, 2018 at 08:11:52PM -0700, Paul E. McKenney wrote: > On Thu, Jul 19, 2018 at 02:32:06AM +0200, Frederic Weisbecker wrote: > > On Wed, Jul 11, 2018 at 06:03:42PM +0100, David Woodhouse wrote: > > > On Wed, 2018-07-11 at 09:49 -0700, Paul E. McKenney wrote: > > > > And here is an updat

Re: [PATCH 0/4][RFC v2] Introduce the in-kernel hibernation encryption

2018-07-19 Thread Yu Chen
On Thu, Jul 19, 2018 at 01:01:49PM +0200, Pavel Machek wrote: > On Thu 2018-07-19 07:58:51, Yu Chen wrote: > > Hi, > > On Wed, Jul 18, 2018 at 10:22:35PM +0200, Pavel Machek wrote: > > > On Thu 2018-07-19 00:38:06, Chen Yu wrote: > > > > As security becomes more and more important, we add the in-ke

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Thu, Jul 19, 2018 at 09:20:33AM +0200, David Woodhouse wrote: > On Thu, 2018-07-19 at 08:45 +0200, Christian Borntraeger wrote: > > > > > My thought would be something like this: > > >  > > >   if (context_tracking_cpu_is_enabled()) > > >   rcu_kvm_enter(); > > >   else > >

Re: [RFC PATCH v2 1/2] ata: ahci: Support state with min power and Partial low power state

2018-07-19 Thread Hans de Goede
Hi, On 13-07-18 17:06, Srinivas Pandruvada wrote: Hi Hans, On Fri, 2018-07-13 at 11:08 +0200, Hans de Goede wrote: Hi, On 13-07-18 00:27, Srinivas Pandruvada wrote: Currently when min_power policy is selected, the partial low power state is not entered and link will try aggressively enter to

Re: [PATCHv5 08/19] x86/mm: Introduce variables to store number, shift and mask of KeyIDs

2018-07-19 Thread Kirill A. Shutemov
On Thu, Jul 19, 2018 at 02:37:35PM +0200, Thomas Gleixner wrote: > On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > > On Wed, Jul 18, 2018 at 04:19:10PM -0700, Dave Hansen wrote: > > > > } else { > > > > /* > > > > * Reset __PHYSICAL_MASK. > > > > @@ -591,6

[U-BOOT internal] ARM: dts: stm32: Add clk-lse node's label on stm32f429

2018-07-19 Thread patrice.chotard
From: Patrice Chotard Add missing clk_lse label for node clk-lse. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f429.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ede77e0f1c41..6427

Re: [PATCH v1] lib: Remove 'default n' in Kconfig for tests

2018-07-19 Thread Coly Li
On 2018/7/19 4:51 PM, Andy Shevchenko wrote: > It seems contributors follow the style of Kconfig entries where explicit > 'default n' is present. The default 'default' is 'n' already, thus, drop > these lines from Kconfig to make it more clear. > > Cc: Coly Li > Signed-off-by: Andy Shevchenko A

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-19 Thread Christoph Hellwig
On Wed, Jul 18, 2018 at 12:06:26AM -0700, Randy Dunlap wrote: > All $ARCH look equivalent except for microblaze and nios2. > For those, the config SWAP in init/Kconfig (line 221) comes before (and > hence takes precedence) over arch/$(SRCARCH)/Kconfig settings, which is > def_bool n for both microb

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Paul E. McKenney
On Thu, Jul 19, 2018 at 12:23:34PM +0200, Christian Borntraeger wrote: > > > On 07/19/2018 09:20 AM, David Woodhouse wrote: > > On Thu, 2018-07-19 at 08:45 +0200, Christian Borntraeger wrote: > >> > >>> My thought would be something like this: > >>>   > >>>    if (context_tracking_cpu_is_enab

[PATCH 1/2] microblaze: use generic dma_noncoherent_ops

2018-07-19 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. This removes the direction-based optimizations in sync_{single,sg}_for_{cpu,device} which were marked untestested and do not match the usually very well tested {un,}map_{single,sg} implementations. Signed-off-by: Christoph Hellwig

Re: [PATCH V3 1/4] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support

2018-07-19 Thread Thomas Gleixner
On Thu, 19 Jul 2018, Tianyu Lan wrote: > On 7/19/2018 8:05 PM, Thomas Gleixner wrote: > > You already have the SPDX identifier. So the GPL boilerplate is not really > > required, unless your legal departement insist on it. > > > > Hi Thomas: > Thanks for your reminder. How about the followi

[PATCH] fuse: Add missed unlock_page() to fuse_readpages_fill()

2018-07-19 Thread Kirill Tkhai
The above error path returns with page unlocked, so this place seems also to behave the same. Signed-off-by: Kirill Tkhai --- fs/fuse/file.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 67648ccbdd43..fe8d84eb714a 100644 --- a/fs/fuse/file.c +++ b/f

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-19 Thread Keerthy
On Thursday 19 July 2018 06:06 PM, Johan Hovold wrote: > On Thu, Jul 19, 2018 at 05:52:17PM +0530, Keerthy wrote: >> On Thursday 19 July 2018 05:23 PM, Keerthy wrote: >>> On Thursday 19 July 2018 03:32 PM, Johan Hovold wrote: On Thu, Jul 12, 2018 at 10:37:37AM +0530, Keerthy wrote: > >

Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO

2018-07-19 Thread Johannes Weiner
On Thu, Jul 19, 2018 at 11:26:14AM +0200, Peter Zijlstra wrote: > On Wed, Jul 18, 2018 at 02:03:18PM +0200, Peter Zijlstra wrote: > > > Leaving us just 5 bytes short of needing a single cacheline :/ > > > > struct ponies { > > unsigned int tasks[3];

Re: [PATCH] ARM: dts: vf610: Add ZII CFU1 board

2018-07-19 Thread Fabio Estevam
Hi Andrey, On Wed, Jul 18, 2018 at 9:59 PM, Andrey Smirnov wrote: > +/ { > + model = "ZII VF610 CFU1 Board"; > + compatible = "zii,vf610cfu1", "zii,vf610dev", "fsl,vf610"; > + > + chosen { > + stdout-path = &uart0; > + }; > + > + memory { memory@8

Re: [PATCH V3 1/4] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support

2018-07-19 Thread Tianyu Lan
On 7/19/2018 8:05 PM, Thomas Gleixner wrote: > On Thu, 19 Jul 2018, Tianyu Lan wrote: >> @@ -0,0 +1,64 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> + >> +/* >> + * Hyper-V nested virtualization code. >> + * >> + * Copyright (C) 2018, Microsoft, Inc. >> + * >> + * Author : Lan Tianyu >> + * >> + *

Re: [PATCH v3 4/8] swap: Unify normal/huge code path in swap_page_trans_huge_swapped()

2018-07-19 Thread Christoph Hellwig
> static inline bool cluster_is_huge(struct swap_cluster_info *info) > { > - return info->flags & CLUSTER_FLAG_HUGE; > + if (IS_ENABLED(CONFIG_THP_SWAP)) > + return info->flags & CLUSTER_FLAG_HUGE; > + else > + return false; Nitpick: no need for an else after

Re: [PATCH v3 1/8] swap: Add comments to lock_cluster_or_swap_info()

2018-07-19 Thread Christoph Hellwig
On Thu, Jul 19, 2018 at 04:48:35PM +0800, Huang Ying wrote: > +/* > + * Determine the locking method in use for this device. Return > + * swap_cluster_info if SSD-style cluster-based locking is in place. > + */ > static inline struct swap_cluster_info *lock_cluster_or_swap_info( > struct sw

Re: [PATCHv5 08/19] x86/mm: Introduce variables to store number, shift and mask of KeyIDs

2018-07-19 Thread Thomas Gleixner
On Thu, 19 Jul 2018, Kirill A. Shutemov wrote: > On Wed, Jul 18, 2018 at 04:19:10PM -0700, Dave Hansen wrote: > > > } else { > > > /* > > >* Reset __PHYSICAL_MASK. > > > @@ -591,6 +592,9 @@ static void detect_tme(struct cpuinfo_x86 *c) > > >* between CPUs. > > >

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-19 Thread Johan Hovold
On Thu, Jul 19, 2018 at 05:52:17PM +0530, Keerthy wrote: > On Thursday 19 July 2018 05:23 PM, Keerthy wrote: > > On Thursday 19 July 2018 03:32 PM, Johan Hovold wrote: > >> On Thu, Jul 12, 2018 at 10:37:37AM +0530, Keerthy wrote: > >>> @@ -470,6 +476,9 @@ static void omap_rtc_power_off(void) > >>>

[PATCH v4 1/7] soc/tegra: pmc: Fix pad voltage configuration for Tegra186

2018-07-19 Thread Aapo Vienamo
Implement support for the PMC_IMPL_E_33V_PWR register which replaces PMC_PWR_DET register interface of the SoC generations preceding Tegra186. Also add the voltage bit offsets to the tegra186_io_pads[] table and the AO_HV pad. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/teg

[PATCH v4 5/7] dt-bindings: Add Tegra PMC pad configuration bindings

2018-07-19 Thread Aapo Vienamo
Document the pinctrl bindings used by the PMC driver for performing pad configuration. Both nvidia,tegra186-pmc.txt and nvidia,tegra20-pmc.txt are modified as they both cover SoC generations for which these bindings apply. Add a header defining Tegra PMC pad voltage configurations. Signed-off-by:

[PATCH v4 4/7] soc/tegra: pmc: Use X macro to generate IO pad tables

2018-07-19 Thread Aapo Vienamo
Refactor the IO pad tables into macro tables so that they can be reused to generate pinctrl pin descriptors. Also add a name field which is needed by pinctrl. Signed-off-by: Aapo Vienamo --- drivers/soc/tegra/pmc.c | 233 ++-- 1 file changed, 127 inser

[PATCH v4 6/7] soc/tegra: pmc: Remove public pad voltage APIs

2018-07-19 Thread Aapo Vienamo
Make tegra_io_pad_set_voltage() and tegra_io_pad_get_voltage() static and remove the prototypes from pmc.h. Remove enum tegra_io_pad_voltage and use the defines from instead. These functions aren't used outside of the pmc driver and new use cases should use the pinctrl interface instead. Signed-

[PATCH v4 7/7] soc/tegra: pmc: Implement pad configuration via pinctrl

2018-07-19 Thread Aapo Vienamo
Register a pinctrl device and implement get and set functions for PIN_CONFIG_LOW_POWER_MODE and PIN_CONFIG_POWER_SOURCE parameters. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 187 +++- 1 file changed, 185 insertions

[PATCH v4 3/7] soc/tegra: pmc: Implement tegra_io_pad_is_powered()

2018-07-19 Thread Aapo Vienamo
Implement a function to query whether a pad is in deep power down mode. This will is needed by the pinctrl callbacks. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/driv

[PATCH v4 2/7] soc/tegra: pmc: Factor out DPD register bit calculation

2018-07-19 Thread Aapo Vienamo
Factor out the the code to calculate the correct DPD register and bit number for a given pad. This logic will be needed to query the status register. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 20 +--- 1 file changed, 17 insertions(+), 3 delet

[PATCH v4 0/7] Tegra PMC pinctrl pad configuration

2018-07-19 Thread Aapo Vienamo
Hi all, The Tegra Power Management Controller (PMC) can set pad power states and voltage configuration. This series implements pinctrl interfaces for configuring said pad properties. Changelog v4: - Revise the dt-bindings docs v3: - Don't expose tegra_io_pad_is_powered() -

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-19 Thread Keerthy
On Thursday 19 July 2018 05:23 PM, Keerthy wrote: > > > On Thursday 19 July 2018 03:32 PM, Johan Hovold wrote: >> On Thu, Jul 12, 2018 at 10:37:37AM +0530, Keerthy wrote: >>> Cut down the shutdown time from 2 seconds to 1 sec. In case of roll >>> over try again. >>> >>> Signed-off-by: Keerthy

Re: [PATCH 1/3] mm/page_alloc: Move ifdefery out of free_area_init_core

2018-07-19 Thread Oscar Salvador
On Wed, Jul 18, 2018 at 10:11:50AM -0400, Pavel Tatashin wrote: > On 18-07-18 14:47:20, osalva...@techadventures.net wrote: > > From: Oscar Salvador > > > > Moving the #ifdefs out of the function makes it easier to follow. > > > > Signed-off-by: Oscar Salvador > > Hi Oscar, > > Reviewed-by: P

Re: [PATCH V3 1/4] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support

2018-07-19 Thread Thomas Gleixner
On Thu, 19 Jul 2018, Tianyu Lan wrote: > @@ -0,0 +1,64 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +/* > + * Hyper-V nested virtualization code. > + * > + * Copyright (C) 2018, Microsoft, Inc. > + * > + * Author : Lan Tianyu > + * > + * This program is free software; you can redistribute it an

Re: [PATCH] remoteproc: qcom: fix Q6V5_WCSS dependencies

2018-07-19 Thread Sricharan R
Hi Arnd, On 7/18/2018 4:46 PM, Arnd Bergmann wrote: > A new driver got added that depends on QCOM_SMD and fails to link > as built-in with CONFIG_QCOM_SMD=m: > > drivers/remoteproc/qcom_common.o: In function `smd_subdev_stop': > qcom_common.c:(.text+0x674): undefined reference to `qcom_smd_unregi

[PATCH] sched/fair: remove #ifdefs from scale_rt_capacity

2018-07-19 Thread Vincent Guittot
Reuse cpu_util_irq() that has been defined for schedutil and set irq util to 0 when !CONFIG_IRQ_TIME_ACCOUNTING But the compiler is not able to optimize the sequence (at least with aarch64 GCC 7.2.1) free *= (max - irq); free /= max; when irq is fixed to 0 Add a new inline functio

Re: [PATCH 0/4] usb-audio: Add UAC3 Power Domains

2018-07-19 Thread Takashi Iwai
st... thanks, Takashi > Power Domains affecting other units independently are required to be > bypassed via a Selector Unit first before the host can change the > power state. This sceneario is not covered in this patchset. > > based on next-20180719 > > Jorge Sanjuan (4

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-19 Thread Keerthy
On Thursday 19 July 2018 03:32 PM, Johan Hovold wrote: > On Thu, Jul 12, 2018 at 10:37:37AM +0530, Keerthy wrote: >> Cut down the shutdown time from 2 seconds to 1 sec. In case of roll >> over try again. >> >> Signed-off-by: Keerthy >> --- >> >> Changes in v4: >> >> * Fixed a compilation issu

Re: [PATCH 2/2] arm64: Clear the stack

2018-07-19 Thread Mark Rutland
On Wed, Jul 18, 2018 at 02:10:13PM -0700, Laura Abbott wrote: > > Implementation of stackleak based heavily on the x86 version > > Signed-off-by: Laura Abbott > --- > Since last time: Minor style cleanups. Re-wrote check_alloca to > correctly handle all stack types. While doing that, I also real

[PATCH 3/4] ALSA: usb-audio: Operate UAC3 Power Domains in PCM callbacks

2018-07-19 Thread Jorge Sanjuan
Make use of UAC3 Power Domains associated to an Audio Streaming path within the PCM's logic. This means, when there is no audio being transferred (pcm is closed), the host will set the Power Domain associated to that substream to state D1. When audio is being transferred (from hw_params onwards), t

[PATCH 1/4] ALSA: usb-audio: Initial Power Domain support

2018-07-19 Thread Jorge Sanjuan
Thee USB Audio Class 3 (UAC3) introduces Power Domains as a new feature to let a host turn individual parts of an audio function to different power states via USB requests. This lets the device get to know a bit amore about what the host is up to in order to optimize power consumption efficiently.

[PATCH 0/4] usb-audio: Add UAC3 Power Domains

2018-07-19 Thread Jorge Sanjuan
ables this feature (?). Power Domains affecting other units independently are required to be bypassed via a Selector Unit first before the host can change the power state. This sceneario is not covered in this patchset. based on next-20180719 Jorge Sanjuan (4): ALSA: usb-audio: Initial Po

[PATCH 4/4] ALSA: usb-audio: Add UAC3 Power Domains to suspend/resume

2018-07-19 Thread Jorge Sanjuan
Set the UAC3 Power Domain state for an Audio Streaming interface to D2 state before suspending the device (usb_driver callback). This lets the device know there is no intention to use any of the Units in the Audio Function and that the host is not going to even listen for wake-up events (interrupts

[PATCH 2/4] ALSA: usb-audio: AudioStreaming Power Domain parsing

2018-07-19 Thread Jorge Sanjuan
Power Domains in the UAC3 spec are mainly intended to be associated to an Input or Output Terminal so the host changes the power state of the entire capture or playback path within the topology. This patch adds support for finding Power Domains associated to an Audio Streaming Interface (bTerminal

Re: arm: v4.18-rc5 with cpuidle on TC2 (A7 boot) spectre v2 issue

2018-07-19 Thread Russell King - ARM Linux
On Thu, Jul 19, 2018 at 11:39:19AM +0100, Morten Rasmussen wrote: > On Thu, Jul 19, 2018 at 11:01:10AM +0100, Russell King - ARM Linux wrote: > > On Thu, Jul 19, 2018 at 11:42:50AM +0200, Dietmar Eggemann wrote: > > > Hi, > > > > > > running v4.18-rc5 (plus still missing "power: vexpress: fix corr

Re: [PATCH 1/2] mm: Keep int fields in struct shrink_control together

2018-07-19 Thread Kirill Tkhai
On 19.07.2018 14:10, Michal Hocko wrote: > On Thu 19-07-18 13:51:19, Kirill Tkhai wrote: >> gfp_t is of unsigned type, so let's move nid to keep >> them together. > > I guess you meant unsigned int so you can fill up a hole in > shrink_control and as such reduce the stack consumption a bit (at leas

Re: [PATCH v2 2/4] pci: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2018-07-19 Thread Lorenzo Pieralisi
On Thu, Jul 19, 2018 at 04:04:34PM +0530, Vignesh R wrote: > Hi Lorenzo, > > On Wednesday 18 July 2018 04:32 PM, Lorenzo Pieralisi wrote: > > On Wed, Jun 27, 2018 at 05:59:17PM +0530, Vignesh R wrote: > >> Errata i870 is applicable in both EP and RC mode. Therefore rename > >> function dra7xx_pcie

Re: [PATCH 2/2] mm: Make flags of unsigned type in struct shrinker

2018-07-19 Thread Michal Hocko
On Thu 19-07-18 13:51:27, Kirill Tkhai wrote: > Currently, there are two flags only, so unsigned > is more then enough. Also, move int seeks to keep > these fields together. a slightly more explanation _why_ would be really helpful. I suspect this is to pack the structure better, struct shrinker

[PATCH v2] arm64: dts: msm8916: drop legacy suffix for clocks used by MSM DRM driver

2018-07-19 Thread Niklas Cassel
Drop legacy suffix for clocks used by MSM DRM driver. The _clk suffix has been deprecated since commit 20c3bb80235 ("drm/msm: drop _clk suffix from clk names"). Fixes the following warnings during boot: msm_dsi_phy 1a98300.dsi-phy: Using legacy clk name binding. Use "iface" instead of "iface_c

Re: [PATCH 1/2] mm: Keep int fields in struct shrink_control together

2018-07-19 Thread Michal Hocko
On Thu 19-07-18 13:51:19, Kirill Tkhai wrote: > gfp_t is of unsigned type, so let's move nid to keep > them together. I guess you meant unsigned int so you can fill up a hole in shrink_control and as such reduce the stack consumption a bit (at least on 64b). An output from pahole is usually a gre

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-19 Thread Alan Cox
> > > > > + if (!port->iso7816_config) > > > + return -ENOIOCTLCMD; > > > > Why this error value? > > > > It was a mimic of RS485. Which is what you want - it means the upper tty layer knows to offer the ioctl to other places and then return appropriately. Alan

Re: [PATCH 1/2] arm64: Introduce current_stack_type

2018-07-19 Thread Mark Rutland
Hi Laura, On Wed, Jul 18, 2018 at 02:10:12PM -0700, Laura Abbott wrote: > > In preparation for enabling the stackleak plugin on arm64, > we need a way to get the bounds of the current stack. > Introduce a new primitive current_stack_type which is similar > to x86's get_stack_info. Utilize that to

Re: [RFC PATCH 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-19 Thread Taniya Das
Hi Doug, Please find my comments inline. On 7/18/2018 11:34 PM, Douglas Anderson wrote: Add both the interface and core clock. Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sdm845.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/drivers

Re: Commit 554c8aa8ecad causing severe performance degression with pcc-cpufreq

2018-07-19 Thread Andreas Herrmann
For the sake of completeness following are given the remaining sets of kernbench results related to this thread. Setup for kernbench test is as described in previous mails but now all 120 logical CPUs were online in all tests. Test runs were still pinned to node 0. Common legend for below tables

Re: [PATCH v14 20/25] x86/tsc: calibrate tsc only once

2018-07-19 Thread Thomas Gleixner
On Thu, 19 Jul 2018, Peter Zijlstra wrote: > On Tue, Jul 17, 2018 at 10:22:06PM -0400, Pavel Tatashin wrote: > > During boot tsc is calibrated twice: once in tsc_early_delay_calibrate(), > > and the second time in tsc_init(). > > > > Rename tsc_early_delay_calibrate() to tsc_early_init(), and rewo

Re: [PATCH v2 10/10] dts: juno: Update coresight bindings for hw port

2018-07-19 Thread Suzuki K Poulose
On 19/07/18 11:55, Suzuki K Poulose wrote: Switch to updated coresight bindings for hw ports. Cc: Sudeep Holla Cc: Liviu Dudau Signed-off-by: Suzuki K Poulose Please ignore this patch, this is indeed a duplicate of the real patch 10/10 in the series. Suzuki

[PATCH] Revert "ACPI / bus: Parse tables as term_list for Dell XPS 9570 and Precision M5530"

2018-07-19 Thread Kai-Heng Feng
This reverts commit 36904703aeeeb6cd31993f1353c8325006229f9a. Since commit 5a8361f7ecce ("ACPICA: Integrate package handling with module-level code"), acpi_gbl_execute_tables_as_methods is always true, so we can remove the quirk for XPS 9570/Precision M5530. Cc: Erik Schmauss Cc: Mario Limonciel

Re: [PATCH v2 2/2] arm64: dts: Add Mediatek X20 Development Board support

2018-07-19 Thread Manivannan Sadhasivam
On Thu, Jul 19, 2018 at 11:03:54AM +0200, Matthias Brugger wrote: > > > On 18/07/18 18:43, Manivannan Sadhasivam wrote: > > Hi Matthias, > > > > On Wed, Jul 18, 2018 at 05:07:38PM +0200, Matthias Brugger wrote: > >> > >> > >> On 17/07/18 16:04, Manivannan Sadhasivam wrote: > >>> Hi Matthias, > >

Re: [PATCH] ACPI: battery: remove redundant old_present check on insertion

2018-07-19 Thread Rafael J. Wysocki
On Sunday, July 15, 2018 12:40:18 AM CEST Lucas Magasweran wrote: > From: Lucas Rangit Magasweran > > On removal battery_present changes from 1 to 0 after calling > acpi_battery_get_statu() and battery->update_time is set to 0 > before returning. > > On insertion battery_present changes from 0 t

Re: [PATCH] ACPI: battery: use cache_time as cache "enabled"

2018-07-19 Thread Rafael J. Wysocki
On Sunday, July 15, 2018 12:38:29 AM CEST Lucas Magasweran wrote: > From: Lucas Rangit Magasweran > > When battery state is not cached the module parameter cache_time is 0 > and battery->update_time starts at 0. However, it set to jiffies in > each call to acpi_battery_get_state() and should not

[PATCH v2 10/10] dts: juno: Update coresight bindings

2018-07-19 Thread Suzuki K Poulose
Switch to updated coresight bindings for Juno platforms. Cc: Sudeep Holla Cc: Liviu Dudau Signed-off-by: Suzuki K Poulose --- Changes since V2: - Update to new format. --- arch/arm64/boot/dts/arm/juno-base.dtsi| 161 +++--- arch/arm64/boot/dts/arm/juno-cs-r1r2.dts

[PATCH v2 10/10] dts: juno: Update coresight bindings for hw port

2018-07-19 Thread Suzuki K Poulose
Switch to updated coresight bindings for hw ports. Cc: Sudeep Holla Cc: Liviu Dudau Signed-off-by: Suzuki K Poulose --- Changes since V2: - Update to new format. --- arch/arm64/boot/dts/arm/juno-base.dtsi| 161 +++--- arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi | 5

Re: [PATCH 0/5] crypto: add IV generation templates

2018-07-19 Thread Xiongfeng Wang
Hi, On 2018/7/18 23:34, Ard Biesheuvel wrote: > On 18 July 2018 at 19:59, Arnd Bergmann wrote: >> On Wed, Jul 18, 2018 at 9:30 AM, Xiongfeng Wang >> wrote: >>> >>> I tested the performance of software implemented ciphers before and after >>> applying this patchset. The performance didn't change

[PATCH v2 00/10] coresight: Update device tree bindings

2018-07-19 Thread Suzuki K Poulose
Coresight uses DT graph bindings to describe the connections of the components. However we have some undocumented usage of the bindings to describe some of the properties of the connections. The coresight driver needs to know the hardware ports invovled in the connection and the direction of data

Re: [PATCH] ACPI: save NVS memory for ASUS 1025C laptop

2018-07-19 Thread Rafael J. Wysocki
On Monday, July 9, 2018 2:03:55 PM CEST Willy Tarreau wrote: > Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an > issue by which the fan would run at full speed upon resume. Bisecting > it showed me the issue was introduced in 3.17 by commit 821d6f0359b0 > (ACPI / sleep: Do not

[PATCH v2 08/10] coresight: dts: Document usage of graph bindings

2018-07-19 Thread Suzuki K Poulose
Before we update the bindings, document the current graph bindings and usage of additional properties. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../devicetree/bindings/arm/coresight.txt | 30 +++--- 1 file changed, 26 insertions(+), 4 deletions(-

[PATCH v2 04/10] coresight: platform: Fix leaking device reference

2018-07-19 Thread Suzuki K Poulose
We don't drop the reference on the remote device while parsing the connection, held by bus_find_device(). Fix this by duplicating the device name and dropping the reference. Cc: Mathieu Poirier Cc: Kim Phillips Signed-off-by: Suzuki K Poulose --- - New in v2 --- drivers/hwtracing/coresight/of

[PATCH v2 09/10] coresight: Cleanup coresight DT bindings

2018-07-19 Thread Suzuki K Poulose
The coresight drivers relied on default bindings for graph in DT, while reusing the "reg" field of the "ports" to indicate the actual hardware port number for the connections. This can cause duplicate ports with same addresses, but different direction. However, with the rules getting stricter w.r.t

[PATCH v2 05/10] coresight: Fix remote endpoint parsing

2018-07-19 Thread Suzuki K Poulose
When parsing the remote endpoint of an output port, we do : rport = of_graph_get_remote_port(ep); rparent = of_graph_get_remote_port_parent(ep); and then parse the "remote_port" as if it was the remote endpoint, which is wrong. The code worked fine because we used endpoint number as the

[PATCH v2 01/10] coresight: Document error handling in coresight_register

2018-07-19 Thread Suzuki K Poulose
commit 6403587a930c ("coresight: use put_device() instead of kfree()") fixes the double freeing of resources and ensures that the device refcount is dropped properly. Add a comment to explain this to help the readers and prevent people trying to "unfix" it again. While at it, rename the labels for

[PATCH v2 07/10] coresight: platform: Cleanup coresight connection handling

2018-07-19 Thread Suzuki K Poulose
The platform code parses the component connections and populates a platform-description of the output connections in arrays of fields (which is never freed). This is later copied in the coresight_register to a newly allocated area, represented by coresight_connection(s). This patch cleans up the c

[PATCH v2 03/10] coresight: platform: Fix refcounting for graph nodes

2018-07-19 Thread Suzuki K Poulose
The coresight driver doesn't drop the references on the remote endpoint/port nodes. Add the missing of_node_put() calls. Reported-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Splitted from of_node recounting fix, part 2 --- drivers/hwtracing/coresight/of_coresigh

[PATCH v2 02/10] coresight: platform: Refactor graph endpoint parsing

2018-07-19 Thread Suzuki K Poulose
Refactor the of graph endpoint parsing code, to make the error handling easier. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v1: - Splitted from the of_node refcounting fix, part1 --- drivers/hwtracing/coresight/of_coresight.c | 129 + 1 fil

[PATCH v2 06/10] coresight: Add helper to check if the endpoint is input

2018-07-19 Thread Suzuki K Poulose
Add a helper to check if the given endpoint is input. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/of_coresight.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/c

[PATCH v3 2/2] arm64: dts: Add Mediatek X20 Development Board support

2018-07-19 Thread Manivannan Sadhasivam
Add initial device tree support for Mediatek X20 Development Board based on MT6797 Deca core SoC. This board is one of the 96Boards Consumer Edition platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6797-x20-

[PATCH v3 0/2] Add Mediatek X20 Development Board support

2018-07-19 Thread Manivannan Sadhasivam
Add devicetree support for Mediatek X20 Development Board by Archermind. This board is based on the Deca-Core MT6797 SoC from Mediatek and is one of the 96Boards Consumer Edition platform. With this devicetree change, board can boot into initramfs. More information about this board can be found i

[PATCH v3 1/2] dt-bindings: arm: mediatek: Document Mediatek X20 Development Board

2018-07-19 Thread Manivannan Sadhasivam
Document Mediatek X20 Development Board which is a 96Boards Consumer Edition platform based on MT6797 SoC. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/de

Re: [PATCH v2 4/4] ARM: dts: dra7: Fix up unaligned access setting for PCIe EP

2018-07-19 Thread Vignesh R
Hi Tony, On Tuesday 17 July 2018 03:25 PM, Kishon Vijay Abraham I wrote: > > > On Wednesday 27 June 2018 05:59 PM, Vignesh R wrote: >> Bit positions of PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE and >> PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE in CTRL_CORE_SMA_SW_7 are >> incorrectly documented in the TRM. I

Re: [PATCH] arm64: dts: msm8916: drop legacy suffix for clocks used by MSM DRM driver

2018-07-19 Thread Nicolas Dechesne
hi Niklas, On Wed, Jul 18, 2018 at 4:53 PM Niklas Cassel wrote: > > Drop legacy suffix for clocks used by MSM DRM driver. I had the same patch locally, which I forgot to send.. so thanks for sending it ;) you might want to add in the commit log: Since "720c3bb80235 (drm/msm: drop _clk suff

[PATCH 1/2] mm: Keep int fields in struct shrink_control together

2018-07-19 Thread Kirill Tkhai
gfp_t is of unsigned type, so let's move nid to keep them together. Signed-off-by: Kirill Tkhai --- include/linux/shrinker.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index b154fd2b084c..d58aaaed34a4 100644 --

[PATCH 0/2] Reorderings in struct shrinker and struct shrink_control

2018-07-19 Thread Kirill Tkhai
These structures are intensively used during reclaim and, displace other data in cache, so there is no a reason they have int fields not grouped together. --- Kirill Tkhai (2): mm: Keep int fields in struct shrink_control together mm: Make flags of unsigned type in struct shrinker

[PATCH 2/2] mm: Make flags of unsigned type in struct shrinker

2018-07-19 Thread Kirill Tkhai
Currently, there are two flags only, so unsigned is more then enough. Also, move int seeks to keep these fields together. Signed-off-by: Kirill Tkhai --- include/linux/shrinker.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/shrinker.h b/include/linux/s

Re: [PATCH 0/6] vt: no blinking on console, 256/24-bit color improvements

2018-07-19 Thread Alan Cox
On Wed, 18 Jul 2018 05:01:52 +0200 Adam Borowski wrote: > Hi! > Here's a patchset with two entangled improvements: > > * it'd be good to get rid of blinking where possible. Even CGA (thus VGA) > allows disabling it, rendering such characters with a bright background > instead. That's a mat

Re: [PATCH v2] firmware/psci: add support for SYSTEM_RESET2

2018-07-19 Thread Michal Simek
On 9.7.2018 15:21, Sudeep Holla wrote: > > > On 09/07/18 14:13, Michal Simek wrote: >> On 9.7.2018 14:36, Sudeep Holla wrote: >>> >>> >>> On 09/07/18 13:17, Michal Simek wrote: Hi Sudeep, On 2.5.2018 12:30, Sudeep Holla wrote: > PSCI v1.1 introduced SYSTEM_RESET2 to allow both

Re: [PATCH v14 25/25] sched: use static key for sched_clock_running

2018-07-19 Thread Peter Zijlstra
On Tue, Jul 17, 2018 at 10:22:11PM -0400, Pavel Tatashin wrote: > sched_clock_running may be read every time sched_clock_cpu() is called. > Yet, this variable is updated only twice during boot, and never changes > again, therefore it is better to make it a static key. Right, so the focus was alway

<    1   2   3   4   5   6   7   8   >