Re: [PATCH v2] PCI: PM: Skip devices in D0 for suspend-to-idle

2019-06-25 Thread Rafael J. Wysocki
On Tue, Jun 25, 2019 at 1:09 AM Rafael J. Wysocki wrote: > > On Tuesday, June 25, 2019 12:20:26 AM CEST Rafael J. Wysocki wrote: > > On Mon, Jun 24, 2019 at 11:37 PM Rafael J. Wysocki > > wrote: > > > > > > On Mon, Jun 24, 2019 at 2:43 PM Jon Hunter wrote: > > > > > > > > Hi Rafael, > > > > > >

[PATCH v2] x86/tls: Fix possible spectre-v1 in do_get_thread_area()

2019-06-25 Thread Dianzhang Chen
The index to access the threads tls array is controlled by userspace via syscall: sys_ptrace(), hence leading to a potential exploitation of the Spectre variant 1 vulnerability. The idx can be controlled from: ptrace -> arch_ptrace -> do_get_thread_area. Fix this by sanitizing idx before u

Re: [PATCH bpf-next] bpf: fix cgroup bpf release synchronization

2019-06-25 Thread Roman Gushchin
On Tue, Jun 25, 2019 at 08:50:55AM -0700, Alexei Starovoitov wrote: > On 6/23/19 9:02 PM, Roman Gushchin wrote: > > On Sun, Jun 23, 2019 at 08:29:21PM -0700, Alexei Starovoitov wrote: > >> On 6/23/19 7:30 PM, Roman Gushchin wrote: > >>> Since commit 4bfc0bb2c60e ("bpf: decouple the lifetime of cgro

Re: [PATCH] time/tick-broadcast: Fix tick_broadcast_offline() lockdep complaint

2019-06-25 Thread Frederic Weisbecker
On Tue, Jun 25, 2019 at 07:16:24AM -0700, Paul E. McKenney wrote: > On Tue, Jun 25, 2019 at 04:05:38PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 25, 2019 at 06:54:30AM -0700, Paul E. McKenney wrote: > > > And it allows dispensing with the initialization. How about like > > > the following? > >

[PATCH 1/3] lib/vdso: Delay mask application in do_hres()

2019-06-25 Thread Vincenzo Frascino
do_hres() in the vDSO generic library masks the hw counter value immediately after reading it. Postpone the mask application after checking if the syscall fallback is enabled, in order to be able to detect a possible fallback for the architectures that have masks smaller than ULLONG_MAX. Signed-o

[PATCH 2/3] arm64: Fix __arch_get_hw_counter() implementation

2019-06-25 Thread Vincenzo Frascino
Provide the following fixes for the __arch_get_hw_counter() implementation on arm64: - Fallback on syscall when an unstable counter is detected. - Introduce isb()s before and after the counter read to avoid speculation of the counter value and of the seq lock respectively. The second isb

[PATCH 3/3] arm64: compat: Fix __arch_get_hw_counter() implementation

2019-06-25 Thread Vincenzo Frascino
Provide the following fixes for the __arch_get_hw_counter() implementation on arm64: - Fallback on syscall when an unstable counter is detected. - Introduce isb()s before and after the counter read to avoid speculation of the counter value and of the seq lock respectively. The second isb() is a tem

Re: [PATCH -next] slub: play init_on_free=1 well with SLAB_RED_ZONE

2019-06-25 Thread Alexander Potapenko
On Fri, Jun 21, 2019 at 2:55 PM Qian Cai wrote: > > On Thu, 2019-06-20 at 18:19 -0700, Kees Cook wrote: > > On Thu, Jun 20, 2019 at 06:14:33PM -0700, Kees Cook wrote: > > > On Thu, Jun 20, 2019 at 03:28:01PM -0400, Qian Cai wrote: > > > > diff --git a/mm/slub.c b/mm/slub.c > > > > index a384228ff6

Re: [PATCH 1/2] timekeeping: add missing non-_ns functions for fast accessors

2019-06-25 Thread Randy Dunlap
On 6/25/19 1:19 AM, Jason A. Donenfeld wrote: > Previously there was no analogue to get proper ktime_t versions of the > fast variety of ktime invocations. This commit makes the interface > uniform with the other accessors. > > Signed-off-by: Jason A. Donenfeld > Cc: Arnd Bergmann > Cc: Thomas G

[PATCH v2 2/7] tty: termios: Reserve space for VSTATUS in .c_cc

2019-06-25 Thread Arseny Maslennikov
There was no architecture we had to increase NCCS on, so the size of struct termios did not change. Signed-off-by: Arseny Maslennikov --- arch/alpha/include/asm/termios.h | 4 ++-- arch/alpha/include/uapi/asm/termbits.h | 1 + arch/ia64/include/asm/termios.h | 4 ++-- arch/ia6

[PATCH v2 6/7] n_tty: ->ops->write: Cut core logic out to a separate function

2019-06-25 Thread Arseny Maslennikov
To simplify internal re-use of the line discipline's write method, we isolate the work it does to its own function. Since in-kernel callers might not refer to the tty through a file, the struct file* argument might make no sense, so we also stop tty_io_nonblock() from dereferencing file too early,

[PATCH v2 3/7] n_tty: Send SIGINFO to fg pgrp on status request character

2019-06-25 Thread Arseny Maslennikov
No kerninfo line is printed yet. No existing implementation of this on any Unix-like system echoes the status character; no existing implementation discards or flushes pending input on VSTATUS receipt. There are existing popular TUI applications (e. g. mutt) that only turn off icanon and not iext

[PATCH v2 5/7] tty: Add NOKERNINFO lflag to termios

2019-06-25 Thread Arseny Maslennikov
Signed-off-by: Arseny Maslennikov --- arch/alpha/include/uapi/asm/termbits.h | 1 + arch/ia64/include/uapi/asm/termbits.h| 1 + arch/mips/include/uapi/asm/termbits.h| 1 + arch/parisc/include/uapi/asm/termbits.h | 1 + arch/powerpc/include/uapi/asm/termbits.h | 1 + arch/sparc/include/

[PATCH v2 1/7] signal.h: Define SIGINFO on all architectures

2019-06-25 Thread Arseny Maslennikov
This complementary patch defines SIGINFO as a synonym for SIGPWR on every architecture supported by the kernel. The particular signal number chosen does not really matter and is only required for the related tty functionality to work properly, so if it does not suite expectations, any suggestions a

[PATCH v2 7/7] n_tty: Provide an informational line on VSTATUS receipt

2019-06-25 Thread Arseny Maslennikov
If the three termios local flags isig, icanon, iexten are enabled and the local flag nokerninfo is disabled for a tty governed by the n_tty line discipline, then on receiving the keyboard status character n_tty will generate a status message and write it out to the tty before sending SIGINFO to the

[PATCH v2 4/7] linux/signal.h: Ignore SIGINFO by default in new tasks

2019-06-25 Thread Arseny Maslennikov
This matches the behaviour of other Unix-like systems that have SIGINFO and causes less harm to processes that do not install handlers for this signal, making the keyboard status character non-fatal for them. This is implemented with the assumption that SIGINFO is defined to be equivalent to SIGPW

[PATCH v2 0/7] TTY Keyboard Status Request

2019-06-25 Thread Arseny Maslennikov
This patch series introduces TTY keyboard status request, a feature of the n_tty line discipline that reserves a character in struct termios (^T by default) and reacts to it by printing a short informational line to the terminal and sending a Unix signal to the tty's foreground process group. The p

Re: [PATCH] PCI: PM/ACPI: Refresh all stale power state data in pci_pm_complete()

2019-06-25 Thread Mika Westerberg
On Tue, Jun 25, 2019 at 02:09:12PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In pci_pm_complete() there are checks to decide whether or not to > resume devices that were left in runtime-suspend during the preceding > system-wide transition into a sleep state. They involve che

Re: [PATCH v1 0/6] mm / virtio: Provide support for paravirtual waste page treatment

2019-06-25 Thread Alexander Duyck
On Tue, Jun 25, 2019 at 12:42 AM David Hildenbrand wrote: > > On 20.06.19 00:32, Alexander Duyck wrote: > > This series provides an asynchronous means of hinting to a hypervisor > > that a guest page is no longer in use and can have the data associated > > with it dropped. To do this I have implem

Re: [PATCH] arm64: defconfig: update and enable CONFIG_RANDOMIZE_BASE

2019-06-25 Thread Catalin Marinas
On Tue, Jun 25, 2019 at 05:42:49PM +0200, Ard Biesheuvel wrote: > On Tue, 25 Jun 2019 at 17:39, Catalin Marinas wrote: > > On Mon, Jun 24, 2019 at 12:06:18PM +0200, Ard Biesheuvel wrote: > > > On Mon, 24 Jun 2019 at 11:57, Will Deacon wrote: > > > > Thanks for having a look. It could be that we'v

Re: [PATCH v4 01/10] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-06-25 Thread Dan Williams
On Tue, Jun 25, 2019 at 8:01 AM Jonathan Cameron wrote: > > On Mon, 24 Jun 2019 11:19:32 -0700 > Dan Williams wrote: > > > Currently hmat.c lives under an "hmat" directory which does not enhance > > the description of the file. The initial motivation for giving hmat.c > > its own directory was to

Re: [PATCH v4 10/10] acpi/numa/hmat: Register "specific purpose" memory as an "hmem" device

2019-06-25 Thread Jonathan Cameron
On Mon, 24 Jun 2019 11:20:26 -0700 Dan Williams wrote: > Memory that has been tagged EFI_MEMORY_SP, and has performance > properties described by the ACPI HMAT is expected to have an application > specific consumer. > > Those consumers may want 100% of the memory capacity to be reserved from > a

Re: [PATCH v2] sched/core: silence a warning in sched_init()

2019-06-25 Thread Peter Zijlstra
On Tue, Jun 25, 2019 at 11:07:09AM -0400, Qian Cai wrote: > On Tue, 2019-06-25 at 16:25 +0200, Peter Zijlstra wrote: > > On Tue, Jun 25, 2019 at 10:04:19AM -0400, Qian Cai wrote: > > > On Tue, 2019-06-25 at 15:52 +0200, Peter Zijlstra wrote: > > > Yes, -Wmissing-prototype makes no sense, but "-Wunu

Re: [PATCH bpf-next] bpf: fix cgroup bpf release synchronization

2019-06-25 Thread Alexei Starovoitov
On 6/23/19 9:02 PM, Roman Gushchin wrote: > On Sun, Jun 23, 2019 at 08:29:21PM -0700, Alexei Starovoitov wrote: >> On 6/23/19 7:30 PM, Roman Gushchin wrote: >>> Since commit 4bfc0bb2c60e ("bpf: decouple the lifetime of cgroup_bpf >>> from cgroup itself"), cgroup_bpf release occurs asynchronously >>

Re: [v3 PATCH 2/4] mm: move mem_cgroup_uncharge out of __page_cache_release()

2019-06-25 Thread Yang Shi
On 6/25/19 2:35 AM, Kirill A. Shutemov wrote: On Mon, Jun 24, 2019 at 09:54:05AM -0700, Yang Shi wrote: On 6/13/19 10:13 AM, Yang Shi wrote: On 6/13/19 4:39 AM, Kirill A. Shutemov wrote: On Thu, Jun 13, 2019 at 05:56:47AM +0800, Yang Shi wrote: The later patch would make THP deferred spl

Re: [RFC] remove arch/sh?

2019-06-25 Thread Arnd Bergmann
On Tue, Jun 25, 2019 at 4:28 PM Rich Felker wrote: > On Tue, Jun 25, 2019 at 02:50:01PM +0200, Arnd Bergmann wrote: > > don't build, or are incomplete and not worked on for a long > > time, compared to the bits that are known to work and that someone > > is still using or at least playing with. >

[PATCH] irqchip: madera: Fixup SPDX headers

2019-06-25 Thread Charles Keepax
GPL-2.0-only is the preferred way of expressing v2 of the GPL, update the code to use this. Signed-off-by: Charles Keepax --- drivers/irqchip/irq-madera.c | 2 +- include/linux/irqchip/irq-madera.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-m

Re: [PATCH v20 22/28] x86/traps: Attempt to fixup exceptions in vDSO before signaling

2019-06-25 Thread Jarkko Sakkinen
On Wed, Apr 17, 2019 at 01:39:32PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > vDSO functions can now leverage an exception fixup mechanism similar to > kernel exception fixup. For vDSO exception fixup, the initial user is > Intel's Software Guard Extensions (SGX), which will w

Re: [PATCH] arm64: defconfig: update and enable CONFIG_RANDOMIZE_BASE

2019-06-25 Thread Ard Biesheuvel
On Tue, 25 Jun 2019 at 17:39, Catalin Marinas wrote: > > On Mon, Jun 24, 2019 at 12:06:18PM +0200, Ard Biesheuvel wrote: > > On Mon, 24 Jun 2019 at 11:57, Will Deacon wrote: > > > Thanks for having a look. It could be that we've fixed the issue Catalin > > > was > > > running into in the past --

Re: [PATCH] arm64: defconfig: update and enable CONFIG_RANDOMIZE_BASE

2019-06-25 Thread Catalin Marinas
On Mon, Jun 24, 2019 at 12:06:18PM +0200, Ard Biesheuvel wrote: > On Mon, 24 Jun 2019 at 11:57, Will Deacon wrote: > > Thanks for having a look. It could be that we've fixed the issue Catalin was > > running into in the past -- he was going to see if the problem persists with > > mainline, since i

Re: [PATCH v4 08/10] device-dax: Add a driver for "hmem" devices

2019-06-25 Thread Jonathan Cameron
On Mon, 24 Jun 2019 11:20:16 -0700 Dan Williams wrote: > Platform firmware like EFI/ACPI may publish "hmem" platform devices. > Such a device is a performance differentiated memory range likely > reserved for an application specific use case. The driver gives access > to 100% of the capacity via

Re: [PATCH v7 04/25] arm64: Substitute gettimeofday with C implementation

2019-06-25 Thread Dave Martin
On Fri, Jun 21, 2019 at 10:52:31AM +0100, Vincenzo Frascino wrote: > To take advantage of the commonly defined vdso interface for > gettimeofday the architectural code requires an adaptation. > > Re-implement the gettimeofday vdso in C in order to use lib/vdso. > > With the new implementation arm

Re: selftests: bpf: test_libbpf.sh failed at file test_l4lb.o

2019-06-25 Thread Dan Rue
On Mon, Jun 24, 2019 at 12:58:15PM -0700, Alexei Starovoitov wrote: > On Mon, Jun 24, 2019 at 12:53 PM Dan Rue wrote: > > > > I would say if it's not possible to check at runtime, and it requires > > clang 9.0, that this test should not be enabled by default. > > The latest clang is the requireme

[PATCH v2] x86/ptrace: Fix possible spectre-v1 in ptrace_get_debugreg()

2019-06-25 Thread Dianzhang Chen
The index to access the threads ptrace_bps is controlled by userspace via syscall: sys_ptrace(), hence, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. The n can be controlled from: ptrace -> arch_ptrace -> ptrace_get_debugreg. Fix this by sanitizing n before

Re: [PATCH net-next] net: stmmac: Fix the case when PHY handle is not present

2019-06-25 Thread Katsuhiro Suzuki
Hello Andrew, On 2019/06/25 23:51, Andrew Lunn wrote: On Tue, Jun 25, 2019 at 11:40:00PM +0900, Katsuhiro Suzuki wrote: Hello Jose, This patch works fine with my Tinker Board. Thanks a lot! Tested-by: Katsuhiro Suzuki BTW, from network guys point of view, is it better to add a phy node int

Re: [PATCH v4 05/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-06-25 Thread Jonathan Cameron
On Mon, 24 Jun 2019 11:19:55 -0700 Dan Williams wrote: > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > interpretation of the EFI Memory Types as "reserved for a specific > purpose". > > The proposed Linux behavior for specific purpose memory is that it is > reserved for direct

[GIT PULL] arm64: dts: uniphier: UniPhier DT updates for v5.3

2019-06-25 Thread Masahiro Yamada
Hi Arnd, Olof, Please pull UniPhier DT updates (64bit) for the v5.3 MW. Thanks. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mas

Re: [v3 1/2] mtd: nand: Add Cadence NAND controller driver

2019-06-25 Thread Geert Uytterhoeven
On Tue, Jun 25, 2019 at 4:45 PM Dmitry Osipenko wrote: > 25.06.2019 16:02, Piotr Sroka пишет: > > The 06/16/2019 16:42, Dmitry Osipenko wrote: > >> 14.06.2019 18:09, Piotr Sroka пишет: > >>> +/* Cadnence NAND flash controller capabilities get from driver data. */ > >>> +struct cadence_nand_dt_devd

[v4 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-06-25 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka --- Changes for v4: - add commit message Changes for v3: - add unit suffix for board_delay - move child description to proper place - remove prefix cadence_ for reg and sdma fields Changes for v2: - remove ch

Re: [PATCH 04/12] xfs: initialize ioma->flags in xfs_bmbt_to_iomap

2019-06-25 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 08:13:57AM -0700, Darrick J. Wong wrote: > > This doesn't affect any existing user as they all get a zeroed iomap > > passed from the caller in iomap.c. It affects the writeback code > > once it uses struct iomap as it overwrites a previously used iomap. > > Then shouldn't

[v4 1/2] mtd: nand: Add new Cadence NAND driver to MTD subsystem

2019-06-25 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka --- Changes for v4: - fix comments issues like typos, missing capitals, missing dots etc. - remove unnecessary PHY options phy_dll_aging and phy_per_bit_deskew - replace all register access functions to "relaxed" version - re

Re: [PATCH v2 1/2] ACPI/PPTT: Add support for ACPI 6.3 thread flag

2019-06-25 Thread Sudeep Holla
On Mon, Jun 17, 2019 at 01:34:51PM +0100, Valentin Schneider wrote: > Hi Jeremy, > > Few nits below. > > Also, I had a look at the other PPTT processor flags that were introduced > in 6.3, and the only other one being used is ACPI_LEAF_NODE in > acpi_pptt_leaf_node(). However that one already has a

[GIT PULL] ARM: dts: uniphier: UniPhier DT updates for v5.3

2019-06-25 Thread Masahiro Yamada
Hi Arnd, Olof, Please pull UniPhier DT updates (32bit) for the v5.3 MW. Thanks. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mas

[v4 0/2] mtd: nand: Add Cadence NAND controller driver

2019-06-25 Thread Piotr Sroka
Driver for Cadence HPNFC NAND flash controller. HW DMA interface Page write and page read operations are executed in Command DMA mode. Commands are defined by DMA descriptors. In CDMA mode controller own DMA engine is used (Master DMA mode). Other operations defined by nand_op_instr are executed i

Re: "arm64: vdso: Substitute gettimeofday() with C implementation" breaks clang build

2019-06-25 Thread Qian Cai
On Tue, 2019-06-25 at 15:54 +0100, Vincenzo Frascino wrote: > Hi Qian, > > ... > > > > > but clang 7.0 is still use in many distros by default, so maybe this commit > > can > > be fixed by adding a conditional check to use "small" if clang version < > > 8.0. > > > > Could you please verify tha

[PATCH] ARM: davinci: da830-evm: fix GPIO lookup for OHCI

2019-06-25 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The fixed regulator driver doesn't specify any con_id for gpio lookup so it must be NULL in the table entry. Fixes: 274e4c336192 ("ARM: davinci: da830-evm: add a fixed regulator for ohci-da8xx") Cc: sta...@vger.kernel.org Signed-off-by: Bartosz Golaszewski --- arch/a

Re: [PATCH 04/12] xfs: initialize ioma->flags in xfs_bmbt_to_iomap

2019-06-25 Thread Darrick J. Wong
On Tue, Jun 25, 2019 at 12:07:01PM +0200, Christoph Hellwig wrote: > On Mon, Jun 24, 2019 at 07:57:07AM -0700, Darrick J. Wong wrote: > > On Mon, Jun 24, 2019 at 07:52:45AM +0200, Christoph Hellwig wrote: > > > Currently we don't overwrite the flags field in the iomap in > > > xfs_bmbt_to_iomap. T

Re: [PATCH v6 5/6] khugepaged: enable collapse pmd for pte-mapped THP

2019-06-25 Thread Song Liu
> On Jun 25, 2019, at 7:12 AM, Kirill A. Shutemov wrote: > > On Tue, Jun 25, 2019 at 12:33:03PM +, Song Liu wrote: >> >> >>> On Jun 25, 2019, at 3:34 AM, Kirill A. Shutemov >>> wrote: >>> >>> On Mon, Jun 24, 2019 at 02:25:42PM +, Song Liu wrote: > On Jun 24, 2019,

[PATCH 2/2] usb: host: Fix excessive alignment restriction for local memory allocations

2019-06-25 Thread Fredrik Noring
The PAGE_SHIFT alignment restriction to devm_gen_pool_create() quickly exhaust local memory because most allocations are much smaller than PAGE_SIZE. This causes USB device failures such as usb 1-2.1: reset full-speed USB device number 4 using sm501-usb sd 1:0:0:0: [sda] tag#0 UNKN

Re: [PATCH v2] sched/core: silence a warning in sched_init()

2019-06-25 Thread Qian Cai
On Tue, 2019-06-25 at 16:25 +0200, Peter Zijlstra wrote: > On Tue, Jun 25, 2019 at 10:04:19AM -0400, Qian Cai wrote: > > On Tue, 2019-06-25 at 15:52 +0200, Peter Zijlstra wrote: > > Yes, -Wmissing-prototype makes no sense, but "-Wunused-but-set-variable" is > > pretty valid to catch certain develop

Re: [PATCH v4] driver core: Fix use-after-free and double free on glue directory

2019-06-25 Thread Muchun Song
Benjamin Herrenschmidt 于2019年6月19日周三 上午5:51写道: > > On Tue, 2019-06-18 at 18:13 +0200, Greg KH wrote: > > > > Again, I am totally confused and do not see a patch in an email that > > I > > can apply... > > > > Someone needs to get people to agree here... > > I think he was hoping you would chose wh

[PATCH 1/2] lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators

2019-06-25 Thread Fredrik Noring
Provide the algorithm option to DMA allocators as well, along with convenience variants for zeroed and aligned memory. The following four functions are added: - gen_pool_dma_alloc_algo() - gen_pool_dma_alloc_align() - gen_pool_dma_zalloc_algo() - gen_pool_dma_zalloc_align() Signed-off-by: Fredrik

[PATCH] media: ipu3-imgu: Fixed some coding style issues in ipu3-css.c

2019-06-25 Thread Felix Winkler
Improved readability by fixing some issues related to maximum line length. Signed-off-by: Felix Winkler Signed-off-by: Niklas Witzel --- drivers/staging/media/ipu3/ipu3-css.c | 274 +++--- 1 file changed, 121 insertions(+), 153 deletions(-) diff --git a/drivers/stag

Re: [PATCH] structleak: disable BYREF_ALL in combination with KASAN_STACK

2019-06-25 Thread Ard Biesheuvel
On Sat, 22 Jun 2019 at 22:26, Kees Cook wrote: > > On Fri, Jun 21, 2019 at 03:50:02PM +0200, Ard Biesheuvel wrote: > > On Fri, 21 Jun 2019 at 15:44, Arnd Bergmann wrote: > > > One pattern I have seen here is temporary variables from macros or > > > inline functions whose lifetime now extends over

Re: [PATCH v4 01/10] acpi/numa: Establish a new drivers/acpi/numa/ directory

2019-06-25 Thread Jonathan Cameron
On Mon, 24 Jun 2019 11:19:32 -0700 Dan Williams wrote: > Currently hmat.c lives under an "hmat" directory which does not enhance > the description of the file. The initial motivation for giving hmat.c > its own directory was to delineate it as mm functionality in contrast to > ACPI device driver

Re: [PATCH v4 1/5] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings

2019-06-25 Thread Georgi Djakov
Hi Rob, On 6/13/19 18:13, Georgi Djakov wrote: > The Qualcomm QCS404 platform has several buses that could be controlled > and tuned according to the bandwidth demand. > > Reviewed-by: Bjorn Andersson > Signed-off-by: Georgi Djakov > --- > > v4: > - Add the DT header into this patch. > - Pick

Re: [PATCH] perf/x86/intel: Fix spurious NMI on fixed counter

2019-06-25 Thread Jiri Olsa
On Tue, Jun 25, 2019 at 07:21:35AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > If a user first sample a PEBS event on a fixed counter, then sample a > non-PEBS event on the same fixed counter on Icelake, it will trigger > spurious NMI. For example, > > perf record -e 'cycles:

Re: [PATCH] reset: Add driver for dispmix reset

2019-06-25 Thread Philipp Zabel
Hi Fancy, thank you for the patch. I have a few questions below. On Tue, 2019-06-25 at 05:54 +, Fancy Fang wrote: > This is an reset driver to implement a reset controller > device DISPMIX on IMX8MM and IMX8MN platforms. Dispmix > reset is used to reset or enable related buses and clks > for

[PATCH 2/2 RESEND2] perf/x86/amd/uncore: set the thread mask for F17h L3 PMCs

2019-06-25 Thread Phillips, Kim
From: Kim Phillips Fill in the L3 performance event select register ThreadMask bitfield, to enable per hardware thread accounting. Signed-off-by: Kim Phillips Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas G

[PATCH 1/2 RESEND2] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs

2019-06-25 Thread Phillips, Kim
From: Kim Phillips Commit d7cbbe49a930 ("perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events") enables L3 PMC events for all threads and slices by writing 1s in ChL3PmcCfg (L3 PMC PERF_CTL) register fields. Those bitfields overlap with high order event select bits in the D

Re: [PATCH] arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

2019-06-25 Thread Hoan Tran OS
Hi Will, On 6/25/19 3:12 AM, Will Deacon wrote: > On Mon, Jun 24, 2019 at 02:38:28PM +, Hoan Tran OS wrote: >> Some NUMA nodes have memory ranges that span other nodes. >> Even though a pfn is valid and between a node's start and end pfns, >> it may not reside on that node. >> >> This patch en

Re: "arm64: vdso: Substitute gettimeofday() with C implementation" breaks clang build

2019-06-25 Thread Vincenzo Frascino
Hi Qian, ... > > but clang 7.0 is still use in many distros by default, so maybe this commit > can > be fixed by adding a conditional check to use "small" if clang version < 8.0. > Could you please verify that the patch below works for you? Thanks, Vincenzo --->8 >From 0546f3bbea910cd2

[PATCH 3/4] powerpc/powernv: remove unused NPU DMA code

2019-06-25 Thread Christoph Hellwig
None of these routines were ever used anywhere in the kernel tree since they were added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/book3s/64/mmu.h | 2 - arch/powerpc/include/asm/powernv.h | 22 - arch/powerpc/mm/book3s64/mmu_context.c | 1 - arch/p

[PATCH 4/4] powerpc/powernv: remove the unused vas_win_paste_addr and vas_win_id functions

2019-06-25 Thread Christoph Hellwig
These two function have never been used anywhere in the kernel tree since they were added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/vas.h | 10 -- arch/powerpc/platforms/powernv/vas-window.c | 19 --- arch/powerpc/platforms/

[PATCH 2/4] powerpc/powernv: remove the unused tunneling exports

2019-06-25 Thread Christoph Hellwig
These have been unused anywhere in the kernel tree ever since they've been added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/pnv-pci.h| 4 -- arch/powerpc/platforms/powernv/pci-ioda.c | 4 +- arch/powerpc/platforms/powernv/pci.c | 71 --

[PATCH 1/4] powerpc/powernv: remove the unused pnv_pci_set_p2p function

2019-06-25 Thread Christoph Hellwig
This function has never been used anywhere in the kernel tree since it was added to the tree. We also now have proper PCIe P2P APIs in the core kernel, and any new P2P support should be using those. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/opal.h| 2 - arch/pow

remove unused powernv code v3

2019-06-25 Thread Christoph Hellwig
Hi all, the powerpc powernv port has a fairly large chunk of code that never had any upstream user. We generally strive to not keep dead code around, and this was affirmed at least years Maintainer summit. Changes since v2: - fix incorrect opal stub removals that crept in in a rebase Changes s

Re: [PATCH net-next] net: stmmac: Fix the case when PHY handle is not present

2019-06-25 Thread Andrew Lunn
On Tue, Jun 25, 2019 at 11:40:00PM +0900, Katsuhiro Suzuki wrote: > Hello Jose, > > This patch works fine with my Tinker Board. Thanks a lot! > > Tested-by: Katsuhiro Suzuki > > > BTW, from network guys point of view, is it better to add a phy node > into device trees that have no phy node suc

Re: [PATCH v4 3/3] ceph: don't NULL terminate virtual xattrs

2019-06-25 Thread Jeff Layton
On Tue, 2019-06-25 at 16:35 +0200, Ilya Dryomov wrote: > On Mon, Jun 24, 2019 at 6:27 PM Jeff Layton wrote: > > The convention with xattrs is to not store the termination with string > > data, given that it returns the length. This is how setfattr/getfattr > > operate. > > > > Most of ceph's virt

Re: [RFC][Patch v10 0/2] mm: Support for page hinting

2019-06-25 Thread Nitesh Narayan Lal
On 6/3/19 2:04 PM, Michael S. Tsirkin wrote: > On Mon, Jun 03, 2019 at 01:03:04PM -0400, Nitesh Narayan Lal wrote: >> This patch series proposes an efficient mechanism for communicating free >> memory >> from a guest to its hypervisor. It especially enables guests with no page >> cache >> (e.g.,

Re: [PATCH 12/12] iomap: add tracing for the address space operations

2019-06-25 Thread Darrick J. Wong
On Tue, Jun 25, 2019 at 12:15:15PM +0200, Christoph Hellwig wrote: > On Tue, Jun 25, 2019 at 09:49:21AM +1000, Dave Chinner wrote: > > > +#undef TRACE_SYSTEM > > > +#define TRACE_SYSTEM iomap > > > > Can you add a comment somewhere here that says these tracepoints are > > volatile and we reserve t

Re: [PATCH 09/12] xfs: refactor the ioend merging code

2019-06-25 Thread Darrick J. Wong
On Tue, Jun 25, 2019 at 03:42:20PM +0300, Nikolay Borisov wrote: > > > On 25.06.19 г. 13:14 ч., Christoph Hellwig wrote: > > On Mon, Jun 24, 2019 at 07:06:22PM +0300, Nikolay Borisov wrote: > >>> +{ > >>> + struct list_headtmp; > >>> + > >>> + list_replace_init(&ioend->io_list, &tmp); > >

Re: [PATCH v2] mtd: spinand: Add initial support for Paragon PN26G0xA

2019-06-25 Thread Jeff Kletsky
(Resend to lists only, due to multipart content in previous) Of course! Thanks for taking the time to look at this. * Updated OOB-layout definitions to agree with Table 10; ECC Protection and Spare Area (PN26G01A pg. 36, PN26G02A pg. 35) * Corrected NAND_MEMORG for PN26G02A to 41, to agr

Re: [v3 1/2] mtd: nand: Add Cadence NAND controller driver

2019-06-25 Thread Dmitry Osipenko
25.06.2019 16:02, Piotr Sroka пишет: > Hi Dmitry > > The 06/16/2019 16:42, Dmitry Osipenko wrote: >> EXTERNAL MAIL >> >> >> 14.06.2019 18:09, Piotr Sroka пишет: >> >> Commit description is mandatory. >> >>> Signed-off-by: Piotr Sroka >>> --- >> >> [snip] >> >>> + >>> +/* Cadnence NAND flash contr

Re: [PATCH net-next] net: stmmac: Fix the case when PHY handle is not present

2019-06-25 Thread Katsuhiro Suzuki
Hello Jose, This patch works fine with my Tinker Board. Thanks a lot! Tested-by: Katsuhiro Suzuki BTW, from network guys point of view, is it better to add a phy node into device trees that have no phy node such as the Tinker Board? Best Regards, Katsuhiro Suzuki On 2019/06/25 22:11, Jose

Re: [PATCH v3 2/5] regulator: core: Expose some of core functions needed by couplers

2019-06-25 Thread Dmitry Osipenko
25.06.2019 14:19, Mark Brown пишет: > On Mon, Jun 24, 2019 at 12:08:32AM +0300, Dmitry Osipenko wrote: >> Expose some of internal functions that are required for implementation of >> customized regulator couplers. > > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: >

[PATCH-tip] locking/rwsem: Make handoff writer optimistically spin on owner

2019-06-25 Thread Waiman Long
When the handoff bit is set by a writer, no other tasks other than the setting writer itself is allowed to acquire the lock. If the to-be-handoff'ed writer goes to sleep, there will be a wakeup latency period where the lock is free, but no one can acquire it. That is less than ideal. To reduce tha

[PATCH 15/16] mm: switch gup_hugepte to use try_get_compound_head

2019-06-25 Thread Christoph Hellwig
This applies the overflow fixes from 8fde12ca79aff ("mm: prevent get_user_pages() from overflowing page refcount") to the powerpc hugepd code and brings it back in sync with the other GUP cases. Signed-off-by: Christoph Hellwig --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 16/16] mm: mark the page referenced in gup_hugepte

2019-06-25 Thread Christoph Hellwig
All other get_user_page_fast cases mark the page referenced, so do this here as well. Signed-off-by: Christoph Hellwig --- mm/gup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/gup.c b/mm/gup.c index e06447cff635..d9d022d835ca 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -2020,6 +2020,7 @@

switch the remaining architectures to use generic GUP v4

2019-06-25 Thread Christoph Hellwig
Hi Linus and maintainers, below is a series to switch mips, sh and sparc64 to use the generic GUP code so that we only have one codebase to touch for further improvements to this code. I don't have hardware for any of these architectures, and generally no clue about their page table management, s

[PATCH 02/16] mm: simplify gup_fast_permitted

2019-06-25 Thread Christoph Hellwig
Pass in the already calculated end value instead of recomputing it, and leave the end > start check in the callers instead of duplicating them in the arch code. Signed-off-by: Christoph Hellwig Reviewed-by: Jason Gunthorpe --- arch/s390/include/asm/pgtable.h | 8 +--- arch/x86/include/as

[PATCH 08/16] sparc64: define untagged_addr()

2019-06-25 Thread Christoph Hellwig
Add a helper to untag a user pointer. This is needed for ADI support in get_user_pages_fast. Signed-off-by: Christoph Hellwig Reviewed-by: Khalid Aziz --- arch/sparc/include/asm/pgtable_64.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/sparc/include/asm/pgta

[PATCH 14/16] mm: move the powerpc hugepd code to mm/gup.c

2019-06-25 Thread Christoph Hellwig
While only powerpc supports the hugepd case, the code is pretty generic and I'd like to keep all GUP internals in one place. Signed-off-by: Christoph Hellwig --- arch/powerpc/Kconfig | 1 + arch/powerpc/mm/hugetlbpage.c | 72 -- include/linux/hugetlb.h

[PATCH 13/16] mm: validate get_user_pages_fast flags

2019-06-25 Thread Christoph Hellwig
We can only deal with FOLL_WRITE and/or FOLL_LONGTERM in get_user_pages_fast, so reject all other flags. Signed-off-by: Christoph Hellwig --- mm/gup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/gup.c b/mm/gup.c index 0e83dba98dfd..37a2083b1ed8 100644 --- a/mm/gup.c +++ b/mm/gup.c

[PATCH 12/16] mm: consolidate the get_user_pages* implementations

2019-06-25 Thread Christoph Hellwig
Always build mm/gup.c so that we don't have to provide separate nommu stubs. Also merge the get_user_pages_fast and __get_user_pages_fast stubs when HAVE_FAST_GUP into the main implementations, which will never call the fast path if HAVE_FAST_GUP is not set. This also ensures the new put_user_pag

[PATCH 11/16] mm: reorder code blocks in gup.c

2019-06-25 Thread Christoph Hellwig
This moves the actually exported functions towards the end of the file, and reorders some functions to be in more logical blocks as a preparation for moving various stubs inline into the main functionality using IS_ENABLED(). Signed-off-by: Christoph Hellwig --- mm/gup.c | 410 ++

[PATCH 10/16] mm: rename CONFIG_HAVE_GENERIC_GUP to CONFIG_HAVE_FAST_GUP

2019-06-25 Thread Christoph Hellwig
We only support the generic GUP now, so rename the config option to be more clear, and always use the mm/Kconfig definition of the symbol and select it from the arch Kconfigs. Signed-off-by: Christoph Hellwig Reviewed-by: Khalid Aziz Reviewed-by: Jason Gunthorpe --- arch/arm/Kconfig | 5 +-

[PATCH 05/16] sh: add the missing pud_page definition

2019-06-25 Thread Christoph Hellwig
sh only had pud_page_vaddr, but not pud_page. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/pgtable-3level.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/include/asm/pgtable-3level.h b/arch/sh/include/asm/pgtable-3level.h index 7d8587eb65ff..3c7ff20f3f94 100644 --- a/a

Re: [linux-sunxi] Re: [PATCH v10 04/11] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes

2019-06-25 Thread Maxime Ripard
On Mon, Jun 24, 2019 at 09:32:11PM +0530, Jagan Teki wrote: > On Mon, Jun 24, 2019 at 6:34 PM Maxime Ripard > wrote: > > > > On Fri, Jun 14, 2019 at 05:33:23PM +0530, Jagan Teki wrote: > > > On Thu, Jun 13, 2019 at 7:28 PM Maxime Ripard > > > wrote: > > > > > > > > On Wed, Jun 05, 2019 at 01:11

[PATCH 01/16] mm: use untagged_addr() for get_user_pages_fast addresses

2019-06-25 Thread Christoph Hellwig
This will allow sparc64, or any future architecture with memory tagging to override its tags for get_user_pages and get_user_pages_fast. Signed-off-by: Christoph Hellwig Reviewed-by: Khalid Aziz Reviewed-by: Jason Gunthorpe --- mm/gup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 04/16] MIPS: use the generic get_user_pages_fast code

2019-06-25 Thread Christoph Hellwig
The mips code is mostly equivalent to the generic one, minus various bugfixes and an arch override for gup_fast_permitted. Note that this defines ARCH_HAS_PTE_SPECIAL for mips as mips has pte_special and pte_mkspecial implemented and used in the existing gup code. They are no-op stubs, though whi

[PATCH 09/16] sparc64: use the generic get_user_pages_fast code

2019-06-25 Thread Christoph Hellwig
The sparc64 code is mostly equivalent to the generic one, minus various bugfixes and two arch overrides that this patch adds to pgtable.h. Signed-off-by: Christoph Hellwig Reviewed-by: Khalid Aziz --- arch/sparc/Kconfig | 1 + arch/sparc/include/asm/pgtable_64.h | 18 ++ arc

[PATCH 06/16] sh: use the generic get_user_pages_fast code

2019-06-25 Thread Christoph Hellwig
The sh code is mostly equivalent to the generic one, minus various bugfixes and two arch overrides that this patch adds to pgtable.h. Signed-off-by: Christoph Hellwig --- arch/sh/Kconfig | 2 + arch/sh/include/asm/pgtable.h | 37 + arch/sh/mm/Makefile | 2 +- arc

[PATCH 03/16] mm: lift the x86_32 PAE version of gup_get_pte to common code

2019-06-25 Thread Christoph Hellwig
The split low/high access is the only non-READ_ONCE version of gup_get_pte that did show up in the various arch implemenations. Lift it to common code and drop the ifdef based arch override. Signed-off-by: Christoph Hellwig Reviewed-by: Jason Gunthorpe --- arch/x86/Kconfig

[PATCH 07/16] sparc64: add the missing pgd_page definition

2019-06-25 Thread Christoph Hellwig
sparc64 only had pgd_page_vaddr, but not pgd_page. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/pgtable_64.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index 22500c3be7a9..f0dcf991d27f 100644 --- a

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-25 Thread Jassi Brar
On Tue, Jun 25, 2019 at 2:30 AM Peng Fan wrote: > > Hi Jassi > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Mon, Jun 3, 2019 at 3:28 AM wrote: > > > > > > From: Peng Fan > > > > > > This mailbox driver implements a mailbox which signals transmitted > > > da

Re: [PATCH v4 3/3] ceph: don't NULL terminate virtual xattrs

2019-06-25 Thread Ilya Dryomov
On Mon, Jun 24, 2019 at 6:27 PM Jeff Layton wrote: > > The convention with xattrs is to not store the termination with string > data, given that it returns the length. This is how setfattr/getfattr > operate. > > Most of ceph's virtual xattr routines use snprintf to plop the string > directly into

Re: [RFC] remove arch/sh?

2019-06-25 Thread Rich Felker
On Tue, Jun 25, 2019 at 11:02:36AM +0200, John Paul Adrian Glaubitz wrote: > Hi Christoph! > > On 6/25/19 10:56 AM, Christoph Hellwig wrote: > > arch/sh seems pretty much unmaintained these days. The last time I got > > any reply to sh patches from the list maintainers, and the last maintainer >

Re: WWAN Controller Framework (was IPA [PATCH v2 00/17])

2019-06-25 Thread Johannes Berg
On Mon, 2019-06-24 at 12:06 -0500, Alex Elder wrote: > > OK I want to try to organize a little more concisely some of the > > discussion on this, because there is a very large amount of volume > > to date and I think we need to try to narrow the focus back down > > again. Sounds good to me! > >

Re: [RFC] remove arch/sh?

2019-06-25 Thread John Paul Adrian Glaubitz
Hi Rich and Sato-san! On 6/25/19 4:29 PM, Rich Felker wrote: > On Tue, Jun 25, 2019 at 04:23:41PM +0200, Christoph Hellwig wrote: >> On Tue, Jun 25, 2019 at 10:21:44AM -0400, Rich Felker wrote: >>> I'm generally okay with all proposed non-functional changes that come >>> up that are just eliminati

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