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

[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 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

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 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] 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: [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] 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: [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: [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 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: [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 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 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/

[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 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: 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] 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

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 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 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 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: [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: [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: [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

[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

[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 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 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 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

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

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: [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

[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

[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 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 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 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 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 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 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 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 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.

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 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:

[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 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 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

[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 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

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 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

[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] 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

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

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: [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: 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 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: [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 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 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 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 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

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

2018-05-23 Thread Joe Perches
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/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace Miscel

Re: [PATCH 2/2] Input: atmel_mxt_ts - require device properties present when probing

2018-05-23 Thread Benson Leung
On Thu, May 03, 2018 at 05:41:35PM -0700, Dmitry Torokhov wrote: > The driver needs help determining whether it is dealing with a touchscreen > or a touchpad, and with button mapping. Previously we supported passing > this data via device properties, and also had DMI lists for Chromebooks > that sp

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 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 21, 2018 at 12:59:05PM -0700, Jae Hyun Yoo

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Srinivas Kandagatla
On 23/05/18 20:28, Rob Herring wrote: On Wed, May 23, 2018 at 1:11 PM, Srinivas Kandagatla wrote: On 23/05/18 17:40, Rob Herring wrote: + +- qcom,ngd-id + Usage: required + Value type: + Definition: ngd instance id in the controller Why do you need this? Please igno

[PATCH] Fix a typo in RTC documentation for RTC_DRV_JZ4740

2018-05-23 Thread Mathieu Malaterre
Fix typo introduced for RTC_DRV_JZ4740 in commit 586655d278ba ("rtc: jz4740: make the driver buildable as a module again"). Signed-off-by: Mathieu Malaterre --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index

[GIT PULL] IB chrome-platform/input for atmel_mxt_ts & chromeos_laptop for device properties

2018-05-23 Thread Benson Leung
Hi Dmitry, The following changes since commit 96a938aa214e965d5b4a2f10443b29cad14289b9: Input: atmel_mxt_ts - remove platform data support (2018-04-09 22:55:16 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git ib-chrome-

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 10:12 AM, Heiko Stübner wrote: > Hi Rob, Levin, > > sorry for being late to the party. > > Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: >> On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: >> > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May 18,

Re: [PATCH 1/6] coresight: remove CORESIGHT_LINKS_AND_SINKS dependencies and selections

2018-05-23 Thread Kim Phillips
On Tue, 22 May 2018 11:31:40 -0600 Mathieu Poirier wrote: > On Thu, May 17, 2018 at 08:20:19PM -0500, Kim Phillips wrote: > > A coresight topology doesn't need to include links, i.e., a source can > > be directly connected to a sink. As such, selecting and/or depending on > > LINKS_AND_SINKS is

Re: [PATCH v1 10/10] mm/memory_hotplug: allow online/offline memory by a kernel module

2018-05-23 Thread Christoph Hellwig
On Wed, May 23, 2018 at 05:11:51PM +0200, David Hildenbrand wrote: > Kernel modules that want to control how/when memory is onlined/offlined > need a proper interface to these functions. Also, for adding memory > properly, memory_block_size_bytes is required. Which module? Please send it along wi

Re: [PATCH 1/2] platform/chrome: chromeos_laptop - supply properties for ACPI devices

2018-05-23 Thread Benson Leung
Hi Dmitry, On Thu, May 03, 2018 at 05:41:34PM -0700, Dmitry Torokhov wrote: > BayTrail-based and newer Chromebooks describe their peripherals in ACPI; > unfortunately their description is not complete, and peripherals > drivers, such as driver for Atmel Touch controllers, has to resort to > DMI-ma

Re: [PATCH] x86/speculation: Simplify the CPU bug detection logic

2018-05-23 Thread Thomas Gleixner
On Wed, 23 May 2018, Konrad Rzeszutek Wilk wrote: > > @@ -973,16 +965,16 @@ static void __init cpu_set_bug_bits(struct > > cpuinfo_x86 *c) > > if (cpu_has(c, X86_FEATURE_ARCH_CAPABILITIES)) > > rdmsrl(MSR_IA32_ARCH_CAPABILITIES, ia32_cap); > > Would it make sense to move that abov

Re: [PATCH v4 0/3] IR decoding using BPF

2018-05-23 Thread Sean Young
On Wed, May 23, 2018 at 02:21:27PM +0200, Daniel Borkmann wrote: > On 05/18/2018 04:07 PM, Sean Young wrote: > > The kernel IR decoders (drivers/media/rc/ir-*-decoder.c) support the most > > widely used IR protocols, but there are many protocols which are not > > supported[1]. For example, the lirc

Re: [PATCH net-next v3 0/7] Add support for QCA8334 switch

2018-05-23 Thread David Miller
From: "Michal Vokáč" Date: Wed, 23 May 2018 08:20:17 +0200 > This series basically adds support for a QCA8334 ethernet switch to the > qca8k driver. It is a four-port variant of the already supported seven > port QCA8337. Register map is the same for the whole familly and all chips > have the sam

Re: [PATCH 0/2] mm->owner to mm->memcg fixes

2018-05-23 Thread Eric W. Biederman
Michal Hocko writes: > On Thu 10-05-18 14:14:18, Michal Hocko wrote: >> On Fri 04-05-18 12:26:03, Eric W. Biederman wrote: >> > >> > Andrew can you pick up these two fixes as well. >> > >> > These address the issues Michal Hocko and Oleg Nesterov noticed. >> >> I completely got lost in this th

Re: [PATCH][V2] net/mlx4: fix spelling mistake: "Inrerface" -> "Interface" and rephrase message

2018-05-23 Thread David Miller
From: Colin King Date: Tue, 22 May 2018 16:42:51 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in mlx4_dbg debug message and also > change the phrasing of the message so that is is more readable > > Signed-off-by: Colin Ian King > > --- > V2: rephrase message, as helpfully

Re: [PATCH] tpm: fix race condition in tpm_common_write()

2018-05-23 Thread Jason Gunthorpe
On Wed, May 23, 2018 at 10:57:07AM -0700, Tadeusz Struk wrote: > On 05/23/2018 06:23 AM, Jarkko Sakkinen wrote: > > Ouch o_O Do you have a fixes tag for this one? > > > > This one is quite tricky. > The original bug was introduced by abce9ac292e13 (tpm: Propagate error from > tpm_transmit to fix

[PATCH 2/5] phy: add missing of_node_put

2018-05-23 Thread Julia Lawall
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 in the break case is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name for_each

[PATCH 1/5] pinctrl: at91-pio4: add missing of_node_put

2018-05-23 Thread Julia Lawall
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): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 5/5] drm/rockchip: lvds: add missing of_node_put

2018-05-23 Thread Julia Lawall
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): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 3/5] soc: ti: knav_dma: add missing of_node_put

2018-05-23 Thread Julia Lawall
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): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

[PATCH 0/5] add missing of_node_put

2018-05-23 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. --- drivers/gpu/drm/rockchip/rockchip_lvds.c |4 +++- drivers/pci/hotplug/pnv_php.c |8 ++-- drivers/phy/hisilicon/phy-hisi-inno-usb2.c |9 +++

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

2018-05-23 Thread Julia Lawall
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): // @@ expression root,e; local idexpression child; iterator name for_each_child_of_node; @@

Re: [PATCH V3 00/17] perf tools and x86 PTI entry trampolines

2018-05-23 Thread Arnaldo Carvalho de Melo
Em Tue, May 22, 2018 at 01:54:28PM +0300, Adrian Hunter escreveu: > Original Cover email: > > Perf tools do not know about x86 PTI entry trampolines - see example > below. These patches add a workaround, namely "perf tools: Workaround > missing maps for x86 PTI entry trampolines", which has the l

[PATCH 01/33] fix io_destroy()/aio_complete() race

2018-05-23 Thread Christoph Hellwig
From: Al Viro If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has left in ->ki_cancel, it becomes vulnerable to a race with IO completion. At that point req is already taken off the list and aio_complete() does *NOT* spin

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Ray Jui
Hi Guenter/Robin, On 5/23/2018 11:09 AM, Guenter Roeck wrote: On Wed, May 23, 2018 at 06:15:14PM +0100, Robin Murphy wrote: On 23/05/18 17:29, Ray Jui wrote: Hi Robin, On 5/23/2018 4:48 AM, Robin Murphy wrote: On 23/05/18 08:52, Scott Branden wrote: On 18-05-22 04:24 PM, Ray Jui wrote: H

<    1   2   3   4   5   6   7   8   9   10   >