linux-next: Tree for Aug 7

2019-08-07 Thread Stephen Rothwell
Hi all, Changes since 20190806: The arm64 tree introduced a patch that stopped the powerpc ppc64_defconfig build from completing so I reverted that commit. The mips tree gained a conflict against Linus' tree. The crypto tree still had its build failure for which I applied a patch. The drm-misc

[PATCHv2] mm/migrate: clean up useless code in migrate_vma_collect_pmd()

2019-08-07 Thread Pingfan Liu
Clean up useless 'pfn' variable. Signed-off-by: Pingfan Liu Cc: "Jérôme Glisse" Cc: Andrew Morton Cc: Mel Gorman Cc: Jan Kara Cc: "Kirill A. Shutemov" Cc: Michal Hocko Cc: Mike Kravetz Cc: Andrea Arcangeli Cc: Matthew Wilcox To: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm

[PATCH v3 0/3] clocksource/drivers/ostm: Miscellaneous improvements

2019-08-07 Thread Geert Uytterhoeven
Hi all, This patch series contains various improvements for the Renesas OSTM timer driver, as used on the RZ/A1 and RZ/A2 SoCs. The last patch is v3 of a patch that was sent before to a limited audience: - https://lore.kernel.org/linux-renesas-soc/1507727130-17641-1-git-send-email-jaco

[PATCH v3 3/3] clocksource/drivers/ostm: Use unique device name instead of ostm

2019-08-07 Thread Geert Uytterhoeven
Currently all OSTM devices are called "ostm", also in kernel messages. As there can be multiple instances in an SoC, this can confuse the user. Hence construct a unique name from the DT node name, like is done for platform devices. On RSK+RZA1, the boot log changes like: -clocksource: ostm:

[PATCH v3 2/3] clocksource/drivers/renesas-ostm: Fix probe error path

2019-08-07 Thread Geert Uytterhoeven
Fix various issues in the error path of ostm_init(): 1. Drop error message printing on of_iomap() failure, as the memory allocation core already takes of that, 2. Handle irq_of_parse_and_map() failures correctly: it returns unsigned int, hence make irq unsigned int, and zero is an err

[PATCH v3 1/3] clocksource/drivers/renesas-ostm: Use DIV_ROUND_CLOSEST() helper

2019-08-07 Thread Geert Uytterhoeven
Use the DIV_ROUND_CLOSEST() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven --- v3: - New. --- drivers/clocksource/renesas-ostm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/re

[PATCH v6 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-08-07 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

Re: [PATCH v2 1/1] ixgbe: sync the first fragment unconditionally

2019-08-07 Thread Firo Yang
The 08/07/2019 15:56, Jacob Wen wrote: > I think the description is not correct. Consider using something like below. Thank you for comments. > > In Xen environment, due to memory fragmentation ixgbe may allocate a 'DMA' > buffer with pages that are not physically contiguous. Actually, I didn't

[PATCH 2/2] habanalabs: fix completion queue handling when host is BE

2019-08-07 Thread Oded Gabbay
From: Ben Segal This patch fix the CQ irq handler to work in hosts with BE architecture. It adds the correct endian-swapping macros around the relevant memory accesses. Signed-off-by: Ben Segal Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/irq.c | 27 +++

[PATCH 1/2] habanalabs: fix endianness handling for packets from user

2019-08-07 Thread Oded Gabbay
From: Ben Segal Packets that arrive from the user and need to be parsed by the driver are assumed to be in LE format. This patch fix all the places where the code handles these packets and use the correct endianness macros to handle them, as the driver handles the packets in CPU format (LE or BE

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-07 Thread Dario Faggioli
Hello everyone, This is Dario, from SUSE. I'm also interesting in core-scheduling, and using it in virtualization use cases. Just for context, I'm working in virt since a few years, mostly on Xen, but I've done Linux stuff before, and I am getting back at it. For now, I've been looking at the co

Re: [PATCH v2 03/24] EDAC, ghes: Remove pvt->detail_location string

2019-08-07 Thread Robert Richter
On 02.08.19 18:04:46, James Morse wrote: > On 24/06/2019 16:08, Robert Richter wrote: > > The detail_location[] string in struct ghes_edac_pvt is complete > > useless and data is just copied around. Put everything into > > e->other_detail from the beginning. I am updating the description here to c

Re: [PATCH 2/8] mtd: nand: move support functions for ONFI to nand/onfi.c

2019-08-07 Thread Miquel Raynal
Hi shiva.linuxwo...@gmail.com, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:15 +0200: > From: Shivamurthy Shastri "mtd: nand: move ONFI specific helpers to nand/onfi.c"? > > These functions are support functions for enabling ONFI standard and > common between raw NAND and SPI NA

Re: [PATCH] cpufreq: mediatek-cpufreq: Add compatible for MT8516

2019-08-07 Thread Viresh Kumar
On 06-08-19, 11:50, Fabien Parent wrote: > Add the compatible for MT8516 in order to take advantage of the > MediaTek CPUFreq driver for Mediatek's MT8516 SoC. > > Signed-off-by: Fabien Parent > --- > drivers/cpufreq/mediatek-cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/dr

Re: [PATCH v2 1/2] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-08-07 Thread Adrian Hunter
On 26/07/19 5:07 AM, Michael K. Johnson wrote: > The GL9750 and GL9755 chipsets, and possibly others, require PLL Enable > setup as part of the internal clock setup as described in 3.2.1 Internal > Clock Setup Sequence of SD Host Controller Simplified Specification > Version 4.20. This changes the

Re: [PATCH] arm64: mm: add missing PTE_SPECIAL in pte_mkdevmap on arm64

2019-08-07 Thread Will Deacon
On Wed, Aug 07, 2019 at 12:58:51PM +0800, Jia He wrote: > diff --git a/arch/arm64/include/asm/pgtable.h > b/arch/arm64/include/asm/pgtable.h > index 5fdcfe237338..e09760ece844 100644 > --- a/arch/arm64/include/asm/pgtable.h > +++ b/arch/arm64/include/asm/pgtable.h > @@ -209,7 +209,7 @@ static inli

[PATCH v3] ALSA: hiface: fix multiple memory leak bugs

2019-08-07 Thread Wenwen Wang
In hiface_pcm_init(), 'rt' is firstly allocated through kzalloc(). Later on, hiface_pcm_init_urb() is invoked to initialize 'rt->out_urbs[i]'. In hiface_pcm_init_urb(), 'rt->out_urbs[i].buffer' is allocated through kzalloc(). However, if hiface_pcm_init_urb() fails, both 'rt' and 'rt->out_urbs[i].

Re: [PATCH 3/8] mtd: nand: create ONFI table parsing instance

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:16 +0200: > From: Shivamurthy Shastri "Create one generic ONFI table parsing instance" > > ONFI table parsing is common, as most of the variables are common > between raw and SPI NAND. The parsing function is instantiated in

Re: [RFC PATCH] pciehp: use completion to wait irq_thread 'pciehp_ist'

2019-08-07 Thread Lukas Wunner
On Wed, Aug 07, 2019 at 04:28:32PM +0800, Xiongfeng Wang wrote: > On 2019/8/6 15:24, Lukas Wunner wrote: > > I'd suggest something like the below instead, could you give it a whirl > > and see if it reliably fixes the issue for you? > > I tested the below patch. It can fix the issue. Thank you!

Re: [PATCH V2 08/10] x86/resctrl: Support pseudo-lock regions spanning resources

2019-08-07 Thread Borislav Petkov
On Tue, Jul 30, 2019 at 10:29:42AM -0700, Reinette Chatre wrote: > Currently cache pseudo-locked regions only consider one cache level but > cache pseudo-locked regions may span multiple cache levels. > > In preparation for support of pseudo-locked regions spanning multiple > cache levels pseudo-l

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-08-07 Thread Joe Perches
On Tue, 2019-08-06 at 22:15 -0700, Nathan Chancellor wrote: > Just for everyone else (since I commented on our issue tracker), this is > now fixed in Linus's tree as of commit 1f6607250331 ("iwlwifi: dbg_ini: > fix compile time assert build errors"). I think this change is incomplete and suggest

RE: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels

2019-08-07 Thread Peng Fan
> Subject: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 > performance fastchannels > > SCMI v2.0 adds support for "FastChannel", a lightweight unidirectional > channel that is dedicated to a single SCMI message type for controlling a > specific platform resource. They do not use a

Re: [PATCH] arm64: mm: add missing PTE_SPECIAL in pte_mkdevmap on arm64

2019-08-07 Thread Catalin Marinas
On Wed, Aug 07, 2019 at 10:09:29AM +0100, Will Deacon wrote: > On Wed, Aug 07, 2019 at 12:58:51PM +0800, Jia He wrote: > > diff --git a/arch/arm64/include/asm/pgtable.h > > b/arch/arm64/include/asm/pgtable.h > > index 5fdcfe237338..e09760ece844 100644 > > --- a/arch/arm64/include/asm/pgtable.h > >

Re: [PATCH v2] bcache: fix deadlock in bcache_allocator

2019-08-07 Thread Andrea Righi
On Tue, Aug 06, 2019 at 07:36:48PM +0200, Andrea Righi wrote: > On Tue, Aug 06, 2019 at 11:18:01AM +0200, Andrea Righi wrote: > > bcache_allocator() can call the following: > > > > bch_allocator_thread() > > -> bch_prio_write() > > -> bch_bucket_alloc() > > -> wait on &ca->set->buc

Re: [PATCH 4/5] media/ivtv: Reduce default FIFO priority

2019-08-07 Thread Hans Verkuil
On 8/2/19 10:58 AM, Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 02:38:06PM +0200, Peter Zijlstra wrote: >> If the consumer of the data are RT tasks as well (I hadn't expected that >> from a TV capture device) then I'd propose to use FIFO-50 as default. >> >> The thing is, the moment you're doin

Re: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-07 Thread Cornelia Huck
On Tue, 6 Aug 2019 09:18:26 -0500 Parav Pandit wrote: > There is no single production driver who is interested in mdev device > uuid. Currently UUID is mainly used to derive a device name. > Additionally mdev device name is already available using core kernel > API dev_name(). Well, the mdev co

[RESEND 1/2] remoteproc: replace bool from struct rproc by u8

2019-08-07 Thread Loic Pallardy
Post [1] and checkpatch tool indicate that usage of bool type in structure is now no more allowed/advised. This patch replaces bool by unsigned char (u8) and reorders struct rproc fields to avoid padding. [1] https://lkml.org/lkml/2017/11/21/384 Signed-off-by: Loic Pallardy --- include/linux/re

[RESEND 0/2] remoteproc: add support for preloaded firmware

2019-08-07 Thread Loic Pallardy
This patch series introduces a new flag in remoteproc core to add support of remote processor having their firmware loading by another way than standard remoteproc core sequence. Firmware could be ROMed, loaded by security or bootloader before kernel boot or loaded by a special rproc platform driv

[RESEND 2/2] remoteproc: add support for co-processor booted before kernel

2019-08-07 Thread Loic Pallardy
Remote processor could boot independently or be started before Linux kernel by bootloader or any firmware. This patch introduces a new property in rproc core, named preloaded, to be able to allocate resources and sub-devices like vdev and to synchronize with current state without loading firmware f

Re: [PATCH] cpufreq: schedutil: fix equation in comment

2019-08-07 Thread Rafael J. Wysocki
On Monday, August 5, 2019 3:06:20 PM CEST Peter Zijlstra wrote: > On Fri, Aug 02, 2019 at 11:46:28AM +0100, Qais Yousef wrote: > > scale_irq_capacity() call in schedutil_cpu_util() does > > > > util *= (max - irq) > > util /= max > > > > But the comment says > > > > util *= (1 - irq)

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-07 Thread Joel Fernandes
On Tue, Aug 06, 2019 at 04:56:31PM -0700, Paul E. McKenney wrote: > On Tue, Aug 06, 2019 at 05:20:40PM -0400, Joel Fernandes (Google) wrote: > > Recently a discussion about performance of system involving a high rate > > of kfree_rcu() calls surfaced on the list [1] which led to another > > discuss

Re: [PATCH 4/8] mtd: spinand: enabled parameter page support

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:17 +0200: "mtd: spinand: enable parameter page support" > From: Shivamurthy Shastri > > Some of the SPI NAND devices has parameter page, which is similar to - have a > ONFI table. regular raw NA

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-07 Thread Rafael J. Wysocki
On Thursday, August 1, 2019 12:19:56 AM CEST Keith Busch wrote: > On Wed, Jul 31, 2019 at 11:25:51PM +0200, Rafael J. Wysocki wrote: > > > > A couple of remarks if you will. > > > > First, we don't know which case is the majority at this point. For > > now, there is one example of each, but it m

Re: [PATCH v2 12/24] EDAC, ghes: Use standard kernel macros for page calculations

2019-08-07 Thread Robert Richter
On 02.08.19 18:04:54, James Morse wrote: > After a shorter game of spot-the-difference: > Reviewed-by: James Morse > > Previously here: > https://lore.kernel.org/linux-edac/e566fe1d-ed06-53bc-6827-f6dfa32ee...@arm.com/ > > > Please pick up tags when posting a new version. > If you don't do this

Re: [PATCH 5/8] mtd: spinand: micron: prepare for generalizing driver

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:18 +0200: > From: Shivamurthy Shastri > "mtd: spinand: micron: Rename helpers and structures to be more generic" > Generalize OOB layout structure and function names. Change the prefix of Micron driver's functions and struc

[PATCH] nvme-pci: Do not prevent PCI bus-level PM from being used

2019-08-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki One of the modifications made by commit d916b1be94b6 ("nvme-pci: use host managed power state for suspend") was adding a pci_save_state() call to nvme_suspend() in order to prevent the PCI bus-level PM from being applied to the suspended NVMe devices, but if ASPM is not en

Re: [PATCH] locking/percpu_rwsem: Rewrite to not use rwsem

2019-08-07 Thread Oleg Nesterov
On 08/06, Peter Zijlstra wrote: > > On Tue, Aug 06, 2019 at 06:17:42PM +0200, Oleg Nesterov wrote: > > > but this will also wake all the pending readers up. Every reader will burn > > CPU for no reason and likely delay the writer. > > > > In fact I'm afraid this can lead to live-lock, because every

RE: [PATCH v2 2/5] firmware: arm_scmi: Make use SCMI v2.0 fastchannel for performance protocol

2019-08-07 Thread Peng Fan
> Subject: [PATCH v2 2/5] firmware: arm_scmi: Make use SCMI v2.0 > fastchannel for performance protocol > > SCMI v2.0 adds support for "FastChannel" which do not use a message > header as they are specialized for a single message. > > Only PERFORMANCE_LIMITS_{SET,GET} and > PERFORMANCE_LEVEL_{SET

Re: [PATCH 6/8] mtd: spinand: micron: Turn driver implementation generic

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:19 +0200: > From: Shivamurthy Shastri > I am not sure the "turn implemenatation generic" title describes what you do. > Driver is redesigned using parameter page to support Micron SPI NAND > flashes. Redesigned is perhaps a

Re: [PATCH] mm/compaction: remove unnecessary zone parameter in isolate_migratepages()

2019-08-07 Thread Vlastimil Babka
On 8/6/19 5:16 PM, Pengfei Li wrote: > Like commit 40cacbcb3240 ("mm, compaction: remove unnecessary zone > parameter in some instances"), remove unnecessary zone parameter. > > No functional change. > > Signed-off-by: Pengfei Li Acked-by: Vlastimil Babka > --- > mm/compaction.c | 13 ++-

Re: [PATCH 7/8] mtd: spinand: micron: Fix read failure in Micron M70A flashes

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:20 +0200: > From: Shivamurthy Shastri > > M70A series flashes by default enable continuous read feature (BIT0 in > configuration register). This feature will not expose the ECC to host > and causing read failure. This is not

RE: [PATCH v2 4/5] firmware: arm_scmi: Add RESET protocol in SCMI v2.0

2019-08-07 Thread Peng Fan
> Subject: [PATCH v2 4/5] firmware: arm_scmi: Add RESET protocol in SCMI > v2.0 > > SCMIv2.0 adds a new Reset Management Protocol to manage various reset > states a given device or domain can enter. Device(s) that can be collectively > reset through a common reset signal constitute a reset domain

Re: [PATCHv9 1/3] arm64: dts: qcom: sdm845: Add Coresight support

2019-08-07 Thread Sai Prakash Ranjan
Hi Suzuki, On 7/31/2019 11:35 AM, Sai Prakash Ranjan wrote: Hi Suzuki, On 7/31/2019 11:28 AM, Sai Prakash Ranjan wrote: Add coresight components found on Qualcomm SDM845 SoC. Signed-off-by: Sai Prakash Ranjan Reviewed-by: Mathieu Poirier Acked-by: Suzuki K Poulose ---   arch/arm64/boot/dts

Re: [PATCH 8/8] mtd: spinand: micron: Enable micron flashes with multi-die

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:21 +0200: "with multiple dies" in the title > From: Shivamurthy Shastri > > Some of the Micron flashes has multi-die, and need to select the die have multiple dies and > each time while accessing

Re: [PATCHv9 1/3] arm64: dts: qcom: sdm845: Add Coresight support

2019-08-07 Thread Suzuki K Poulose
Sai, On 07/08/2019 11:08, Sai Prakash Ranjan wrote: Hi Suzuki, On 7/31/2019 11:35 AM, Sai Prakash Ranjan wrote: Hi Suzuki, On 7/31/2019 11:28 AM, Sai Prakash Ranjan wrote: Add coresight components found on Qualcomm SDM845 SoC. Signed-off-by: Sai Prakash Ranjan Reviewed-by: Mathieu Poirier

Re: [PATCH] nvme-pci: Do not prevent PCI bus-level PM from being used

2019-08-07 Thread Rafael J. Wysocki
On Wednesday, August 7, 2019 11:53:44 AM CEST Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > One of the modifications made by commit d916b1be94b6 ("nvme-pci: use > host managed power state for suspend") was adding a pci_save_state() > call to nvme_suspend() in order to prevent the PCI bus

Re: [PATCH v4 0/3] DCMI bridge support

2019-08-07 Thread Hans Verkuil
Hi Hugues, Can you provide the output of the most recent v4l2-compliance? Use 'v4l2-compliance -s'. Also, just to confirm, with this v4 there are no /dev/mediaX or /dev/v4l-subdevX devices created anymore, right? This v4 looks good to me, I just want to have these final checks done. Regards,

Re: [PATCH v2 3/5] dt-bindings: arm: Extend SCMI to support new reset protocol

2019-08-07 Thread Sudeep Holla
On Wed, Aug 07, 2019 at 10:26:50AM +0200, Philipp Zabel wrote: > On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > > SCMIv2.0 adds a new Reset Management Protocol to manage various reset > > states a given device or domain can enter. Extend the existing SCMI > > bindings to add reset protoco

Re: [PATCH v2] bcache: fix deadlock in bcache_allocator

2019-08-07 Thread Coly Li
On 2019/8/7 5:25 下午, Andrea Righi wrote: > On Tue, Aug 06, 2019 at 07:36:48PM +0200, Andrea Righi wrote: >> On Tue, Aug 06, 2019 at 11:18:01AM +0200, Andrea Righi wrote: >>> bcache_allocator() can call the following: >>> >>> bch_allocator_thread() >>> -> bch_prio_write() >>> -> bch_bucket_a

Re: [PATCH v3] ALSA: hiface: fix multiple memory leak bugs

2019-08-07 Thread Takashi Iwai
On Wed, 07 Aug 2019 11:08:51 +0200, Wenwen Wang wrote: > > In hiface_pcm_init(), 'rt' is firstly allocated through kzalloc(). Later > on, hiface_pcm_init_urb() is invoked to initialize 'rt->out_urbs[i]'. In > hiface_pcm_init_urb(), 'rt->out_urbs[i].buffer' is allocated through > kzalloc(). Howeve

Re: [PATCH RFC v1 2/2] rcuperf: Add kfree_rcu performance Tests

2019-08-07 Thread Joel Fernandes
On Tue, Aug 06, 2019 at 05:29:15PM -0700, Paul E. McKenney wrote: > On Tue, Aug 06, 2019 at 05:20:41PM -0400, Joel Fernandes (Google) wrote: > > This test runs kfree_rcu in a loop to measure performance of the new > > kfree_rcu, with and without patch. > > > > To see improvement, run with boot par

Re: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels

2019-08-07 Thread Sudeep Holla
On Wed, Aug 07, 2019 at 09:23:41AM +, Peng Fan wrote: > > Subject: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 > > performance fastchannels > > > > SCMI v2.0 adds support for "FastChannel", a lightweight unidirectional > > channel that is dedicated to a single SCMI message typ

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-07 Thread Rafael J. Wysocki
On Tuesday, August 6, 2019 5:00:06 PM CEST Rafael J. Wysocki wrote: > On Tue, Aug 6, 2019 at 4:02 PM wrote: > > > > > > > > > -Original Message- > > > From: Rafael J. Wysocki > > > Sent: Monday, August 5, 2019 4:29 PM > > > To: Kai-Heng Feng > > > Cc: Rafael J. Wysocki; Limonciello, Mario

Re: [RFC PATCH] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-07 Thread Dave Martin
On Tue, Aug 06, 2019 at 02:29:16PM -0700, Nathan Huckleberry wrote: > I'm not sure that we should disable a broken feature instead of > attempting a fix. > > CONFIG_FUNCTION_GRAPH_TRACER is dependent on CONFIG_FRAME_POINTER and > there have been reports by MediaTek that the frame pointer unwinder

Re: [PATCH v2 5/5] reset: Add support for resets provided by SCMI

2019-08-07 Thread Sudeep Holla
On Wed, Aug 07, 2019 at 10:04:26AM +0200, Philipp Zabel wrote: > On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > > On some ARM based systems, a separate Cortex-M based System Control > > Processor(SCP) provides the overall power, clock, reset and system > > control. System Control and Mana

[PATCH] arm64/ptrace: Fix typoes in sve_set() comment

2019-08-07 Thread Julien Grall
The ptrace trace SVE flags are prefixed with SVE_PT_*. Update the comment accordingly. Signed-off-by: Julien Grall --- arch/arm64/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index 17525da8d5c8..0de3ea

Re: [PATCH v2 4/5] firmware: arm_scmi: Add RESET protocol in SCMI v2.0

2019-08-07 Thread Sudeep Holla
On Wed, Aug 07, 2019 at 10:17:50AM +0200, Philipp Zabel wrote: > On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > > SCMIv2.0 adds a new Reset Management Protocol to manage various reset > > states a given device or domain can enter. Device(s) that can be > > collectively reset through a com

[PATCH v3] bcache: fix deadlock in bcache_allocator

2019-08-07 Thread Andrea Righi
bcache_allocator can call the following: bch_allocator_thread() -> bch_prio_write() -> bch_bucket_alloc() -> wait on &ca->set->bucket_wait But the wake up event on bucket_wait is supposed to come from bch_allocator_thread() itself => deadlock: [ 1158.490744] INFO: task bcache_all

Re: [PATCH] arm64/ptrace: Fix typoes in sve_set() comment

2019-08-07 Thread Dave Martin
On Wed, Aug 07, 2019 at 11:34:45AM +0100, Julien Grall wrote: > The ptrace trace SVE flags are prefixed with SVE_PT_*. Update the > comment accordingly. > > Signed-off-by: Julien Grall > --- > arch/arm64/kernel/ptrace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ar

Re: [PATCH v8 05/14] media: rkisp1: add Rockchip ISP1 subdev driver

2019-08-07 Thread Hans Verkuil
On 8/6/19 8:51 PM, Helen Koike wrote: > Hi Hans, > > On 7/30/19 3:42 PM, Helen Koike wrote: >> From: Jacob Chen >> >> Add the subdev driver for rockchip isp1. >> >> Signed-off-by: Jacob Chen >> Signed-off-by: Shunqian Zheng >> Signed-off-by: Yichong Zhong >> Signed-off-by: Jacob Chen >> Signe

[PATCH v2 1/3] drm: add gem ttm helpers

2019-08-07 Thread Gerd Hoffmann
Now with ttm_buffer_object being a subclass of drm_gem_object we can easily lookup ttm_buffer_object for a given drm_gem_object, which in turm allows to create common helper functions. This patch starts off with dump mmap helpers. v2: - drop drm_gem_ttm_mmap_offset(). - improve kerneldocs. Sig

[PATCH v2 2/3] drm/vram: switch vram helpers to use the new ttm helpers.

2019-08-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 7 +-- drivers/gpu/drm/drm_gem_vram_helper.c | 48 --- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/Kconfig | 1 + 4 files changed, 4 insertio

RE: [PATCH v2 00/22] mfd: demodularization of non-modular drivers

2019-08-07 Thread Steve Twiss
Hi Paul, I will not be able to make these changes to support modularity any more. Although the support.opensou...@diasemi.com e-mail address for Support is still working, I will not be able to review your patches if you were to re-send them again. Regards, Stephen On 07 December 2018 20:30, Pa

[PATCH v15 3/5] remoteproc: mt8183: add reserved memory manager API

2019-08-07 Thread Pi-Hsun Shih
From: Erin Lo Add memory table mapping API for other driver to lookup reserved physical and virtual memory Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v14: - Fix a typo in variable name in DEBUG section. Changes from v13: - Add one more reserved region. - Rename scp

[PATCH v15 4/5] rpmsg: add rpmsg support for mt8183 SCP.

2019-08-07 Thread Pi-Hsun Shih
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih --- Changes from v14: - Change year on Copyright header to 2019. Changes from v13: - No change. Changes from v12: - Use strscpy instead of strncpy. Changes from v11: - Fix a bug that when rp

[PATCH v15 0/5] Add support for mt8183 SCP.

2019-08-07 Thread Pi-Hsun Shih
Add support for controlling and communicating with mt8183's system control processor (SCP), using the remoteproc & rpmsg framework. And also add a cros_ec driver for CrOS EC host command over rpmsg. The overall structure of the series is: * remoteproc/mtk_scp.c: Control the start / stop of SCP (Pa

[PATCH v15 5/5] arm64: dts: mt8183: add scp node

2019-08-07 Thread Pi-Hsun Shih
From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v14: - No change. Changes from v13: - Change the size of the cfg register region. Changes from v12, v11, v10: - No change. Changes from

Re: [PATCH] nvme-pci: Do not prevent PCI bus-level PM from being used

2019-08-07 Thread Christoph Hellwig
> + if (pm_suspend_via_firmware() || !ctrl->npss || > !pcie_aspm_enabled(pdev)) { > + mutex_lock(&aspm_lock); > + aspm_enabled = bridge->link_state ? bridge->link_state->aspm_enabled : > 0; Please fix the overly long lines..

[PATCH v15 1/5] dt-bindings: Add a binding for Mediatek SCP

2019-08-07 Thread Pi-Hsun Shih
From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v14, v13, v12, v11, v10, v9, v8, v7, v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_

[PATCH v15 2/5] remoteproc/mediatek: add SCP support for mt8183

2019-08-07 Thread Pi-Hsun Shih
From: Erin Lo Provide a basic driver to control Cortex M4 co-processor Signed-off-by: Erin Lo Signed-off-by: Nicolas Boichat Signed-off-by: Pi-Hsun Shih --- Changes from v14: - No change. Changes from v13: - Move include/linux/platform_data/mtk_scp.h to include/linux/remoteproc/mtk_scp.

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-07 Thread Christoph Hellwig
On Wed, Aug 07, 2019 at 11:48:33AM +0200, Rafael J. Wysocki wrote: > So I think I know what the problem is here. > > If ASPM is disabled for the NVMe device (which is the case on my machine by > default), > skipping the bus-level PM in nvme_suspend() causes the PCIe link of it to > stay up and >

Re: [PATCH net-next] net: can: Fix compiling warning

2019-08-07 Thread Dan Carpenter
On Tue, Aug 06, 2019 at 06:41:44PM +0200, Oliver Hartkopp wrote: > I compiled the code (the original version), but I do not get that "Should it > be static?" warning: > > user@box:~/net-next$ make C=1 > CALLscripts/checksyscalls.sh > CALLscripts/atomic/check-atomics.sh > DESCEND obj

Re: [PATCH v3 09/21] ARM: dts: imx6qdl-colibri: add phy to fec

2019-08-07 Thread Uwe Kleine-König
On Wed, Aug 07, 2019 at 08:26:23AM +, Philippe Schenker wrote: > Add the phy-node and mdio bus to the fec-node, represented as is on > hardware. > This commit includes micrel,led-mode that is set to the default > value, prepared for someone who wants to change this. > > Signed-off-by: Philippe

[PATCH] ARM: dts: dra74x: Fix iodelay configuration for mmc3

2019-08-07 Thread Faiz Abbas
According to the latest am572x[1] and dra74x[2] data manuals, mmc3 default, hs, sdr12 and sdr25 modes use iodelay values given in MMC3_MANUAL1. Set the MODE_SELECT bit for these so that manual mode is selected and correct iodelay values can be configured. [1] http://www.ti.com/lit/ds/symlink/am572

Re: [PATCH v2] arm64/cache: fix -Woverride-init compiler warnings

2019-08-07 Thread Mark Rutland
On Tue, Aug 06, 2019 at 03:34:34PM -0400, Qian Cai wrote: > The commit 155433cb365e ("arm64: cache: Remove support for ASID-tagged > VIVT I-caches") introduced some compiation warnings from GCC (and > Clang), > > arch/arm64/kernel/cpuinfo.c:38:26: warning: initialized field > overwritten [-Woverri

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-07 Thread Rafael J. Wysocki
On Wed, Aug 7, 2019 at 12:45 PM Christoph Hellwig wrote: > > On Wed, Aug 07, 2019 at 11:48:33AM +0200, Rafael J. Wysocki wrote: > > So I think I know what the problem is here. > > > > If ASPM is disabled for the NVMe device (which is the case on my machine by > > default), > > skipping the bus-le

Re: [linux-sunxi] [PATCH 0/3] Add basic support for RTC on Allwinner H6 SoC

2019-08-07 Thread Alexandre Belloni
Hi, On 06/08/2019 20:30:45+0200, Ondřej Jirman wrote: > Maybe whether XO or DCXO is used also matters if you want to do some fine > tunning of DCXO (control register has pletny of options), but that's probably > better done in u-boot. And there's still no need to read HOSC source from DT. > The dr

Re: [PATCH v2] arm64/cache: fix -Woverride-init compiler warnings

2019-08-07 Thread Will Deacon
On Tue, Aug 06, 2019 at 03:34:34PM -0400, Qian Cai wrote: > diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c > index 876055e37352..a0c495a3f4fd 100644 > --- a/arch/arm64/kernel/cpuinfo.c > +++ b/arch/arm64/kernel/cpuinfo.c > @@ -34,10 +34,7 @@ DEFINE_PER_CPU(struct cpuinfo_arm

Re: [v2,0/2] PCI: mediatek: Add support for MT7629

2019-08-07 Thread Lorenzo Pieralisi
On Fri, Jun 28, 2019 at 03:34:23PM +0800, Jianjun Wang wrote: > These series patches modify pcie-mediatek.c and dt-bindings compatible > string to support MT7629 PCIe host. > > Jianjun Wang (2): > dt-bindings: PCI: Add support for MT7629 > PCI: mediatek: Add controller support for MT7629 > >

Re: [PATCH 1/3] mm/mlock.c: convert put_page() to put_user_page*()

2019-08-07 Thread Michal Hocko
On Mon 05-08-19 15:20:17, john.hubb...@gmail.com wrote: > From: John Hubbard > > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). Hmm, this is an interesting code path. There seems to

Re: [PATCH v2 1/2] binder: Add default binder devices through binderfs when configured

2019-08-07 Thread Dan Carpenter
On Tue, Aug 06, 2019 at 11:40:05AM -0700, Hridya Valsaraju wrote: > @@ -467,6 +466,9 @@ static int binderfs_fill_super(struct super_block *sb, > void *data, int silent) > int ret; > struct binderfs_info *info; > struct inode *inode = NULL; > + struct binderfs_device device_in

Re: [PATCH] staging: isdn: hysdn_procconf_init() remove parantheses from return value

2019-08-07 Thread Dan Carpenter
This driver is going to be deleted soon so we aren't accepting cleanups. Thanks! regards, dan carpenter

Re: [PATCH v8 1/3] PM / wakeup: Drop wakeup_source_init(), wakeup_source_prepare()

2019-08-07 Thread Greg KH
On Tue, Aug 06, 2019 at 06:48:44PM -0700, Tri Vo wrote: > wakeup_source_init() has no users. Remove it. > > As a result, wakeup_source_prepare() is only called from > wakeup_source_create(). Merge wakeup_source_prepare() into > wakeup_source_create() and remove it. > > Change wakeup_source_create

[PATCH] ACPI / processor: don't print errors for processorIDs == 0xff

2019-08-07 Thread Jiri Slaby
Some platforms define their processors in this manner: Device (SCK0) { Name (_HID, "ACPI0004" /* Module Device */) // _HID: Hardware ID Name (_UID, "CPUSCK0") // _UID: Unique ID Processor (CP00, 0x00, 0x0410, 0x06){} Processor (CP01, 0x02, 0x0410, 0

Re: [PATCH 1/4] mailbox: arm_mhuv2: add device tree binding documentation

2019-08-07 Thread Tushar Khandelwal
On 02/08/2019, 11:54, "Sudeep Holla" wrote: On Thu, Jul 25, 2019 at 12:49:58AM -0500, Jassi Brar wrote: > On Sun, Jul 21, 2019 at 4:58 PM Jassi Brar wrote: > > [...] > > If the mhuv2 instance implements, say, 3 channel windows between > > sender (linux) and receiver

Re: [PATCH v8 2/3] PM / wakeup: Use wakeup_source_register() in wakelock.c

2019-08-07 Thread Greg KH
On Tue, Aug 06, 2019 at 06:48:45PM -0700, Tri Vo wrote: > kernel/power/wakelock.c duplicates wakeup source creation and > registration code from drivers/base/power/wakeup.c. > > Change struct wakelock's wakeup source to a pointer and use > wakeup_source_register() function to create and register s

Re: [PATCH v2 5/5] x86: KVM: svm: remove hardcoded instruction length from intercepts

2019-08-07 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Aug 06, 2019 at 08:01:50AM +0200, Vitaly Kuznetsov wrote: >> Various intercepts hard-code the respective instruction lengths to optimize >> skip_emulated_instruction(): when next_rip is pre-set we skip >> kvm_emulate_instruction(vcpu, EMULTYPE_SKIP). The opti

Re: [PATCHv9 1/3] arm64: dts: qcom: sdm845: Add Coresight support

2019-08-07 Thread Sai Prakash Ranjan
On 8/7/2019 3:42 PM, Suzuki K Poulose wrote: Sai, Any more tests you would want me to run? Apologies for the late response. I had seen the results and they look fine. I was hitting some issues, which I have now root caused to firmware issues. So we are good to go. Thanks Suzuki. Hi Bjorn,

Re: [PATCH v2 4/8] sched/fair: rework load_balance

2019-08-07 Thread Valentin Schneider
On 06/08/2019 18:17, Valentin Schneider wrote: >> @@ -8765,7 +8942,7 @@ static int load_balance(int this_cpu, struct rq >> *this_rq, >> env.src_rq = busiest; >> >> ld_moved = 0; >> -if (busiest->cfs.h_nr_running > 1) { >> +if (busiest->nr_running > 1) { > > Shouldn't that stay

Re: [PATCH v2 2/5] x86: KVM: svm: avoid flooding logs when skip_emulated_instruction() fails

2019-08-07 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Aug 06, 2019 at 08:01:47AM +0200, Vitaly Kuznetsov wrote: >> When we're unable to skip instruction with kvm_emulate_instruction() we >> will not advance RIP and most likely the guest will get stuck as >> consequitive attempts to execute the same instruction w

Re: [PATCH 1/4] mailbox: arm_mhuv2: add device tree binding documentation

2019-08-07 Thread Tushar Khandelwal
On 02/08/2019, 11:59, "Sudeep Holla" wrote: On Sun, Jul 21, 2019 at 04:58:04PM -0500, Jassi Brar wrote: > On Wed, Jul 17, 2019 at 2:26 PM Tushar Khandelwal > wrote: > > > diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.txt b/Documentation/devicetree/bindi

Linux next-20190807: arm64: build failed - phy-rockchip-inno-hdmi.c:1046:26: error: anonymous bit-field has negative width (-1)

2019-08-07 Thread Naresh Kamboju
Linux next 20190807 arm64 default config build failed due to below error. /drivers/phy/rockchip/phy-rockchip-inno-hdmi.c:1046:26: error: anonymous bit-field has negative width (-1) inno_write(inno, 0xc6, RK3328_TERM_RESISTOR_CALIB_SPEED_7_0(v

Re: [PATCH v3 07/21] ARM: dts: imx7-colibri: fix 1.8V/UHS support

2019-08-07 Thread Fabio Estevam
Hi Philippe, On Wed, Aug 7, 2019 at 5:26 AM Philippe Schenker wrote: > > From: Stefan Agner > > Add pinmuxing and do not specify voltage restrictions for the usdhc > instance available on the modules edge connector. This allows to use > SD-cards with higher transfer modes if supported by the car

[PATCH 1/2] dt-bindings: interconnect: Add OSM L3 DT bindings

2019-08-07 Thread Sibi Sankar
Add bindings for Operating State Manager (OSM) L3 interconnect provider on SDM845 SoCs. Signed-off-by: Sibi Sankar --- .../bindings/interconnect/qcom,osm-l3.yaml| 55 +++ .../dt-bindings/interconnect/qcom,osm-l3.h| 13 + 2 files changed, 68 insertions(+) create mode

[PATCH 0/2] Add OSM L3 Interconnect Provider

2019-08-07 Thread Sibi Sankar
This patch series aims to add Operating State Manager (OSM) L3 interconnect provider support on SDM845 SoCs to handle bandwidth requests from CPU/GPU to scale L3 caches. Sibi Sankar (2): dt-bindings: interconnect: Add OSM L3 DT bindings interconnect: qcom: Add OSM L3 interconnect provider supp

[PATCH 2/2] interconnect: qcom: Add OSM L3 interconnect provider support

2019-08-07 Thread Sibi Sankar
On some Qualcomm SoCs, Operating State Manager (OSM) controls the resources of scaling L3 caches. Add a driver to handle bandwidth requests to OSM L3 from CPU/GPU. Signed-off-by: Sibi Sankar --- drivers/interconnect/qcom/Kconfig | 7 + drivers/interconnect/qcom/Makefile | 2 + drivers/inter

Re: linux-next: build warning after merge of the akpm-current tree

2019-08-07 Thread Rikard Falkeborn
Hi Stephen, Andrew On Wed, Aug 07, 2019 at 06:00:41PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the akpm-current tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/bits.h:22, > from arch/x86/include/a

Re: [PATCH v2] Fix annotate.c use of uninitialized value error

2019-08-07 Thread Jiri Olsa
On Mon, Jul 29, 2019 at 01:57:50PM -0700, Numfor Mbiziwo-Tiapo wrote: > Our local MSAN (Memory Sanitizer) build of perf throws a warning > that comes from the "dso__disassemble_filename" function in > "tools/perf/util/annotate.c" when running perf record. > > The warning stems from the call to rea

Re: [PATCH] ACPI / CPPC: do not require the _PSD method when using CPPC

2019-08-07 Thread Sudeep Holla
On Mon, Aug 05, 2019 at 11:03:38AM -0600, Al Stone wrote: > According to the ACPI 6.3 specification, the _PSD method is optional > when using CPPC. The underlying assumption appears to be that each CPU > can change frequency independently from all other CPUs; _PSD is provided > to tell the OS that

RE: [PATCH v2] x86/boot: save fields explicitly, zero out everything else

2019-08-07 Thread David Laight
From: john.hubb...@gmail.com > Sent: 31 July 2019 06:46 > > Recent gcc compilers (gcc 9.1) generate warnings about an > out of bounds memset, if you trying memset across several fields > of a struct. This generated a couple of warnings on x86_64 builds. > > Fix this by explicitly saving the field

<    1   2   3   4   5   6   7   8   9   >