[PATCH 13/22] arm64: dts: qcom: pm8150l: Add pon and adc nodes

2019-08-14 Thread Vinod Koul
Add the pon and adc nodes found in pm8150l PMIC. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 33 +++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi index e61ae6c6dab5.

[PATCH 10/22] arm64: dts: qcom: pm8150b: Add pon and adc nodes

2019-08-14 Thread Vinod Koul
Add the pon and adc nodes found in pm8150b PMIC. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi index c0a678b0f159.

[PATCH 20/22] arm64: dts: qcom: sm8150: Add pmu node to SM8150 SoC

2019-08-14 Thread Vinod Koul
From: Sibi Sankar Add the CPU PMU on SM8150 to get perf support for hardware events. Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/d

Re: [PATCH v1 1/1] waitid: Add support for waiting for the current process group

2019-08-14 Thread Christian Brauner
On Wed, Aug 14, 2019 at 02:50:12PM +0200, Oleg Nesterov wrote: > On 08/14, Christian Brauner wrote: > > > > On Wed, Aug 14, 2019 at 02:29:10PM +0200, Oleg Nesterov wrote: > > > On 08/14, christian.brau...@ubuntu.com wrote: > > > > > > > > case P_PGID: > > > > type = PIDTYPE_

[PATCH 22/22] arm64: dts: qcom: sm8150: Add APSS shared mailbox

2019-08-14 Thread Vinod Koul
From: Sibi Sankar Add APSS shared mailbox support to SM8150 SoC. Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm81

Re: [PATCH v4 3/9] nvmem: core: add nvmem_device_find

2019-08-14 Thread Srinivas Kandagatla
On 14/08/2019 12:46, Thomas Bogendoerfer wrote: On Tue, 13 Aug 2019 10:40:34 +0100 Srinivas Kandagatla wrote: On 09/08/2019 11:32, Thomas Bogendoerfer wrote: nvmem_device_find provides a way to search for nvmem devices with the help of a match function simlair to bus_find_device. Signed

[PATCH 19/22] arm64: dts: qcom: sm8150-mtp: Add regulators

2019-08-14 Thread Vinod Koul
Add the regulators found in the mtp platform. This platform consists of pmic PM8150, PM8150L and PM8009. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 327 1 file changed, 327 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts

[PATCH 17/22] arm64: dts: qcom: sm8150: Add apss_shared and apps_rsc nodes

2019-08-14 Thread Vinod Koul
Add apss_shared and apps_rsc node including the rpmhcc child node Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 30 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi inde

[PATCH 16/22] arm64: dts: qcom: sm8150-mtp: Add resin node

2019-08-14 Thread Vinod Koul
The sm8150-mtp board has a reset button which also works as a volume down key. Add the node for resin device to handle the resin and volume down key Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/

[PATCH 18/22] arm64: dts: qcom: sm8150: Add reserved-memory regions

2019-08-14 Thread Vinod Koul
Add the reserved memory regions in SM8150 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 111 +++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 5258b79676f6..7111e1f

[PATCH 21/22] arm64: dts: qcom: sm8150: Add SMEM nodes

2019-08-14 Thread Vinod Koul
From: Sibi Sankar Add the necessary dt nodes to support SMEM on SM8150 SoC. Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/b

[PATCH 08/22] arm64: dts: qcom: pm8150: Add vadc node

2019-08-14 Thread Vinod Koul
PM8150 PMIC contains vadc device so add node for this. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 2cb727ce3

Re: [RESEND PATCH 1/2 -mm] mm: account lazy free pages separately

2019-08-14 Thread Michal Hocko
On Wed 14-08-19 14:49:18, Vlastimil Babka wrote: > On 8/9/19 8:26 PM, Yang Shi wrote: > > Here the new counter is introduced for patch 2/2 to account deferred > > split THPs into available memory since NR_ANON_THPS may contain > > non-deferred split THPs. > > > > I could use an internal counter

Re: [RESEND PATCH 1/2 -mm] mm: account lazy free pages separately

2019-08-14 Thread Vlastimil Babka
On 8/12/19 7:00 PM, Yang Shi wrote: >> I can see that memcg rss size was the primary problem David was looking >> at. But MemAvailable will not help with that, right? Moreover is > > Yes, but David actually would like to have memcg MemAvailable (the > accounter like the global one), which should

[PATCH v5 4/6] mm: Introduce Reported pages

2019-08-14 Thread David Hildenbrand
>>> +struct page *get_unreported_page(struct zone *zone, unsigned int order, >>> int mt) >>> +{ >>> + struct list_head *tail = get_unreported_tail(zone, order, mt); >>> + struct free_area *area = &(zone->free_area[order]); >>> + struct list_head *list = &area->free_list[mt]; >>> + struct p

Re: [PATCH] i2c: stm32: Use the correct style for SPDX License Identifier

2019-08-14 Thread Wolfram Sang
On Sat, Aug 03, 2019 at 07:43:35PM +0530, Nishad Kamdar wrote: > This patch corrects the SPDX License Identifier style > in header file related to STM32 Driver for I2C hardware > bus support. > For C header files Documentation/process/license-rules.rst > mandates C-like comments (opposed to C sourc

[PATCH] MAINTAINERS: PHY LIBRARY: Update files in the record

2019-08-14 Thread Denis Efremov
Update MAINTAINERS to reflect that sysfs-bus-mdio was removed in commit a6cd0d2d493a ("Documentation: net-sysfs: Remove duplicate PHY device documentation") and sysfs-class-net-phydev was added in commit 86f22d04dfb5 ("net: sysfs: Document PHY device sysfs attributes"). Cc: Florian Fainelli Cc: A

Re: [PATCH v3 3/9] soc: samsung: Add Exynos Adaptive Supply Voltage driver

2019-08-14 Thread Krzysztof Kozlowski
On Tue, 13 Aug 2019 at 17:08, Sylwester Nawrocki wrote: > > The Adaptive Supply Voltage (ASV) driver adjusts CPU cluster operating > points depending on exact revision of an SoC retrieved from the CHIPID > block or the OTP memory. This allows for some power saving as for some > CPU clock frequenc

Re: [PATCH v3 7/9] soc: samsung: Update the CHIP ID DT binding documentation

2019-08-14 Thread Krzysztof Kozlowski
On Tue, 13 Aug 2019 at 17:09, Sylwester Nawrocki wrote: > > This patch adds documentation of a new optional "samsung,asv-bin" > property in the chipid device node and documents requirement of > "syscon" compatible string. These additions are needed to support > Exynos ASV (Adaptive Supply Voltage

[PATCH] scsi: ufs: Fix NULL pointer dereference in ufshcd_config_vreg_hpm()

2019-08-14 Thread Adrian Hunter
Fix the following BUG: [ 187.065689] BUG: kernel NULL pointer dereference, address: 001c [ 187.065790] RIP: 0010:ufshcd_vreg_set_hpm+0x3c/0x110 [ufshcd_core] [ 187.065938] Call Trace: [ 187.065959] ufshcd_resume+0x72/0x290 [ufshcd_core] [ 187.065980] ufshcd_system_resume+0x54

Re: [PATCH v3 0/9] Exynos Adaptive Supply Voltage support

2019-08-14 Thread Krzysztof Kozlowski
On Tue, 13 Aug 2019 at 17:08, Sylwester Nawrocki wrote: > > This is third iteration of my patch series adding ASV (Adaptive Supply > Voltage) support for Exynos SoCs. The previous one can be found at: > https://lore.kernel.org/lkml/20190718143044.25066-1-s.nawro...@samsung.com > > There is no majo

Re: [PATCH 8/9] x86/fpu: correctly check for kthreads

2019-08-14 Thread Sebastian Andrzej Siewior
On 2019-08-14 11:41:30 [+0100], Mark Rutland wrote: > Per commit: > > 0cecca9d03c964ab ("x86/fpu: Eager switch PKRU state") > > ... switch_fpu_state() is trying to distinguish user threads from > kthreads, such that kthreads consistently use init_pkru_value. It does > do by looking at current->

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Thu, Aug 08, 2019 at 04:50:35PM +0200, Clément Péron wrote: > Hi, > > On Thu, 8 Aug 2019 at 10:42, Corentin Labbe wrote: > > > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slot. > > > > The only devicetre

Re: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-14 Thread Cornelia Huck
On Wed, 14 Aug 2019 12:27:01 + Parav Pandit wrote: > + Jiri, + netdev > To get perspective on the ndo->phys_port_name for the representor netdev of > mdev. > > Hi Cornelia, > > > -Original Message- > > From: Cornelia Huck > > Sent: Wednesday, August 14, 2019 1:32 PM > > To: Parav

Re: [PATCH] regmap: fix writes to non incrementing registers

2019-08-14 Thread Ben Whitten
On Wed, 14 Aug 2019 at 11:01, Mark Brown wrote: > > On Tue, Aug 13, 2019 at 10:22:51PM +0100, Ben Whitten wrote: > > > @@ -1489,10 +1489,11 @@ static int _regmap_raw_write_impl(struct regmap > > *map, unsigned int reg, > > WARN_ON(!map->bus); > > > > /* Check for unwritable registers

[PATCH v2 1/1] waitid: Add support for waiting for the current process group

2019-08-14 Thread Christian Brauner
From: "Eric W. Biederman" It was recently discovered that the linux version of waitid is not a superset of the other wait functions because it does not include support for waiting for the current process group. This has two downsides. An extra system call is needed to get the current process gr

[PATCH v2 0/1] waitid: process group enhancement

2019-08-14 Thread Christian Brauner
Hey everyone, This patch adds support for waiting on the current process group by specifying waitid(P_PGID, 0, ...) as discussed in [1]. The details why we need to do this are in the commit message of [PATCH 1/1] so I won't repeat them here. I've picked this up since the thread has gone stale and

linux-next: Tree for Aug 14

2019-08-14 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release tomorrow. Changes since 20190813: New trees: gpio-intel-fixes, gpio-intel pinctrl-intel-fixes, pinctrl-intel The arm-soc tree gained a build failure for which I applied a patch. The crypto tree still had its build failure f

Re: [PATCH v2] i2c: axxia: support slave mode

2019-08-14 Thread Wolfram Sang
Hi Krzysztof, > - Reduced the number of dev_dbg messages. Yes, that looks good. Just some curly braces left over... > + if (fifo_status & SLV_FIFO_STRC) { > + i2c_slave_event(idev->slave, > + I2C_SLAVE_WRITE_REQUESTED, &val); >

Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5

2019-08-14 Thread Tony Lindgren
* H. Nikolaus Schaller [190814 10:34]: > > > Am 14.08.2019 um 11:47 schrieb Tony Lindgren : > > > > * H. Nikolaus Schaller [190814 08:57]: > >> I also have pushed good news to > >> > >>https://github.com/openpvrsgx-devgroup/linux_openpvrsgx/tree/letux-pvr > >> > >> Thanks to the help from

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slot. > > > > The only devicetree

Re: "PM / wakeup: Show wakeup sources stats in sysfs" causes boot warnings

2019-08-14 Thread Qian Cai
On Tue, 2019-08-13 at 15:35 -0700, Stephen Boyd wrote: > Quoting Qian Cai (2019-08-13 14:32:56) > > The linux-next commit "PM / wakeup: Show wakeup sources stats in sysfs" [1] > > introduced some baddies during boot on several x86 servers. Reverted the > > commit > > fixed the issue. > > > > [1] h

Re: [PATCH v4 9/9] Input: add IOC3 serio driver

2019-08-14 Thread Jonas Gorski
Hi, On Fri, 9 Aug 2019 at 12:33, Thomas Bogendoerfer wrote: > > This patch adds a platform driver for supporting keyboard and mouse > interface of SGI IOC3 chips. > > Signed-off-by: Thomas Bogendoerfer > --- > drivers/input/serio/Kconfig | 10 +++ > drivers/input/serio/Makefile | 1 + > d

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote: > Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a): > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slot. > > > > The o

Re: [PATCH] selftests: livepatch: add missing fragments to config

2019-08-14 Thread Joe Lawrence
On 8/14/19 7:16 AM, Anders Roxell wrote: When generating config with 'make defconfig kselftest-merge' fragment CONFIG_TEST_LIVEPATCH=m isn't set. Rework to enable CONFIG_LIVEPATCH and CONFIG_DYNAMIC_DEBUG as well. Signed-off-by: Anders Roxell --- tools/testing/selftests/livepatch/config | 2

Re: [PATCH v4 0/7] x86: KVM: svm: get rid of hardcoded instructions lengths

2019-08-14 Thread Paolo Bonzini
On 13/08/19 15:53, Vitaly Kuznetsov wrote: > Changes since v3 [Sean Christopherson]: > - add Reviewed-by tag to PATCH5 > - __skip_emulated_instruction()/skip_emulated_instruction() split, > 'unlikely(r != EMULATE_DONE)' in PATCH2 > - Make nested_svm_vmrun() return an int in PATCH6 (moved from PAT

Re: [PATCH] clk: socfpga: deindent code to proper indentation

2019-08-14 Thread Dinh Nguyen
On 8/13/19 7:24 PM, Stephen Boyd wrote: > This code is indented oddly, causing checkpatch to complain. Indent it > properly. > > Cc: Dinh Nguyen > Signed-off-by: Stephen Boyd > --- > drivers/clk/socfpga/clk-gate.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Acked-by: Dinh

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Clément Péron
Hi, On Wed, 14 Aug 2019 at 15:20, Corentin Labbe wrote: > > On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote: > > Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a): > > > This patch adds the evaluation variant of the model A of the PineH64. > > > The model A

Re: [PATCH] kvm: x86: skip populating logical dest map if apic is not sw enabled

2019-08-14 Thread Paolo Bonzini
On 14/08/19 05:37, Bandan Das wrote: > > recalculate_apic_map does not santize ldr and it's possible that > multiple bits are set. In that case, a previous valid entry > can potentially be overwritten by an invalid one. > > This condition is hit when booting a 32 bit, >8 CPU, RHEL6 guest and then

Re: [PATCH v2 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-14 Thread Uwe Kleine-König
Hello, On Wed, Aug 14, 2019 at 08:23:37PM +0800, Baolin Wang wrote: > On Wed, 14 Aug 2019 at 18:55, Uwe Kleine-König > wrote: > > On Wed, Aug 14, 2019 at 06:01:50PM +0800, Baolin Wang wrote: > > > On Wed, 14 Aug 2019 at 17:23, Uwe Kleine-König > > > wrote: > > > > On Wed, Aug 14, 2019 at 04:42:2

Re: [PATCH bpf-next 1/3] libbpf: add asm/unistd.h to xsk to get __NR_mmap2

2019-08-14 Thread Björn Töpel
On Wed, 14 Aug 2019 at 13:57, Ivan Khoronzhuk wrote: > > On Wed, Aug 14, 2019 at 12:24:05PM +0300, Ivan Khoronzhuk wrote: > >On Tue, Aug 13, 2019 at 04:38:13PM -0700, Andrii Nakryiko wrote: > > > >Hi, Andrii > > > >>On Tue, Aug 13, 2019 at 3:24 AM Ivan Khoronzhuk > >> wrote: > >>> > >>>That's need

Re: [PATCH] regmap: fix writes to non incrementing registers

2019-08-14 Thread Andreas Färber
Am 14.08.19 um 15:09 schrieb Ben Whitten: > On Wed, 14 Aug 2019 at 11:01, Mark Brown wrote: >> >> On Tue, Aug 13, 2019 at 10:22:51PM +0100, Ben Whitten wrote: >> >>> @@ -1489,10 +1489,11 @@ static int _regmap_raw_write_impl(struct regmap >>> *map, unsigned int reg, >>> WARN_ON(!map->bus); >

Re: [PATCH V2 3/3] KVM/Hyper-V/VMX: Add direct tlb flush support

2019-08-14 Thread Paolo Bonzini
On 14/08/19 09:34, lantianyu1...@gmail.com wrote: > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index c5da875f19e3..479ad76661e6 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -500,6 +500,7 @@ struct kvm { > struct srcu_struct srcu; >

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Maxime Ripard
On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > > > This patch adds the evaluation variant of the model A of the PineH64. > > > The model A has the

Re: [PATCH 2/9] sched: treewide: use is_kthread()

2019-08-14 Thread Mark Rutland
On Wed, Aug 14, 2019 at 02:39:19PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-14 11:41:24 [+0100], Mark Rutland wrote: > … > > Instances checking multiple PF_* flags at ocne are left as-is for now. > > s@ocne@once@ > > Acked-by: Sebastian Andrzej Siewior Whoops; I'll fix that typo now

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-14 Thread Greentime Hu
Logan Gunthorpe 於 2019年8月14日 週三 上午12:50寫道: > > On 2019-08-13 10:39 a.m., Paul Walmsley wrote: > > On Tue, 13 Aug 2019, Logan Gunthorpe wrote: > > > >> On 2019-08-13 12:04 a.m., Greentime Hu wrote: > >> > >>> Every architecture with mmu defines their own pfn_valid(). > >> > >> Not true. Arm64, for

Re: [PATCH 2/9] sched: treewide: use is_kthread()

2019-08-14 Thread Valentin Schneider
On 14/08/2019 11:41, Mark Rutland wrote: > Now that we have is_kthread(), let's convert existing open-coded checks > of the form: > > task->flags & PF_KTHREAD > > ... over to the new helper, which makes things a little easier to read, > and sets a consistent example for new code to follow. >

Re: [PATCH 8/9] x86/fpu: correctly check for kthreads

2019-08-14 Thread Mark Rutland
On Wed, Aug 14, 2019 at 03:07:08PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-14 11:41:30 [+0100], Mark Rutland wrote: > > Per commit: > > > > 0cecca9d03c964ab ("x86/fpu: Eager switch PKRU state") > > > > ... switch_fpu_state() is trying to distinguish user threads from > > kthreads,

Re: [PATCH 2/3] hwmon: raspberrypi: update MODULE_AUTHOR() email address

2019-08-14 Thread Guenter Roeck
On Tue, Aug 13, 2019 at 08:17:28PM +0200, Stefan Wahren wrote: > The email address listed in MODULE_AUTHOR() will be disabled in the > near future. Replace it with my private one. > > Signed-off-by: Stefan Wahren Applied to hwmon-next. Thanks, Guenter > --- > drivers/hwmon/raspberrypi-hwmon.c

Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf

2019-08-14 Thread Tony Lindgren
* Arnd Bergmann [190814 10:37]: > On Wed, Aug 14, 2019 at 9:49 AM Tony Lindgren wrote: > > * Arnd Bergmann [190813 19:34]: > > > On Tue, Aug 13, 2019 at 8:12 PM Aaro Koskinen > > > wrote: > > > diff --git a/arch/arm/mach-omap1/hardware.h > > > b/arch/arm/mach-omap1/hardware.h > > > index 232b

Re: [RFC][Patch v12 2/2] virtio-balloon: interface to support free page reporting

2019-08-14 Thread Cornelia Huck
On Wed, 14 Aug 2019 07:47:40 -0400 Nitesh Narayan Lal wrote: > On 8/14/19 6:29 AM, Cornelia Huck wrote: > > On Mon, 12 Aug 2019 09:12:35 -0400 > > Nitesh Narayan Lal wrote: > > > >> Enables the kernel to negotiate VIRTIO_BALLOON_F_REPORTING feature with > >> the host. If it is available and pa

Re: [PATCH 0/9] kthread detection cleanup

2019-08-14 Thread Valentin Schneider
On 14/08/2019 11:41, Mark Rutland wrote: > A reasonable amount of kernel code looks at task_struct::mm to determine > whether a thread is a kthread or a real user task. This isn't quite right, > since kthreads can have a non-NULL mm when calling use_mm(). > > The correct way to check whether a tas

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-14 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Wednesday, August 14, 2019 6:39 PM > To: Parav Pandit > Cc: Alex Williamson ; Kirti Wankhede > ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; c...@nvidia.com; Jiri Pirko ; > net...@vger.kernel.org > Subject: Re: [PATCH v2 0/2

Re: [PATCH v2 1/2] dt-bindings: clock: meson: add resets to the audio clock controller

2019-08-14 Thread Neil Armstrong
On 12/08/2019 14:32, Jerome Brunet wrote: > Add the documentation and bindings for the resets provided by the g12a > audio clock controller > > Signed-off-by: Jerome Brunet > --- > .../bindings/clock/amlogic,axg-audio-clkc.txt | 1 + > .../reset/amlogic,meson-g12a-audio-reset.h| 38

Re: [PATCH v2 2/2] clk: meson: axg-audio: add g12a reset support

2019-08-14 Thread Neil Armstrong
On 12/08/2019 14:32, Jerome Brunet wrote: > On the g12a, the register space dedicated to the audio clock also > provides some resets. Let the clock controller register a reset > provider as well for this SoC family. > > the axg SoC family does not appear to provide this feature. > > Signed-off-by

[PATCH v6 1/4] media: stm32-dcmi: improve sensor subdev naming

2019-08-14 Thread Hugues Fruchet
Rename "subdev" entity struct field to "source" to prepare for several subdev support. Move asd field on top of entity struct. Acked-by: Sakari Ailus Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 46 +++ 1 file changed, 23 insertions(+

[PATCH v6 0/4] DCMI bridge support

2019-08-14 Thread Hugues Fruchet
This patch serie allows to connect non-parallel camera sensor to DCMI thanks to a bridge connected in between such as STMIPID02 [1]. Media controller support is introduced first, then support of several sub-devices within pipeline with dynamic linking between them. In order to keep backward compat

[PATCH v6 2/4] media: stm32-dcmi: trace the supported fourcc/mbus_code

2019-08-14 Thread Hugues Fruchet
Add a trace of the set of supported fourcc/mbus_code which intersect between DCMI and source sub-device. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/stm32/stm3

[PATCH v6 4/4] media: stm32-dcmi: add support of several sub-devices

2019-08-14 Thread Hugues Fruchet
Add support of several sub-devices within pipeline instead of a single one. This allows to support a CSI-2 camera sensor connected through a CSI-2 to parallel bridge. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 217 +++--- 1 file changed,

[PATCH v6 3/4] media: stm32-dcmi: add media controller support

2019-08-14 Thread Hugues Fruchet
Add media controller support to dcmi in order to walk within remote subdevices pipeline. Signed-off-by: Hugues Fruchet --- drivers/media/platform/Kconfig| 2 +- drivers/media/platform/stm32/stm32-dcmi.c | 52 --- 2 files changed, 41 insertions(+), 13 dele

Re: [PATCH v1] Bluetooth: hci_qca: Skip 1 error print in device_want_to_sleep()

2019-08-14 Thread Marcel Holtmann
Hi Rocky, > Don't fall through to print error message when receive sleep indication > in HCI_IBS_RX_ASLEEP state, this is allowed behavior. > > Signed-off-by: Rocky Liao > --- > drivers/bluetooth/hci_qca.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) patch has been applied to blue

[PATCHv4] drivers/amba: add reset control to amba bus probe

2019-08-14 Thread Dinh Nguyen
The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by default. Until recently, the DMA controller was brought out of reset by the bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that are not used are held in reset and are left to Linux to bring them out of

Re: [PATCH v3] Bluetooth: btusb: Fix suspend issue for Realtek devices

2019-08-14 Thread Marcel Holtmann
Hi Alex, > From the perspective of controller, global suspend means there is no > SET_FEATURE (DEVICE_REMOTE_WAKEUP) and controller would drop the > firmware. It would consume less power. So we should not send this kind > of SET_FEATURE when host goes to suspend state. > Otherwise, when making dev

Re: [PATCH RESEND v4 0/9] Enable Sub-page Write Protection Support

2019-08-14 Thread Yang Weijiang
On Wed, Aug 14, 2019 at 02:36:30PM +0200, Paolo Bonzini wrote: > On 14/08/19 09:03, Yang Weijiang wrote: > > EPT-Based Sub-Page write Protection(SPP)is a HW capability which allows > > Virtual Machine Monitor(VMM) to specify write-permission for guest > > physical memory at a sub-page(128 byte) gra

Re: [RFC][Patch v12 2/2] virtio-balloon: interface to support free page reporting

2019-08-14 Thread Nitesh Narayan Lal
On 8/14/19 9:42 AM, Cornelia Huck wrote: > On Wed, 14 Aug 2019 07:47:40 -0400 > Nitesh Narayan Lal wrote: > >> On 8/14/19 6:29 AM, Cornelia Huck wrote: >>> On Mon, 12 Aug 2019 09:12:35 -0400 >>> Nitesh Narayan Lal wrote: >>> Enables the kernel to negotiate VIRTIO_BALLOON_F_REPORTING feat

Re: [RFC PATCH] ASoC: fsl_sai: Enable data lines based on input channels

2019-08-14 Thread Daniel Baluta
On Wed, Aug 14, 2019 at 4:39 AM Nicolin Chen wrote: > > On Sun, Aug 11, 2019 at 10:55:45PM +0300, Daniel Baluta wrote: > > An audio data frame consists of a number of slots one for each > > channel. In the case of I2S there are 2 data slots / frame. > > > > The maximum number of SAI slots / frame

Re: [alsa-devel] [PATCH 06/17] soundwire: cadence_master: use firmware defaults for frame shape

2019-08-14 Thread Pierre-Louis Bossart
+static u32 cdns_set_initial_frame_shape(int n_rows, int n_cols) +{ +    u32 val; +    int c; +    int r; + +    r = sdw_find_row_index(n_rows); +    c = sdw_find_col_index(n_cols) & CDNS_MCP_FRAME_SHAPE_COL_MASK; + +    val = (r << CDNS_MCP_FRAME_SHAPE_ROW_OFFSET) | c; + +    return val; +} +

Re: [PATCH v4 13/14] net: phy: adin: add ethtool get_stats support

2019-08-14 Thread Andrew Lunn
> So, I have to apologize again here. > I guess I was an idiot/n00b about this. Not a problem. If it is not something you have come across before, you can easily miss the significance. So you just need to modify the ordering and you are good to go. Please add a comment in the code about this latc

Re: [PATCH v1 1/4] resource: Use PFN_UP / PFN_DOWN in walk_system_ram_range()

2019-08-14 Thread Michal Hocko
On Fri 09-08-19 14:56:58, David Hildenbrand wrote: > This makes it clearer that we will never call func() with duplicate PFNs > in case we have multiple sub-page memory resources. All unaligned parts > of PFNs are completely discarded. > > Cc: Dan Williams > Cc: Borislav Petkov > Cc: Andrew Mort

Re: [PATCH RESEND v4 0/9] Enable Sub-page Write Protection Support

2019-08-14 Thread Paolo Bonzini
On 14/08/19 16:02, Yang Weijiang wrote: > On Wed, Aug 14, 2019 at 02:36:30PM +0200, Paolo Bonzini wrote: >> On 14/08/19 09:03, Yang Weijiang wrote: >>> EPT-Based Sub-Page write Protection(SPP)is a HW capability which allows >>> Virtual Machine Monitor(VMM) to specify write-permission for guest >>>

Re: [PATCH v2 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-14 Thread Michal Vokáč
On 14. 08. 19 11:23, Uwe Kleine-König wrote: Hello Baolin, On Wed, Aug 14, 2019 at 04:42:28PM +0800, Baolin Wang wrote: On Tue, 13 Aug 2019 at 23:16, Uwe Kleine-König wrote: On Tue, Aug 13, 2019 at 09:46:41PM +0800, Baolin Wang wrote: [...] Not really, our hardware's method is, when you chan

Re: [PATCH v1 2/4] mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()

2019-08-14 Thread Michal Hocko
On Fri 09-08-19 14:56:59, David Hildenbrand wrote: > Take care of nr_pages not being a power of two and start not being > properly aligned. Essentially, what walk_system_ram_range() could provide > to us. get_order() will round-up in case it's not a power of two. > > This should only apply to memo

Re: [PATCH v5 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-14 Thread Ezequiel Garcia
On Wed, 2019-08-14 at 14:23 +0200, Paul Kocialkowski wrote: > Hi, > > On Mon 12 Aug 19, 16:35, Ezequiel Garcia wrote: > > From: Boris Brezillon > > > > Some stateless decoders don't support per-slice decoding granularity > > (or at least not in a way that would make them efficient or easy to use

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-08-14 Thread Pierre-Louis Bossart
On 8/13/19 11:11 PM, Vinod Koul wrote: On 13-08-19, 20:58, Mark Brown wrote: On Tue, Aug 13, 2019 at 02:38:53PM -0500, Pierre-Louis Bossart wrote: Indeed. I don't have a full understanding of that part to be honest, nor why we need something SoundWire-specific. We already abused the set_tdm

Re: [PATCH v5 04/11] media: uapi: h264: Add the concept of start code

2019-08-14 Thread Ezequiel Garcia
On Wed, 2019-08-14 at 13:49 +0200, Paul Kocialkowski wrote: > Hi, > > On Wed 14 Aug 19, 10:11, Hans Verkuil wrote: > > On 8/12/19 9:35 PM, Ezequiel Garcia wrote: > > > Stateless decoders have different expectations about the > > > start code that is prepended on H264 slices. Add a > > > menu contr

[GIT PULL] dma mapping fixes for 5.3-rc

2019-08-14 Thread Christoph Hellwig
The following changes since commit 451577f3e3a9bf1861218641dbbf98e214e77851: Merge tag 'kbuild-fixes-v5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild (2019-08-09 20:31:04 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/dma-map

[GIT PULL] afs: Fixes

2019-08-14 Thread David Howells
he Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-fixes-20190814 for you to fetch changes up to 9dd0b82ef530cdfe805c9f7079c99e104be59a14: afs: Fix missing dentry data version updating (2019-

Re: [RFC PATCH v2 02/19] fs/locks: Add Exclusive flag to user Layout lease

2019-08-14 Thread Jeff Layton
On Fri, 2019-08-09 at 15:58 -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > Add an exclusive lease flag which indicates that the layout mechanism > can not be broken. > > Exclusive layout leases allow the file system to know that pages may be > GUP pined and that attempts to change the l

Re: [PATCH v1 2/4] mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()

2019-08-14 Thread David Hildenbrand
On 14.08.19 16:08, Michal Hocko wrote: > On Fri 09-08-19 14:56:59, David Hildenbrand wrote: >> Take care of nr_pages not being a power of two and start not being >> properly aligned. Essentially, what walk_system_ram_range() could provide >> to us. get_order() will round-up in case it's not a power

Re: [PATCH v4 1/3] media: stm32-dcmi: improve sensor subdev naming

2019-08-14 Thread Hugues FRUCHET
Hi Sakari, Hans, I've just pushed a v6 with the FIXME we discussed on IRC about "parallel" mbus code versus "serial" mbus code. I have also added some traces to help in debugging if such case occurs. version 6: - As per Sakari remark: add a FIXME explaining that this version only supports

[GIT PULL] afs: Fixes

2019-08-14 Thread David Howells
he Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-fixes-20190814 for you to fetch changes up to 9dd0b82ef530cdfe805c9f7079c99e104be59a14: afs: Fix missing dentry data version updating (2019-

Re: [PATCH] ASoC: fsl_sai: Handle slave mode per TX/RX direction

2019-08-14 Thread Daniel Baluta
On Wed, Aug 14, 2019 at 4:01 AM Nicolin Chen wrote: > > On Sun, Aug 11, 2019 at 10:45:17PM +0300, Daniel Baluta wrote: > > From: Viorel Suman > > > > The SAI interface can be a clock supplier or consumer > > as a function of stream direction. e.g SAI can be master > > for Tx and slave for Rx. > >

Re: [PATCH v1 3/4] mm/memory_hotplug: Simplify online_pages_range()

2019-08-14 Thread Michal Hocko
On Fri 09-08-19 14:57:00, David Hildenbrand wrote: > move_pfn_range_to_zone() will set all pages to PG_reserved via > memmap_init_zone(). The only way a page could no longer be reserved > would be if a MEM_GOING_ONLINE notifier would clear PG_reserved - which > is not done (the online_page callback

Re: [PATCH v2 1/1] waitid: Add support for waiting for the current process group

2019-08-14 Thread Oleg Nesterov
On 08/14, Christian Brauner wrote: > > +static struct pid *find_get_pgrp(pid_t nr) > +{ > + struct pid *pid; > + > + if (nr) > + return find_get_pid(nr); > + > + rcu_read_lock(); > + pid = get_pid(task_pgrp(current)); > + rcu_read_unlock(); > + > + return pid; >

Re: [PATCH] bcache: add cond_resched() in __bch_cache_cmp()

2019-08-14 Thread Heitor Alves de Siqueira
Hi Coly, We've had users impacted by system stalls and were able to trace it back to the bcache priority_stats query. After investigating a bit further, it seems that the sorting step in the quantiles calculation can cause heavy CPU contention. This has a severe performance impact on any task that

Re: [PATCH v1 3/4] mm/memory_hotplug: Simplify online_pages_range()

2019-08-14 Thread David Hildenbrand
On 14.08.19 16:19, Michal Hocko wrote: > On Fri 09-08-19 14:57:00, David Hildenbrand wrote: >> move_pfn_range_to_zone() will set all pages to PG_reserved via >> memmap_init_zone(). The only way a page could no longer be reserved >> would be if a MEM_GOING_ONLINE notifier would clear PG_reserved - w

Re: [PATCH v1 4/4] mm/memory_hotplug: online_pages cannot be 0 in online_pages()

2019-08-14 Thread Michal Hocko
On Fri 09-08-19 14:57:01, David Hildenbrand wrote: > walk_system_ram_range() will fail with -EINVAL in case > online_pages_range() was never called (== no resource applicable in the > range). Otherwise, we will always call online_pages_range() with > nr_pages > 0 and, therefore, have online_pages >

Re: [PATCH v1 2/4] mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()

2019-08-14 Thread Michal Hocko
On Wed 14-08-19 16:17:03, David Hildenbrand wrote: > On 14.08.19 16:08, Michal Hocko wrote: > > On Fri 09-08-19 14:56:59, David Hildenbrand wrote: > >> Take care of nr_pages not being a power of two and start not being > >> properly aligned. Essentially, what walk_system_ram_range() could provide >

Re: [PATCH v1 2/4] mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()

2019-08-14 Thread David Hildenbrand
On 14.08.19 16:17, David Hildenbrand wrote: > On 14.08.19 16:08, Michal Hocko wrote: >> On Fri 09-08-19 14:56:59, David Hildenbrand wrote: >>> Take care of nr_pages not being a power of two and start not being >>> properly aligned. Essentially, what walk_system_ram_range() could provide >>> to us.

[PATCH 10/14] arm64: dts: meson-g12a: fix reset controller compatible

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-g12a-u200.dt.yaml: reset-controller@1004: compatible:0: 'amlogic,meson-g12a-reset' is not one of ['amlogic,meson8b-reset', 'amlogic,meson-gxbb-reset', 'amlogic,meson-axg-reset'] meson-g12a-sei510.dt.yaml: reset-controller@1004: compatible:0:

[PATCH 07/14] arm64: dts: meson-gx: fix periphs bus node name

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: periphs@c8834000: $nodename:0: 'periphs@c8834000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' meson-gxl-s805x-libretech-ac.dt.yaml: periphs@c8834000: $nodename:0: 'periphs@c8834000' does not match '^(bus|soc

[PATCH 14/14] arm64: dts: meson: fix boards regulators states format

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io: states:0: Additional items are not allowed (180, 1 were unexpected) meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io: states:0: [330, 0, 180, 1] is too long meson-gxbb-nexbox-a95x.dt.

[PATCH 00/14] arm64: dts: meson: fixes following YAML bindings schemas conversion

2019-08-14 Thread Neil Armstrong
This is the first set of DT fixes following the first YAML bindings conversion at [1], [2] and [3]. After this set of fixes, the remaining errors are : meson-axg-s400.dt.yaml: sound: 'clocks' is a dependency of 'assigned-clocks' meson-g12a-sei510.dt.yaml: sound: 'clocks' is a dependency of 'assign

[PATCH 05/14] arm64: dts: meson-gx: fix watchdog compatible

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: watchdog@98d0: compatible:0: 'amlogic,meson-gx-wdt' is not one of ['amlogic,meson-gxbb-wdt'] meson-gxl-s805x-libretech-ac.dt.yaml: watchdog@98d0: compatible:0: 'amlogic,meson-gx-wdt' is not one of ['amlogic,meson-gxbb

[PATCH 13/14] arm64: dts: meson-gxbb-p201: fix snps,reset-delays-us format

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-p201.dt.yaml: ethernet@c941: snps,reset-delays-us: [[0, 1, 100]] is too short Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 12/14] arm64: dts: meson-gxbb-nanopi-k2: add missing model

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: /: 'model' is a required property Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nano

[PATCH 09/14] arm64: dts: meson-axg: fix MHU compatible

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-axg-s400.dt.yaml: mailbox@ff63c404: compatible:0: 'amlogic,meson-gx-mhu' is not one of ['amlogic,meson-gxbb-mhu'] Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 11/14] arm64: dts: meson-g12a-x96-max: fix compatible

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-g12a-x96-max.dt.yaml: /: compatible: ['amediatech,x96-max', 'amlogic,u200', 'amlogic,g12a'] is not valid under any of the given schemas Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 2 +- 1 file cha

[PATCH 08/14] arm64: dts: meson-gxl: fix internal phy compatible

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxl-s805x-libretech-ac.dt.yaml: ethernet-phy@8: compatible: ['ethernet-phy-id0181.4400', 'ethernet-phy-ieee802.3-c22'] is not valid under any of the given schemas Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxl.dts

[PATCH 02/14] arm64: dts: meson-gx: drop the vpu dmc memory cell

2019-08-14 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names: Additional items are not allowed ('dmc' was unexpected) meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names: ['vpu', 'hhi', 'dmc'] is too long Signed-off-by: Neil Armstrong

<    5   6   7   8   9   10   11   12   13   >