[PATCH 4/8] serdev: ttyport: fix NULL-deref on hangup

2017-11-03 Thread Johan Hovold
Make sure to use a properly refcounted tty_struct in write_wake up to avoid dereferencing a NULL-pointer when a port is being hung up. Fixes: bed35c6dfa6a ("serdev: add a tty port controller driver") Cc: stable # 4.11 Signed-off-by: Johan Hovold ---

[PATCH] net: plip: mark expected switch fall-throughs

2017-11-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 114893 Addresses-Coverity-ID: 114894 Addresses-Coverity-ID: 114895 Addresses-Coverity-ID: 114896 Addresses-Coverity-ID: 114897 Addresses-Coverity-ID: 114898

[PATCH 3/3] objtool: Move sync check to a script

2017-11-03 Thread Josh Poimboeuf
Replace the nasty diff checks in the objtool Makefile with a clean bash script, and make the warnings more specific. Heavily inspired by tools/perf/check-headers.sh. Suggested-by: Ingo Molnar Signed-off-by: Josh Poimboeuf --- tools/objtool/Makefile

usb/net/hfa384x: WARNING in submit_rx_urb/usb_submit_urb

2017-11-03 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit 3a99df9a3d14cd866b5516f8cba515a3bfd554ab (4.14-rc7+). Looks like there's no check for the actual endpoint types. usb 1-1: BOGUS urb xfer, pipe 3 != type 1 [ cut here ] WARNING: CPU: 1

[PATCH v4 02/20] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2017-11-03 Thread Sudeep Holla
This patch adds devicetree binding for System Control and Management Interface (SCMI) Message Protocol used between the Application Cores(AP) and the System Control Processor(SCP). The MHU peripheral provides a mechanism for inter-processor communication between SCP's M3 processor and AP. SCP

Re: [PATCH v4 15/20] firmware: arm_scmi: add device power domain support using genpd

2017-11-03 Thread Sudeep Holla
Hi Ulf, On 03/11/17 14:47, Sudeep Holla wrote: > This patch hooks up the support for device power domain provided by > SCMI using the Linux generic power domain infrastructure. > > Cc: Kevin Hilman > Cc: Ulf Hansson Sorry for not adding you

Re: [RFC -mm] mm, userfaultfd, THP: Avoid waiting when PMD under THP migration

2017-11-03 Thread Zi Yan
On 3 Nov 2017, at 3:52, Huang, Ying wrote: > From: Huang Ying > > If THP migration is enabled, the following situation is possible, > > - A THP is mapped at source address > - Migration is started to move the THP to another node > - Page fault occurs > - The PMD (migration

Re: [PATCH] clk: sunxi-ng: a83t: Fix i2c buses bits

2017-11-03 Thread Stephen Boyd
On 11/03, Mylène Josserand wrote: > i2c1 and i2c2 bits for CCU are not bit 0 but bit 1 and bit 2. > Because of that, the i2c0 (bit 0) was not correctly configured. > Fixed the correct bits for i2c1 and i2c2. > > Signed-off-by: Mylène Josserand > --- Please

Re: [PATCH v3 18/22] clk: add support for clocks provided by SCMI

2017-11-03 Thread Stephen Boyd
On 11/02, Sudeep Holla wrote: > > > On 02/11/17 07:23, Stephen Boyd wrote: > > Is there a lot of copy/paste going on from clk-scpi.c? Maybe it > > could be consolidated? > > > > Not much apart from the usual driver skeleton. Also SCPI specification > will not be enhanced any further while SCMI

Re: [PATCH] watchdog: pcwd_pci: mark expected switch fall-through

2017-11-03 Thread Wim Van Sebroeck
Hi Gustavo, > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I replaced "Fall" with a proper > "fall through" comment, which is what GCC is expecting to find. > > Signed-off-by: Gustavo A. R.

[PATCH v3 2/2] workqueue: respect isolated cpus when queueing an unbound work

2017-11-03 Thread Tal Shorer
Initialize wq_unbound_cpumask to exclude cpus that were isolated by the cmdline's isolcpus parameter. Signed-off-by: Tal Shorer --- kernel/workqueue.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index

Re: [PATCH v3 1/2] livepatch: send a fake signal to all blocking tasks

2017-11-03 Thread Josh Poimboeuf
On Fri, Nov 03, 2017 at 09:02:50AM +0100, Miroslav Benes wrote: > On Thu, 2 Nov 2017, Josh Poimboeuf wrote: > > > On Tue, Oct 31, 2017 at 12:48:52PM +0100, Miroslav Benes wrote: > > > + > > > +/* > > > + * Sends a fake signal to all non-kthread tasks with TIF_PATCH_PENDING > > > set. > > > + *

[PATCH v2] x86/module: Detect corrupt relocations against nonzero data

2017-11-03 Thread Josh Poimboeuf
There have been some cases where external tooling (e.g., kpatch-build) creates a corrupt relocation which targets the wrong address. This is a silent failure which can corrupt memory in unexpected places. On x86, the bytes of data being overwritten by relocations are always initialized to zero

Re: [PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Javier González
> On 3 Nov 2017, at 13.53, Christoph Hellwig wrote: > >> -if (ns && ns->ms && >> +if (ns->ms && >> (!ns->pi_type || ns->ms != sizeof(struct t10_pi_tuple)) && >> !blk_integrity_rq(req) && !blk_rq_is_passthrough(req)) >> return BLK_STS_NOTSUPP; >

T20 Cpuidle Freeze

2017-11-03 Thread Marcel Ziswiler
Hi Rafael, dear community One of our customers reported seeing freezes when running the LTS Linux kernel 4.9.x on our Toradex Colibri T20 modules [1]. I was able to reproduce a complete SoC lock-up after a few minutes also running the latest 4.14-rc7 while LTS 4.4.x seemed to run stable. Having

Re: [PATCH v8 1/6] lib/dlock-list: Distributed and lock-protected lists

2017-11-03 Thread Davidlohr Bueso
On Thu, 02 Nov 2017, Waiman Long wrote: Instead of the current O(N) implementation; at the cost of adding an atomic counter. We also need to add a heads pointer to the node structure such that we can unaccount a thread doing list_del(). The counter will then become the single contention

[PATCH] spi: s3c64xx: remove redundant pointer sci

2017-11-03 Thread Colin King
From: Colin Ian King The pointer sci is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/spi/spi-s3c64xx.c:791:2: warning: Value stored to 'sci' is never read Signed-off-by: Colin Ian King

Re: [PATCH v2 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Pavel Tatashin
Hi Michal, There is a small regression, on the largest x86 machine I have access to: Before: node 1 initialised, 32471632 pages in 901ms After: node 1 initialised, 32471632 pages in 1128ms One node contains 128G of memory (overal 1T in 8 nodes). This regression is going to be solved by this

[PATCH v4 00/17] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support

2017-11-03 Thread Niklas Cassel
This is a series that adds: - PCI endpoint mode support in the ARTPEC-6 driver. - ARTPEC-7 SoC support in the ARTPEC-6 driver (the SoCs are very similar). - Small fixes for MSI in designware-ep and designware-host, needed to get endpoint mode support working for ARTPEC-6. - Cleanups in

[PATCH v4 05/17] PCI: designware-ep: Remove static keyword from dw_pcie_ep_reset_bar()

2017-11-03 Thread Niklas Cassel
Remove the static keyword from dw_pcie_ep_reset_bar() so that pci-dra7xx.c does not need its own copy of dw_pcie_ep_reset_bar(). Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 9 -

[PATCH] lib/bug: Fix build error

2017-11-03 Thread Julien Thierry
Generic bug management code handle a table of bugs per module. When kernel is built without CONFIG_MODULES, the module_bug_list is compiled out, yet generic_bug_clear_once tries to reference it, causing an error. Introduce helper function to avoid the reference to module_bug_list when it is not

[PATCH] mm,page_alloc: Update comment for last second allocation attempt.

2017-11-03 Thread Tetsuo Handa
__alloc_pages_may_oom() is doing last second allocation attempt using ALLOC_WMARK_HIGH before calling out_of_memory(). This had two reasons. The first reason is explained in the comment that it aims to catch potential parallel OOM killing. But there is no longer parallel OOM killing (in the sense

Re: [PATCH v2 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Michal Hocko
On Fri 03-11-17 09:47:30, Pavel Tatashin wrote: > Hi Michal, > > There is a small regression, on the largest x86 machine I have access to: > Before: > node 1 initialised, 32471632 pages in 901ms > After: > node 1 initialised, 32471632 pages in 1128ms > > One node contains 128G of memory (overal

Re: [PATCH] mm,page_alloc: Update comment for last second allocation attempt.

2017-11-03 Thread Michal Hocko
On Fri 03-11-17 22:46:29, Tetsuo Handa wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index c274960..547e9cb 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3312,11 +3312,10 @@ void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, > const char *fmt, ...) > } >

[PATCH 12/19] perf stat: Move the shadow stats scale computation in perf_stat__update_shadow_stats

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the shadow stats scale computation to the perf_stat__update_shadow_stats() function, so it's centralized and we don't forget to do it. It also saves few lines of code. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc:

[PATCH v3] arm64: support __int128 on gcc 5+

2017-11-03 Thread Jason A. Donenfeld
Versions of gcc prior to gcc 5 emitted a __multi3 function call when dealing with TI types, resulting in failures when trying to link to libgcc, and more generally, bad performance. However, since gcc 5, the compiler supports actually emitting fast instructions, which means we can at long last

[tip:perf/core] perf script: Allow creating per-event dump files

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: a14390fde64e862c4fe8b92ecb293ee4b12d5bfe Gitweb: https://git.kernel.org/tip/a14390fde64e862c4fe8b92ecb293ee4b12d5bfe Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 26 Oct 2017 10:30:20 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/core] perf script: Use event_format__fprintf()

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 894f3f1732cb4ae543d406e4fca1585e8c303a1c Gitweb: https://git.kernel.org/tip/894f3f1732cb4ae543d406e4fca1585e8c303a1c Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 26 Oct 2017 10:26:52 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/core] perf evsel: Restore evsel->priv as a tool private area

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: e669e833da8d71a02e175dfffceaabc3eb010207 Gitweb: https://git.kernel.org/tip/e669e833da8d71a02e175dfffceaabc3eb010207 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 26 Oct 2017 14:22:34 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/core] perf script: Print information about per-event-dump files

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 642ee1c6df4c8571d8a6846a2623fb54f925ef92 Gitweb: https://git.kernel.org/tip/642ee1c6df4c8571d8a6846a2623fb54f925ef92 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 30 Oct 2017 13:11:15 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

Re: [PATCH] crypto: tcrypt: mark expected switch fall-throughs in do_test()

2017-11-03 Thread Herbert Xu
On Mon, Oct 09, 2017 at 02:43:21PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Cc: Herbert Xu > Cc: "David S. Miller" > Cc:

Re: [PATCH] selftests: ftrace: add more config fragments

2017-11-03 Thread Shuah Khan
On 11/03/2017 07:13 AM, Steven Rostedt wrote: > On Fri, 3 Nov 2017 15:23:56 +0800 > lyang0 wrote: > > diff --git a/tools/testing/selftests/ftrace/config b/tools/testing/selftests/ftrace/config index 8a1c9f9..b01924c 100644 ---

[tip:perf/core] perf trace beauty: Implement pid_fd beautifier

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 0a2f7540abc08e32f89ff273506b6910794f Gitweb: https://git.kernel.org/tip/0a2f7540abc08e32f89ff273506b6910794f Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 31 Oct 2017 11:30:09 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

Re: [PATCH] mm,page_alloc: Update comment for last second allocation attempt.

2017-11-03 Thread Tetsuo Handa
Michal Hocko wrote: > On Fri 03-11-17 23:08:35, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > On Fri 03-11-17 22:46:29, Tetsuo Handa wrote: > > > [...] > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > > index c274960..547e9cb 100644 > > > > --- a/mm/page_alloc.c > > > > +++

Re: [PATCH] drivers/crypto: Convert timers to use timer_setup()

2017-11-03 Thread Herbert Xu
On Wed, Oct 25, 2017 at 03:18:42AM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Herbert Xu

Re: [PATCH 0/2] Fixes for the Atmel AES crypto module

2017-11-03 Thread Herbert Xu
On Tue, Oct 31, 2017 at 04:25:22PM +0100, Romain Izard wrote: > After encountering an issue with cts(cbc(aes)) in the Atmel AES module, > I have used tcrypt and libkcapi's test suite to validate my fix. This led > me to observe some other issues. > > This series includes the IV issue correction

[PATCH v4 04/20] firmware: arm_scmi: add common infrastructure and support for base protocol

2017-11-03 Thread Sudeep Holla
The base protocol describes the properties of the implementation and provide generic error management. The base protocol provides commands to describe protocol version, discover implementation specific attributes and vendor/sub-vendor identification, list of protocols implemented and the various

[PATCH v4 05/20] firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices

2017-11-03 Thread Sudeep Holla
The SCMI specification encompasses various protocols. However, not every protocol has to be present on a given platform/implementation as not every protocol is relevant for it. Furthermore, the platform chooses which protocols it exposes to a given agent. The only protocol that must be

[PATCH v4 01/20] dt-bindings: mailbox: add support for mailbox client shared memory

2017-11-03 Thread Sudeep Holla
Many users of the mailbox controllers depend on the shared memory between the two end points to exchange the main data while using simple doorbell mechanism to alert the end points of the presence of a message. This patch defines device tree bindings to represent such shared memory in a generic

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Josh Poimboeuf
On Fri, Nov 03, 2017 at 10:03:17AM -0400, Steven Rostedt wrote: > On Thu, 2 Nov 2017 17:33:33 +0100 > Jessica Yu wrote: > > > Improve error handling when arming ftrace-based kprobes. Specifically, if > > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() >

Re: [PATCH] soc: amlogic: gx pm domain: add PM and OF dependencies

2017-11-03 Thread Neil Armstrong
On 02/11/2017 23:42, Arnd Bergmann wrote: > The new driver introduces harmless warnings: > > warning: (PM_RMOBILE && ARCH_RCAR_GEN1 && ARCH_RCAR_GEN2 && ARCH_R7S72100 && > MESON_GX_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct > dependencies (PM) > warning: (MESON_GX_PM_DOMAINS)

Re: [PATCH 3/3] arm64: Add software workaround for Falkor erratum 1041

2017-11-03 Thread Robin Murphy
On 03/11/17 03:27, Shanker Donthineni wrote: > The ARM architecture defines the memory locations that are permitted > to be accessed as the result of a speculative instruction fetch from > an exception level for which all stages of translation are disabled. > Specifically, the core is permitted to

Re: sched/fair: Hard lockup from idle_balance()/task_numa_migrate() race

2017-11-03 Thread Ed Swierk
On Fri, Nov 3, 2017 at 8:03 AM, Linus Torvalds wrote: > I suspect that you'd get more responses if it was an upstream kernel > (and preferably newer), or even a distro one. > > If you run the grsec patches, you need to go to grsec to get support. > We don't even

Re: [PATCH v2] f2fs: fix out-of-free problem caused by atomic write

2017-11-03 Thread Chao Yu
On 2017/11/3 22:40, Yunlong Song wrote: > Test: > Newest kernel source code from f2fs-dev > 1G zram with f2fs > 8 threads to atomic write one same file on zram > there are four kinds of atomic write at the same time: > 1 no atomic start, with atomic commit > 2 no atomic start, no atomic commit > 3

[PATCH 3/3] mm: memcontrol: fix excessive complexity in memory.stat reporting

2017-11-03 Thread Johannes Weiner
We've seen memory.stat reads in top-level cgroups take up to fourteen seconds during a userspace bug that created tens of thousands of ghost cgroups pinned by lingering page cache. Even with a more reasonable number of cgroups, aggregating memory.stat is unnecessarily heavy. The complexity is

[PATCH 2/3] mm: memcontrol: implement lruvec stat functions on top of each other

2017-11-03 Thread Johannes Weiner
The implementation of the lruvec stat functions and their variants for accounting through a page, or accounting from a preemptible context, are mostly identical and needlessly repetitive. Implement the lruvec_page functions by looking up the page's lruvec and then using the lruvec function.

[PATCH 1/3] mm: memcontrol: eliminate raw access to stat and event counters

2017-11-03 Thread Johannes Weiner
Replace all raw 'this_cpu_' modifications of the stat and event per-cpu counters with API functions such as mod_memcg_state(). This makes the code easier to read, but is also in preparation for the next patch, which changes the per-cpu implementation of those counters. Signed-off-by: Johannes

Re: general protection fault in lo_ioctl

2017-11-03 Thread Dmitry Vyukov
On Fri, Nov 3, 2017 at 4:01 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > c52f56a69d104d5294af3d652776d94b1ef6a175 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler:

[PATCH V13 03/10] mmc: block: Add blk-mq support

2017-11-03 Thread Adrian Hunter
Define and use a blk-mq queue. Discards and flushes are processed synchronously, but reads and writes asynchronously. In order to support slow DMA unmapping, DMA unmapping is not done until after the next request is started. That means the request is not completed until then. If there is no next

[PATCH V13 08/10] mmc: block: blk-mq: Separate card polling from recovery

2017-11-03 Thread Adrian Hunter
Recovery is simpler to understand if it is only used for errors. Create a separate function for card polling. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git

[PATCH V13 10/10] mmc: block: blk-mq: Stop using legacy recovery

2017-11-03 Thread Adrian Hunter
There are only a few things the recovery needs to do. Primarily, it just needs to: Determine the number of bytes transferred Get the card back to transfer state Determine whether to retry There are also a couple of additional features: Reset the card before the

[PATCH V13 02/10] mmc: block: Add error-handling comments

2017-11-03 Thread Adrian Hunter
Add error-handling comments to explain what would also be done for blk-mq if it used the legacy error-handling. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff

Re: watchdog: f71808e_wdt: mark expected switch fall-throughs

2017-11-03 Thread Guenter Roeck
On Thu, Nov 02, 2017 at 02:28:17PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I replaced "Fall" with a proper > "fall through" comment, which is what GCC

[PATCH] Add support for ORISE OTM3225A LCD SoC

2017-11-03 Thread Felix Brack
This patch adds a LCD driver supporting the OTM3225A LCD SoC from ORISE Technology. This device can drive TFT LC panels having a resolution of 240x320 pixels. After initializing the OTM3225A using it's SPI interface it switches to use 16-bib RGB as external display interface. Signed-off-by: Felix

Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables

2017-11-03 Thread Will Deacon
On Thu, Nov 02, 2017 at 12:38:05PM -0700, Dave Hansen wrote: > On 11/02/2017 12:01 PM, Will Deacon wrote: > > On Tue, Oct 31, 2017 at 03:31:46PM -0700, Dave Hansen wrote: > >> KAISER makes it harder to defeat KASLR, but makes syscalls and > >> interrupts slower. These patches are based on work

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 13:00:05 +0100 Petr Mladek wrote: > On Thu 2017-09-28 17:43:55, Calvin Owens wrote: > > This patch introduces a new per-console loglevel setting, and changes > > console_unlock() to use max(global_level, per_console_level) when > > deciding whether or not to

[PATCH v4 03/17] PCI: designware-ep: Read-only registers need DBI_RO_WR_EN to be writable

2017-11-03 Thread Niklas Cassel
Certain registers that pcie-designware-ep tries to write to are read-only registers. However, these registers can become read/write if we first enable the DBI_RO_WR_EN bit. Set/unset the DBI_RO_WR_EN bit before/after writing these registers. Signed-off-by: Niklas Cassel

[PATCH v4 01/17] PCI: dwc: Use the DMA-API to get the MSI address

2017-11-03 Thread Niklas Cassel
Use the DMA-API to get the MSI address. This address will be written to our PCI config space and to the register which determines which AXI address the DWC IP will spoof for incoming MSI irqs. Since it is a PCIe endpoint device, rather than the CPU, that is supposed to write to the MSI address,

[PATCH v4 02/17] PCI: designware-ep: dw_pcie_ep_set_msi() should only set MMC bits

2017-11-03 Thread Niklas Cassel
Previously, dw_pcie_ep_set_msi() wrote all bits in the Message Control register, thus overwriting the PCI_MSI_FLAGS_64BIT bit. By clearing the PCI_MSI_FLAGS_64BIT bit, we break MSI on systems where the RC has set a 64 bit MSI address. Fix dw_pcie_ep_set_msi() so that it only sets MMC bits.

[PATCH v4 04/17] PCI: designware-ep: Pre-allocate memory for MSI in dw_pcie_ep_init

2017-11-03 Thread Niklas Cassel
Certain SoCs need to map the MSI address in raise_irq. To map an address, you first need to call pci_epc_mem_alloc_addr(), however, pci_epc_mem_alloc_addr() calls ioremap() (which can sleep). Since raise_irq is only called from atomic context, we can't call pci_epc_mem_alloc_addr() from

[PATCH 07/19] perf trace beauty prctl: Generate 'option' string table from kernel headers

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This is one more case where the way that syscall parameter values are defined in kernel headers are easy to parse using a shell script that will then generate the string table that gets used by the prctl 'option' argument beautifier. This way as

[PATCH 04/19] perf evsel: Restore evsel->priv as a tool private area

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we started using it for stats and did it not just in builtin-stat.c, but also for builtin-script.c, then it stopped being a tool private area, so introduce a new pointer for these stats and leave ->priv to its original purpose. Cc: Adrian

Re: [PATCH RFC 4/4] i2c: at91: take slave mode capabilities of hardware into account

2017-11-03 Thread Juergen Fitschen
Hello Ludovic, On Fri, Nov 03, 2017 at 09:46:02AM +0100, Ludovic Desroches wrote: > > > > diff --git a/drivers/i2c/busses/i2c-at91.h > > > > b/drivers/i2c/busses/i2c-at91.h > > > > index bb502c1..4a4fa67 100644 > > > > --- a/drivers/i2c/busses/i2c-at91.h > > > > +++

[PATCH] kernel debug: fix building without modules

2017-11-03 Thread Arnd Bergmann
The new generic_bug_clear_once() function fails to build when modules are disabled: lib/bug.c: In function 'generic_bug_clear_once': lib/bug.c:213:32: error: 'module_bug_list' undeclared (first use in this function); did you mean 'module_sig_ok'? list_for_each_entry_rcu(mod, _bug_list,

Re: [PATCH] exynos: drm: use monotonic timestamps

2017-11-03 Thread Tobias Jakobi
Hello Arnd, I guess you could coordinate the IPP changes with Marek, who is rewriting the IPP subsystem anyway (added Marek to Cc). Here is the most recent IPPv2 series: https://www.spinics.net/lists/linux-samsung-soc/msg61066.html Concerning the G2D changes, I don't think anything in userspace

Re: [PATCH] staging: comedi: usbduxsigma: Improve unlocking of a mutex in three functions

2017-11-03 Thread Ian Abbott
On 02/11/17 20:23, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 2 Nov 2017 21:16:50 +0100 * Add a jump target so that a call of the function "mutex_unlock" is stored only twice in these function implementations. * Replace seven calls by goto

RE: [PATCH v6 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board

2017-11-03 Thread Miodrag Dinic
Hi Paul, > > We can not remove the forward declaration because we need to define > > __mips_mach_ranchu (which is done by MIPS_MACHINE(ranchu)) before > > ranchu_of_match. > > Why? Why do you need to set the struct of_device_id data field? The generic > code only provides the match data to the

Re: [PATCH] selftests: lib.mk: print individual test results to console by default

2017-11-03 Thread Shuah Khan
On 11/02/2017 08:35 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Change run_tests to print individual test results to console by default. >> Introduce "summary" option to print individual test results to a file >> /tmp/test_name and just print the summary to the

[PATCH] rtlwifi: remove redundant pointer tid_data

2017-11-03 Thread Colin King
From: Colin Ian King tid_data is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/net/wireless/realtek/rtlwifi/base.c:1581:2: warning: Value stored to 'tid_data' is never read Signed-off-by: Colin Ian King

[tip:perf/core] perf script: Add a few missing conversions to fprintf style

2017-11-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 69c71252298acad7a25e9499929f723790f48e26 Gitweb: https://git.kernel.org/tip/69c71252298acad7a25e9499929f723790f48e26 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 26 Oct 2017 09:51:13 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

Re: [PATCH v1 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Pavel Tatashin
> Why cannot we do something similar to the optimized struct page > initialization and write 8B at the time and fill up the size unaligned > chunk in 1B? I do not think this is a good idea: memset() on SPARC is slow for small sizes, this is why we ended up using stores, but thats not the case on

[PATCH] tty: fix tty_ldisc_receive_buf() documentation

2017-11-03 Thread Johan Hovold
The tty_ldisc_receive_buf() helper returns the number of bytes processed so drop the bogus "not" from the kernel doc comment. Fixes: 8d082cd300ab ("tty: Unify receive_buf() code paths") Signed-off-by: Johan Hovold --- drivers/tty/tty_buffer.c | 2 +- 1 file changed, 1

Re: [PATCH v3 14/17] PCI: dwc: artpec6: Add support for endpoint mode

2017-11-03 Thread Niklas Cassel
On 11/03/2017 11:23 AM, Arnd Bergmann wrote: > On Fri, Nov 3, 2017 at 10:56 AM, Niklas Cassel wrote: >> On 11/02/2017 10:13 AM, Arnd Bergmann wrote: > What I meant is that you can remove the #ifdef entirely if you add > > if

[tip:perf/core] perf tools: Rename struct perf_data_file to perf_data

2017-11-03 Thread tip-bot for Jiri Olsa
Commit-ID: 8ceb41d7e305f186543c58178d2e1fe34f708948 Gitweb: https://git.kernel.org/tip/8ceb41d7e305f186543c58178d2e1fe34f708948 Author: Jiri Olsa AuthorDate: Mon, 23 Jan 2017 22:07:59 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 30 Oct

[tip:perf/core] perf stat: Move the shadow stats scale computation in perf_stat__update_shadow_stats

2017-11-03 Thread tip-bot for Jiri Olsa
Commit-ID: 54830dd0c342525de2ff10f8be7cf0a9f062b896 Gitweb: https://git.kernel.org/tip/54830dd0c342525de2ff10f8be7cf0a9f062b896 Author: Jiri Olsa AuthorDate: Mon, 23 Jan 2017 22:42:56 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 30 Oct

Re: [PATCH] crypto: vmx - Use skcipher for ctr fallback

2017-11-03 Thread Herbert Xu
On Mon, Oct 16, 2017 at 08:54:19PM -0200, Paulo Flabiano Smorigo wrote: > Signed-off-by: Paulo Flabiano Smorigo Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: 答复: [PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-11-03 Thread gre...@linuxfoundation.org
On Fri, Nov 03, 2017 at 10:48:04AM +, taoyuhong wrote: > Hi Alan > > Serial tty oops on real arm computer. > > That is Hikey960 board, with 8 cortex-a57 cpus and pl011 serial hardware. > Debian8 is pre-installed, and I replaced the kernel with linux-stable 4.13.10. > > It is very easy to

[PATCH v4 18/20] hwmon: add support for sensors exported via ARM SCMI

2017-11-03 Thread Sudeep Holla
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Management Interface (SCMI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via

[PATCH v4 16/20] clk: add support for clocks provided by SCMI

2017-11-03 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control. System Control and Management Interface(SCMI) Message Protocol is defined for the communication between the Application Cores(AP) and the SCP. This patch

Re: [PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Keith Busch
On Fri, Nov 03, 2017 at 01:53:40PM +0100, Christoph Hellwig wrote: > > - if (ns && ns->ms && > > + if (ns->ms && > > (!ns->pi_type || ns->ms != sizeof(struct t10_pi_tuple)) && > > !blk_integrity_rq(req) && !blk_rq_is_passthrough(req)) > > return BLK_STS_NOTSUPP; >

Re: [PATCH] scsi: hisi_sas: select CONFIG_RAS

2017-11-03 Thread Martin K. Petersen
John, > Actually this interface is intended for logging UEFI CPER non-standard > records from kernel RAS/APEI framework to userspace. It is not intended > for kernel peripheral driver logging (like this case). Until we get a > community concensus on whether this is acceptable, I would rather

[PATCH v3 1/2] main: kernel_start: move housekeeping_init() before workqueue_init_early()

2017-11-03 Thread Tal Shorer
This is needed in order to allow the unbound workqueue to take housekeeping cpus into accounty Signed-off-by: Tal Shorer --- init/main.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 4610c99..af6ecd0 100644 ---

Re: [PATCH v12 08/11] arm64/kasan: add and use kasan_map_populate()

2017-11-03 Thread Andrey Ryabinin
On 10/18/2017 08:23 PM, Pavel Tatashin wrote: > Hi Andrew and Michal, > > There are a few changes I need to do to my series: > > 1. Replace these two patches: > > arm64/kasan: add and use kasan_map_populate() > x86/kasan: add and use kasan_map_populate() > > With: > > x86/mm/kasan: don't

Re: [PATCH v12 08/11] arm64/kasan: add and use kasan_map_populate()

2017-11-03 Thread Pavel Tatashin
1. Replace these two patches: arm64/kasan: add and use kasan_map_populate() x86/kasan: add and use kasan_map_populate() With: x86/mm/kasan: don't use vmemmap_populate() to initialize  shadow arm64/mm/kasan: don't use vmemmap_populate() to initialize  shadow Pavel, could you please send

Re: [PATCH net-next 0/6] net: hns3: support set_link_ksettings and for nway_reset ethtool command

2017-11-03 Thread Andrew Lunn
On Fri, Nov 03, 2017 at 12:18:24PM +0800, Lipeng wrote: > This patch-set adds support for set_link_ksettings && for nway_resets > ethtool command and fixes some related ethtool bugs. > 1, patch[4/6] adds support for ethtool_ops.set_link_ksettings. > 2, patch[5/6] adds support ethtool_ops.for

Re: [PATCH 3/6] hugetlb: expose hugetlbfs_inode_info in header

2017-11-03 Thread Marc-André Lureau
Hi - Original Message - > On 10/31/2017 11:40 AM, Marc-André Lureau wrote: > > The following patch is going to access hugetlbfs_inode_info field from > > mm/shmem.c. > > The code looks fine. However, I would prefer something different for the > commit message. Perhaps something like: >

Re: [PATCH 00/13] mpt3sas driver NVMe support:

2017-11-03 Thread Martin K. Petersen
Suganath, > Ventura Series controller are Tri-mode. The controller and firmware > are capable of supporting NVMe devices and PCIe switches to be > connected with the controller. This patch set adds driver level > support for NVMe devices and PCIe switches. Applied to 4.15/scsi-queue. Thanks!

Re: Manual unbind of ATA devices causes use-after-free

2017-11-03 Thread Taras Kondratiuk
Quoting Tejun Heo (2017-11-03 06:19:37) > Hello, > > On Wed, Nov 01, 2017 at 04:24:47PM -0700, Taras Kondratiuk wrote: > > Manual unbind/remove unconditionally invokes devres_release_all which > > calls ata_host_release() and frees ata_host/ata_port memory while it is > > still being referenced

[PATCH 2/2] ARM: dts: exynos: Add sound support for Odroid XU4

2017-11-03 Thread Sylwester Nawrocki
This patch adds support for Odroid XU4 audio. The main difference comparing to Odroid XU3 is a missing on-board audio CODEC, only HDMI output is supported on Odroid XU4. External CODEC could be optionally connected to the I2S port connector. Signed-off-by: Sylwester Nawrocki

Re: [PATCH 1/2] bpf: add a bpf_override_function helper

2017-11-03 Thread Daniel Borkmann
On 11/03/2017 03:31 PM, Josef Bacik wrote: On Fri, Nov 03, 2017 at 12:12:13AM +0100, Daniel Borkmann wrote: Hi Josef, one more issue I just noticed, see comment below: On 11/02/2017 03:37 PM, Josef Bacik wrote: [...] diff --git a/include/linux/filter.h b/include/linux/filter.h index

[PATCH] mISDN: l1oip_core: replace _manual_ swap with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variables skb and cnt. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/isdn/mISDN/l1oip_core.c | 10 ++ 1 file

Re: [PATCH v2] USB: add SPDX identifiers to all remaining files in drivers/usb/

2017-11-03 Thread Johan Hovold
On Fri, Nov 03, 2017 at 11:28:30AM +0100, Greg Kroah-Hartman wrote: > It's good to have SPDX identifiers in all files to make it easier to > audit the kernel tree for correct licenses. > > Update the drivers/usb/ and include/linux/usb* files with the correct > SPDX license identifier based on the

[PATCH] crypto: chcr - Replace _manual_ swap with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable temp. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/chelsio/chcr_algo.c | 5 + 1 file changed, 1

Re: [PATCH 00/35] perf annotate: Use generic annotation line

2017-11-03 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 02, 2017 at 01:16:32PM +0100, Jiri Olsa escreveu: > On Wed, Oct 11, 2017 at 05:01:23PM +0200, Jiri Olsa wrote: > > hi, > > I'm working on script profiling support and came up > > with some generic annotation code changes, which IMO > > make the code simpler and more generic. > > > >

[PATCH v3] xen: support priv-mapping in an HVM tools domain

2017-11-03 Thread Paul Durrant
If the domain has XENFEAT_auto_translated_physmap then use of the PV- specific HYPERVISOR_mmu_update hypercall is clearly incorrect. This patch adds checks in xen_remap_domain_gfn_array() and xen_unmap_domain_gfn_array() which call through to the approprate xlate_mmu function if the feature is

[PATCH v16 07/13] Add task isolation hooks to arch-independent code

2017-11-03 Thread Chris Metcalf
This commit adds task isolation hooks as follows: - __handle_domain_irq() generates an isolation warning for the local task - irq_work_queue_on() generates an isolation warning for the remote task being interrupted for irq_work - generic_exec_single() generates a remote isolation warning

Re: [PATCH v16 12/13] arm, tile: turn off timer tick for oneshot_stopped state

2017-11-03 Thread Mark Rutland
Hi Chris, On Fri, Nov 03, 2017 at 01:04:51PM -0400, Chris Metcalf wrote: > diff --git a/drivers/clocksource/arm_arch_timer.c > b/drivers/clocksource/arm_arch_timer.c > index fd4b7f684bd0..61ea7f907c56 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++

Re: [PATCH v16 12/13] arm, tile: turn off timer tick for oneshot_stopped state

2017-11-03 Thread Chris Metcalf
On 11/3/2017 1:18 PM, Mark Rutland wrote: Hi Chris, On Fri, Nov 03, 2017 at 01:04:51PM -0400, Chris Metcalf wrote: diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index fd4b7f684bd0..61ea7f907c56 100644 --- a/drivers/clocksource/arm_arch_timer.c +++

Re: [PATCH v3] cpufreq: schedutil: Examine the correct CPU when we update util

2017-11-03 Thread Viresh Kumar
On 03-11-17, 13:36, Chris Redpath wrote: > After > 674e75411fc2 ("sched: cpufreq: Allow remote cpufreq callbacks") > > We stopped always reading utilization for the cpu we are running > the governor on, and instead read it for the cpu which we've been > told has updated utilization. This is

[PATCH] Add delay-init quirk for Corsair K70 LUX keyboards

2017-11-03 Thread Bernhard Rosenkraenzer
Without this patch, K70 LUX keyboards don't work, saying usb 3-3: unable to read config index 0 descriptor/all usb 3-3: can't read configurations, error -110 usb usb3-port3: unable to enumerate USB device Signed-off-by: Bernhard Rosenkraenzer ---

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