Re: [PATCH v3] dcdbas: Add support for WSMT ACPI table

2018-06-13 Thread Andy Shevchenko
On Wed, Jun 13, 2018 at 4:24 AM, Stuart Hayes wrote: > > If the WSMT ACPI table is present and indicates that a fixed communication > buffer should be used, use the firmware-specified buffer instead of > allocating a buffer in memory for communications between the dcdbas driver > and firmare.

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-13 Thread Viresh Kumar
On 12-06-18, 19:35, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 07:02:57PM +0200, Daniel Lezcano wrote: > > Mmh, it is unclear for me if the park() vs wakeup() can happen at the > > same time. > > > > If the park() function is called, that means the hotplug is allowed. > > No, it means we're

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-13 Thread Daniel Lezcano
On 13/06/2018 10:55, Viresh Kumar wrote: > On 12-06-18, 19:35, Peter Zijlstra wrote: >> On Tue, Jun 12, 2018 at 07:02:57PM +0200, Daniel Lezcano wrote: >>> Mmh, it is unclear for me if the park() vs wakeup() can happen at the >>> same time. >>> >>> If the park() function is called, that means the

Re: [PATCH v2] IB/umem: ib_ucontext already have tgid, remove pid from ib_umem structure

2018-06-13 Thread 858585 jemmy
On Wed, Jun 13, 2018 at 12:36 PM, Jason Gunthorpe wrote: > On Tue, May 08, 2018 at 04:50:16PM +0800, Lidong Chen wrote: >> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >> If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has >> exited, get_pid_task

Re: [PATCH 3/3] rtc: ftrtc010: let the core handle range

2018-06-13 Thread Alexandre Belloni
On 13/06/2018 11:10:35+0200, Linus Walleij wrote: > On Mon, Jun 4, 2018 at 4:15 PM, Alexandre Belloni > wrote: > > The current range handling is highly suspicious. Anyway, let the core > > handle it. > > Hmmm. I have datasheets, do you need some input about the hardware? > Something I should

Re: [PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-13 Thread kbuild test robot
Hi Liang, Thank you for the patch! Yet something to improve: [auto build test ERROR on mtd/nand/next] [also build test ERROR on v4.17 next-20180613] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v3 4/6] dmaengine: imx-sdma: remove usless lock

2018-06-13 Thread Sascha Hauer
On Mon, Jun 11, 2018 at 10:59:31PM +0800, Robin Gong wrote: > No need anymore for 'lock' now since virtual dma will provide > the common lock instead. This can be merged into the last patch, maybe rephrasing the commit message from "revert..." to what is being done. To me "revert" sounds like the

Re: [GIT PULL] KVM changes for 4.18 merge window

2018-06-13 Thread Wanpeng Li
On Wed, 13 Jun 2018 at 12:53, Linus Torvalds wrote: > > On Tue, Jun 12, 2018 at 9:49 PM Greg Kroah-Hartman > wrote: > I'm going to be start traveling towards Japan and China tomorrow > morning, so I wanted to just get the problems I noticed out of my Great!, welcome to our country(China), and

Re: [PATCH v4 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-13 Thread Lee Jones
On Fri, 25 May 2018, Radu Pirea wrote: > This patch moves the bindings for serial from serial/atmel-usart.txt to > mfd/atmel-usart.txt and adds bindings for USART in SPI mode. > > Signed-off-by: Radu Pirea > --- > .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- > 1 file

[PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-06-13 Thread Yogesh Gaur
Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small. Allow nor->write() to return a size that is smaller than the requested write size to gracefully handle this case. Signed-off-by: Yogesh Gaur --- drivers/mtd/spi-nor/spi-nor.c | 7 ---

[PATCH 2/2] iio: adc: Add Spreadtrum SC27XX PMICs ADC support

2018-06-13 Thread Baolin Wang
From: Freeman Liu The Spreadtrum SC27XX PMICs ADC controller contains 32 channels, which is used to sample voltages with 12 bits conversion. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang --- drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile |1 +

[PATCH 1/2] dt-bindings: iio: Add Spreadtrum SC27XX PMICs ADC controller documentation

2018-06-13 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs ADC controller device. Signed-off-by: Baolin Wang --- .../bindings/iio/adc/sprd,sc27xx-adc.txt | 36 1 file changed, 36 insertions(+) create mode 100644

Re: [PATCH v5 1/3] xen: Sync up with the canonical protocol definitions in Xen

2018-06-13 Thread Juergen Gross
On 13/06/18 08:13, Oleksandr Andrushchenko wrote: > On 06/13/2018 09:11 AM, Dmitry Torokhov wrote: >> On June 12, 2018 10:49:31 PM PDT, Oleksandr Andrushchenko >> wrote: >>> On 06/13/2018 02:40 AM, Dmitry Torokhov wrote: On Tue, Jun 12, 2018 at 03:46:10PM +0200, Juergen Gross wrote: > On

Re: [PATCH v5 04/13] s390: vfio-ap: base implementation of VFIO AP device driver

2018-06-13 Thread Pierre Morel
On 07/05/2018 17:11, Tony Krowiak wrote: Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on the linux host. ...snip... +static int

Re: [PATCH v5 04/13] s390: vfio-ap: base implementation of VFIO AP device driver

2018-06-13 Thread Cornelia Huck
On Wed, 13 Jun 2018 09:41:16 +0200 Pierre Morel wrote: > On 07/05/2018 17:11, Tony Krowiak wrote: > > Introduces a new AP device driver. This device driver > > is built on the VFIO mediated device framework. The framework > > provides sysfs interfaces that facilitate passthrough > > access by

[PATCH 1/2] locking: Implement an algorithm choice for Wound-Wait mutexes

2018-06-13 Thread Thomas Hellstrom
The current Wound-Wait mutex algorithm is actually not Wound-Wait but Wait-Die. Implement also Wound-Wait as a per-ww-class choice. Wound-Wait is, contrary to Wait-Die a preemptive algorithm and is known to generate fewer backoffs. Testing reveals that this is true if the number of simultaneous

[PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-13 Thread Yixun Lan
From: Liang Yang Add initial support for the Amlogic NAND flash controller which found in the Meson-GXBB/GXL/AXG SoCs. Singed-off-by: Liang Yang Signed-off-by: Yixun Lan --- drivers/mtd/nand/raw/Kconfig |8 + drivers/mtd/nand/raw/Makefile |3 +

Re: [PATCH v3 0/8] gnss: add new GNSS subsystem

2018-06-13 Thread Johan Hovold
On Tue, Jun 05, 2018 at 11:47:52PM +0200, Pavel Machek wrote: > Hi! > > > > udev solves device discovery pretty well; I don't think that's good > > > thing to optimize for. > > > > It's about grouping related devices together, devices which share some > > common functionality. In this case,

Re: Restartable Sequences system call merged into Linux

2018-06-13 Thread Florian Weimer
On 06/12/2018 06:31 PM, Mathieu Desnoyers wrote: - On Jun 12, 2018, at 9:11 AM, Florian Weimer fwei...@redhat.com wrote: On 06/11/2018 10:04 PM, Mathieu Desnoyers wrote: - On Jun 11, 2018, at 3:55 PM, Florian Weimer fwei...@redhat.com wrote: On 06/11/2018 09:49 PM, Mathieu Desnoyers

Re: [PATCH] irqchip/gic-v3: do not access GICR_WAKER if its secured register.

2018-06-13 Thread Srinivas Kandagatla
On 12/06/18 17:34, Marc Zyngier wrote: I suggest you find out how the GIC has been integrated on this platform. If you take a fault on accessing this register, this very much looks like an integration bug, and it should be quirked as such. Thanks for the suggestion, This is a bug in the

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-13 Thread Oscar Salvador
On Wed, Jun 13, 2018 at 05:41:08AM +, Naoya Horiguchi wrote: > Hi everyone, > > I wrote a patch for this issue. > There was a discussion about prechecking approach, but I finally found > out it's hard to make change on memblock after numa_init, so I take > another apporach (see patch

Re: [PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-13 Thread kbuild test robot
Hi Liang, Thank you for the patch! Yet something to improve: [auto build test ERROR on mtd/nand/next] [also build test ERROR on v4.17 next-20180613] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-13 Thread Michal Hocko
On Wed 13-06-18 05:41:08, Naoya Horiguchi wrote: [...] > From: Naoya Horiguchi > Date: Wed, 13 Jun 2018 12:43:27 +0900 > Subject: [PATCH] mm: zero remaining unavailable struct pages > > There is a kernel panic that is triggered when reading /proc/kpageflags > on the kernel booted with kernel

Re: [PATCHv4 1/3] scripts: Preprocess module-common.lds

2018-06-13 Thread Michael Ellerman
Laura Abbott writes: > On 06/11/2018 11:03 PM, Michael Ellerman wrote: >> kbuild test robot writes: ... >>> All errors (new ones prefixed by >>): >>> > ld: cannot open linker script file scripts/module-common.lds: No such > file or directory >> >> This seems to need the following. >>

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-13 Thread Vlastimil Babka
On 06/12/2018 04:11 PM, Jason Baron wrote: > > > On 06/12/2018 03:46 AM, Michal Hocko wrote: >> On Mon 11-06-18 12:23:58, Jason Baron wrote: >>> On 06/11/2018 11:03 AM, Michal Hocko wrote: So can we start discussing whether we want to allow MADV_DONTNEED on mlocked areas and what

[lkp-robot] [rcutorture] 46e26223e3: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print

2018-06-13 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: 46e26223e39c64763e321f229e324be15179c505 ("rcutorture: Make boost test more robust") url: https://github.com/0day-ci/linux/commits/Joel-Fernandes/rcutorture-Disable-RT-throttling-for-boost-tests/20180611-074731 base:

Re: ACPI support in common clock framework

2018-06-13 Thread Andy Shevchenko
+Cc: Rafael, ACPI ML On Wed, Jun 13, 2018 at 7:14 AM, Srinath Mannam wrote: > Hi Michael, Stephen, > > We are adding ACPI support in our Linux based platform. > At present our clock hierarchy using common clock framework through DTS. > Now we required ACPI support in common clock framework to

Re: [PATCH v2 2/5] dt: qcom: 8996: thermal: Move to DT initialisation

2018-06-13 Thread Amit Kucheria
On Tue, Jun 12, 2018 at 10:35 PM, Bjorn Andersson wrote: > On Tue 12 Jun 03:54 PDT 2018, Amit Kucheria wrote: > >> We also split up the regmap address space into two, one for the TM >> registers, the other for the SROT registers. This was required to deal with >> different address offsets for the

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-13 Thread Viresh Kumar
On 12-06-18, 14:59, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 02:00:11PM +0200, Daniel Lezcano wrote: > > +struct idle_injection_device { > > remove this: > > + cpumask_var_t cpumask; > > > + struct hrtimer timer; > > + struct completion stop_complete; > > + unsigned int

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Ulf Hansson
On 13 June 2018 at 08:42, Marek Szyprowski wrote: > Hi Ulf, > > On 2018-06-12 21:43, Ulf Hansson wrote: >> On 12 June 2018 at 14:44, Marek Szyprowski wrote: >>> On 2018-06-12 13:00, Rafael J. Wysocki wrote: From: Rafael J. Wysocki If a device link is added via device_link_add()

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Ulf Hansson
[...] > --- > From: Rafael J. Wysocki > Subject: [PATCH v2] PM / core: Fix supplier device runtime PM usage counter > imbalance > > If a device link is added via device_link_add() by the driver of the > link's consumer device, the supplier's runtime PM usage counter is > going to be dropped by

[PATCH] mm: cma: honor __GFP_ZERO flag in cma_alloc()

2018-06-13 Thread Marek Szyprowski
cma_alloc() function has gfp mask parameter, so users expect that it honors typical memory allocation related flags. The most imporant from the security point of view is handling of __GFP_ZERO flag, because memory allocated by this function usually can be directly remapped to userspace by device

Re: [PATCH 1/3] rtc: ftrtc010: switch to devm_rtc_allocate_device

2018-06-13 Thread Linus Walleij
On Mon, Jun 4, 2018 at 4:15 PM, Alexandre Belloni wrote: > Switch to devm_rtc_allocate_device/rtc_register_device. This allow or > further improvement and simplifies ftrtc010_rtc_remove(). > > Signed-off-by: Alexandre Belloni Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 2/3] rtc: ftrtc010: handle dates after 2106

2018-06-13 Thread Linus Walleij
On Mon, Jun 4, 2018 at 4:15 PM, Alexandre Belloni wrote: > Use correct types for offset and time and use > rtc_time64_to_tm/rtc_tm_to_time64 to handle dates after 2106 properly. > > Signed-off-by: Alexandre Belloni Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-13 Thread Vlastimil Babka
On 06/13/2018 09:15 AM, Michal Hocko wrote: > On Wed 13-06-18 08:32:19, Vlastimil Babka wrote: >> On 06/12/2018 04:11 PM, Jason Baron wrote: >>> >>> >>> On 06/12/2018 03:46 AM, Michal Hocko wrote: On Mon 11-06-18 12:23:58, Jason Baron wrote: > On 06/11/2018 11:03 AM, Michal Hocko wrote:

Re: Possible regression caused by commit a192aa923b66a

2018-06-13 Thread Rafael J. Wysocki
On Wed, Jun 13, 2018 at 4:45 AM, Kai Heng Feng wrote: > Hi Rafael, > >> On Jun 12, 2018, at 5:17 PM, Rafael J. Wysocki wrote: >> >> On Monday, June 11, 2018 11:52:34 PM CEST Rafael J. Wysocki wrote: >>> >>> --703623056e64c488 >>> Content-Type: text/plain; charset="UTF-8" >>> >>> On

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-13 Thread jackm
On Fri, 8 Jun 2018 10:42:18 -0700 Matthew Wilcox wrote: > From: Matthew Wilcox > > Allocate agent IDs from a global IDR instead of an atomic variable. > This eliminates the possibility of reusing an ID which is already in > use after 4 billion registrations, and we can also limit the assigned

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-13 Thread Andy Shevchenko
On Wed, Jun 13, 2018 at 3:18 AM, Benjamin Herrenschmidt wrote: > But there are many other uses of things like of_iomap() which could > benefit from switching to devm_of_iomap() and thus getting the > automated cleanup on exit and appropriate request of the memory > resource. Fine, fine. --

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-13 Thread Michal Hocko
On Wed 13-06-18 09:51:23, Vlastimil Babka wrote: > On 06/13/2018 09:15 AM, Michal Hocko wrote: > > On Wed 13-06-18 08:32:19, Vlastimil Babka wrote: [...] > >> I think more concerning than guaranteeing no later major fault is > >> possible data loss, e.g. replacing data with zero-filled pages. > >

Re: [PATCH] irqchip/gic-v3: do not access GICR_WAKER if its secured register.

2018-06-13 Thread Sudeep Holla
On Wed, Jun 13, 2018 at 9:21 AM, Srinivas Kandagatla wrote: > > > On 12/06/18 17:34, Marc Zyngier wrote: >> >> I suggest you find out how the GIC has been integrated on this >> platform. If you take a fault on accessing this register, this very >> much looks like an integration bug, and it should

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-13 Thread Michal Hocko
On Tue 12-06-18 10:11:33, Jason Baron wrote: [...] > Ok, I share the concern that there is a chance that userspace is relying > on MADV_DONTNEED not free'ing locked memory. In that case, what if we > introduce a MADV_DONTNEED_FORCE, which does everything that > MADV_DONTNEED currently does but in

Re: [PATCH 2/2] clk: qcom: Add display clock controller driver for SDM845

2018-06-13 Thread Taniya Das
Hello Stephen, Thanks for review. On 6/12/2018 1:25 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-06-04 00:56:25) diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm845.c new file mode 100644 index 000..317ab33 --- /dev/null +++

Re: [PATCH v3 5/6] dmaengine: imx-sdma: remove the maximum limation for bd numbers

2018-06-13 Thread Sascha Hauer
In the subject: s/limation/limitation/ Sascha On Mon, Jun 11, 2018 at 10:59:32PM +0800, Robin Gong wrote: > No this limitation now after virtual dma used since bd is allocated > dynamically instead of static. > > Signed-off-by: Robin Gong > --- > drivers/dma/imx-sdma.c | 14 -- >

Re: [GIT PULL] Please pull NFS client changes for 4.18

2018-06-13 Thread Paul E. McKenney
On Wed, Jun 13, 2018 at 11:42:51AM +1000, NeilBrown wrote: > On Tue, Jun 12 2018, Paul E. McKenney wrote: > > > On Tue, Jun 12, 2018 at 06:11:50PM -0700, Linus Torvalds wrote: > >> On Tue, Jun 12, 2018 at 6:02 PM Paul E. McKenney > >> wrote: > >> > > >> > We did review this one, and Neil did

[PATCH] mtd: devices: m25p80: Make sure WRITE_EN is issued before each write

2018-06-13 Thread Yogesh Gaur
Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small, but when that happens we should make sure a WRITE_EN command before each write access and READ_SR command after each write access is issued. The core is already taking care of that, so all

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-13 Thread Michal Hocko
On Wed 13-06-18 08:32:19, Vlastimil Babka wrote: > On 06/12/2018 04:11 PM, Jason Baron wrote: > > > > > > On 06/12/2018 03:46 AM, Michal Hocko wrote: > >> On Mon 11-06-18 12:23:58, Jason Baron wrote: > >>> On 06/11/2018 11:03 AM, Michal Hocko wrote: > So can we start discussing whether we

Re: [RFC 2/2] x86, tsc: Enable clock for ealry printk timestamp

2018-06-13 Thread Feng Tang
On Wed, Jun 06, 2018 at 05:38:33PM +0800, Feng Tang wrote: > On Sat, Jun 02, 2018 at 12:12:13AM +0800, Feng Tang wrote: > > Hi Peter and all, > > > > Hi Peter and Petr, > > > > Thanks for your suggestions, will try to find a cleaner and less hacky way, > > and it may take some time as dealing

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-13 Thread Leon Romanovsky
On Tue, Jun 12, 2018 at 05:07:39PM -0700, Matthew Wilcox wrote: > On Tue, Jun 12, 2018 at 02:33:22PM -0600, Jason Gunthorpe wrote: > > > @@ -377,13 +378,24 @@ struct ib_mad_agent *ib_register_mad_agent(struct > > > ib_device *device, > > > goto error4; > > > } > > > > > > -

Re: [PATCH 3/3] rtc: ftrtc010: let the core handle range

2018-06-13 Thread Linus Walleij
On Mon, Jun 4, 2018 at 4:15 PM, Alexandre Belloni wrote: > The current range handling is highly suspicious. Anyway, let the core > handle it. Hmmm. I have datasheets, do you need some input about the hardware? Something I should patch? > The RTC has a 32 bit counter on top of days + hh:mm:ss

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-13 Thread Viresh Kumar
On 13-06-18, 11:03, Daniel Lezcano wrote: > nr_threads(smpboot) <> nr_threads(idleinject) > > If we are facing races issues, it is because we are trying to avoid > using locks in the code path. With lock and proper refcounting that > should be solved, AFAICT there are similar races with inodes.

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Marek Szyprowski
Hi Rafael, On 2018-06-12 16:24, Rafael J. Wysocki wrote: > On Tuesday, June 12, 2018 2:44:23 PM CEST Marek Szyprowski wrote: >> On 2018-06-12 13:00, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> If a device link is added via device_link_add() by the driver of the >>> link's

Re: [lkp-robot] [rcutorture] 46e26223e3: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print

2018-06-13 Thread Joel Fernandes
(I'm actually not working this week, but still thought of replying :)) On Wed, Jun 13, 2018 at 02:57:11PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-4.9): > > commit: 46e26223e39c64763e321f229e324be15179c505 ("rcutorture: Make boost > test more

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Rafael J. Wysocki
On Tue, Jun 12, 2018 at 9:43 PM, Ulf Hansson wrote: > On 12 June 2018 at 14:44, Marek Szyprowski wrote: [cut] >> >> Is there any way to keep old behavior? > > I think the old behavior is sub-optimal. I am sure there are users > that really don't want the driver core to runtime resume the

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Rafael J. Wysocki
On Wed, Jun 13, 2018 at 8:23 AM, Marek Szyprowski wrote: > Hi Rafael, Hi Marek, > On 2018-06-12 16:24, Rafael J. Wysocki wrote: >> On Tuesday, June 12, 2018 2:44:23 PM CEST Marek Szyprowski wrote: >>> On 2018-06-12 13:00, Rafael J. Wysocki wrote: From: Rafael J. Wysocki If a

[PATCH 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver

2018-06-13 Thread Yixun Lan
From: Liang Yang Add Amlogic NAND controller dt-bindings for Meson SoC, Current this driver support GXBB/GXL/AXG platform. Signed-off-by: Liang Yang Signed-off-by: Yixun Lan --- .../bindings/mtd/amlogic,meson-nand.txt | 118 ++ 1 file changed, 118 insertions(+) create

[PATCH 0/2] mtd: rawnand: meson: add Amlogic NAND driver support

2018-06-13 Thread Yixun Lan
These two patches try to add initial NAND driver support for Amlogic Meson SoCs, current it has been tested on GXL(p212) and AXG(s400) platform. Liang Yang (2): dt-bindings: nand: meson: add Amlogic NAND controller driver mtd: rawnand: meson: add support for Amlogic NAND flash controller

Re: [lkp-robot] [watchdog/softlockup] 4808e7a5dc: BUG:KASAN:null-ptr-deref_in_h

2018-06-13 Thread Peter Zijlstra
On Wed, Jun 13, 2018 at 01:08:38PM +0800, kernel test robot wrote: > [0.037000] BUG: KASAN: null-ptr-deref in hrtimer_active+0x70/0xa0 > [0.037000] Read of size 4 at addr 0010 by task swapper/1 > [0.037000] > [0.037000] CPU: 0 PID: 1 Comm: swapper Tainted: G

Re: ACPI support in common clock framework

2018-06-13 Thread Rafael J. Wysocki
On Wed, Jun 13, 2018 at 10:13 AM, Andy Shevchenko wrote: > +Cc: Rafael, ACPI ML > > On Wed, Jun 13, 2018 at 7:14 AM, Srinath Mannam > wrote: >> Hi Michael, Stephen, >> >> We are adding ACPI support in our Linux based platform. >> At present our clock hierarchy using common clock framework

Re: [PATCH 14/28] drm/mediatek: add connection from RDMA1 to DPI1

2018-06-13 Thread CK Hu
Hi, Stu: On Wed, 2018-06-13 at 15:56 +0800, Stu Hsieh wrote: > Hi, CK: > > On Wed, 2018-06-13 at 14:13 +0800, CK Hu wrote: > > Hi, Stu: > > > > On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > > > This patch add the connection from RDMA1 to DPI1 > > > > > > Signed-off-by: Stu Hsieh > > >

Re: [PATCH 2/2] iio: adc: Add Spreadtrum SC27XX PMICs ADC support

2018-06-13 Thread Peter Meerwald-Stadler
> From: Freeman Liu some comments below > The Spreadtrum SC27XX PMICs ADC controller contains 32 channels, > which is used to sample voltages with 12 bits conversion. > > Signed-off-by: Freeman Liu > Signed-off-by: Baolin Wang > --- > drivers/iio/adc/Kconfig | 10 + >

[PULL REQUEST] i2c for 4.18

2018-06-13 Thread Wolfram Sang
Linus, I2C has for 4.18: * mainly feature additions to drivers (stm32f7, qup, xlp9xx, mlxcpld, ...) * conversion to use the i2c_8bit_addr_from_msg macro consistently * move includes to platform_data * core updates to allow the (still in review) I3C subsystem to connect * and the regular share of

[PATCH] clk: qcom: Move frequency table macro to common file

2018-06-13 Thread Taniya Das
Frequency table macro is used by multiple clock drivers, move frequency table macro to common header file. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rcg.h | 2 ++ drivers/clk/qcom/gcc-apq8084.c | 2 -- drivers/clk/qcom/gcc-ipq4019.c | 2 -- drivers/clk/qcom/gcc-ipq8074.c | 2 --

Re: [PATCH 14/39] ovl: stack file ops

2018-06-13 Thread Miklos Szeredi
On Tue, Jun 12, 2018 at 8:31 PM, Al Viro wrote: > On Tue, Jun 12, 2018 at 07:24:23PM +0100, Al Viro wrote: >> I hate it, but... consider path_open() objections withdrawn for now. Is that an ACK for the pull if I follow up with fixes for mmap botch, etc? >> Uses of ->vm_file (and rules for

[PATCH] clk: qcom: Move frequency table macro to common file

2018-06-13 Thread Taniya Das
Frequency table macro is used by multiple clock drivers, move frequency table macro to common header file. Change-Id: I78d76f04b6c335c05dd9325025be7db1e99cbeac Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rcg.h| 2 ++ drivers/clk/qcom/gcc-apq8084.c| 2 --

RE: [PATCH] mtd: spi-nor: honour max_data_size for spi-nor writes

2018-06-13 Thread Yogesh Narayan Gaur
Hi Boris, -Original Message- From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] Sent: Monday, June 11, 2018 3:19 PM To: Yogesh Narayan Gaur Cc: linux-...@lists.infradead.org; boris.brezil...@free-electrons.com; frieder.schre...@exceet.de; computersforpe...@gmail.com; David

Re: [PATCH linux-next v5 07/13] dt-bindings: mfd: Add a document for PECI client mfd

2018-06-13 Thread Lee Jones
All s/mfd/MFD/ > This commit adds a dt-bindings document for PECI client multi-function > device. Multi-Function Device > Signed-off-by: Jae Hyun Yoo > Cc: Andrew Jeffery > Cc: James Feist > Cc: Jason M Biils > Cc: Joel Stanley > Cc: Vernon Mauery > --- >

Re: [PATCH v2 18/24] serdev: ttydev: Serdev driver that creates an standard TTY port

2018-06-13 Thread Ricardo Ribalda Delgado
Hi Rob, On Wed, Jun 13, 2018 at 3:20 AM Rob Herring wrote: > > On Mon, Jun 11, 2018 at 5:52 AM, Ricardo Ribalda Delgado > wrote: > > Standard TTY port that can be loaded/unloaded via serdev sysfs. This > > serdev driver can only be used by serdev controllers that are compatible > > with ttyport.

[PATCH 1/4] net: emaclite: Fix position of lp->mii_bus assignment

2018-06-13 Thread Radhey Shyam Pandey
To ensure MDIO bus is not double freed in remove() path assign lp->mii_bus after MDIO bus registration. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- drivers/net/ethernet/xilinx/xilinx_emaclite.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 4/4] net: emaclite: Remove xemaclite_mdio_setup return check

2018-06-13 Thread Radhey Shyam Pandey
Errors are already reported in xemaclite_mdio_setup so avoid reporting it again. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- drivers/net/ethernet/xilinx/xilinx_emaclite.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git

[lkp-robot] [x86/vdso] ab1bcc4420: BUG:kernel_hang_in_boot_stage

2018-06-13 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: ab1bcc442070315bd0ce963331d5bb93d5c5476e ("x86/vdso: Move out the CPU number store") url: https://github.com/0day-ci/linux/commits/Chang-S-Bae/x86-fsgsbase-64-Introduce-FS-GS-base-helper-functions/20180605-095329 in testcase:

[lkp-robot] [kernfs, sysfs, cgroup, intel_rdt] 0dd4eca846: kernel_BUG_at_fs/super.c

2018-06-13 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: 0dd4eca846629b5dc7d11ca40ae2a1379334b9e4 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters:

[PATCH 0/2] Enable VDMA S2MM vertical flip support

2018-06-13 Thread Radhey Shyam Pandey
The AXI VDMA core supports Vertical Flip with S2MM as the path when Enable Vertical Flip (Advanced tab) is selected. This patch series add DT property for vertical flip and program its state in VDMA start_transfer. Radhey Shyam Pandey (2): dt-bindings: dmaengine: xilinx_dma: Add VDMA vertical

[PATCH 2/2] dmaengine: xilinx_dma: Enable VDMA S2MM vertical flip support

2018-06-13 Thread Radhey Shyam Pandey
Vertical flip state is exported in xilinx_vdma_config and depending on IP configuration(c_enable_vert_flip) vertical flip state is programmed in hardware. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- drivers/dma/xilinx/xilinx_dma.c | 22 ++

[PATCH 1/2] dt-bindings: dmaengine: xilinx_dma: Add VDMA vertical flip property

2018-06-13 Thread Radhey Shyam Pandey
The AXI VDMA core supports Vertical flip in S2MM path when Enable Vertical Flip (Advanced tab) is selected. To allow vertical flip programming define an optional 'xlnx,enable-vert-flip' channel child node property. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek ---

Re: [PATCH 2/2] iio: adc: Add Spreadtrum SC27XX PMICs ADC support

2018-06-13 Thread Baolin Wang
Hi Peter, On 13 June 2018 at 16:53, Peter Meerwald-Stadler wrote: > >> From: Freeman Liu > > some comments below > >> The Spreadtrum SC27XX PMICs ADC controller contains 32 channels, >> which is used to sample voltages with 12 bits conversion. >> >> Signed-off-by: Freeman Liu >> Signed-off-by:

Re: [PATCH v3 3/3] arm64/mm: migrate swapper_pg_dir and tramp_pg_dir

2018-06-13 Thread James Morse
Hi Jun, On 06/06/18 05:39, Jun Yao wrote: > Migrate swapper_pg_dir and tramp_pg_dir. And their virtual addresses > do not correlate with kernel's address. This is all to make 'KSMA' harder, where an single arbitrary write is used to add a block mapping to the page-tables, giving the attacker

Re: [PATCH v4] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-13 Thread Dan Carpenter
So close... On Tue, Jun 12, 2018 at 11:09:44PM +0200, Chris Opperman wrote: > Changes since v3: > a) Reverted u64 to unsigned long long and u32 to unsigned int. > b) Added patch versioning. > c) Changed type of scans_left to unsigned long long to avoid cast. > d) Clarified and updated

Re: [PATCHv4 2/3] kbuild: Introduce build-salt linker section and config option

2018-06-13 Thread Masahiro Yamada
Hi. 2018-06-12 9:32 GMT+09:00 Laura Abbott : > > The build id generated from --build-id can be generated in several different > ways, with the default being the sha1 on the output of the linked file. For > distributions, it can be useful to make sure this ID is unique, even if the > actual file

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Marek Szyprowski
Hi Ulf, On 2018-06-12 21:43, Ulf Hansson wrote: > On 12 June 2018 at 14:44, Marek Szyprowski wrote: >> On 2018-06-12 13:00, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> If a device link is added via device_link_add() by the driver of the >>> link's consumer device, the

Re: [PATCH v5 1/3] xen: Sync up with the canonical protocol definitions in Xen

2018-06-13 Thread Oleksandr Andrushchenko
On 06/13/2018 09:40 AM, Juergen Gross wrote: On 13/06/18 08:13, Oleksandr Andrushchenko wrote: On 06/13/2018 09:11 AM, Dmitry Torokhov wrote: On June 12, 2018 10:49:31 PM PDT, Oleksandr Andrushchenko wrote: On 06/13/2018 02:40 AM, Dmitry Torokhov wrote: On Tue, Jun 12, 2018 at 03:46:10PM

Re: [PATCH] arm64: dts: apq8096-db820c: disable uart0 by default

2018-06-13 Thread Andy Gross
On Tue, Jun 12, 2018 at 03:48:06PM +0100, Srinivas Kandagatla wrote: > Access to UART0 is disabled by bootloaders. By leaving it enabled by > default would reboot the board. > Disable this for now, this would alteast give a board which boots. > > Signed-off-by: Srinivas Kandagatla Thanks for

Re: [PATCH 23/28] drm/mediatek: add DPI1 support for mutex

2018-06-13 Thread CK Hu
Hi, Stu: On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > This patch add the DPI1 support for mutex > > Signed-off-by: Stu Hsieh Reviewed-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git

Re: [PATCH 24/28] drm/mediatek: add DSI2 support for mutex

2018-06-13 Thread CK Hu
Hi, Stu: On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > This patch add the DSI2 support for mutex > > Signed-off-by: Stu Hsieh Reviewed-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git

[PATCH] mtd: rawnand: fix return value check for bad block status

2018-06-13 Thread Abhishek Sahu
Positive return value from read_oob() is making false BAD blocks. For some of the NAND controllers, OOB bytes will be protected with ECC and read_oob() will return number of bitflips. If there is any bitflip in ECC protected OOB bytes for BAD block status page, then that block is getting treated

[PATCH v2] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-06-13 Thread Thierry Escande
If the test_printf module is loaded before the crng is initialized, the plain 'p' tests will fail because the printed address will not be hashed and the buffer will contain "(ptrval)" instead. Since we cannot wait for the crng to be initialized for an undefined time, both plain 'p' tests now

Re: [RFC PATCH 6/8] dts: coresight: Clean up the device tree graph bindings

2018-06-13 Thread Suzuki K Poulose
Hi Rob, On 12/06/18 21:48, Rob Herring wrote: On Fri, Jun 01, 2018 at 02:16:05PM +0100, Suzuki K Poulose wrote: 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.

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-13 Thread Rafael J. Wysocki
Hi Marek, On Wed, Jun 13, 2018 at 12:23 PM, Marek Szyprowski wrote: > Hi Rafael, > [cut] > Let's get back to my IOMMU and codec case, mentioned here: > https://marc.info/?l=linux-pm=152878741527962=2 > > Now, after applying your patch, when IOMMU creates a link with >

Re: [PATCH] clk: meson-gxbb: set fclk_div2 as CLK_IS_CRITICAL

2018-06-13 Thread Jerome Brunet
On Wed, 2018-06-13 at 14:20 +0200, Neil Armstrong wrote: > On Amlogic Meson GXBB & GXL platforms, the SCPI Cortex-M4 Co-Processor > seems to be dependent on the FCLK_DIV2 to be operationnal. > > The issue occured since v4.17-rc1 by freezing the kernel boot when > the 'schedutil' cpufreq governor

Re: [PATCH] fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()'

2018-06-13 Thread Moritz Fischer
Hi Christophe, good catch! On Mon, Jun 11, 2018 at 12:20 PM, Christophe JAILLET wrote: > If 'fpga_mgr_create()' fails, we should release some resources, as done > in the other error handling path of the function. > > Fixes: 7085e2a94f7d ("fpga: manager: change api, don't use drvdata") >

Re: [PATCH] ACPI / LPSS: Avoid PM quirks on suspend and resume from S3

2018-06-13 Thread Andy Shevchenko
On Wed, 2018-06-13 at 13:17 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > It is reported that commit a192aa923b66a (ACPI / LPSS: Consolidate > runtime PM and system sleep handling) introduced a system suspend > regression on some machines, but the only functional change made by >

Re: [PATCH] mm: cma: honor __GFP_ZERO flag in cma_alloc()

2018-06-13 Thread Christoph Hellwig
On Wed, Jun 13, 2018 at 10:58:37AM +0200, Marek Szyprowski wrote: > cma_alloc() function has gfp mask parameter, so users expect that it > honors typical memory allocation related flags. The most imporant from > the security point of view is handling of __GFP_ZERO flag, because memory > allocated

Re: [RFC PATCH 6/8] dts: coresight: Clean up the device tree graph bindings

2018-06-13 Thread Suzuki K Poulose
Hi Matt, Thanks for your comments, responses inline. On 13/06/18 13:49, Matt Sealey wrote: Suzuki, Why not use “unit”? I believe we had this discussion years ago about numbering serial ports and sdhci (i.e. how do you know it’s UART0 or UART1 from just the address? Some SoC’s don’t address

[PATCH v2 2/2] clk: qcom: Add display clock controller driver for SDM845

2018-06-13 Thread Taniya Das
Add support for the display clock controller found on SDM845 based devices. This would allow display drivers to probe and control their clocks. Signed-off-by: Taniya Das --- drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/dispcc-sdm845.c |

[GIT PULL] More ACPI updates for v4.18-rc1

2018-06-13 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.18-rc1-2 with top-most commit 674455326ee397bc8334920533f71090b61fa594 Merge branch 'acpica' on top of commit f4fe74cc909bf811cd9cc7fd84f5a7514e06a7e1 Merge tag 'acpi-4.18-rc1'

[RFC PATCH] irqchip/gic-v3: Add quirk for msm8996 secured registers

2018-06-13 Thread Srinivas Kandagatla
Access to GICR_WAKER is restricted on msm8996 SoC. Its been more than 2 years of wait for this to be fixed in firmware which is not going anywhere. So add a quirk to not write to this register. With this quirk MSM8996 can atleast boot out of mainline, which can help community to work with boards

[Fwd: avahi-daemon.service startup failure post kernel commit f396922d862a]

2018-06-13 Thread Mike Galbraith
Well, the folks at "To:" below apparently don't want bug reports from non-subscribers (no mediation, simply rejected). Posting here simply because it may save some other busy person a bisection. Forwarded Message From: Mike Galbraith To: av...@lists.freedesktop.org Subject:

Re: [PATCH 14/39] ovl: stack file ops

2018-06-13 Thread J. R. Okajima
Al Viro: > I'd managed to push that particular nest of horrors out of mind ;-/ > Having dug out my notes from back then and grepped around... The real > mess is not even /proc/*/maps - it's /proc/*/map_files/* and yes, the > reasons for that kludge are still valid ;-/ ::: > Uses of

Re: Quilt vs gmail (Was: [PATCH 0/3] sched/swait: Convert to full exclusive mode)

2018-06-13 Thread Jean Delvare
Hi Peter, Linus, Andreas, On Tue, 12 Jun 2018 19:14:20 +0200, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 09:47:34AM -0700, Linus Torvalds wrote: > > > I do note how quilt emails are really hard to read, because that: > > > > Content-Disposition: inline > > > > makes gmail think it's

Re: [PATCH v2 2/2] clk: qcom: Add display clock controller driver for SDM845

2018-06-13 Thread kbuild test robot
Hi Taniya, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on next-20180613] [cannot apply to v4.17] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[PATCH 3/5] soc: qcom: smp2p: Add select IRQ_DOMAIN

2018-06-13 Thread Niklas Cassel
Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smp2p.c: In function ‘qcom_smp2p_inbound_entry’: drivers/soc/qcom/smp2p.c:317:18: error: implicit declaration of function

  1   2   3   4   5   6   7   8   9   10   >