Re: [v7,03/10] docs: Add Generic Counter interface documentation

2018-07-06 Thread David Lechner
On 07/06/2018 12:15 PM, Jonathan Cameron wrote: On Wed, 4 Jul 2018 19:23:26 +0200 Linus Walleij wrote: On Tue, Jul 3, 2018 at 4:16 PM William Breathitt Gray wrote: On Mon, Jul 02, 2018 at 02:37:53PM -0500, David Lechner wrote: On 06/21/2018 04:07 PM, William Breathitt Gray wrote: +Userspac

Re: [PATCH RESEND 1/1] clk/mmcc-msm8996: Make mmagic_bimc_gdsc ALWAYS_ON

2018-07-06 Thread Stephen Boyd
Quoting Vivek Gautam (2018-06-29 04:36:40) > Patch (7705bb7176b9 clk: qcom: mmcc-msm8996: leave all mmagic gdscs > and clocks always enabled") makes all mmgaic gdscs ALWAYS_ON. > The mmagic_bimc_gdsc is also needed to be turned on to get display > working on 8x96. > > Signed-off-by: Vivek Gautam

Re: [PATCH v3 3/3] uio: fix crash after the device is unregistered

2018-07-06 Thread Mike Christie
On 07/05/2018 09:57 PM, xiu...@redhat.com wrote: > static irqreturn_t uio_interrupt(int irq, void *dev_id) > { > struct uio_device *idev = (struct uio_device *)dev_id; > - irqreturn_t ret = idev->info->handler(irq, idev->info); > + irqreturn_t ret; > + > + mutex_lock(&idev->info

Re: [PATCH v7 00/10] Introduce the Counter subsystem

2018-07-06 Thread David Lechner
On 07/06/2018 12:21 PM, Jonathan Cameron wrote: On Mon, 2 Jul 2018 22:48:35 -0400 William Breathitt Gray wrote: On Mon, Jul 02, 2018 at 01:13:40PM -0500, David Lechner wrote: On 06/21/2018 04:06 PM, William Breathitt Gray wrote: I decided to strip down these devices to arrive at the core ess

Re: [PATCH] clk: vc5: Avoid divide by zero when rounding or setting rates

2018-07-06 Thread Stephen Boyd
Quoting Steve Longerbeam (2018-05-31 18:59:17) > Add checks in the .round_rate and .set_rate ops for zero requested > rate or zero parent rate. If either are zero in .round_rate, just > return zero. If either are zero in .set_rate, return -EINVAL. Are you seeing problems when the clk is unparented

Re: [PATCH] mm/sparse: Make sparse_init_one_section void and remove check

2018-07-06 Thread Ross Zwisler
On Mon, Jul 2, 2018 at 12:48 PM Pavel Tatashin wrote: > > On Mon, Jul 2, 2018 at 11:43 AM wrote: > > > > From: Oscar Salvador > > > > sparse_init_one_section() is being called from two sites: > > sparse_init() and sparse_add_one_section(). > > The former calls it from a for_each_present_section_

Re: [RESEND PATCH v3 2/2] thermal: core: introduce thermal zone device mode control

2018-07-06 Thread Matthias Kaehlcke
Hi Enric, On Wed, Jul 04, 2018 at 12:36:39PM +0200, Enric Balletbo i Serra wrote: > Hi Matthias, > > Sorry for late reply, my memory is bad so I need to look at this again. The > patch was send some time ago and there are pending changes to do but then I > switched. I'll take a look, but did you

Re: [PATCH v2 1/3] clk: tegra: refactor 7.1 div calculation

2018-07-06 Thread Stephen Boyd
Quoting Aapo Vienamo (2018-07-04 03:17:33) > diff --git a/drivers/clk/tegra/div71.c b/drivers/clk/tegra/div71.c > new file mode 100644 > index 000..1a5e04c > --- /dev/null > +++ b/drivers/clk/tegra/div71.c > @@ -0,0 +1,54 @@ > +/* > + * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserv

Re: [PATCH v2 2/3] clk: tegra: Add sdmmc mux divider clock

2018-07-06 Thread Stephen Boyd
Quoting Aapo Vienamo (2018-07-04 03:17:34) > diff --git a/drivers/clk/tegra/clk-sdmmc-mux.c > b/drivers/clk/tegra/clk-sdmmc-mux.c > new file mode 100644 > index 000..8e19cb3 > --- /dev/null > +++ b/drivers/clk/tegra/clk-sdmmc-mux.c > @@ -0,0 +1,254 @@ > +/* > + * Copyright (c) 2018 NVIDIA CORP

Re: [PATCH v5 2/5] clk: at91: add I2S clock mux driver

2018-07-06 Thread Stephen Boyd
Quoting Codrin Ciubotariu (2018-06-18 07:12:36) > This driver is a simple muxing driver that controls the > I2S's clock input by using syscon/regmap to change the parent. > The available inputs can be peripheral clock and generated clock. > > Signed-off-by: Codrin Ciubotariu > --- Applied to clk

Re: [PATCH v5 1/5] dt-bindings: clk: at91: add an I2S mux clock

2018-07-06 Thread Stephen Boyd
Quoting Codrin Ciubotariu (2018-06-18 07:12:35) > The I2S mux clock can be used to select the I2S input clock. The > available parents are the peripheral and the generated clocks. > > Signed-off-by: Codrin Ciubotariu > --- Applied to clk-next

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-06 Thread Andi Kleen
> At least we need to make user aware about risk of setting custom flags. There are valid use cases to override the flags. I use it sometimes too, and know some other people do to. But you need to know what you're doing. Perhaps a warning during build would be reasonable. So if you ask for a bu

Re: [PATCH v5 07/12] PM / devfreq: export devfreq_class

2018-07-06 Thread Matthias Kaehlcke
Hi, On Wed, Jul 04, 2018 at 02:30:32PM +0900, Chanwoo Choi wrote: > I didn't see any framework which exporting the class instance. > It is very dangerous. Unknown device drivers is able to reset > the 'devfreq_class' instance. I can't agree this approach. While I agree that it is potential dange

Re: [PATCH 4.17 00/46] 4.17.5-stable review

2018-07-06 Thread Dan Rue
On Fri, Jul 06, 2018 at 11:51:24AM -0600, Dan Rue wrote: > On Fri, Jul 06, 2018 at 07:46:21AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.17.5 release. > > There are 46 patches in this series, all will be posted as a response > > to this one. If anyo

RE: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-06 Thread KY Srinivasan
> -Original Message- > On Fri, 6 Jul 2018, Thomas Gleixner wrote: > > On Fri, 6 Jul 2018, KY Srinivasan wrote: > > > > > > > > The problem is that the wreckage is in Linus tree and needs to be fixed > > > > there, i.e. via x86/urgent. > > > > > > > > Now we have the new bits queued in x8

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:55:57) > On 07/06/18 10:51, Chris Wilson wrote: > > Quoting Randy Dunlap (2018-07-06 18:48:55) > >> > >> On 07/06/18 02:44, Chris Wilson wrote: > >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > >>> number of bits in a type (BITS_PER_

Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button

2018-07-06 Thread Thomas Hänig
Am 06.07.2018 um 14:27 schrieb Takashi Iwai: > On Fri, 06 Jul 2018 14:13:04 +0200, > Rafael J. Wysocki wrote: >> >> On Friday, July 6, 2018 1:21:50 PM CEST Rafael J. Wysocki wrote: >>> On Fri, Jul 6, 2018 at 1:12 PM, Thomas Hänig wrote: >> >> [cut] >> >>> So the latest patch: >>> >>> https://

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-07-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Wed, Jul 04, 2018 at 03:41:46PM +0900, Chanwoo Choi wrote: > Firstly, > I'm not sure why devfreq needs the devfreq_verify_within_limits() function. > > devfreq already used the OPP interface as default. It means that > the outside of 'drivers/devfreq' can disable/enable the freque

[PATCH 12/17] drm/sun4i: tcon: Add support for R40 TCON

2018-07-06 Thread Jernej Skrabec
R40 TV TCON is basically the same as on A83T. However, it needs special handling, because it has to set up TCON TOP muxes at runtime. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/drivers/g

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 10:51, Chris Wilson wrote: > Quoting Randy Dunlap (2018-07-06 18:48:55) >> >> On 07/06/18 02:44, Chris Wilson wrote: >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the >>> number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the >>> macro to bitops.h

Re: [PATCH] clk: aspeed: Support HPLL strapping on ast2400

2018-07-06 Thread Stephen Boyd
Quoting Joel Stanley (2018-06-28 16:15:40) > The HPLL can be configured through a register (SCU24), however some > platforms chose to configure it through the strapping settings and do > not use the register. This was not noticed as the logic for bit 18 in > SCU24 was confused: set means programmed

Re: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override

2018-07-06 Thread Don Zickus
On Tue, Jun 26, 2018 at 01:16:11PM -0700, Joe Perches wrote: > On Tue, 2018-06-26 at 14:25 -0400, Prarit Bhargava wrote: > > OSes have additional maintainers that should be cc'd on patches or may > > want to circulate internal patches. > > > > Parse the .get_maintainer.MAINTAINERS file. Entries i

Re: [PATCH v7 2/4] clk: davinci: kill davinci_clk_reset_assert/deassert()

2018-07-06 Thread David Lechner
On 06/21/2018 02:37 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski This code is no longer used. Remove it. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner Acked-by: Stephen Boyd --- I've picked this up in clk-davinci-4.20, so it will just hang out there for a while

Re: [PATCH 4.14 00/61] 4.14.54-stable review

2018-07-06 Thread Dan Rue
On Fri, Jul 06, 2018 at 07:46:24AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.54 release. > There are 61 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

[GIT PULL] clk fixes for v4.18-rc3

2018-07-06 Thread sboyd
From: Stephen Boyd The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch chang

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:48:55) > > On 07/06/18 02:44, Chris Wilson wrote: > > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage

Re: [PATCH 4.17 00/46] 4.17.5-stable review

2018-07-06 Thread Dan Rue
On Fri, Jul 06, 2018 at 07:46:21AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.5 release. > There are 46 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.

Re: [PATCH v3 4/5] ASoC: dt-bindings: Update dt binding name for apq8096

2018-07-06 Thread Srinivas Kandagatla
On 06/07/18 10:43, Rohit kumar wrote: Remove qcom prefix from machine driver dt bindings of apq8096 SoC. Yes, this is a good move to make everything inline! Signed-off-by: Rohit kumar --- Documentation/devicetree/bindings/sound/qcom,apq8096.txt | 15 +-- 1 file changed, 13 i

Re: [PATCH v3 2/5] ASoC: qcom: Add support to parse common audio device nodes

2018-07-06 Thread Srinivas Kandagatla
On 06/07/18 10:43, Rohit kumar wrote: This adds support to parse cpu, platform and codec device nodes and add them in dai-links. Also, add API to add slave components associated with machine driver. Signed-off-by: Rohit kumar --- sound/soc/qcom/Kconfig | 3 + sound/soc/qcom/Makefile |

Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-06 Thread Vladimir Davydov
On Thu, Jul 05, 2018 at 03:10:30PM -0700, Andrew Morton wrote: > On Wed, 4 Jul 2018 18:51:12 +0300 Kirill Tkhai wrote: > > > > - why aren't we decreasing shrinker_nr_max in > > > unregister_memcg_shrinker()? That's easy to do, avoids pointless > > > work in shrink_slab_memcg() and avoids mem

Re: [PATCH v3 3/4] clk: rockchip: add support for half divider

2018-07-06 Thread Stephen Boyd
Quoting Heiko Stuebner (2018-07-06 10:19:11) > Am Freitag, 6. Juli 2018, 18:50:51 CEST schrieb Stephen Boyd: > > Quoting Elaine Zhang (2018-06-14 19:16:50) > > > > > > diff --git a/drivers/clk/rockchip/clk-half-divider.c > > > b/drivers/clk/rockchip/clk-half-divider.c > > > new file mode 100644 >

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 02:44, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. > > Signed-off-by: Chris Wilson > Cc: Jani Nikula

Re: [PATCH v4 4/6] thermal: tsens: Add support for SDM845

2018-07-06 Thread Rob Herring
On Thu, Jul 5, 2018 at 11:13 PM Amit Kucheria wrote: > > On Fri, Jul 6, 2018 at 2:07 AM Rob Herring wrote: > > > > On Wed, Jul 04, 2018 at 10:56:26PM +0530, Amit Kucheria wrote: > > > On Tue, Jul 3, 2018 at 9:56 PM, Rob Herring wrote: > > > > On Mon, Jul 02, 2018 at 06:14:07PM +0530, Amit Kucher

Re: [patch 0/7] x86/kvmclock: Remove memblock dependency and further cleanups

2018-07-06 Thread Paolo Bonzini
On 06/07/2018 18:13, Thomas Gleixner wrote: > To allow early utilization of kvmclock it is required to remove the > memblock dependency. memblock is currently used to allocate the per > cpu data for kvmclock. > > The first patch replaces the memblock with a static array sized 64bytes * > NR_CPUS a

[PATCH v3] arm64: add ARM64-specific support for flatmem

2018-07-06 Thread Nikunj Kela
Flatmem is useful in reducing kernel memory usage. One usecase is in kdump kernel. We are able to save ~14M by moving to flatmem scheme. Cc: xe-ker...@external.cisco.com Cc: Nikunj Kela Signed-off-by: Nikunj Kela --- arch/arm64/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch

[Bisect] ext4_validate_inode_bitmap:98: comm stress-ng: Corrupt inode bitmap

2018-07-06 Thread dann frazier
Hi, We're seeing a regression triggered by the stress-ng[*] "chdir" test that I've bisected to: 044e6e3d74a3 ext4: don't update checksum of new initialized bitmaps So far we've only seen failures on servers based on HiSilicon's family of ARM64 SoCs (D05/Hi1616 SoC, D06/Hi1620 SoC). On these sys

Re: [patch 6/7] x86/kvmclock: Move kvmclock vsyscall param and init to kvmclock

2018-07-06 Thread Paolo Bonzini
On 06/07/2018 18:13, Thomas Gleixner wrote: > @@ -241,6 +269,9 @@ void __init kvmclock_init(void) > return; > } > > + if (!hypervisor_is_type(X86_HYPER_KVM)) > + kvmclock_vsyscall = 0; > + No need for this; by the time you get here, the condition will always b

Re: [PATCH v3 05/13] clk: davinci: psc-da830: add a lookup entry for aemif clock

2018-07-06 Thread David Lechner
On 06/28/2018 04:57 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We want to use the ti-aemif platform driver for da830-evm. To make it work we need a lookup entry for the aemif clock. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- Applied to clk-davinci-4.19

Re: [PATCH v3 04/13] clk: davinci: psc-dm646x: use two lookup entries for the aemif clock

2018-07-06 Thread David Lechner
On 06/28/2018 04:57 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- Applied to clk-davinci-4.19. Than

Re: [PATCH v3 02/13] clk: davinci: psc-dm365: use two lookup entries for the aemif clock

2018-07-06 Thread David Lechner
On 06/28/2018 04:57 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- Applied to clk-davinci-4.19. Thank

Re: [PATCH v3 01/13] clk: davinci: psc-da850: remove the 'davinci_nand.0" lookup

2018-07-06 Thread David Lechner
On 06/28/2018 04:57 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski Since commit a8e3923ab571 ("mtd: rawnand: davinci: don't acquire and enable clock") we no longer acquire the aemif clock from the davinci nand driver - we only do it from the ti-aemif driver. Remove the nand entry from

Re: [PATCH v3 03/13] clk: davinci: psc-dm644x: use two lookup entries for the aemif clock

2018-07-06 Thread David Lechner
On 06/28/2018 04:57 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- Applied to clk-davinci-4.19. Thank

Re: [PATCH linux-next v6 03/13] peci: Add support for PECI bus driver core

2018-07-06 Thread Jae Hyun Yoo
On 7/6/2018 12:03 AM, Lee Jones wrote: On Thu, 21 Jun 2018, Jae Hyun Yoo wrote: This commit adds driver implementation for PECI bus core into linux driver framework. Signed-off-by: Jae Hyun Yoo Signed-off-by: Fengguang Wu Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Verno

Re: [patch 4/7] x86/kvmclock: Cleanup the code

2018-07-06 Thread Paolo Bonzini
> - Cleanup the mrs write for wall clock. s/mrs/MSR/ On 06/07/2018 18:13, Thomas Gleixner wrote: > @@ -195,6 +181,7 @@ static void kvm_register_clock(char *txt > if (!hv_clock) > return; > > + src = &hv_clock[cpu].pvti; > pa = slow_virt_to_phys(src) | 0x01ULL; >

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-06 Thread Andy Shevchenko
On Thu, 2018-07-05 at 14:54 +0800, Jisheng Zhang wrote: > On Thu, 5 Jul 2018 14:39:21 +0800 Jisheng Zhang wrote: > > > > > > > > > > + serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB); > > > > + serial_dl_write(up, quot); > > > > > > At some point it would be a helper, I

Re: [PATCH v3 00/13] ARM: davinci: remove duplicate aemif support

2018-07-06 Thread David Lechner
On 07/04/2018 01:35 AM, Sekhar Nori wrote: Hi David, On Monday 02 July 2018 09:02 PM, David Lechner wrote: On 07/02/2018 07:28 AM, Sekhar Nori wrote: Hi David, Stephen, On Thursday 28 June 2018 03:27 PM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski This series moves all aemif/nand

Re: [patch 3/7] x86/kvmclock: Decrapify kvm_register_clock()

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Paolo Bonzini wrote: > Decrapification went a bit too far... > > On 06/07/2018 18:13, Thomas Gleixner wrote: > > - int cpu = smp_processor_id(); > > - int low, high, ret; > > struct pvclock_vcpu_time_info *src; > > + int cpu = smp_processor_id(); > > + u64 pa; > >

Re: [patch 3/7] x86/kvmclock: Decrapify kvm_register_clock()

2018-07-06 Thread Paolo Bonzini
Decrapification went a bit too far... On 06/07/2018 18:13, Thomas Gleixner wrote: > - int cpu = smp_processor_id(); > - int low, high, ret; > struct pvclock_vcpu_time_info *src; > + int cpu = smp_processor_id(); > + u64 pa; > > if (!hv_clock) > - return 0;

[PATCH 2/2] null_blk: add zone support

2018-07-06 Thread Matias Bjørling
From: Matias Bjørling Adds support for exposing a null_blk device through the zone device interface. The interface is managed with the parameters zoned and zone_size. If zoned is set, the null_blk instance registers as a zoned block device. The zone_size parameter defines how big each zone will

Re: [PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-06 Thread Rob Herring
On Fri, Jul 6, 2018 at 12:22 AM Andreas Klinger wrote: > > Hi Rob, > > please see explanation below. Thanks. > > Rob Herring schrieb am Thu, 05. Jul 15:30: > > On Wed, Jul 04, 2018 at 02:36:38PM +0200, Andreas Klinger wrote: > > > Add clock-frequency property for hx711 ADC > > > > > > This is the

Re: [PATCH v6 5/6] mtd: rawnand: micron: support 8/512 on-die ECC

2018-07-06 Thread Boris Brezillon
On Mon, 25 Jun 2018 10:44:47 +1200 Chris Packham wrote: > Micron MT29F1G08ABAFAWP-ITE:F supports an on-die ECC with 8 bits > per 512 bytes. Add support for this combination. > > Signed-off-by: Chris Packham > Reviewed-by: Boris Brezillon > --- > Changes in v2: > - New > Changes in v3: > - Hand

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-06 Thread Andy Shevchenko
On Thu, 2018-07-05 at 14:39 +0800, Jisheng Zhang wrote: > > On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: My comments below. > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's > > > a > > > valid divisor latch fraction register. The fractional divisor > > > width is

Re: [PATCH (v4.18 regression fix)] vfs: don't evict uninitialized inode

2018-07-06 Thread Al Viro
On Fri, Jul 06, 2018 at 05:35:48PM +0200, Miklos Szeredi wrote: > iput() ends up calling ->evict() on new inode, which is not yet initialized > by owning fs. So use destroy_inode() instead. > > Add to sb->s_inodes list only after the inode has been inserted into the > hash. The exact point at wh

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-06 Thread Gabriel C
2018-07-06 18:33 GMT+02:00 Kirill A. Shutemov : > On Fri, Jul 06, 2018 at 04:39:28PM +0200, Gabriel C wrote: >> > If not, we do not need to think about that case. >> > Just say "Do not do that". >> >> I am sorry but I have a hard time to get your logic here. >> >> You are saying : the *env* variabl

Re: [PATCH v4 6/6] arm64: dts: sdm845: Add tsens nodes

2018-07-06 Thread Stephen Boyd
Quoting Amit Kucheria (2018-07-02 05:44:09) > SDM845 has two tsens blocks, one with 13 sensors and the other with 8 > sensors. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot

arm32: Missing __get_user for u64 user type

2018-07-06 Thread Mathieu Desnoyers
Hi, The restartable sequence code needs a __get_user for u64 types. arm32. Although a get_user() is implemented, the architecture lacks support for 8 bytes __get_user(). Do you guys recommend extending __get_user_err() to do two __get_user_asm_word() to read it through a temporary union, or do yo

Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-06 Thread Vladimir Davydov
On Tue, Jul 03, 2018 at 01:50:00PM -0700, Andrew Morton wrote: > On Tue, 03 Jul 2018 18:09:26 +0300 Kirill Tkhai wrote: > > > Imagine a big node with many cpus, memory cgroups and containers. > > Let we have 200 containers, every container has 10 mounts, > > and 10 cgroups. All container tasks do

[PATCH] mfd: hi655x: Fix regmap area declared size for hi655x

2018-07-06 Thread Rafael David Tinoco
Fixes: https://bugs.linaro.org/show_bug.cgi?id=3903 LTP Functional tests have caused a bad paging request when triggering the regmap_read_debugfs() logic of the device PMIC Hi6553 (reading regmap/f800.pmic/registers file during read_all test): Unable to handle kernel paging request at virtual

Re: [PATCH] soc: ti: wkup_m3_ipc: mark PM functions as __maybe_unused

2018-07-06 Thread santosh.shilim...@oracle.com
On 7/6/18 5:36 AM, Arnd Bergmann wrote: Everyone gets these #ifdefs wrong, leading to another warning here: drivers/soc/ti/wkup_m3_ipc.c:547:12: error: 'wkup_m3_ipc_resume' defined but not used [-Werror=unused-function] static int wkup_m3_ipc_resume(struct device *dev) drivers/soc/ti/wkup_m3_

Re: [PATCH v2] arm64: add ARM64-specific support for flatmem

2018-07-06 Thread Nikunj Kela (nkela)
I might be wrong but I was under the impression that Sparse memory is only of use on NUMA systems or systems supporting hot pluggable memory. the NODE_DATA() macro needs to be switched on NUMA, but not on FLATMEM. I borrowed this dependency from x86 Kconfig. If this is not needed, I will remove

Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-07-06 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-07-02 12:09:22) > On Thu 28 Jun 10:14 PDT 2018, Stephen Boyd wrote: > > > Quoting Linus Walleij (2018-06-28 07:25:46) > > > On Fri, Jun 22, 2018 at 8:29 PM Bjorn Andersson > > > wrote: > > > > On Fri 22 Jun 10:58 PDT 2018, Bjorn Andersson wrote: > > > > > On Mon 18 J

Re: [PATCH v7 00/10] Introduce the Counter subsystem

2018-07-06 Thread Jonathan Cameron
On Mon, 2 Jul 2018 22:48:35 -0400 William Breathitt Gray wrote: > On Mon, Jul 02, 2018 at 01:13:40PM -0500, David Lechner wrote: > >On 06/21/2018 04:06 PM, William Breathitt Gray wrote: > >> I decided to strip down these devices to arrive at the core essence of > >> what constitutes a "counter

[PATCH] tools: adding support for idle page tracking to tool

2018-07-06 Thread Christian Hansen
Adding a new flag which will use the kernels's idle page tracking to mark pages idle. As the tool already prints the idle flag if set, subsequent runs will show which pages have been accessed since last run. Signed-off-by: Christian Hansen --- .../admin-guide/mm/idle_page_tracking.rst

Re: [PATCH v3 3/4] clk: rockchip: add support for half divider

2018-07-06 Thread Heiko Stuebner
Am Freitag, 6. Juli 2018, 18:50:51 CEST schrieb Stephen Boyd: > Quoting Elaine Zhang (2018-06-14 19:16:50) > > > > diff --git a/drivers/clk/rockchip/clk-half-divider.c > > b/drivers/clk/rockchip/clk-half-divider.c > > new file mode 100644 > > index ..fb7a6501e0c1 > > --- /dev/null > >

Re: [PATCH 2/6] ipc: reorganize initialization of kern_ipc_perm.seq

2018-07-06 Thread Davidlohr Bueso
On Thu, 05 Jul 2018, Andrew Morton wrote: On Thu, 5 Jul 2018 17:12:36 +0200 Manfred Spraul wrote: Hi Dmitry, On 07/05/2018 10:36 AM, Dmitry Vyukov wrote: > [...] > Hi Manfred, > > The series looks like a significant improvement to me. Thanks! > > I feel that this code can be further simplif

Re: [PATCH V2 2/2] ARM: dts: imx6ul: add GPIO clocks

2018-07-06 Thread Stephen Boyd
Quoting Shawn Guo (2018-06-30 19:19:49) > On Fri, Jun 29, 2018 at 11:39:38AM -0700, Stephen Boyd wrote: > > Quoting Shawn Guo (2018-06-27 17:52:18) > > > On Mon, Jun 25, 2018 at 03:14:39AM +, Anson Huang wrote: > > > > Gentle Ping... > > > > > > I cannot apply this dts patch until the clock pa

[PATCH] devres: Really align data field to unsigned long long

2018-07-06 Thread Alexey Brodkin
It looks like on most of architectures "data" member of devres struture gets aligned to 8-byte "unsigned long long" boundary as one may expect: if we don't explicitly pack a structure then natural alignment (which matches each member data type) is used. But at least on 32-bit ARC architecture ABI

Re: [v7,03/10] docs: Add Generic Counter interface documentation

2018-07-06 Thread Jonathan Cameron
On Wed, 4 Jul 2018 19:23:26 +0200 Linus Walleij wrote: > On Tue, Jul 3, 2018 at 4:16 PM William Breathitt Gray > wrote: > > On Mon, Jul 02, 2018 at 02:37:53PM -0500, David Lechner wrote: > > >On 06/21/2018 04:07 PM, William Breathitt Gray wrote: > > >> +Userspace Interface > > >> +==

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

2018-07-06 Thread David Woodhouse
On Fri, 2018-07-06 at 10:11 -0700, Paul E. McKenney wrote: > > The preempt state is alread a bit complicated and shadowed in the > > preempt_count (on some architectures) adding additional bits to it like > > this is just asking for trouble. > > How about a separate need_resched_rcu() that include

[PATCH] Revert "mm: always flush VMA ranges affected by zap_page_range"

2018-07-06 Thread Rik van Riel
There was a bug in Linux that could cause madvise (and mprotect?) system calls to return to userspace without the TLB having been flushed for all the pages involved. This could happen when multiple threads of a process made simultaneous madvise and/or mprotect calls. This was noticed in the summe

Re: [PATCH 1/3] clk: tegra: refactor 7.1 div calculation

2018-07-06 Thread Stephen Boyd
Quoting Aapo Vienamo (2018-07-04 00:51:48) > On Tue, 3 Jul 2018 11:10:21 -0400 > Peter Geis wrote: > > > Good Morning, > > > > Just a heads up. > > During compilation with your patches, I get the following warning: > > > > In file included from ./arch/arm/include/asm/div64.h:127:0, > >

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

2018-07-06 Thread Paul E. McKenney
On Fri, Jul 06, 2018 at 06:29:05PM +0200, Peter Zijlstra wrote: > On Fri, Jul 06, 2018 at 03:53:30PM +0100, David Woodhouse wrote: > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > index e4d4e60..89f5814 100644 > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > > @@

Re: [REGRESSION] arm32 Cubietruck defconfig does not boot anymore since 4.18-rc1

2018-07-06 Thread Marc Zyngier
On 06/07/18 18:04, Will Deacon wrote: > Hi Mathieu, > > On Fri, Jul 06, 2018 at 12:59:22PM -0400, Mathieu Desnoyers wrote: >> The 4.18-rc3 arm32 kernel defconfig fails to boot on my Cubietruck. >> This issue appeared with 4.18-rc1. >> >> It worked fine on 4.17. >> >> Any ideas ? > > CC'ing linux-

Re: [PATCH v5 04/12] PM / devfreq: Add struct devfreq_policy

2018-07-06 Thread Matthias Kaehlcke
Hi, On Wed, Jul 04, 2018 at 11:51:30AM +0900, Chanwoo Choi wrote: > Hi, > > On 2018년 07월 04일 08:46, Matthias Kaehlcke wrote: > > Move variables related with devfreq policy changes from struct devfreq > > to the new struct devfreq_policy and add a policy field to struct devfreq. > > > > The follo

Re: [PATCH v2] arm64: add ARM64-specific support for flatmem

2018-07-06 Thread Will Deacon
On Fri, Jul 06, 2018 at 10:02:15AM -0700, Nikunj Kela wrote: > Flatmem is useful in reducing kernel memory usage. > One usecase is in kdump kernel. We are able to save > ~14M by moving to flatmem scheme. > > Cc: xe-ker...@external.cisco.com > Cc: Nikunj Kela > Signed-off-by: Nikunj Kela > --- >

Re: [PATCH] power: supply: ltc2941-battery-gauge: Release device_node in ltc294x_i2c_probe()

2018-07-06 Thread Sebastian Reichel
Hi, On Tue, May 08, 2018 at 10:16:31PM +0300, Alexey Khoroshilov wrote: > On 01.05.2018 15:39, Sebastian Reichel wrote: > > On Sun, Apr 29, 2018 at 01:35:55AM +0300, Alexey Khoroshilov wrote: > >> There is of_node_get(client->dev.of_node) in ltc294x_i2c_probe(), > >> but these is no of_node_put()

Re: [RFC PATCH v4 09/12] sched/fair: Introduce an energy estimation helper function

2018-07-06 Thread Quentin Perret
On Friday 06 Jul 2018 at 17:49:49 (+0200), Peter Zijlstra wrote: > On Fri, Jul 06, 2018 at 04:12:12PM +0100, Quentin Perret wrote: > > On Friday 06 Jul 2018 at 15:12:43 (+0200), Peter Zijlstra wrote: > > > > Did you want to use sugov_get_util() here? There is no way we're going > > > to duplicate

mm,tlb: revert 4647706ebeee?

2018-07-06 Thread Rik van Riel
Hello, It looks like last summer, there were 2 sets of patches in flight to fix the issue of simultaneous mprotect/madvise calls unmapping PTEs, and some pages not being flushed from the TLB before returning to userspace. Minchan posted these patches: 56236a59556c ("mm: refactor TLB gathering API

Re: [REGRESSION] arm32 Cubietruck defconfig does not boot anymore since 4.18-rc1

2018-07-06 Thread Will Deacon
Hi Mathieu, On Fri, Jul 06, 2018 at 12:59:22PM -0400, Mathieu Desnoyers wrote: > The 4.18-rc3 arm32 kernel defconfig fails to boot on my Cubietruck. > This issue appeared with 4.18-rc1. > > It worked fine on 4.17. > > Any ideas ? CC'ing linux-arm-kernel would be a good place to start :) [I've a

Re: [PATCH] checkpatch: Add exceptions for dsb keyword usage

2018-07-06 Thread pheragu
On 2018-07-05 22:45, Mark Rutland wrote: On Thu, Jul 05, 2018 at 02:14:28PM -0700, Joe Perches wrote: On Thu, 2018-07-05 at 11:19 -0700, Prakruthi Deepak Heragu wrote: > mb() API can relpace the dsb() API in the kernel code. So, dsb() usage > is discouraged. However, there are exceptions when ds

RE: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-06 Thread Thomas Gleixner
On Fri, 6 Jul 2018, Michael Kelley (EOSG) wrote: > > -Original Message- > > From: Thomas Gleixner > > Sent: Friday, July 6, 2018 3:42 AM > > To: KY Srinivasan > > Cc: Ingo Molnar ; x...@kernel.org; > > gre...@linuxfoundation.org; linux- > > ker...@vger.kernel.org; de...@linuxdriverprojec

[PATCH v2] arm64: add ARM64-specific support for flatmem

2018-07-06 Thread Nikunj Kela
Flatmem is useful in reducing kernel memory usage. One usecase is in kdump kernel. We are able to save ~14M by moving to flatmem scheme. Cc: xe-ker...@external.cisco.com Cc: Nikunj Kela Signed-off-by: Nikunj Kela --- arch/arm64/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arc

Re: [RFC PATCH v3 1/2] drm: Add generic colorkey properties for DRM planes

2018-07-06 Thread Russell King - ARM Linux
On Fri, Jul 06, 2018 at 07:33:14PM +0300, Dmitry Osipenko wrote: > On Friday, 6 July 2018 18:40:27 MSK Russell King - ARM Linux wrote: > > On Fri, Jul 06, 2018 at 05:58:50PM +0300, Dmitry Osipenko wrote: > > > On Friday, 6 July 2018 17:10:10 MSK Ville Syrjälä wrote: > > > > IIRC my earlier idea was

Re: [PATCH 0/2] power: generic-adc-battery: fix out of bounds write

2018-07-06 Thread Sebastian Reichel
Hi, On Tue, Jun 26, 2018 at 03:28:28PM +0200, H. Nikolaus Schaller wrote: > This patch set addresses two bugs in the gab_probe() function which are > there since the first commit in 3.7-rc1: > > 1. there is an out of bounds write access by a miscalculated destination >address for the memcpy()

Re: [PATCH] checkpatch: Add exceptions for dsb keyword usage

2018-07-06 Thread pheragu
On 2018-07-05 22:52, Joe Perches wrote: On Fri, 2018-07-06 at 06:45 +0100, Mark Rutland wrote: On Thu, Jul 05, 2018 at 02:14:28PM -0700, Joe Perches wrote: > On Thu, 2018-07-05 at 11:19 -0700, Prakruthi Deepak Heragu wrote: > > mb() API can relpace the dsb() API in the kernel code. So, dsb() usa

[REGRESSION] arm32 Cubietruck defconfig does not boot anymore since 4.18-rc1

2018-07-06 Thread Mathieu Desnoyers
Hi, The 4.18-rc3 arm32 kernel defconfig fails to boot on my Cubietruck. This issue appeared with 4.18-rc1. It worked fine on 4.17. Any ideas ? Starting kernel ... 55.51 55.52 [ 0.00] Booting Linux on physical CPU 0x0 55.53 [ 0.00] Linux version 4.18.0-rc3-00022-geca15e1-dirty (effi

RE: [PATCH 1/4] scsi: aacraid: remove AAC_STAT_GOOD define

2018-07-06 Thread Dave Carroll
> > On Thu, Jul 05, 2018 at 05:42:02PM +, Dave Carroll wrote: > > > Remove the AAC_STAT_GOOD definition and open code it in the places > > > it was used. > > > > > > This will make subsequent refactoring in this area easier. > > > > > Please don't ... the definition itself was added to make re

[tip:x86/cpu] x86/numa_emulation: Fix emulated-to-physical node mapping

2018-07-06 Thread tip-bot for Dan Williams
Commit-ID: 3b6c62f363a19ce82bf378187ab97c9dc01e3927 Gitweb: https://git.kernel.org/tip/3b6c62f363a19ce82bf378187ab97c9dc01e3927 Author: Dan Williams AuthorDate: Fri, 6 Jul 2018 09:08:01 -0700 Committer: Ingo Molnar CommitDate: Fri, 6 Jul 2018 18:48:58 +0200 x86/numa_emulation: Fix emul

[tip:x86/cpu] x86/numa_emulation: Introduce uniform split capability

2018-07-06 Thread tip-bot for Dan Williams
Commit-ID: cc9aec03e58fea4dbab04c05d1e15852f801ca53 Gitweb: https://git.kernel.org/tip/cc9aec03e58fea4dbab04c05d1e15852f801ca53 Author: Dan Williams AuthorDate: Fri, 6 Jul 2018 09:08:06 -0700 Committer: Ingo Molnar CommitDate: Fri, 6 Jul 2018 18:48:58 +0200 x86/numa_emulation: Introduc

Re: [PATCH v3 3/4] clk: rockchip: add support for half divider

2018-07-06 Thread Stephen Boyd
Quoting Elaine Zhang (2018-06-14 19:16:50) > > diff --git a/drivers/clk/rockchip/clk-half-divider.c > b/drivers/clk/rockchip/clk-half-divider.c > new file mode 100644 > index ..fb7a6501e0c1 > --- /dev/null > +++ b/drivers/clk/rockchip/clk-half-divider.c > @@ -0,0 +1,230 @@ > +// SPDX-

Re: [PATCH] of/fdt: avoid undefined behaviour in populate_properties()

2018-07-06 Thread Frank Rowand
On 07/06/18 04:37, Mark Rutland wrote: > We unflatten a device tree in two passes: the first calculating the size > of the unflattened tree, and the second performing the actual > unflattening into a suitably-sized buffer. > > During the first (dryrun) pass, the memory pool is NULL, and we derive

Re: [PATCH v3] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-06 Thread Andy Shevchenko
On Fri, Jul 6, 2018 at 7:24 PM, Tycho Andersen wrote: > Looking in uart_port_startup(), it seems that circ->buf (state->xmit.buf) > protected by the "per-port mutex", which based on uart_port_check() is > state->port.mutex. Indeed, the lock acquired in uart_put_char() is > uport->lock, i.e. not t

[PATCH v3] soc: imx: gpc: Turn PU domain on/off in sleep on 6qp

2018-07-06 Thread Leonard Crestez
On imx6qp power gating on the PU domain is disabled because of errata ERR009619. However power gating during suspend/resume can still be performed. Enable this by implementing SLEEP_PM_OPS in imx_pgc_power_domain_driver. In order to ensure correct ordering add device links from devices inside the

[GIT PULL] VFIO fixes for v4.18-rc4

2018-07-06 Thread Alex Williamson
Hi Linus, The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.18-rc4 for you to fetch changes up to d7ef4899d7182f9d4267b4e4a5cc

Re: [PATCHv4 00/19] arm64: invoke syscalls with pt_regs

2018-07-06 Thread Will Deacon
On Mon, Jul 02, 2018 at 12:03:56PM +0100, Mark Rutland wrote: > This series reworks arm64's syscall handling to minimize the propagation > of user-controlled register values into speculated code paths. As with > x86 [1], a wrapper is generated for each syscall, which extracts the > argument from a

Re: [PATCHv4 11/19] arm64: don't reload GPRs after apply_ssbd

2018-07-06 Thread Will Deacon
On Mon, Jul 02, 2018 at 12:04:07PM +0100, Mark Rutland wrote: > Now that all of the syscall logic works on the saved pt_regs, apply_ssbd > can safely corrupt x0-x3 in the entry paths, and we no longer need to > restore them. So let's remove the logic doing so. > > With that logic gone, we can fold

Re: [PATCH v5 02/12] PM / devfreq: Fix handling of min/max_freq == 0

2018-07-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Wed, Jul 04, 2018 at 11:20:31AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 07월 04일 08:46, Matthias Kaehlcke wrote: > > Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding the > > devfreq device") initializes df->min/max_freq with the min/max OPP when > > th

Re: [PATCH] arm64: add ARM64-specific support for flatmem

2018-07-06 Thread Nikunj Kela (nkela)
Will modify the patch to remove ARM64. Every other architecture kept def_bool y for it so I followed the same for ARM64 too. Thanks, -Nikunj On 7/6/18, 9:00 AM, "Will Deacon" wrote: Please write a commit message for your patch. On Fri, Jul 06, 2018 at 08:56:27AM -0700, Nikunj Kel

RE: [PATCH 0/2] x86/kvm: Enable MCE injection in the guest v2

2018-07-06 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov > Sent: Thursday, June 28, 2018 1:38 PM > To: KVM > Cc: Joerg Roedel ; Radim Krčmář ; > Lendacky, Thomas ; Tony Luck > ; Ghannam, Yazen ; LKML > > Subject: [PATCH 0/2] x86/kvm: Enable MCE injection in the guest v2 > > From: Borislav Petkov >

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-06 Thread Kirill A. Shutemov
On Fri, Jul 06, 2018 at 04:39:28PM +0200, Gabriel C wrote: > > If not, we do not need to think about that case. > > Just say "Do not do that". > > I am sorry but I have a hard time to get your logic here. > > You are saying : the *env* variable LDFLAGS as well passing > LDFLAGS to make , which yo

<    1   2   3   4   5   6   >