[RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-12 Thread Gao Xiang
It is better to use smp_cond_load_relaxed instead of busy waiting for bit_spinlock. Signed-off-by: Gao Xiang --- include/linux/bit_spinlock.h | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h ind

Re: [PATCH 3.18 000/120] 3.18.124-stable review

2018-10-12 Thread Greg Kroah-Hartman
On Fri, Oct 12, 2018 at 10:07:09AM -0700, Nathan Chancellor wrote: > On Thu, Oct 11, 2018 at 05:33:01PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.124 release. > > There are 120 patches in this series, all will be posted as a response > > to this

Re: [PATCH 3.18 000/120] 3.18.124-stable review

2018-10-12 Thread Greg Kroah-Hartman
On Fri, Oct 12, 2018 at 01:24:52PM -0700, Guenter Roeck wrote: > On Thu, Oct 11, 2018 at 05:33:01PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.124 release. > > There are 120 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH] kernel/signal: Signal-based pre-coredump notification

2018-10-12 Thread Greg Kroah-Hartman
On Fri, Oct 12, 2018 at 05:33:35PM -0700, Enke Chen wrote: > For simplicity and consistency, this patch provides an implementation > for signal-based fault notification prior to the coredump of a child > process. A new prctl command, PR_SET_PREDUMP_SIG, is defined that can > be used by an applicati

Re: [PATCH 31/34] vfs: syscall: Add fspick() to select a superblock for reconfiguration [ver #12]

2018-10-12 Thread Al Viro
On Fri, Oct 12, 2018 at 03:49:50PM +0100, Alan Jenkins wrote: > > +SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, > > flags) > > +{ > > + struct fs_context *fc; > > + struct path target; > > + unsigned int lookup_flags; > > + int ret; > > + > > + if (!ns_capab

Re: [PATCH V8 16/21] csky: SMP support

2018-10-12 Thread Guo Ren
Hi Marc, Thx for the review. On Fri, Oct 12, 2018 at 12:09:52PM +0100, Marc Zyngier wrote: > On 12/10/18 05:42, Guo Ren wrote: > > This patch adds boot, ipi, hotplug code for SMP. > > +static struct { > > + unsigned long bits cacheline_aligned; > > +} ipi_data[NR_CPUS] __cacheline_aligned;

Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12]

2018-10-12 Thread Al Viro
On Thu, Oct 11, 2018 at 09:17:54PM +0100, David Howells wrote: > +/* > + * Object if there are any nsfs mounts in the specified subtree. These can > act > + * as pins for mount namespaces that aren't checked by the mount-cycle > checking > + * code, thereby allowing cycles to be made. > + */ > +

Re: [PATCH v2 2/2] mtd: rawnand: ams-delta: Use ->exec_op()

2018-10-12 Thread Boris Brezillon
Hi Janusz, On Fri, 12 Oct 2018 22:41:01 +0200 Janusz Krzysztofik wrote: > Replace legacy callbacks with ->select_chip() and ->exec_op(). > > In order to remove any references to legacy structure members, use of > .IO_ADDR_R/W has been replaced wit runtime calculations based on

Re: [PATCH v2 1/2] mtd: rawnand: Provide helper for polling GPIO R/B pin

2018-10-12 Thread Boris Brezillon
Hi Janusz, On Fri, 12 Oct 2018 22:41:00 +0200 Janusz Krzysztofik wrote: > Each controller driver with access to NAND R/B pin over GPIO would have > to reimplement the polling loop otherwise. > > Signed-off-by: Janusz Krzysztofik > --- > Changelog: > v2: > New patch - v1 consisted of only one

Re: [PATCH 09/50] amiserial: switch to ->[sg]et_serial()

2018-10-12 Thread Al Viro
On Thu, Oct 11, 2018 at 07:58:28PM +0200, Geert Uytterhoeven wrote: > drivers/tty/amiserial.c:1076:3: error: 'retval' undeclared (first use > in this function) > > http://kisskb.ellerman.id.au/kisskb/buildresult/13544535/ > http://kisskb.ellerman.id.au/kisskb/buildresult/13544413/ Fixed and fold

[PATCH v2] MAINTAINERS: Clarify UIO vs UIOVEC maintainer

2018-10-12 Thread Dan Williams
The UIO file mask in MAINTAINERS was incorrectly directing UIOVEC (include/linux/uio.h) patches to Greg. Tag Al as the UIOVEC maintainer as Ingo and others have explicitly required his ack before taking architecture patches that touch lib/iov_iter.c. Cc: Al Viro Reported-by: Greg Kroah-Hartman

[PATCH v4] printk: Add line-buffered printk() API.

2018-10-12 Thread Tetsuo Handa
Sometimes we want to print a whole line without being disturbed by concurrent printk() from interrupts and/or other threads, for printk() which does not end with '\n' can be disturbed. Mixed printk() output makes it hard to interpret. Assuming that we will go to a direction that we allow prefixing

Re: [resend PATCH] MAINTAINERS: Clarify UIO vs UACCESS maintainer

2018-10-12 Thread Al Viro
On Mon, Oct 08, 2018 at 11:50:09AM -0700, Dan Williams wrote: > The UIO file mask in MAINTAINERS was incorrectly directing UACCESS > (include/linux/uio.h) patches to Greg. > > Tag Al as the UACCESS maintainer as Ingo and others have explicitly > required his ack before taking architecture patches

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-10-12 Thread Dave Chinner
On Thu, Oct 11, 2018 at 11:00:12PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > Add two struct page fields that, combined, are unioned with > struct page->lru. There is no change in the size of > struct page. These new fields are for type safety and clarity. > > Also add page fl

[PATCH -next] gpio: fix SNPS_CREG kconfig dependency warning

2018-10-12 Thread Randy Dunlap
inux-next. drivers/gpio/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20181012.orig/drivers/gpio/Kconfig +++ linux-next-20181012/drivers/gpio/Kconfig @@ -439,7 +439,7 @@ config GPIO_SIOX config GPIO_SNPS_CREG bool "Synopsys GPIO via CREG (Cont

Re: [PATCH v4 1/2] arm64: dts: allwinner: new board - Emlid Neutis N5

2018-10-12 Thread Chen-Yu Tsai
On Sat, Oct 13, 2018 at 4:23 AM Maxime Ripard wrote: > > On Fri, Oct 12, 2018 at 04:39:14PM +0300, Aleksandr Aleksandrov wrote: > > Hi Andreas, > > > > Thanks for your feedback! > > > > > > + * > > > > + * Copyright (C) 2018 Aleksandr Aleksandrov > > > > > > > > + */ > > > > + > > > > +/dts-v1/;

RE: [PATCH v1] KVM/x86/vPMU: Guest PMI Optimization

2018-10-12 Thread Wang, Wei W
On Saturday, October 13, 2018 12:31 AM, Andi Kleen wrote: > > 4. Results > > - Without this optimization, the guest pmi handling time is > > ~450 ns, and the max sampling rate is reduced to 250. > > - With this optimization, the guest pmi handling time is ~9000 ns > > (i.e.

[PATCH] selftests/ftrace: Add color to the PASS / FAIL results

2018-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) Now that ftracetest has over 80 tests, it is difficult to simply scroll up the console window to find the failed tests when it reports just two tests have failed. In order to make this stand out better, have the color of the word "PASS" be green, "FAIL" and "XFAIL" b

mmotm 2018-10-12-19-18 uploaded

2018-10-12 Thread akpm
The mm-of-the-moment snapshot 2018-10-12-19-18 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH for 4.19] tracepoint: Fix: out-of-bound tracepoint array iteration

2018-10-12 Thread kbuild test robot
Hi Mathieu, I love your patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.19-rc7 next-20181012] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] MAINTAINERS: Replace Vince Bridgers as Altera TSE maintainer

2018-10-12 Thread Alan Tull
On Fri, Oct 12, 2018 at 8:12 PM Bridgers, Vince wrote: > > > > -Original Message- > From: Thor Thayer > Sent: Friday, October 12, 2018 3:49 PM > To: Greg KH > Cc: geert+rene...@glider.be; jho...@kernel.org; at...@kernel.org; > bhelg...@google.com; james.hart...@sondrel.com; linux-kernel

Re: [PATCH] docs: Fix typos in histogram.rst

2018-10-12 Thread Steven Rostedt
On Sat, 13 Oct 2018 10:30:57 +0900 Masanari Iida wrote: > This patch fixes some spelling typos. > > Signed-off-by: Masanari Iida > --- > Documentation/trace/histogram.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Documentation/trace/histogram.rst > b/Docu

ubifs: WARNINGs

2018-10-12 Thread Randy Dunlap
Hi, Linux 4.19-rc7, x86_64 laptop. I don't have an ubifs filesystem. When I just modprobe ubifs and then rmmod ubifs, I get 2 WARNINGs from these 2 lines: static void __exit ubifs_exit(void) { WARN_ON(list_empty(&ubifs_infos)); WARN_ON(atomic_long_read(&ubifs_clean_zn_cnt) == 0)

Re: [PATCH] docs: Fix typos in histogram.rst

2018-10-12 Thread Randy Dunlap
On 10/12/18 6:30 PM, Masanari Iida wrote: > This patch fixes some spelling typos. > > Signed-off-by: Masanari Iida > --- > Documentation/trace/histogram.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Acked-by: Randy Dunlap thanks. -- ~Randy

[PATCH] docs: Fix typos in histogram.rst

2018-10-12 Thread Masanari Iida
This patch fixes some spelling typos. Signed-off-by: Masanari Iida --- Documentation/trace/histogram.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/trace/histogram.rst b/Documentation/trace/histogram.rst index 5ac724baea7d..7dda76503127 100644 --- a/

[PATCH] x86/boot: Add -Wno-pointer-sign to KBUILD_CFLAGS

2018-10-12 Thread Nathan Chancellor
When compiling the kernel with Clang, this warning appears even though it is disabled for the whole kernel because this folder has its own set of KBUILD_CFLAGS. It was disabled before the beginning of git history. In file included from arch/x86/boot/compressed/kaslr.c:29: In file included from arc

[PATCH 1/6] zorro_esp: Limit DMA transfers to 65535 bytes

2018-10-12 Thread Finn Thain
The core driver, esp_scsi, does not use the ESP_CONFIG2_FENAB bit, so the chip's Transfer Counter register is only 16 bits wide (not 24). A larger transfer cannot work and will theoretically result in a failed command and a "DMA length is zero" error. Fixes: 3109e5ae0311 Signed-off-by: Finn Thain

[PATCH 2/6] esp_scsi: Track residual for PIO transfers

2018-10-12 Thread Finn Thain
If a target disconnects during a PIO data transfer the command may fail when the target reconnects: scsi host1: DMA length is zero! scsi host1: cur adr[0438] len[] The scsi bus is then reset. This happens because the residual reached zero before the transfer was completed. The usual

RE: [PATCH] MAINTAINERS: Replace Vince Bridgers as Altera TSE maintainer

2018-10-12 Thread Bridgers, Vince
-Original Message- From: Thor Thayer Sent: Friday, October 12, 2018 3:49 PM To: Greg KH Cc: geert+rene...@glider.be; jho...@kernel.org; at...@kernel.org; bhelg...@google.com; james.hart...@sondrel.com; linux-kernel@vger.kernel.org; Bridgers, Vince Subject: Re: [PATCH] MAINTAINERS: R

[PATCH 5/6] esp_scsi: De-duplicate PIO routines

2018-10-12 Thread Finn Thain
As a temporary measure, the code to implement PIO transfers was duplicated in zorro_esp and mac_esp. Now that this code has stabilized, move it into the core driver to eliminate the duplication. This replaces the inline assembler with more portable writesb() calls. Optimizing the m68k writesb() im

[PATCH] m68k: Unroll raw_outsb() loop

2018-10-12 Thread Finn Thain
Unroll the raw_outsb() loop using the optimized assembler code from raw_outsw(). That code is copied and pasted, with movew changed to moveb. This improves the performance of sequential write transfers using mac_esp in PIO mode by 5% or 10%. (The DMA controller on the 840av/660av models is still u

[PATCH] x86/time: Correct the attribute on jiffies' definition

2018-10-12 Thread Nathan Chancellor
Clang warns that the declaration of jiffies in include/linux/jiffies.h doesn't match the definition in arch/x86/time/kernel.c: arch/x86/kernel/time.c:29:42: warning: section does not match previous declaration [-Wsection] __visible volatile unsigned long jiffies __cacheline_aligned = INITIAL_JIFF

[PATCH] PCI: make pci_size() return real size

2018-10-12 Thread changbin . du
From: Du Changbin Currently, the pci_size() function actually return 'size-1'. Make it return real size to avoid confusing. Signed-off-by: Du Changbin --- drivers/pci/probe.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c i

[PATCH] kernel/signal: Signal-based pre-coredump notification

2018-10-12 Thread Enke Chen
For simplicity and consistency, this patch provides an implementation for signal-based fault notification prior to the coredump of a child process. A new prctl command, PR_SET_PREDUMP_SIG, is defined that can be used by an application to express its interest and to specify the signal (SIGCHLD or SI

Re: [PATCH 6/6] mm: track gup pages with page->dma_pinned_* fields

2018-10-12 Thread John Hubbard
On 10/12/18 4:07 AM, Balbir Singh wrote: > On Thu, Oct 11, 2018 at 11:00:14PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard [...] >> +static int pin_page_for_dma(struct page *page) >> +{ >> +int ret = 0; >> +struct zone *zone; >> + >> +page = compound_head(page); >> +z

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-10-12 Thread John Hubbard
On 10/12/18 3:56 AM, Balbir Singh wrote: > On Thu, Oct 11, 2018 at 11:00:12PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard [...] >> + * Because page->dma_pinned_flags is unioned with page->lru, any page that >> + * uses these flags must NOT be on an LRU. That's partly enforced by >>

Re: [PATCH v2 1/7] modules: Create rlimit for module space

2018-10-12 Thread Jann Horn
On Sat, Oct 13, 2018 at 2:04 AM Edgecombe, Rick P wrote: > On Fri, 2018-10-12 at 19:22 +0200, Jann Horn wrote: > > On Fri, Oct 12, 2018 at 7:04 PM Edgecombe, Rick P > > wrote: > > > On Fri, 2018-10-12 at 02:35 +0200, Jann Horn wrote: > > > > Why all the rbtree stuff instead of stashing a pointer

Re: [LKP] 601d5abfea [ 13.686356] BUG: unable to handle kernel paging request at 34ca027e

2018-10-12 Thread Eric W. Biederman
kernel test robot writes: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > siginfo-next > This is an odd one. This is the first time I recall the lkp test robot emailing

Re: [PATCH v2 1/7] modules: Create rlimit for module space

2018-10-12 Thread Edgecombe, Rick P
On Fri, 2018-10-12 at 19:22 +0200, Jann Horn wrote: > On Fri, Oct 12, 2018 at 7:04 PM Edgecombe, Rick P > wrote: > > On Fri, 2018-10-12 at 02:35 +0200, Jann Horn wrote: > > > Why all the rbtree stuff instead of stashing a pointer in struct > > > vmap_area, or something like that? > > > > Since th

Re: [PATCH] mm/kasan: make quarantine_lock a raw_spinlock_t

2018-10-12 Thread Andrew Morton
On Wed, 10 Oct 2018 23:49:45 +0200 Sebastian Andrzej Siewior wrote: > On 2018-10-10 11:57:41 [+0200], Dmitry Vyukov wrote: > > Yes. Clark's patch looks good to me. Probably would be useful to add a > > comment as to why raw spinlock is used (otherwise somebody may > > refactor it back later). >

Re: [patch] mm, slab: avoid high-order slab pages when it does not reduce waste

2018-10-12 Thread David Rientjes
On Fri, 12 Oct 2018, Andrew Morton wrote: > > The slab allocator has a heuristic that checks whether the internal > > fragmentation is satisfactory and, if not, increases cachep->gfporder to > > try to improve this. > > > > If the amount of waste is the same at higher cachep->gfporder values, > >

Re: turbostat-17.06.23 floating point exception

2018-10-12 Thread Len Brown
> Why would the cpu topology report 0 cpus? I added a debug entry to > cpu_usage_stat and /proc/stat showed it as an extra column. Then > fscanf parsing in for_all_cpus() failed, causing the SIGFPE. > > This is not an issue. Thanks. Yes, it is true that turbostat doesn't check for systems with 0

Re: [PATCH v2 4/7] arm64/modules: Add rlimit checking for arm64 modules

2018-10-12 Thread Edgecombe, Rick P
On Fri, 2018-10-12 at 22:01 +, Edgecombe, Rick P wrote: > On Fri, 2018-10-12 at 16:32 +0200, Jessica Yu wrote: > > +++ Dave Hansen [11/10/18 16:47 -0700]: > > > On 10/11/2018 04:31 PM, Rick Edgecombe wrote: > > > > + if (check_inc_mod_rlimit(size)) > > > > + return NULL; > >

[PATCH] x86/intel_rdt: Prevent pseudo-locking from using stale pointers

2018-10-12 Thread Reinette Chatre
From: Jithu Joseph When the last CPU in an rdt_domain goes offline, its rdt_domain struct gets freed. Current pseudo-locking code is unaware of this scenario and tries to dereference the freed structure in a few places. Add checks to prevent pseudo-locking code from doing this. While further wo

Re: [PATCH 1/6] mm: get_user_pages: consolidate error handling

2018-10-12 Thread John Hubbard
On 10/11/18 11:30 PM, Balbir Singh wrote: On Thu, Oct 11, 2018 at 11:00:09PM -0700, john.hubb...@gmail.com wrote: From: John Hubbard An upcoming patch requires a way to operate on each page that any of the get_user_pages_*() variants returns. In preparation for that, consolidate the error han

[PATCH] staging: rtl8188eu: fix spelling mistake "EINPROGESS" -> "EINPROGRESS"

2018-10-12 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in RT_TRACE message text. Signed-off-by: Colin Ian King --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/stag

Re: [PATCH 2/6] mm: introduce put_user_page*(), placeholder versions

2018-10-12 Thread John Hubbard
On 10/12/18 12:35 AM, Balbir Singh wrote: On Thu, Oct 11, 2018 at 11:00:10PM -0700, john.hubb...@gmail.com wrote: From: John Hubbard [...]>> +/* + * put_user_pages_dirty() - for each page in the @pages array, make + * that page (or its head page, if a compound page) dirty, if it was + * previ

Re: turbostat-17.06.23 floating point exception

2018-10-12 Thread Solio Sarabia
On Fri, Oct 12, 2018 at 11:26:30AM -0700, Solio Sarabia wrote: > Hi -- > > turbostat 17.06.23 is throwing an exception on a custom linux-4.16.12 > kernel, on Xeon E5-2699 v4 Broadwell EP, 2S, 22C/S, 44C total, HT off, > VTx off. > > Initially the system had 4.4.0-137. Then I built and installed >

RE: [PATCH net-next, v2] hv_netvsc: fix vf serial matching with pci slot info

2018-10-12 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, October 12, 2018 6:21 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; vkuznets > Subject: Re: [PATCH

Re: [patch] mm, slab: avoid high-order slab pages when it does not reduce waste

2018-10-12 Thread Andrew Morton
On Fri, 12 Oct 2018 14:24:57 -0700 (PDT) David Rientjes wrote: > The slab allocator has a heuristic that checks whether the internal > fragmentation is satisfactory and, if not, increases cachep->gfporder to > try to improve this. > > If the amount of waste is the same at higher cachep->gfporde

Re: [PATCH v2 1/5] mfd: lochnagar: Add initial binding documentation

2018-10-12 Thread Rob Herring
On Mon, Oct 08, 2018 at 02:25:38PM +0100, Charles Keepax wrote: > Lochnagar is an evaluation and development board for Cirrus > Logic Smart CODEC and Amp devices. It allows the connection of > most Cirrus Logic devices on mini-cards, as well as allowing > connection of various application processor

Re: [PATCH v13 3/8] clk: Use devm_ in the register fixed factor clock

2018-10-12 Thread Stephen Boyd
Quoting Ricardo Salveti (2018-09-14 11:53:02) > On Thu, Jun 14, 2018 at 6:55 PM wrote: > > > > From: Ilia Lin > > > > Use devm_clk_hw_register instead of clk_hw_register > > to simplify the usage of this API. This way drivers that call > > the clk_hw_register_fixed_factor won't need to maintain >

Re: [PATCH v2 4/7] arm64/modules: Add rlimit checking for arm64 modules

2018-10-12 Thread Edgecombe, Rick P
On Fri, 2018-10-12 at 16:32 +0200, Jessica Yu wrote: > +++ Dave Hansen [11/10/18 16:47 -0700]: > > On 10/11/2018 04:31 PM, Rick Edgecombe wrote: > > > + if (check_inc_mod_rlimit(size)) > > > + return NULL; > > > + > > > p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base, > > >

[PATCH-tip] locking/lockdep: Remove duplicated lock_class_ops percpu array

2018-10-12 Thread Waiman Long
Remove the duplicated lock_class_ops percpu array that is not used anywhere. Fixes: 8ca2b56cd7da ("locking/lockdep: Make class->ops a percpu counter and move it under CONFIG_DEBUG_LOCKDEP=y") Signed-off-by: Waiman Long --- kernel/locking/lockdep.c | 1 - 1 file changed, 1 deletion(-) diff --gi

[PATCH] dt-bindings: ufs: Fix the compatible string definition

2018-10-12 Thread Douglas Anderson
If you look at the bindings for the UFS Host Controller it says: - compatible: must contain "jedec,ufs-1.1" or "jedec,ufs-2.0", may also list one or more of the following: "qcom,msm8994-ufshc" "qcom,msm8996-ufshc" "qcom,ufshc" My re

[PATCH] dt-bindings: phy-qcom-qmp: Fix several mistakes from prior commits

2018-10-12 Thread Douglas Anderson
Digging through the "phy-qcom-qmp" showed me many inconsistencies between the bindings and the reality of the driver. Let's fix them all. * In commit 2d66eab18375 ("dt-bindings: phy: qmp: Add support for QMP phy in IPQ8074") we probably should have explicitly listed that there are no clocks f

[BUG] perf stat: hangs with -p and process completes

2018-10-12 Thread Stephane Eranian
Hi, I am running into a perf stat issue with the -p option which allows you to attach to a running process. If that process happens to terminate while under monitoring perf hangs in there and never terminates. The proper behavior would be to stop. I can see the issue in that the attached process i

[patch] mm, slab: avoid high-order slab pages when it does not reduce waste

2018-10-12 Thread David Rientjes
The slab allocator has a heuristic that checks whether the internal fragmentation is satisfactory and, if not, increases cachep->gfporder to try to improve this. If the amount of waste is the same at higher cachep->gfporder values, there is no significant benefit to allocating higher order memory.

Re: [PATCH 0/7] HMM updates, improvements and fixes

2018-10-12 Thread Andrew Morton
On Fri, 12 Oct 2018 14:15:45 -0400 Jerome Glisse wrote: > On Fri, Aug 24, 2018 at 03:25:42PM -0400, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > Few fixes that only affect HMM users. Improve the synchronization call > > back so that we match was other mmu_notifier listener do and a

Re: [PATCH for 4.19] tracepoint: Fix: out-of-bound tracepoint array iteration

2018-10-12 Thread Ard Biesheuvel
Hi Mathieu, On 12 October 2018 at 22:05, Mathieu Desnoyers wrote: > commit 46e0c9be206f ("kernel: tracepoints: add support for relative > references") changes the layout of the __tracepoint_ptrs section on > architectures supporting relative references. However, it does so > without turning struc

Re: [PATCH 7/8] mips: convert to generic builtin command line

2018-10-12 Thread Paul Burton
Hi Maksym, On Mon, Oct 08, 2018 at 08:56:25PM +0300, Maksym Kokhan wrote: > On Thu, Sep 27, 2018 at 9:56 PM Paul Burton wrote: > > It also doesn't allow for the various Kconfig options which allow us to > > ignore some of the sources of command line arguments, nor does it honor > > the ordering t

Re: [PATCH V2 1/2] dt-bindings: mmc: sdhci-msm: Add new compatible string for sdcdc10 DLL

2018-10-12 Thread Rob Herring
On Mon, Oct 08, 2018 at 06:55:37PM +0530, Veerabhadrarao Badiganti wrote: > On the SDHC-MSM controllers which makes use of sdcdc10 variant DLLs, > the DLL configuration needs to be restored whenever controller clocks > are gated. This new compatible string denotes the sdhc-msm controller > variant

Re: [PATCH] MAINTAINERS: Replace Vince Bridgers as Altera TSE maintainer

2018-10-12 Thread Thor Thayer
On 10/12/2018 11:57 AM, Greg KH wrote: On Fri, Oct 12, 2018 at 11:50:52AM -0500, thor.tha...@linux.intel.com wrote: From: Thor Thayer Vince has moved to a different role. Replace him as Altera TSE maintainer. Signed-off-by: Thor Thayer Would be nice if Vince can ack this... + Vince (at a

Re: [PATCH v2] Documentation: dt: Add binding for /secure-chosen/stdout-path

2018-10-12 Thread Rob Herring
On Mon, Oct 08, 2018 at 06:16:42PM +0800, Jerome Forissier wrote: > Some platforms may use a single device tree to describe two address > spaces, as described in d9f43babb998 ("Documentation: dt: Add bindings > for Secure-only devices"). For these platforms it makes sense to define > a secure count

[PATCH v2 1/2] mtd: rawnand: Provide helper for polling GPIO R/B pin

2018-10-12 Thread Janusz Krzysztofik
Each controller driver with access to NAND R/B pin over GPIO would have to reimplement the polling loop otherwise. Signed-off-by: Janusz Krzysztofik --- Changelog: v2: New patch - v1 consisted of only one patch (the followning one) drivers/mtd/nand/raw/nand_base.c | 38 +++

[PATCH v2 2/2] mtd: rawnand: ams-delta: Use ->exec_op()

2018-10-12 Thread Janusz Krzysztofik
Replace legacy callbacks with ->select_chip() and ->exec_op(). In order to remove any references to legacy structure members, use of .IO_ADDR_R/W has been replaced wit runtime calculations based on priv->io_base. Suggested-by: Boris Brezillon Signed-off-by: Janusz Krzysztofik --- Changelog: v

Re: [PATCH v2 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation

2018-10-12 Thread Rob Herring
On Fri, Oct 05, 2018 at 11:41:58AM +0200, christophe.kere...@st.com wrote: > From: Christophe Kerello > > This patch adds the documentation of the device tree bindings for the STM32 > FMC2 NAND controller. > > Signed-off-by: Christophe Kerello > --- > .../devicetree/bindings/mtd/stm32-fmc2-nan

Re: [PATCH 07/11] x86/pkeys: Drop the preempt-disable section

2018-10-12 Thread Sebastian Andrzej Siewior
On 2018-10-12 11:07:28 [-0700], Andy Lutomirski wrote: > All these "if" statements in the FPU code are messy and make > understanding and reviewing this code hard. > > Can you prepare a patch for the beginning of your series that removes > fpu->initialized and just ensures that the fpu is always i

Re: [PATCH 11/11] x86/fpu: defer FPU state load until return to userspace

2018-10-12 Thread Sebastian Andrzej Siewior
On 2018-10-04 09:14:33 [-0700], Andy Lutomirski wrote: > > diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c > > index 3b2490b819181..3dad5c3b335eb 100644 > > --- a/arch/x86/entry/common.c > > +++ b/arch/x86/entry/common.c > > @@ -196,6 +197,14 @@ __visible inline void prepare_exit_to_

Re: [PATCH 3.18 000/120] 3.18.124-stable review

2018-10-12 Thread Guenter Roeck
On Thu, Oct 11, 2018 at 05:33:01PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.124 release. > There are 120 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kn

Re: [PATCH v4 1/2] arm64: dts: allwinner: new board - Emlid Neutis N5

2018-10-12 Thread Maxime Ripard
On Fri, Oct 12, 2018 at 04:39:14PM +0300, Aleksandr Aleksandrov wrote: > Hi Andreas, > > Thanks for your feedback! > > > > + * > > > + * Copyright (C) 2018 Aleksandr Aleksandrov > > > > > > + */ > > > + > > > +/dts-v1/; > > > + > > > +#include "sun50i-h5-emlid-neutis-n5.dtsi" > > > + > > > +/ {

Re: [PATCH for 4.19] tracepoint: Fix: out-of-bound tracepoint array iteration

2018-10-12 Thread Mathieu Desnoyers
- On Oct 12, 2018, at 4:05 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > commit 46e0c9be206f ("kernel: tracepoints: add support for relative > references") changes the layout of the __tracepoint_ptrs section on > architectures supporting relative references. However, it does s

Re: [RFC v2 6/7] dt-binding: mips: Document Realtek SoC DT bindings

2018-10-12 Thread Rob Herring
On Mon, 1 Oct 2018 13:29:51 +0300, Yasha Cherikovsky wrote: > This patch adds device tree binding doc for Realtek MIPS SoCs. > > It includes a compatible string for the Realtek RTL8186 SoC. > > Signed-off-by: Yasha Cherikovsky > Cc: Rob Herring > Cc: Mark Rutland > Cc: Ralf Baechle > Cc: Pau

Re: [RFC v2 4/7] dt-binding: timer: Document RTL8186 SoC DT bindings

2018-10-12 Thread Rob Herring
On Mon, 1 Oct 2018 13:29:49 +0300, Yasha Cherikovsky wrote: > This patch adds device tree binding doc for the > Realtek RTL8186 SoC timer controller. > > Signed-off-by: Yasha Cherikovsky > Cc: Rob Herring > Cc: Mark Rutland > Cc: Daniel Lezcano > Cc: Thomas Gleixner > Cc: Ralf Baechle > Cc:

Re: [PATCH v3 02/11] arch/x86: Rename the RDT functions and definitions

2018-10-12 Thread Moger, Babu
On 10/12/2018 02:40 PM, Reinette Chatre wrote: > Hi Babu, > > On 10/11/2018 1:33 PM, Moger, Babu wrote: >> @@ -883,20 +883,20 @@ static int __init intel_rdt_late_init(void) >> rdt_online = state; >> >> for_each_alloc_capable_rdt_resource(r) >> -pr_info("Intel RDT %s alloca

Re: [RFC v2 2/7] dt-binding: interrupt-controller: Document RTL8186 SoC DT bindings

2018-10-12 Thread Rob Herring
On Mon, Oct 01, 2018 at 01:29:47PM +0300, Yasha Cherikovsky wrote: > This patch adds device tree binding doc for the > Realtek RTL8186 SoC interrupt controller. > > Signed-off-by: Yasha Cherikovsky > Cc: Rob Herring > Cc: Mark Rutland > Cc: Thomas Gleixner > Cc: Jason Cooper > Cc: Marc Zyngie

Re: [PATCH v3 01/11] arch/x86: Start renaming the rdt files to more generic names

2018-10-12 Thread Moger, Babu
Hi Reinette, On 10/12/2018 02:07 PM, Reinette Chatre wrote: > Hi Babu, > > On 10/11/2018 1:33 PM, Moger, Babu wrote: >> New generation of AMD processors start supporting RDT(or QOS) features. >> With more than one vendors supporting these features, it seems more >> appropriate to rename these fil

[PATCH for 4.19] tracepoint: Fix: out-of-bound tracepoint array iteration

2018-10-12 Thread Mathieu Desnoyers
commit 46e0c9be206f ("kernel: tracepoints: add support for relative references") changes the layout of the __tracepoint_ptrs section on architectures supporting relative references. However, it does so without turning struct tracepoint * const into const int * elsewhere in the tracepoint code, whic

Re: [git pull] Input updates for v4.19-rc7

2018-10-12 Thread Dmitry Torokhov
On Fri, Oct 12, 2018 at 12:51:52PM +0200, Greg KH wrote: > On Thu, Oct 11, 2018 at 04:57:36PM -0700, Dmitry Torokhov wrote: > > Hi Greg, > > > > Please pull from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus > > > > to receive updates for the input subsystem

Re: [RFC][PATCH] x86: ptrace: Add function argument access API

2018-10-12 Thread Steven Rostedt
On Fri, 12 Oct 2018 11:21:28 -0700 Andy Lutomirski wrote: > On Fri, Oct 12, 2018 at 9:26 AM Steven Rostedt wrote: > > > > > > Anyone have any issues with this patch? > > > > I'm conceptually okay with it. That being said, > regs_within_kernel_stack(), which you're indirectly using, is > off-

Re: [PATCH v4 5/5] clk: RK808: add RK809 and RK817 support.

2018-10-12 Thread Stephen Boyd
Quoting Tony Xie (2018-09-03 03:04:00) > RK809 and RK817 are power management IC chips for multimedia products. > most of their functions and registers are same, including the clkout > funciton. > > Signed-off-by: Tony Xie > --- Acked-by: Stephen Boyd

Re: [PATCH 00/16] clk: at91: Rework DT bindings

2018-10-12 Thread Stephen Boyd
Quoting Alexandre Belloni (2018-10-12 11:40:17) > On 12/10/2018 11:28:06-0700, Stephen Boyd wrote: > > Quoting Stephen Boyd (2018-08-31 10:45:30) > > > Quoting Alexandre Belloni (2018-08-16 04:47:55) > > > > On 27/07/2018 10:03:22-0700, Stephen Boyd wrote: > > > > > Quoting Alexandre Belloni (2018-

RE: [PATCH 2/2] clk: imx: imx7d: remove clks_init_on array

2018-10-12 Thread Stephen Boyd
Quoting Anson Huang (2018-10-08 01:34:59) > > Quoting Anson Huang (2018-09-03 00:20:53) > > > > > On 08/31/2018 03:29 AM, Stephen Boyd wrote: > > > > > > Quoting Peng Fan (2018-08-12 18:15:41) > > > > > >> Hi Anson, > > > > > >> > > > > > > -Original Message- > > > > > > From: Anson

Re: [PATCH 04/11] x86/fpu: eager switch PKRU state

2018-10-12 Thread Dave Hansen
On 10/12/2018 11:09 AM, Andy Lutomirski wrote: > But maybe WRPKRU is more expensive than RDPKRU and a branch? Yeah, it is more expensive. It has a higher cycle cost and it's also practically a (light) speculation barrier.

Re: [PATCH 10/11] x86/fpu: prepare copy_fpstate_to_sigframe for TIF_LOAD_FPU

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > From: Rik van Riel > > If TIF_LOAD_FPU is set, then the registers are saved (not loaded). In that > case > we skip the saving part. This sentence hurts my brain. "If TIF_LOAD_FPU is set the registers are ... not loaded" I thin

Re: [PATCH v3 02/11] arch/x86: Rename the RDT functions and definitions

2018-10-12 Thread Reinette Chatre
Hi Babu, On 10/11/2018 1:33 PM, Moger, Babu wrote: > @@ -883,20 +883,20 @@ static int __init intel_rdt_late_init(void) > rdt_online = state; > > for_each_alloc_capable_rdt_resource(r) > - pr_info("Intel RDT %s allocation detected\n", r->name); > + pr_info("RES

Re: [PATCH V2 1/5] dt-bindings: usb: xhci-tegra: Add power-domain details

2018-10-12 Thread Rob Herring
On Fri, 28 Sep 2018 15:11:46 +0100, Jon Hunter wrote: > Add details for power-domains to the Tegra xHCI bindings so that > generic power-domains can be used for inconjunction with the xHCI > driver. > > Signed-off-by: Jon Hunter > --- > Documentation/devicetree/bindings/usb/nvidia,tegra124-xusb.

Re: [PATCH v2 2/3] dt-bindings: arm: omap: Add binding for Moxa UC-2101 open platform

2018-10-12 Thread Rob Herring
On Fri, 28 Sep 2018 18:47:38 +0800, =?UTF-8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= wrote: > Add devicetree binding for Moxa UC-2101 open platform > > Signed-off-by: SZ Lin (林上智) > --- > Documentation/devicetree/bindings/arm/omap/omap.txt | 3 +++ > 1 file changed, 3 insertions(+) >

Re: [PATCH v3 6/7] mfd: axp20x: Add AC power supply cell for AXP813

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:07PM +0300, Oskari Lemmela wrote: > As axp20x-ac-power-supply now supports AXP813, add a cell for it. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 4/7] arm64: dts: allwinner: a64: sopine: enable power supplies

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:05PM +0300, Oskari Lemmela wrote: > Sopine baseboard have ACIN and battery connectors. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v2 1/2] dt-bindings: i2c-omap: Add new compatible for AM654 SoCs

2018-10-12 Thread Rob Herring
On Fri, 28 Sep 2018 10:55:56 +0530, Vignesh R wrote: > AM654 SoCs have same I2C IP as OMAP SoCs. Add new compatible to > handle AM654 SoCs. While at that reformat the existing compatible list > for older SoCs to list one valid compatible per line. > > Signed-off-by: Vignesh R > --- > > v2: Refor

Re: [PATCH v3 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:04PM +0300, Oskari Lemmela wrote: > AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, > AC and battery power supplies. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 1/7] dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:02PM +0300, Oskari Lemmela wrote: > The AXP803/AXP813 AC power supply can limit input current and voltage. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 2/7] ARM: dts: axp81x: add AC power supply subnode

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:03PM +0300, Oskari Lemmela wrote: > Add AC power supply subnode for AXP81X PMIC. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v2] dt-bindings: input: pwm-vibrator: correct pwms in example

2018-10-12 Thread Rob Herring
On Wed, 26 Sep 2018 20:48:58 -0400, Brian Masney wrote: > In the example for the pwm-vibrator bindings, pwm8 is the direction pin, > and pwm9 is the enable pin. The pwms on the vibrator node has these two > values swapped so this patch corrects it. > > Signed-off-by: Brian Masney > --- > Changes

[PATCH 2/2] arm64: acpi: Prepare for longer MADTs

2018-10-12 Thread Jeremy Linton
The BAD_MADT_GICC_ENTRY check is a little too strict because it rejects MADT entries that don't match the currently known lengths. We should remove this restriction to avoid problems if the table length changes. Future code which might depend on additional fields should be written to validate those

Re: [PATCH v2] of: base: Change logic in of_alias_get_alias_list()

2018-10-12 Thread Rob Herring
On Fri, Oct 12, 2018 at 12:43 AM Michal Simek wrote: > > Check compatible string first before setting up bit in bitmap to also > cover cases that allocated bitfield is not big enough. > Show warning about it but let driver to continue to work with allocated > bitfield to keep at least some devices

[PATCH 1/2] perf: arm_spe: Enable automatic DT loading

2018-10-12 Thread Jeremy Linton
When built as a module, the spe driver isn't automatically loaded on DT systems. Add the MODULE_DEVICE_TABLE entry. Signed-off-by: Jeremy Linton --- drivers/perf/arm_spe_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 54ec27

[RFT PATCH] mmc: pwrseq_simple: Fix incorrect handling of GPIO bitmap

2018-10-12 Thread Janusz Krzysztofik
Commit b9762bebc633 ("gpiolib: Pass bitmaps, not integer arrays, to get/set array") changed the way GPIO values are passed to gpiod_get/set_array_value() and friends. The new code introduced into mmc_pwrseq_simple_set_gpios_value() incorrectly interpretes the 'value' argument as a bitmap of GPIO v

Re: [PATCH v3 01/11] arch/x86: Start renaming the rdt files to more generic names

2018-10-12 Thread Reinette Chatre
Hi Babu, On 10/11/2018 1:33 PM, Moger, Babu wrote: > New generation of AMD processors start supporting RDT(or QOS) features. > With more than one vendors supporting these features, it seems more > appropriate to rename these files. > > Changed intel_rdt to resctrl where applicable. > > Signed-of

  1   2   3   4   5   6   >