Re: [PATCH v9 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-23 Thread Jacek Anaszewski
Hi Dan, Thank you for the updated set. On 05/23/2018 01:51 PM, Dan Murphy wrote: Introduce the family of LED devices that can drive a torch, strobe or IR LED. The LED driver can be configured with a strobe timer to execute a strobe flash. The IR LED brightness is controlled via the torch brig

Re: [PATCH v3 10/13] soc: rockchip: power-domain: add power domain support for rk3228

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:52:03 CEST schrieb Elaine Zhang: > This driver is modified to support RK3228 SoC. > > Signed-off-by: Elaine Zhang applied for 4.18 (or later) Thanks Heiko

Re: [PATCH v3 09/13] dt-bindings: add binding for rk3228 power domains

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:51:41 CEST schrieb Elaine Zhang: > Add binding documentation for the power domains > found on Rockchip RK3228 SoCs. > > Signed-off-by: Elaine Zhang > Acked-by: Rob Herring applied for 4.18 (or later) Thanks Heiko

Re: [PATCH v3 11/13] dt-bindings: power: add PX30 SoCs header for power-domain

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:52:21 CEST schrieb Elaine Zhang: > From: Finley Xiao > > According to a description from TRM, add all the power domains. > > Signed-off-by: Finley Xiao > Signed-off-by: Elaine Zhang applied for 4.18 (or later) Thanks Heiko

Re: [PATCH v3 12/13] dt-bindings: add binding for px30 power domains

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:52:51 CEST schrieb Elaine Zhang: > From: Finley Xiao > > Add binding documentation for the power domains > found on Rockchip PX30 SoCs. > > Signed-off-by: Finley Xiao > Signed-off-by: Elaine Zhang applied for 4.18 (or later) Thanks Heiko

Re: [PATCH v3 08/13] dt-bindings: power: add RK3228 SoCs header for power-domain

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:51:26 CEST schrieb Elaine Zhang: > According to a description from TRM, add all the power domains. > > Signed-off-by: Elaine Zhang applied for 4.18 (or later) Thanks Heiko

Re: [PATCH v3 13/13] soc: rockchip: power-domain: add power domain support for px30

2018-05-23 Thread Heiko Stübner
Am Mittwoch, 23. Mai 2018, 08:53:32 CEST schrieb Elaine Zhang: > From: Finley Xiao > > This driver is modified to support PX30 SoC. > > Signed-off-by: Finley Xiao > Signed-off-by: Elaine Zhang applied for 4.18 (or later) Thanks Heiko

Re: v4.17-rc1: regressions on N900, N950

2018-05-23 Thread Pavel Machek
On Wed 2018-05-23 16:06:15, Pavel Machek wrote: > On Wed 2018-05-23 00:56:38, Aaro Koskinen wrote: > > Hi, > > > > On Tue, May 22, 2018 at 10:58:26PM +0200, Pavel Machek wrote: > > > On Tue 2018-05-22 22:41:39, Aaro Koskinen wrote: > > > > My device worked with v4.17-rc1 (haven't found time to tes

Re: [PATCH 07/14] powerpc: Add support for restartable sequences

2018-05-23 Thread Mathieu Desnoyers
- On May 20, 2018, at 10:08 AM, Boqun Feng boqun.f...@gmail.com wrote: > On Fri, May 18, 2018 at 02:17:17PM -0400, Mathieu Desnoyers wrote: >> - On May 17, 2018, at 7:50 PM, Boqun Feng boqun.f...@gmail.com wrote: >> [...] >> >> > I think you're right. So we have to introduce callsite to rs

Re: [PATCH 1/4] rcu: Speed up calling of RCU tasks callbacks

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 03:13:37PM -0400, Steven Rostedt wrote: > On Wed, 23 May 2018 10:03:03 -0700 > "Paul E. McKenney" wrote: > > > > > > diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c > > > > > index 5783bdf86e5a..a28698e44b08 100644 > > > > > --- a/kernel/rcu/update.c > > > > > +++ b

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Vito Caputo
On Wed, May 23, 2018 at 10:12:22PM +0300, Ville Syrjälä wrote: > On Wed, May 23, 2018 at 11:39:00AM -0700, Vito Caputo wrote: > > On Wed, May 23, 2018 at 09:20:37PM +0300, Ville Syrjälä wrote: > > > On Wed, May 23, 2018 at 11:06:00AM -0700, Vito Caputo wrote: > > > > On Wed, May 23, 2018 at 04:18:0

[PATCH] arm64: dts: stingray: Add otp device node

2018-05-23 Thread Scott Branden
Add otp device node for Stingray SOC. Fixes: 2fa9e9e29ea2 ("arm64: dts: Add GPIO DT nodes for Stingray SOC") Signed-off-by: Scott Branden --- arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/sting

[PATCH v2 0/2] PCI Quirk Patchset for Microsemi Switchtec NTB

2018-05-23 Thread dmeyer
From: Doug Meyer This is a resend of the patch series to enable Microsemi Switchtec NTB configurations to run with the IOMMU in the hosts turned on. Because of the nature PCI Quirk implementation, it was preferable to migrate the Microsemi PCI vendor and device definitions to the Linux canonical

[PATCH v2 1/2] NTB: Migrate PCI Constants to Cannonical PCI Header

2018-05-23 Thread dmeyer
From: Doug Meyer This is the first of two patches to implement a PCI quirk which will allow the Switchtec NTB code to work with the IOMMU turned on. Here, the Microsemi Switchtec PCI vendor and device ID constants are moved to the canonical location in pci_ids.h. Also, Microsemi class constants

Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus

2018-05-23 Thread Waiman Long
On 05/23/2018 01:34 PM, Patrick Bellasi wrote: > Hi Waiman, > > On 17-May 16:55, Waiman Long wrote: > > [...] > >> @@ -672,13 +672,14 @@ static int generate_sched_domains(cpumask_var_t >> **domains, >> int ndoms = 0; /* number of sched domains in result */ >> int nslot;

[PATCH v2 2/2] NTB: PCI Quirk to Enable Switchtec NT Functionality with IOMMU On

2018-05-23 Thread dmeyer
From: Doug Meyer Here we add the PCI quirk for the Microsemi Switchtec parts to allow DMA access via non-transparent bridging to work when the IOMMU is turned on. This exclusively addresses the ability of a remote NT endpoint to perform DMA accesses through the locally enumerated NT endpoint. Ot

[GIT PULL 00/18] perf/core improvements

2018-05-23 Thread Arnaldo Carvalho de Melo
linux into perf/core (2018-05-19 13:32:53 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.18-20180523 for you to fetch changes up to 22916fdb9c50e8fb303bdcedca88fd8798a85844: perf kcore_copy: Amend the

[PATCH 04/18] perf machine: Add nr_cpus_avail()

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a function to return the number of the machine's available CPUs. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: x

[PATCH 02/18] perf report: Use perf_evlist__force_leader to support '--group'

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Jin Yao Since we created a new function perf_evlist__force_leader(), remove the old code and use that new evlist method. Signed-off-by: Jin Yao Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jiri Olsa Cc: Kan Liang Cc: Peter Zijlstra Link: http://lkml

[PATCH 05/18] perf machine: Workaround missing maps for x86 PTI entry trampolines

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter On x86_64 the PTI entry trampolines are not in the kernel map created by perf tools. That results in the addresses having no symbols and prevents annotation. It also causes Intel PT to have decoding errors at the trampoline addresses. Workaround that by creating maps for the

[PATCH 06/18] perf machine: Fix map_groups__split_kallsyms() for entry trampoline symbols

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter When kernel symbols are derived from /proc/kallsyms only (not using vmlinux or /proc/kcore) map_groups__split_kallsyms() is used. However that function makes assumptions that are not true with entry trampoline symbols. For now, remove the entry trampoline symbols at that point

[PATCH 09/18] perf machine: Synthesize and process mmap events for x86 PTI entry trampolines

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Like the kernel text, the location of x86 PTI entry trampolines must be recorded in the perf.data file. Like the kernel, synthesize a mmap event for that, and add processing for it. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc:

Re: [PATCH 2/2] NTB: PCI Quirk to Enable Switchtec NT Functionality with IOMMU On

2018-05-23 Thread Logan Gunthorpe
On 23/05/18 07:33 AM, Bjorn Helgaas wrote: > This (and Alex's) analysis is very useful and I'd like to capture it > somehow, perhaps by expanding the poor pci_add_dma_alias() function > comment I added with f0af9593372a ("PCI: Add pci_add_dma_alias() to > abstract implementation"). > > The admon

[PATCH 18/18] perf kcore_copy: Amend the offset of sections that remap kernel text

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter x86 PTI entry trampolines all map to the same physical page. If that is reflected in the program headers of /proc/kcore, then do the same for the copy of kcore. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H.

[PATCH 16/18] perf kcore_copy: Get rid of kernel_map

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation to add more program headers, get rid of kernel_map and modules_map by moving ->kernel_map and ->modules_map to newly allocated entries in the ->phdrs list. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hanse

Re: [PATCH] kdump: add default crashkernel reserve kernel config options

2018-05-23 Thread Petr Tesarik
On Wed, 23 May 2018 10:53:55 -0500 ebied...@xmission.com (Eric W. Biederman) wrote: > Dave Young writes: > > > [snip] > > > >> > > >> > +config CRASHKERNEL_DEFAULT_THRESHOLD_MB > >> > +int "System memory size threshold for kdump memory default > >> > reserving" > >> > +depen

[PATCH 11/18] perf kcore_copy: Keep phdr data in a list

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Currently, kcore_copy makes 2 program headers, one for the kernel text (namely kernel_map) and one for the modules (namely modules_map). Now more program headers are needed, but treating each program header as a special case results in much more code. Instead, in preparation

[PATCH 17/18] perf kcore_copy: Copy x86 PTI entry trampoline sections

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Identify and copy any sections for x86 PTI entry trampolines. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: x...@ker

[PATCH 15/18] perf kcore_copy: Iterate phdrs

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation to add more program headers, iterate phdrs instead of assuming there is only one for the kernel text and one for the modules. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jir

[PATCH 13/18] perf kcore_copy: Calculate offset from phnum

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation to add more program headers, calculate offset from the number of phdrs. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter Zijlstra Cc: Thom

[PATCH 14/18] perf kcore_copy: Layout sections

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation to add more program headers, layout the relative offset of each section. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter Zijlstra Cc: Tho

[PATCH 12/18] perf kcore_copy: Keep a count of phdrs

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation to add more program headers, keep a count of phdrs. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: x..

[PATCH 10/18] perf annotate: Show group event string for stdio

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Jin Yao When we enable the group, for tui/stdio2, the output first line includes the group event string. While for stdio, it will show only one event. For example, perf record -e cycles,branches ./div perf annotate --group --stdio Percent | Source code & Disassembly of div for c

[PATCH 07/18] perf machine: Allow for extra kernel maps

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Identify extra kernel maps by name so that they can be distinguished from the kernel map and module maps. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Andy Lutomirski Cc: Dave Hansen Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Joerg Roedel Cc: Peter

[PATCH 08/18] perf machine: Create maps for x86 PTI entry trampolines

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Create maps for x86 PTI entry trampolines, based on symbols found in kallsyms. It is also necessary to keep track of whether the trampolines have been mapped particularly when the kernel dso is kcore. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: A

[PATCH 01/18] perf evlist: Introduce force_leader() method

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Jin Yao For non-explicit group (e.g. those created with -e '{eventA,eventB}'), 'perf report' supports a option '--group' which can enable group output. We also need to support 'perf annotate' with the same '--group'. Create a new function perf_evlist__force_leader() which contains common

Re: [PATCH 08/11] coresight: Add generic TMC sg table framework

2018-05-23 Thread Mathieu Poirier
On Fri, May 18, 2018 at 05:39:24PM +0100, Suzuki K Poulose wrote: > This patch introduces a generic sg table data structure and > associated operations. An SG table can be used to map a set > of Data pages where the trace data could be stored by the TMC > ETR. The information about the data pages c

Re: [PATCH v2 1/2] NTB: Migrate PCI Constants to Cannonical PCI Header

2018-05-23 Thread Logan Gunthorpe
On 23/05/18 02:18 PM, dme...@gigaio.com wrote: > +#define PCI_DEVICE_ID_MICROSEMI_PFX24XG3 0x8531 I think Bjorn asked not to add the device IDs to the pci_ids.h and to just use the raw IDs in quirks.h. switchtec.c already uses the raw values. Besides that, it looks good to me. Reviewed-by:

[PATCH 03/18] perf annotate: Support '--group' option

2018-05-23 Thread Arnaldo Carvalho de Melo
From: Jin Yao With the '--group' option, even for non-explicit group, 'perf annotate' will enable the group output. For example, $ perf record -e cycles,branches ./div $ perf annotate main --stdio --group :Disassembly of section .text: :

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Pierre-Louis Bossart
On 05/22/2018 11:58 AM, Guenter Roeck wrote: From: Guenter Roeck Commit dc31e741db49 ("ASoC: topology: ABI - Add the types for BE DAI") introduced sound topology files version 5. Initially, this change made the topology code incompatible with v4 topology files. Backwards compatibility with v4

[PATCH v2 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-05-23 Thread Ray Jui
Consolidate two SP805 binding documents "arm,sp805.txt" and "sp805-wdt.txt" into "arm,sp805.txt" that matches the naming of the desired compatible string to be used Signed-off-by: Ray Jui --- .../devicetree/bindings/watchdog/arm,sp805.txt | 20 +++--- .../devicetree/bindings/watchdog

[PATCH v2 0/6]Enhance support for the SP805 WDT

2018-05-23 Thread Ray Jui
This patch series enhances the support for the SP805 watchdog timer. First of all, 'timeout-sec' devicetree property is added. In addition, support is also added to allow the driver to reset the watchdog if it has been detected that watchdot has been started in the bootloader. In this case, the dri

[PATCH v2 4/6] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Ray Jui
If the watchdog hardware is already enabled during the boot process, when the Linux watchdog driver loads, it should reset the watchdog and tell the watchdog framework. As a result, ping can be generated from the watchdog framework, until the userspace watchdog daemon takes over control Signed-off

Re: [PATCH v2 2/2] NTB: PCI Quirk to Enable Switchtec NT Functionality with IOMMU On

2018-05-23 Thread Logan Gunthorpe
On 23/05/18 02:18 PM, dme...@gigaio.com wrote: > Signed-off-by: Doug Meyer Modulo the device ID issue: Reviewed-by: Logan Gunthorpe Thanks for your work on this Doug! Logan

[PATCH v2 6/6] arm64: defconfig: add CONFIG_ARM_SP805_WATCHDOG

2018-05-23 Thread Ray Jui
Enable the SP805 watchdog timer Signed-off-by: Ray Jui --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ecf6137..3fe5eb5 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defcon

[PATCH v2 2/6] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-05-23 Thread Ray Jui
Update the SP805 binding document to add optional 'timeout-sec' devicetree property Signed-off-by: Ray Jui Reviewed-by: Scott Branden Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/arm,sp805.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devi

[PATCH v2 5/6] arm64: dt: set initial SR watchdog timeout to 60 seconds

2018-05-23 Thread Ray Jui
Set initial Stingray watchdog timeout to 60 seconds By the time when the userspace watchdog daemon is ready and taking control over, the watchdog timeout will then be reset to what's configured in the daemon Signed-off-by: Ray Jui Reviewed-by: Vladimir Olovyannikov Reviewed-by: Scott Branden -

[PATCH v2 3/6] watchdog: sp805: add 'timeout-sec' DT property support

2018-05-23 Thread Ray Jui
Add support for optional devicetree property 'timeout-sec'. 'timeout-sec' is used in the driver if specified in devicetree. Otherwise, fall back to driver default, i.e., 60 seconds Signed-off-by: Ray Jui Reviewed-by: Scott Branden Reviewed-by: Guenter Roeck --- drivers/watchdog/sp805_wdt.c | 9

Re: [PATCH v2 1/2] NTB: Migrate PCI Constants to Cannonical PCI Header

2018-05-23 Thread Doug Meyer
Dear Logan, Thank you for the comment. My gmail filters got me and I never saw Bjorn's comments on pci_ids.h. I'll start work on v3 when I get another window of time at work. Blessings, Doug On Wed, May 23, 2018 at 1:26 PM, Logan Gunthorpe wrote: > > > On 23/05/18 02:18 PM, dme...@gigaio.com w

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Ville Syrjälä
On Wed, May 23, 2018 at 01:15:05PM -0700, Vito Caputo wrote: > On Wed, May 23, 2018 at 10:12:22PM +0300, Ville Syrjälä wrote: > > On Wed, May 23, 2018 at 11:39:00AM -0700, Vito Caputo wrote: > > > On Wed, May 23, 2018 at 09:20:37PM +0300, Ville Syrjälä wrote: > > > > On Wed, May 23, 2018 at 11:06:0

Re: [PATCHv2] arm64: Make sure permission updates happen for pmd/pud

2018-05-23 Thread Kees Cook
On Wed, May 23, 2018 at 11:43 AM, Laura Abbott wrote: > Commit 15122ee2c515 ("arm64: Enforce BBM for huge IO/VMAP mappings") > disallowed block mappings for ioremap since that code does not honor > break-before-make. The same APIs are also used for permission updating > though and the extra checks

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Kees Cook
On Wed, May 23, 2018 at 7:31 AM, Jens Axboe wrote: > On 5/23/18 8:25 AM, Christoph Hellwig wrote: >> On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: Should I move to code to a new drivers/scsi/scsi_sense.c and add it to drivers/scsi/Makefile as: obj-$(CONFIG_BLK_SCS

Re: [PATCH 07/14] powerpc: Add support for restartable sequences

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 04:14:39PM -0400, Mathieu Desnoyers wrote: > - On May 20, 2018, at 10:08 AM, Boqun Feng boqun.f...@gmail.com wrote: > > > On Fri, May 18, 2018 at 02:17:17PM -0400, Mathieu Desnoyers wrote: > >> - On May 17, 2018, at 7:50 PM, Boqun Feng boqun.f...@gmail.com wrote: >

Re: [PATCH v3] usbip: dynamically allocate idev by nports found in sysfs

2018-05-23 Thread Michael Grzeschik
On Wed, May 23, 2018 at 10:44:57AM -0600, Shuah Khan wrote: > On 05/23/2018 03:22 AM, Michael Grzeschik wrote: > > As the amount of available ports varies by the kernels build > > configuration. To remove the limitation of the fixed 128 ports > > we allocate the amount of idevs by using the number

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Martin K. Petersen
Kees, > obj-$(CONFIG_SCSI) += scsi/ > > So: this needs to live in block/ just like CONFIG_BLK_SCSI_REQUEST's > scsi_ioctl.c. I will split it into CONFIG_BLK_SCSI_SENSE, but I'll > still need to move the code from drivers/scsi/ to block/. Is this > okay? The reason this sucks is that

Re: [PATCH v5 20/28] fpga: dfl: add fpga bridge platform driver for FME

2018-05-23 Thread Alan Tull
On Wed, May 23, 2018 at 10:28 AM, Wu Hao wrote: > On Wed, May 23, 2018 at 10:15:00AM -0500, Alan Tull wrote: >> On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: >> >> Hi Hao, >> >> > This patch adds fpga bridge platform driver for FPGA Management Engine. >> > It implements the enable_set callback fo

Re: [PATCH] fixup! kconfig: refactor ncurses package checks for building mconf and nconf

2018-05-23 Thread Randy Dunlap
On 05/22/2018 07:11 PM, Masahiro Yamada wrote: > It is redundant to pass -DNCURSES_WIDECHAR=1 explicitly; when we use > 'pkg-config --cflags', it takes care of appropriate flags. > > Actually, 'pkg-config --cflags' will add -D_GNU_SOURCE, which will > define _XOPEN_SOURCE_EXTENDED, and NCURSES_WID

[PATCH] PCI: Expand documentation for pci_add_dma_alias()

2018-05-23 Thread Logan Gunthorpe
Seeing there's been some confusion about the use of pci_add_dma_alias(), expand the comment to describe why it must be called early and how early it must be called. Also, expand on the purpose of this function and common reasons it would be used. Signed-off-by: Logan Gunthorpe Cc: Bjorn Helgaas

Re: [PATCH 6/6] scsi: Check sense buffer size at build time

2018-05-23 Thread Kees Cook
On Wed, May 23, 2018 at 1:25 AM, Sergei Shtylyov wrote: > Hello! > > On 5/22/2018 9:15 PM, Kees Cook wrote: > >> To avoid introducing problems like those fixed in commit f7068114d45e >> ("sr: pass down correctly sized SCSI sense buffer"), this creates a macro >> wrapper for scsi_execute() that ver

[PATCH] PCI: hv: Do not wait forever on a device that has disappeared

2018-05-23 Thread Dexuan Cui
Before the guest finishes the device initialization, the device can be removed anytime by the host, and after that the host won't respond to the guest's request, so the guest should be prepared to handle this case. Signed-off-by: Dexuan Cui Cc: Stephen Hemminger Cc: K. Y. Srinivasan --- drive

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Jens Axboe
On 5/23/18 2:52 PM, Kees Cook wrote: > On Wed, May 23, 2018 at 7:31 AM, Jens Axboe wrote: >> On 5/23/18 8:25 AM, Christoph Hellwig wrote: >>> On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: > Should I move to code to a new drivers/scsi/scsi_sense.c and add it to > drivers/scsi/

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Kees Cook
On Wed, May 23, 2018 at 2:06 PM, Martin K. Petersen wrote: > > Kees, > >> obj-$(CONFIG_SCSI) += scsi/ >> >> So: this needs to live in block/ just like CONFIG_BLK_SCSI_REQUEST's >> scsi_ioctl.c. I will split it into CONFIG_BLK_SCSI_SENSE, but I'll >> still need to move the code from dr

Re: [PATCH] ppp: remove the PPPIOCDETACH ioctl

2018-05-23 Thread Eric Biggers
On Wed, May 23, 2018 at 11:56:36AM -0400, David Miller wrote: > From: Guillaume Nault > Date: Wed, 23 May 2018 15:57:08 +0200 > > > I'd rather add > > + if (cmd == PPPIOCDETACH) { > > + err = -EINVAL; > > + goto out; > > + } > > > > Making PPPIOCDETACH unknown to ppp_gene

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Randy Dunlap
On 05/23/2018 02:14 PM, Jens Axboe wrote: > On 5/23/18 2:52 PM, Kees Cook wrote: >> On Wed, May 23, 2018 at 7:31 AM, Jens Axboe wrote: >>> On 5/23/18 8:25 AM, Christoph Hellwig wrote: On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: >> Should I move to code to a new drivers/scs

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Jens Axboe
On 5/23/18 3:20 PM, Randy Dunlap wrote: > On 05/23/2018 02:14 PM, Jens Axboe wrote: >> On 5/23/18 2:52 PM, Kees Cook wrote: >>> On Wed, May 23, 2018 at 7:31 AM, Jens Axboe wrote: On 5/23/18 8:25 AM, Christoph Hellwig wrote: > On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: >>>

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Guenter Roeck
On Wed, May 23, 2018 at 1:28 PM Pierre-Louis Bossart < pierre-louis.boss...@linux.intel.com> wrote: > On 05/22/2018 11:58 AM, Guenter Roeck wrote: > > From: Guenter Roeck > > > > Commit dc31e741db49 ("ASoC: topology: ABI - Add the types for BE > > DAI") introduced sound topology files version 5.

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Randy Dunlap
On 05/23/2018 02:22 PM, Jens Axboe wrote: > On 5/23/18 3:20 PM, Randy Dunlap wrote: >> On 05/23/2018 02:14 PM, Jens Axboe wrote: >>> On 5/23/18 2:52 PM, Kees Cook wrote: On Wed, May 23, 2018 at 7:31 AM, Jens Axboe wrote: > On 5/23/18 8:25 AM, Christoph Hellwig wrote: >> On Wed, May 23

Re: [PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Jens Axboe
On 5/23/18 2:05 PM, Joe Perches wrote: > Convert the S_ symbolic permissions to their octal equivalents as > using octal and not symbolic permissions is preferred by many as more > readable. > > see: https://lkml.org/lkml/2016/8/2/1945 > > Done with automated conversion via: > $ ./scripts/checkpa

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Vito Caputo
On Wed, May 23, 2018 at 11:41:25PM +0300, Ville Syrjälä wrote: > On Wed, May 23, 2018 at 01:15:05PM -0700, Vito Caputo wrote: > > On Wed, May 23, 2018 at 10:12:22PM +0300, Ville Syrjälä wrote: > > > On Wed, May 23, 2018 at 11:39:00AM -0700, Vito Caputo wrote: > > > > On Wed, May 23, 2018 at 09:20:3

Re: [PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Jens Axboe
On 5/23/18 11:56 AM, Tejun Heo wrote: > From 0aa2e9b921d6db71150633ff290199554f0842a8 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Wed, 23 May 2018 10:29:00 -0700 > > cgwb_release() punts the actual release to cgwb_release_workfn() on > system_wq. Depending on the number of cgroups or bloc

Re: [PATCH 07/14] powerpc: Add support for restartable sequences

2018-05-23 Thread Mathieu Desnoyers
- On May 23, 2018, at 4:14 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On May 20, 2018, at 10:08 AM, Boqun Feng boqun.f...@gmail.com wrote: > >> On Fri, May 18, 2018 at 02:17:17PM -0400, Mathieu Desnoyers wrote: >>> - On May 17, 2018, at 7:50 PM, Boqun Feng boqun.

Re: [PATCH V2] PCI/portdrv: do not disable device on reboot/shutdown

2018-05-23 Thread Bjorn Helgaas
[-cc Gabriele (invalid email address)] [+cc Don, esc.storagedev, linux-scsi since hpsa is involved] Background for newcomers: Ryan reported a panic on shutdown/reboot [1] on DL360 Gen9. I think the problem is that the shutdown path clears PCI_COMMAND_MASTER on the Root Port leading to an h

Re: [PATCH v3 0/2] mm: PAGE_KERNEL_* fallbacks

2018-05-23 Thread Luis R. Rodriguez
On Wed, May 16, 2018 at 06:44:03PM +0200, Luis R. Rodriguez wrote: > On Thu, May 10, 2018 at 11:55:05AM -0700, Luis R. Rodriguez wrote: > > This is the 3rd iteration for moving PAGE_KERNEL_* fallback > > definitions into asm-generic headers. Greg asked for a Changelog > > for patch iteration change

[PATCH v2] ppp: remove the PPPIOCDETACH ioctl

2018-05-23 Thread Eric Biggers
From: Eric Biggers The PPPIOCDETACH ioctl effectively tries to "close" the given ppp file before f_count has reached 0, which is fundamentally a bad idea. It does check 'f_count < 2', which excludes concurrent operations on the file since they would only be possible with a shared fd table, in wh

Re: [PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
On Wed, 2018-05-23 at 15:27 -0600, Jens Axboe wrote: > On 5/23/18 2:05 PM, Joe Perches wrote: > > Convert the S_ symbolic permissions to their octal equivalents as > > using octal and not symbolic permissions is preferred by many as more > > readable. > > > > see: https://lkml.org/lkml/2016/8/2/19

Re: [PATCH v6 0/5] PCI: Improve PCIe link status reporting

2018-05-23 Thread Bjorn Helgaas
[+to Davem] On Thu, May 03, 2018 at 03:00:07PM -0500, Bjorn Helgaas wrote: > This is based on Tal's recent work to unify the approach for reporting PCIe > link speed/width and whether the device is being limited by a slower > upstream link. > > The new pcie_print_link_status() interface appeared

Re: [PATCH 4/5] pci/hotplug/pnv-php: add missing of_node_put

2018-05-23 Thread Bjorn Helgaas
On Wed, May 23, 2018 at 09:07:15PM +0200, Julia Lawall wrote: > The device node iterators perform an of_node_get on each iteration, so a > jump out of the loop requires an of_node_put. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > expre

Re: [PATCH 1/4] rcu: Speed up calling of RCU tasks callbacks

2018-05-23 Thread Joel Fernandes
On Wed, May 23, 2018 at 01:04:58PM -0700, Paul E. McKenney wrote: > On Wed, May 23, 2018 at 03:13:37PM -0400, Steven Rostedt wrote: > > On Wed, 23 May 2018 10:03:03 -0700 > > "Paul E. McKenney" wrote: > > > > > > > > diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c > > > > > > index 5783bdf

Re: [PATCH 05/15] mtd: nand: pxa3xx: remove the dmaengine compat need

2018-05-23 Thread Daniel Mack
Hi Robert, Please refer to the attached patch instead of the one I sent earlier. I missed to also remove the platform_get_resource(IORESOURCE_DMA) call. Thanks, Daniel On Friday, May 18, 2018 11:31 PM, Daniel Mack wrote: Hi Robert, Thanks for this series. On Monday, April 02, 2018 04:26

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

2018-05-23 Thread Arnd Bergmann
On Fri, May 11, 2018 at 2:20 PM, Kalle Valo wrote: > Stephen Rothwell writes: > >> After merging the mac80211-next tree, today's linux-next build (arm_multi >> v7_defconfig) produced this warning: >> >> drivers/net/wireless/marvell/mwifiex/uap_event.c: In function >> 'mwifiex_process_uap_event':

Re: [v4 07/11] dt-bindings: hwmon: Add documents for PECI hwmon client drivers

2018-05-23 Thread Jae Hyun Yoo
On 5/23/2018 1:03 PM, Jae Hyun Yoo wrote: On 5/23/2018 12:33 PM, Rob Herring wrote: On Wed, May 23, 2018 at 11:37 AM, Jae Hyun Yoo wrote: On 5/23/2018 8:11 AM, Rob Herring wrote: On Tue, May 22, 2018 at 12:18 PM, Jae Hyun Yoo wrote: On 5/22/2018 9:42 AM, Rob Herring wrote: On Mon, May

Re: [PATCH bpf-next v2 0/3] bpf: add boot parameters for sysctl knobs

2018-05-23 Thread Alexei Starovoitov
On Wed, May 23, 2018 at 02:18:19PM +0200, Eugene Syromiatnikov wrote: > Some BPF sysctl knobs affect the loading of BPF programs, and during > system boot/init stages these sysctls are not yet configured. > A concrete example is systemd, that has implemented loading of BPF > programs. > > Thus, to

Re: v4.17-rc1: regressions on N900, N950

2018-05-23 Thread Aaro Koskinen
On Wed, May 23, 2018 at 12:56:38AM +0300, Aaro Koskinen wrote: > On Tue, May 22, 2018 at 10:58:26PM +0200, Pavel Machek wrote: > > On Tue 2018-05-22 22:41:39, Aaro Koskinen wrote: > > > My device worked with v4.17-rc1 (haven't found time to test newer > > > kernels), > > > but if you say the probe

omapdrm regression in v4.17-rc series

2018-05-23 Thread Tony Lindgren
Hi all, I bisected the n900 LCD issue to commit 24aac6011f70 ("drm: omapdrm: sdi: Allocate the sdi private data structure dynamically"). Reverting this patch makes LCD work for me again on n900. Any ideas? Regards, Tony

Re: [PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Rik van Riel
On Wed, 2018-05-23 at 10:56 -0700, Tejun Heo wrote: > The events leading to the lockup are... > > 1. A lot of cgwb_release_workfn() is queued at the same time and all >system_wq kworkers are assigned to execute them. > > 2. They all end up calling synchronize_rcu_expedited(). One of them >

Re: v4.17-rc1: regressions on N900, N950

2018-05-23 Thread Tony Lindgren
* Pavel Machek [180523 20:14]: > On Wed 2018-05-23 16:06:15, Pavel Machek wrote: > > On Wed 2018-05-23 00:56:38, Aaro Koskinen wrote: > > > Hi, > > > > > > On Tue, May 22, 2018 at 10:58:26PM +0200, Pavel Machek wrote: > > > > On Tue 2018-05-22 22:41:39, Aaro Koskinen wrote: > > > > > My device wo

Re: [PATCH 6/6] Drop flex_arrays

2018-05-23 Thread Kent Overstreet
On Wed, May 23, 2018 at 10:24:18AM -0700, Dave Hansen wrote: > Thanks for the heads-up, Matthew! Sorry, I was just using scripts/get_maintainers, forgot to check the actual file for the original author :) > On 05/22/2018 06:18 PM, Kent Overstreet wrote: > > All existing users have been converted

Re: [PATCH] PCI: Expand documentation for pci_add_dma_alias()

2018-05-23 Thread Alex Williamson
On Wed, 23 May 2018 15:07:38 -0600 Logan Gunthorpe wrote: > Seeing there's been some confusion about the use of pci_add_dma_alias(), > expand the comment to describe why it must be called early and how > early it must be called. > > Also, expand on the purpose of this function and common reasons

[clang] stack protector and f1f029c7bf

2018-05-23 Thread Nick Desaulniers
H. Peter, It was reported [0] that compiling the Linux kernel with Clang + CC_STACKPROTECTOR_STRONG was causing a crash in native_save_fl(), due to how GCC does not emit a stack guard for static inline functions (see Alistair's excellent report in [1]) but Clang does. When working with the LLVM r

[PATCH v3] ath10k: transmit queued frames after processing rx packets

2018-05-23 Thread Niklas Cassel
When running iperf on ath10k SDIO, TX can stop working: iperf -c 192.168.1.1 -i 1 -t 20 -w 10K [ 3] 0.0- 1.0 sec 2.00 MBytes 16.8 Mbits/sec [ 3] 1.0- 2.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 2.0- 3.0 sec 3.25 MBytes 27.3 Mbits/sec [ 3] 3.0- 4.0 sec 655 KBytes 5.36 Mbits/sec [ 3]

Re: [PATCH 2/6] proc: commit to genradix

2018-05-23 Thread Kent Overstreet
On Wed, May 23, 2018 at 04:28:23AM -0700, Matthew Wilcox wrote: > On Tue, May 22, 2018 at 09:18:17PM -0400, Kent Overstreet wrote: > > @@ -2140,11 +2140,12 @@ proc_map_files_readdir(struct file *file, struct > > dir_context *ctx) > > struct task_struct *task; > > struct mm_struct *mm; > >

Re: [PATCH 2/4] arcnet: com20020: bindings for smsc com20020

2018-05-23 Thread Andrea Greco
On 05/23/2018 06:49 PM, Rob Herring wrote: > One typo, otherwise: > > Reviewed-by: Rob Herring Yes typo, Fixed over my branch, sorry for that... I expect a comment about bps, Bit per Second, used in `bus-speed-bps` You will add it by your self in property-units.txt, or required my patch? If your

Re: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-05-23 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Sat, May 19, 2018 at 9:02 AM, Lukasz Majewski > wrote: > > > After removing imx53-kp-ddc and imx53-kp-common iomux subnodes I do > > see following errors in the dmesg (v4.17-rc5): > > > > imx53-pinctrl 53fa8000.iomuxc: function 'iomuxc' not supported > > imx53-pinc

Re: [PATCH v3] ath10k: transmit queued frames after processing rx packets

2018-05-23 Thread Niklas Cassel
On Thu, May 24, 2018 at 12:15:08AM +0200, Niklas Cassel wrote: > This problem cannot be reproduced on low-latency devices, e.g. pci, > since they call ath10k_mac_tx_push_pending() from > ath10k_htt_txrx_compl_task(). ath10k_htt_txrx_compl_task() is not called > on high-latency devices. > Fix the pr

[PATCH] docs: update kernel versions and dates in tables

2018-05-23 Thread Tim Bird
Every once in a while, we should update the examples to reflect more recent kernel versions. Update the tables describing kernel releases, the merge window, and current longterm maintained kernel, from 2.6-era kernels to 4.x. Signed-off-by: Tim Bird --- Documentation/process/2.Process.rst | 72

[PATCH] leds: class: ensure workqueue is initialized before setting brightness

2018-05-23 Thread Luis Henriques
An application can try to set brightness before all the initialization is done, in particular before the workqueue is initialized with the call to led_init_core(). Here's a WARNING easy to trigger: [ 36.780813] WARNING: CPU: 3 PID: 1411 at ../kernel/workqueue.c:1444 __queue_work+0x37b/0x420 [

Re: [PATCH 4/6] openvswitch: convert to genradix

2018-05-23 Thread Kent Overstreet
On Wed, May 23, 2018 at 05:34:01AM -0700, Matthew Wilcox wrote: > On Tue, May 22, 2018 at 09:18:19PM -0400, Kent Overstreet wrote: > > the new generic radix trees have a simpler API and implementation, and > > no limitations on number of elements, so all flex_array users are being > > converted >

Re: [PATCH] docs: update kernel versions and dates in tables

2018-05-23 Thread Jonathan Corbet
On Wed, 23 May 2018 15:20:14 -0700 Tim Bird wrote: > Every once in a while, we should update the examples > to reflect more recent kernel versions. > > Update the tables describing kernel releases, the merge window, > and current longterm maintained kernel, from 2.6-era kernels > to 4.x. I dunn

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Vito Caputo
On Wed, May 23, 2018 at 02:27:48PM -0700, Vito Caputo wrote: > On Wed, May 23, 2018 at 11:41:25PM +0300, Ville Syrjälä wrote: > > On Wed, May 23, 2018 at 01:15:05PM -0700, Vito Caputo wrote: > > > On Wed, May 23, 2018 at 10:12:22PM +0300, Ville Syrjälä wrote: > > > > On Wed, May 23, 2018 at 11:39:0

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-05-23 Thread Benjamin Herrenschmidt
On Wed, 2018-05-23 at 21:50 +0300, Michael S. Tsirkin wrote: > I re-read that discussion and I'm still unclear on the > original question, since I got several apparently > conflicting answers. > > I asked: > > Why isn't setting VIRTIO_F_IOMMU_PLATFORM on the > hypervisor side suffici

<    4   5   6   7   8   9   10   11   >