Re: [PATCH 4/4] aio: allow direct aio poll comletions for keyed wakeups

2018-08-06 Thread Andrew Morton
On Mon, 6 Aug 2018 10:30:58 +0200 Christoph Hellwig wrote: > If we get a keyed wakeup for a aio poll waitqueue and wake can acquire the > ctx_lock without spinning we can just complete the iocb straight from the > wakeup callback to avoid a context switch. Why do we try to avoid spinning on the

Re: [PATCH] Input: raydium_i2c_ts - use true and false for boolean values

2018-08-06 Thread Dmitry Torokhov
On Sat, Aug 04, 2018 at 07:34:06PM -0500, Gustavo A. R. Silva wrote: > Return statements in functions returning bool should use true or false > instead of an integer value. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Applied, thank you. > ---

Re: [RFC v6 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-08-06 Thread Yang Shi
On 8/6/18 1:52 PM, Michal Hocko wrote: On Mon 06-08-18 13:48:35, Yang Shi wrote: On 8/6/18 1:41 PM, Michal Hocko wrote: On Mon 06-08-18 09:46:30, Yang Shi wrote: On 8/6/18 2:40 AM, Michal Hocko wrote: On Fri 03-08-18 14:01:58, Yang Shi wrote: On 8/3/18 2:07 AM, Michal Hocko wrote: On Fr

[PATCH] Input: do not use WARN() in input_alloc_absinfo()

2018-08-06 Thread Dmitry Torokhov
Some of fuzzers set panic_on_warn=1 so that they can handle WARN()ings the same way they handle full-blown kernel crashes. We used WARN() in input_alloc_absinfo() to get a better idea where memory allocation failed, but since then kmalloc() and friends started dumping call stack on memory allocatio

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Chanwoo Choi
Hi Matthias, On 2018년 08월 07일 03:46, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Fri, Aug 03, 2018 at 08:56:57AM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> On 2018년 08월 03일 08:13, Matthias Kaehlcke wrote: >>> Hi Chanwoo, >>> >>> On Thu, Aug 02, 2018 at 10:58:59AM +0900, Chanwoo Choi wrote

Re: [PATCH] Revert "cpufreq: intel_pstate: Fix ->set_policy() interface for no_turbo"

2018-08-06 Thread Srinivas Pandruvada
On Mon, 2018-08-06 at 23:50 +0200, Gabriele Mazzotta wrote: > On 06/08/2018 18:49, Srinivas Pandruvada wrote: > > On Mon, 2018-08-06 at 10:30 +0200, Rafael J. Wysocki wrote: > > > On Sat, Aug 4, 2018 at 7:31 PM, Gabriele Mazzotta > > > wrote: > > > > On 04/08/2018 17:29, Gabriele Mazzotta wrote: >

Re: [PATCH 0/2] x86/intel_rdt and perf/x86: Fix lack of coordination with perf

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 12:50:50PM -0700, Reinette Chatre wrote: > In my previous email I provided the details of the Cache Pseudo-Locking > feature implemented on top of resctrl. Please let me know if you would > like any more details about that. I can send you more materials. I've no yet had tim

Re: linux-next: Signed-off-by missing for commit in the kvm tree

2018-08-06 Thread Paolo Bonzini
On 06/08/2018 23:39, Stephen Rothwell wrote: > Hi all, > > Commit > > 81781b6884bd ("KVM/x86: Use CC_SET()/CC_OUT in arch/x86/kvm/vmx.c") > > is missing a Signed-off-by from its committer. > Fixed at the same time as resolving the conflicts. Paolo signature.asc Description: OpenPGP digit

Re: [PATCH] Revert "cpufreq: intel_pstate: Fix ->set_policy() interface for no_turbo"

2018-08-06 Thread Gabriele Mazzotta
On 06/08/2018 18:49, Srinivas Pandruvada wrote: > On Mon, 2018-08-06 at 10:30 +0200, Rafael J. Wysocki wrote: >> On Sat, Aug 4, 2018 at 7:31 PM, Gabriele Mazzotta >> wrote: >>> On 04/08/2018 17:29, Gabriele Mazzotta wrote: This change does not take into account that some BIOSes change MS

Re: WARNING in try_charge

2018-08-06 Thread Tetsuo Handa
On 2018/08/07 5:55, Michal Hocko wrote: > On Tue 07-08-18 05:46:04, Tetsuo Handa wrote: >> On 2018/08/07 5:34, Michal Hocko wrote: >>> On Tue 07-08-18 05:26:23, Tetsuo Handa wrote: On 2018/08/07 2:56, Michal Hocko wrote: > So the oom victim indeed passed the above force path after the oom

Re: linux-next: manual merge of the rdma tree with Linus' tree

2018-08-06 Thread Stephen Rothwell
Hi Jason, On Mon, 6 Aug 2018 13:41:42 -0600 Jason Gunthorpe wrote: > > The resolution should end up like this: > > srcu_key = srcu_read_lock(&file->device->disassociate_srcu); > > if (!verify_command_mask(file, command, extended)) { > ret = -EOPNOTSUPP; >

Re: [PATCH 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 02:33:23PM -0700, Andi Kleen wrote: > On Mon, Aug 06, 2018 at 08:35:15PM +0200, Peter Zijlstra wrote: > > > +static bool disable_counter_freezing; > > > +module_param(disable_counter_freezing, bool, 0444); > > > +MODULE_PARM_DESC(disable_counter_freezing, "Disable counter fr

Re: linux-next: Signed-off-by missing for commit in the rockchip tree

2018-08-06 Thread Heiko Stuebner
Hi Stephen, Am Montag, 6. August 2018, 23:29:16 CEST schrieb Stephen Rothwell: > Hi Heiko, > > Commit > > 508fc689cfe5 ("clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in > rk3399") > > is missing a Signed-off-by from its committer. thanks for noticing this mistake. I've fixed the

Re: [PATCH] x86/PCI: Claim the resources of firmware enabled IOAPIC before children bus

2018-08-06 Thread Bjorn Helgaas
On Tue, Jul 24, 2018 at 07:01:44PM +0800, Lee, Chun-Yi wrote: > I got a machine that the resource of firmware enabled IOAPIC conflicts > with the resource of a children bus when the PCI host bus be hotplug. > > [ 3182.243325] PCI host bridge to bus 0001:40 > [ 3182.243328] pci_bus 0001:40: root bu

Re: [PATCH v2 1/3] mm: introduce mem_cgroup_put() helper

2018-08-06 Thread David Rientjes
On Wed, 1 Aug 2018, Roman Gushchin wrote: > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > Link: http://lkml.kernel.org/r/20180623000600.5818-2-g...@fb.com > Signed-off-by: Roman Gushchin > Reviewed-

linux-next: Signed-off-by missing for commit in the kvm tree

2018-08-06 Thread Stephen Rothwell
Hi all, Commit 81781b6884bd ("KVM/x86: Use CC_SET()/CC_OUT in arch/x86/kvm/vmx.c") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpAZzRGqZSEm.pgp Description: OpenPGP digital signature

Re: [LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d

2018-08-06 Thread David Rientjes
On Mon, 6 Aug 2018, 禹舟键 wrote: > Hi Michal > Sorry, I cannot open the link you shared. > The suggestion atop your previous patch was diff --git a/mm/oom_kill.c b/mm/oom_kill.c --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -438,14 +438,6 @@ static void dump_header(struct oom_control *oc, struct ta

Re: [PATCH 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-08-06 Thread Andi Kleen
On Mon, Aug 06, 2018 at 08:35:15PM +0200, Peter Zijlstra wrote: > > +static bool disable_counter_freezing; > > +module_param(disable_counter_freezing, bool, 0444); > > +MODULE_PARM_DESC(disable_counter_freezing, "Disable counter freezing > > feature." > > + "The PMI handler will fall bac

Re: [PATCH 0/3] introduce memory.oom.group

2018-08-06 Thread David Rientjes
On Wed, 1 Aug 2018, Roman Gushchin wrote: > Ok, I think that what we'll do here: > 1) drop the current cgroup-aware OOM killer implementation from the mm tree > 2) land memory.oom.group to the mm tree (your ack will be appreciated) > 3) discuss and, hopefully, agree on memory.oom.policy interface

Re: [tip:x86/urgent] x86/irqflags: Provide a declaration for native_save_fl

2018-08-06 Thread Nick Desaulniers
On Sun, Aug 5, 2018 at 1:33 PM tip-bot for Nick Desaulniers wrote: > > Commit-ID: 208cbb32558907f68b3b2a081ca2337ac3744794 > Gitweb: > https://git.kernel.org/tip/208cbb32558907f68b3b2a081ca2337ac3744794 > Author: Nick Desaulniers > AuthorDate: Fri, 3 Aug 2018 10:05:50 -0700 > Committer:

linux-next: Signed-off-by missing for commit in the rockchip tree

2018-08-06 Thread Stephen Rothwell
Hi Heiko, Commit 508fc689cfe5 ("clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in rk3399") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpcjiIhnpBqB.pgp Description: OpenPGP digital signature

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-08-06 Thread Fubo Chen
On Mon, Aug 6, 2018 at 11:04 AM Peter Zijlstra wrote: > On Mon, Aug 06, 2018 at 09:54:23AM -0700, Fubo Chen wrote: > > On Mon, Aug 6, 2018 at 8:42 AM Peter Zijlstra wrote: > > > On Mon, Aug 06, 2018 at 08:35:07AM -0700, Fubo Chen wrote: > > > > On Thu, Jul 19, 2018 at 2:21 PM Peter Zijlstra > >

Re: [PATCH] spi-nor: add support for is25wp256d

2018-08-06 Thread Marek Vasut
On 08/06/2018 10:58 PM, Palmer Dabbelt wrote: > On Sat, 04 Aug 2018 02:27:54 PDT (-0700), marek.va...@gmail.com wrote: >> On 08/04/2018 03:49 AM, Palmer Dabbelt wrote: >>> From: "Wesley W. Terpstra" >>> >>> This is used of the HiFive Unleashed development board. >>> >>> Signed-off-by: Wesley W. Te

Re: [PATCH 3/3] PCI/portdrv: Add support for sharing xilinx controller irq with AER

2018-08-06 Thread Sinan Kaya
On 8/6/2018 4:56 PM, Bjorn Helgaas wrote: I remember seeing a similar patch before. Are you thinking of [1]? yup.

[PATCH v3 RESEND 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-06 Thread Tadeusz Struk
Add a ptr to struct tpm_space to the file_priv to have an easy access to it in the async job without the need to allocate memory. This also allows to consolidate of the write operations for the two interfaces. Tested-by: Philip Tricca Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm-dev-co

[PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-06 Thread Tadeusz Struk
Currently the TPM driver only supports blocking calls, which doesn't allow asynchronous IO operations to the TPM hardware. This patch changes it and adds support for nonblocking write and a new poll function to enable applications, which want to take advantage of this. Tested-by: Philip Tricca Si

[PATCH v3 RESEND 0/2] tpm: add support for nonblocking operation

2018-08-06 Thread Tadeusz Struk
The TCG SAPI specification [1] defines a set of functions, which allow applications to use the TPM device in either blocking or non-blocking fashion. Each command defined by the specification has a corresponding Tss2_Sys__Prepare() and Tss2_Sys__Complete() call, which together with Tss2_Sys_Execute

Re: [PATCH] vfs: fix statfs64() returning impossible EOVERFLOW for 64-bit f_files

2018-08-06 Thread Al Viro
On Mon, Aug 06, 2018 at 11:45:29AM -0700, Linus Torvalds wrote: > On Mon, Aug 6, 2018 at 10:06 AM Al Viro wrote: > > > > That leaves us with f_bsize and f_frsize (the latter defaulting to the > > former). > > Hugetlbfs can put greater than 4Gb values in there, for really huge pages. > > And that'

Re: [PATCH 2/3] PCI: Use dedicated Xilinx controller irq number for AER

2018-08-06 Thread Bjorn Helgaas
On Wed, Aug 01, 2018 at 10:14:48PM +0530, Bharat Kumar Gogada wrote: > Xilinx ZynqMP PS PCIe does not report AER interrupts using Advanced > Error Interrupt Message Number. The controller has dedicated interrupt line > for reporting PCIe errors along with AER. > > Using pci_dev->sysdata of root po

Re: [PATCH v1 1/2] pinctrl: tegra: Move drivers registration to arch_init level

2018-08-06 Thread Stefan Agner
On 06.08.2018 15:38, Dmitry Osipenko wrote: > On Monday, 6 August 2018 16:03:01 MSK Stefan Agner wrote: >> On 04.08.2018 16:01, Dmitry Osipenko wrote: >> > On Friday, 3 August 2018 20:24:56 MSK Linus Walleij wrote: >> >> On Thu, Aug 2, 2018 at 1:31 PM Stefan Agner wrote: >> >> > A while back at le

Re: [PATCH v2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-06 Thread Randy Dunlap
On 08/06/2018 01:42 PM, Palmer Dabbelt wrote: > This file is expected to be included multiple times in the same file in > order to allow the __SYSCALL macro to generate system call tables. With > a global include guard we end up missing __NR_riscv_flush_icache in the > syscall table, which results

Re: [PATCH 03/11] dt-bindings: interrupt-controller: RISC-V PLIC documentation

2018-08-06 Thread Rob Herring
On Thu, Aug 2, 2018 at 4:08 PM Atish Patra wrote: > > On 8/2/18 4:50 AM, Christoph Hellwig wrote: > > From: Palmer Dabbelt > > > > This patch adds documentation for the platform-level interrupt > > controller (PLIC) found in all RISC-V systems. This interrupt > > controller routes interrupts fro

[PATCH v2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-06 Thread Palmer Dabbelt
This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include guard we end up missing __NR_riscv_flush_icache in the syscall table, which results in icache flushes that escape the vDSO call to not ac

Re: [PATCH] spi-nor: add support for is25wp256d

2018-08-06 Thread Palmer Dabbelt
On Sat, 04 Aug 2018 02:27:54 PDT (-0700), marek.va...@gmail.com wrote: On 08/04/2018 03:49 AM, Palmer Dabbelt wrote: From: "Wesley W. Terpstra" This is used of the HiFive Unleashed development board. Signed-off-by: Wesley W. Terpstra Signed-off-by: Palmer Dabbelt --- drivers/mtd/spi-nor/sp

Re: RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-06 Thread Palmer Dabbelt
On Sat, 04 Aug 2018 01:54:38 PDT (-0700), Christoph Hellwig wrote: >> index 818655b0d535..882a6aa09a33 100644 >> --- a/arch/riscv/include/uapi/asm/syscalls.h >> +++ b/arch/riscv/include/uapi/asm/syscalls.h >> @@ -1,10 +1,11 @@ >> -/* SPDX-License-Identifier: GPL-2.0 */ >> +// SPDX-License-Identifie

Re: [PATCH 3/3] PCI/portdrv: Add support for sharing xilinx controller irq with AER

2018-08-06 Thread Bjorn Helgaas
On Wed, Aug 01, 2018 at 11:05:09AM -0700, Sinan Kaya wrote: > On 8/1/2018 9:44 AM, Bharat Kumar Gogada wrote: > > Xilinx ZynqMP PS PCIe does not report AER interrupts using Advanced > > Error Interrupt Message Number. The controller has dedicated interrupt line > > for reporting PCIe errors along w

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Tue 07-08-18 05:46:04, Tetsuo Handa wrote: > On 2018/08/07 5:34, Michal Hocko wrote: > > On Tue 07-08-18 05:26:23, Tetsuo Handa wrote: > >> On 2018/08/07 2:56, Michal Hocko wrote: > >>> So the oom victim indeed passed the above force path after the oom > >>> invocation. But later on hit the page

Re: [PATCH v7 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-08-06 Thread skannan
On 2018-08-03 16:46, Stephen Boyd wrote: Quoting Taniya Das (2018-07-24 03:42:49) diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt new file mode 100644 index 000..22d4355 --- /dev/null +++ b/Documenta

Re: [PATCH 0/3] Kbuild: fix and clean-up arch/um/Makefile

2018-08-06 Thread Richard Weinberger
Am Samstag, 4. August 2018, 06:47:00 CEST schrieb Masahiro Yamada: > > 1/3 fixes the build failure reported by Randy. > (I may have seen a similar report before, but I cannot recall it.) > > 2/3 and 3/3 clean-up the Makefile a bit more. > > I'd like to apply this series to kbuild tree. > Ack fro

Re: [PATCH] platform/x86: acer-wmi: refactor function has_cap

2018-08-06 Thread Gustavo A. R. Silva
On 8/6/18 3:16 PM, Andy Shevchenko wrote: > On Mon, Aug 6, 2018 at 11:00 PM, Gustavo A. R. Silva > wrote: >> Refactor function has_cap in order to avoid returning integer >> values, when instead it should return booleans. >> >> This code was detected with the help of Coccinelle. >> >> Signed-of

Re: [RFC v6 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 13:48:35, Yang Shi wrote: > > > On 8/6/18 1:41 PM, Michal Hocko wrote: > > On Mon 06-08-18 09:46:30, Yang Shi wrote: > > > > > > On 8/6/18 2:40 AM, Michal Hocko wrote: > > > > On Fri 03-08-18 14:01:58, Yang Shi wrote: > > > > > On 8/3/18 2:07 AM, Michal Hocko wrote: > > > > > > O

Re: [RFC v6 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-08-06 Thread Yang Shi
On 8/6/18 1:41 PM, Michal Hocko wrote: On Mon 06-08-18 09:46:30, Yang Shi wrote: On 8/6/18 2:40 AM, Michal Hocko wrote: On Fri 03-08-18 14:01:58, Yang Shi wrote: On 8/3/18 2:07 AM, Michal Hocko wrote: On Fri 27-07-18 02:10:14, Yang Shi wrote: [...] If the vma has VM_LOCKED | VM_HUGETLB

Re: WARNING in try_charge

2018-08-06 Thread Tetsuo Handa
On 2018/08/07 5:34, Michal Hocko wrote: > On Tue 07-08-18 05:26:23, Tetsuo Handa wrote: >> On 2018/08/07 2:56, Michal Hocko wrote: >>> So the oom victim indeed passed the above force path after the oom >>> invocation. But later on hit the page fault path and that behaved >>> differently and for som

Re: [PATCH v7 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-08-06 Thread skannan
On 2018-08-03 15:24, Stephen Boyd wrote: Quoting skan...@codeaurora.org (2018-08-03 12:52:48) On 2018-08-03 12:40, Evan Green wrote: > Hi Taniya, > > On Tue, Jul 24, 2018 at 3:44 AM Taniya Das wrote: >> >> + if (src) >> + c->table[i].frequency = c->xo_rate *

Re: [RFC v6 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 09:46:30, Yang Shi wrote: > > > On 8/6/18 2:40 AM, Michal Hocko wrote: > > On Fri 03-08-18 14:01:58, Yang Shi wrote: > > > > > > On 8/3/18 2:07 AM, Michal Hocko wrote: > > > > On Fri 27-07-18 02:10:14, Yang Shi wrote: [...] > > > > > If the vma has VM_LOCKED | VM_HUGETLB | VM_PFN

Re: [PATCH net-next] tcp: fix the calculation of sysctl_max_tw_buckets in tcp_sk_init()

2018-08-06 Thread David Miller
From: Yafang Shao Date: Mon, 6 Aug 2018 19:47:00 +0800 > tcp_hashinfo.ehash_mask is always an odd number, which is set in function > alloc_large_system_hash(). See bellow, > if (_hash_mask) > *_hash_mask = (1 << log2qty) - 1; <<< always odd number > > Hence the local variabl

[PATCH v2] platform/x86: acer-wmi: refactor function has_cap

2018-08-06 Thread Gustavo A. R. Silva
Refactor function has_cap in order to avoid returning integer values, when instead it should return booleans. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Remove parentheses and unnecessary code. Thank you all for the f

Re: [PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-06 Thread Rob Herring
On Fri, Aug 3, 2018 at 8:10 AM Sricharan R wrote: > > Add a new board dts for ipq8064-ap161. > > Signed-off-by: Sricharan R > --- > Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/qcom-ipq8064-ap161.dts | 7

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-06 Thread Michael S. Tsirkin
On Tue, Aug 07, 2018 at 05:56:59AM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2018-08-06 at 16:46 +0300, Michael S. Tsirkin wrote: > > > > > Right, we'll need some quirk to disable balloons in the guest I > > > suppose. > > > > > > Passing something from libvirt is cumbersome because the end

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Tue 07-08-18 05:26:23, Tetsuo Handa wrote: > On 2018/08/07 2:56, Michal Hocko wrote: > > So the oom victim indeed passed the above force path after the oom > > invocation. But later on hit the page fault path and that behaved > > differently and for some reason the force path hasn't triggered. I

Re: [PATCH 09/11] RISC-V: Support per-hart timebase-frequency

2018-08-06 Thread Palmer Dabbelt
On Fri, 03 Aug 2018 05:33:57 PDT (-0700), Christoph Hellwig wrote: On Thu, Aug 02, 2018 at 03:19:49PM -0700, Atish Patra wrote: On 8/2/18 4:50 AM, Christoph Hellwig wrote: From: Palmer Dabbelt Follow the updated DT specs and read the timebase-frequency from the CPU 0 node. However, the DT

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Mikulas Patocka
On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > > Unfortunatelly, it doesn't work. I verified that the bit is set after > > booting Linux, but the memcpy corruption was still present. > > > > I also tried the other chicken bits, it slowed down the system noticeably, > > but had no effect on the mem

Re: [PATCH 7/8] irqchip: add a SiFive PLIC driver

2018-08-06 Thread Atish Patra
On 8/4/18 1:23 AM, Christoph Hellwig wrote: Adds a driver for the SiFive implementation of the RISC-V Platform Level Interrupt Controller (PLIC). The PLIC connects global interrupt sources to the local interrupt controller on each hart. This driver is based on the driver in the RISC-V tree from

Re: WARNING in try_charge

2018-08-06 Thread Tetsuo Handa
On 2018/08/07 2:56, Michal Hocko wrote: > So the oom victim indeed passed the above force path after the oom > invocation. But later on hit the page fault path and that behaved > differently and for some reason the force path hasn't triggered. I am > wondering how could we hit the page fault path i

[tip:x86/pti-urgent] x86/mm/init: Remove freed kernel image areas from alias mapping

2018-08-06 Thread tip-bot for Dave Hansen
Commit-ID: c40a56a7818cfe735fc93a69e1875f8bba834483 Gitweb: https://git.kernel.org/tip/c40a56a7818cfe735fc93a69e1875f8bba834483 Author: Dave Hansen AuthorDate: Thu, 2 Aug 2018 15:58:31 -0700 Committer: Thomas Gleixner CommitDate: Mon, 6 Aug 2018 20:54:16 +0200 x86/mm/init: Remove freed

[PATCH] platform/x86: acer-wmi: refactor function has_cap

2018-08-06 Thread Gustavo A. R. Silva
Refactor function has_cap in order to avoid returning integer values, when instead it should return booleans. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/platform/x86/acer-wmi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) dif

Re: [PATCH] platform/x86: acer-wmi: refactor function has_cap

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 11:00 PM, Gustavo A. R. Silva wrote: > Refactor function has_cap in order to avoid returning integer > values, when instead it should return booleans. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/platform/x8

Re: [PATCH v2] xen/pv: Call get_cpu_address_sizes to set x86_virt/phys_bits

2018-08-06 Thread Thomas Gleixner
On Mon, 6 Aug 2018, Boris Ostrovsky wrote: > x86 maintainers, this needs your ack please. Reviewed-by: Thomas Gleixner

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Ard Biesheuvel
On 6 August 2018 at 21:54, Mikulas Patocka wrote: > > > On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > >> On 6 August 2018 at 19:09, Mikulas Patocka wrote: >> > >> > >> > On Mon, 6 Aug 2018, Ard Biesheuvel wrote: >> > >> >> On 6 August 2018 at 14:42, Robin Murphy wrote: >> >> > On 06/08/18 11:25, M

Loan and investment

2018-08-06 Thread Tajick Ali
Greetings, I represent business group in Middle East looking for projects to fund; we seek any business that will guaranty a safe and secure return on investments. Alternative powers, movies, start up companies etc. We are also looking for commercial building projects, hotels, casino, strip m

Re: [PATCH v2] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Andrew Lunn
On Mon, Aug 06, 2018 at 10:50:02PM +0300, Kosta Zertsekel wrote: > This change increases the source code readability. > Instead of using `spi->child[cs].direct_access.XXX` use `dacc->XXX`. Hi Kosta You forgot to update this line. Please wait a week to allow others to comment, then submit a v3, a

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Pierre-Louis Bossart
Good to hear, applied the patch now. BTW looking at the structures in intel_hdmi_lpe_audio.h, the field format:3 in audio_ch_status_0 is misleading at best, it should be the emphasis if I look at the SPDIF/AES docs. It's not used but I'll have to relook at all this when I find some time... We

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-06 Thread Mikulas Patocka
On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > On 6 August 2018 at 19:09, Mikulas Patocka wrote: > > > > > > On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > > > >> On 6 August 2018 at 14:42, Robin Murphy wrote: > >> > On 06/08/18 11:25, Mikulas Patocka wrote: > >> > [...] > >> >>> > >> >>> None of t

Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-08-06 Thread Steven Rostedt
With this patch applied, I'm constantly getting lockdep errors. Instead of doing a full revert of the patch, I did this, which makes all those errors go away. I may apply this for now, and we can revisit having lockdep use the tracepoint code. But since it's currently always enabled, I'm thinking

Re: [PATCH 0/2] x86/intel_rdt and perf/x86: Fix lack of coordination with perf

2018-08-06 Thread Reinette Chatre
Hi Peter, On 8/3/2018 11:37 AM, Reinette Chatre wrote: > On 8/3/2018 8:25 AM, Peter Zijlstra wrote: >> On Fri, Aug 03, 2018 at 08:18:09AM -0700, Reinette Chatre wrote: >>> You state that you understand what we are trying to do and I hope that I >>> convinced you that we are not able to accomplish

[PATCH v2] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dacc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel --- drivers/spi/spi-orion.c | 22 +++--- 1 file changed,

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 21:45:53, Michal Hocko wrote: > [CCing Greg - the email thread starts here > http://lkml.kernel.org/r/5e979605729c1...@google.com] now for real > > On Mon 06-08-18 12:12:02, syzbot wrote: > > Hello, > > > > syzbot has tested the proposed patch and the reproducer did

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-08-06 Thread Bjorn Helgaas
On Mon, Aug 6, 2018 at 1:39 PM wrote: > > On 08/05/2018 02:06 AM, Tal Gilboa wrote: > > On 7/31/2018 6:10 PM, Alex G. wrote: > >> On 07/31/2018 01:40 AM, Tal Gilboa wrote: > >> [snip] > >> @@ -2240,6 +2258,9 @@ static void pci_init_capabilities(struct > >> pci_dev *dev) > >>/*

Re: linux-next: manual merge of the tip tree with the rdma tree

2018-08-06 Thread Jason Gunthorpe
On Mon, Aug 06, 2018 at 02:53:31PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tip tree got a conflict in: > > drivers/infiniband/core/rdma_core.c > > between commit: > > 9867f5c6695f ("IB/uverbs: Convert 'bool exclusive' into an enum") > > from the rdma tr

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
[CCing Greg - the email thread starts here http://lkml.kernel.org/r/5e979605729c1...@google.com] On Mon 06-08-18 12:12:02, syzbot wrote: > Hello, > > syzbot has tested the proposed patch and the reproducer did not trigger > crash: OK, this is reassuring. Btw Greg has pointed out this

Re: linux-next: manual merge of the rdma tree with Linus' tree

2018-08-06 Thread Jason Gunthorpe
On Mon, Aug 06, 2018 at 12:01:31PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > drivers/infiniband/core/uverbs_main.c > > between commit: > > 1eb9364ce81d ("IB/uverbs: Fix ordering of ucontext check in > ib_uverbs_write") >

[PATCH v2] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dacc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel --- drivers/spi/spi-orion.c | 22 +++--- 1 file changed,

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Takashi Iwai
On Mon, 06 Aug 2018 20:37:53 +0200, Pierre-Louis Bossart wrote: > > On 8/1/18 6:00 AM, Takashi Iwai wrote: > > On Wed, 01 Aug 2018 12:47:42 +0200, > > Colin King wrote: > >> > >> From: Colin Ian King > >> > >> Variable cfg_val is being assigned but is never used hence it is > >> redundant and can

[PATCH v2] Staging: One Laptop Per Child: fix SPDX-License-Identifier issue

2018-08-06 Thread Arkadiusz Lis
Add SPDX-License-Identifier to the source files. Remove redundant, old license. Signed-off-by: Arkadiusz Lis --- drivers/staging/olpc_dcon/olpc_dcon.c| 5 + drivers/staging/olpc_dcon/olpc_dcon_xo_1.c | 5 + drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c | 5 + 3 files changed

Re: [PATCH] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Kosta Zertsekel
On Mon, Aug 6, 2018 at 10:09 PM Andrew Lunn wrote: >> @@ -683,6 +683,7 @@ static int orion_spi_probe(struct platform_device *pdev) >> >> /* Scan all SPI devices of this controller for direct mapped devices */ >> for_each_available_child_of_node(pdev->dev.of_node, np) { >> +

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Fri, Aug 03, 2018 at 09:14:46AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 08월 03일 08:48, Matthias Kaehlcke wrote: > > On Thu, Aug 02, 2018 at 04:13:43PM -0700, Matthias Kaehlcke wrote: > >> Hi Chanwoo, > >> > >> On Thu, Aug 02, 2018 at 10:58:59AM +0900, Chanwoo Choi wr

Re: WARNING in try_charge

2018-08-06 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+bab151e82a4e973fa...@syzkaller.appspotmail.com Tested on: commit: 116b181bb646 Add linux-next specific files for 20180803 git tree: git://git.kernel.org/pu

Re: [PATCH] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Andrew Lunn
> @@ -683,6 +683,7 @@ static int orion_spi_probe(struct platform_device *pdev) > > /* Scan all SPI devices of this controller for direct mapped devices */ > for_each_available_child_of_node(pdev->dev.of_node, np) { > + struct orion_direct_acc *dacc; I would prefer direct_

Re: [PATCH] platform/x86: acer-wmi: use true and false for boolean values

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 7:42 PM, Joe Perches wrote: > On Mon, 2018-08-06 at 16:41 +, David Laight wrote: >> From: Andy Shevchenko >> > Sent: 05 August 2018 11:26 >> > > static bool has_cap(u32 cap) >> > > { >> > > if ((interface->capability & cap) != 0) >> > > - return

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
The debugging patch was wrong but I guess I see it finally. It's a race : [ 72.901666] Memory cgroup out of memory: Kill process 6584 (syz-executor1) score 55 or sacrifice child : [ 72.917037] Killed process 6584 (syz-executor1) total-vm:37704kB, anon-rss:2140kB, file-rss:0kB, shmem-rss:

[PATCH v3 0/6] Add support for MSCC Ocelot i2c

2018-08-06 Thread Alexandre Belloni
Hello, Because the designware IP was not able to handle the SDA hold time before version 1.11a, MSCC has its own implementation. Add support for it and then add i2c on ocelot boards. I would expect patches 1 to 4 to go through the i2c tree and 5-6 through the mips tree once patch 4 has been revie

[PATCH v3 5/6] MIPS: dts: mscc: Add i2c on ocelot

2018-08-06 Thread Alexandre Belloni
Ocelot has an i2c controller, add it. There is only one possible pinmux configuration so add it as well. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mi

[PATCH v3 2/6] i2c: designware: move #ifdef CONFIG_OF to the top

2018-08-06 Thread Alexandre Belloni
Move the #ifdef CONFIG_OF section to the top of the file, after the ACPI section so functions defined there can be used in dw_i2c_plat_probe. Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-designware-platdrv.c | 16 1 file changed, 8 in

[PATCH v3 1/6] i2c: designware: use generic table matching

2018-08-06 Thread Alexandre Belloni
Switch to device_get_match_data in probe to match the device specific data instead of using the acpi specific function. Suggested-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- Changes in v3: - removed unused variable - switched to uintptr_t for the cast drivers/i2c/busses/i2c-desi

[PATCH v3 3/6] i2c: designware: allow IP specific sda_hold_time

2018-08-06 Thread Alexandre Belloni
Because some old designware IPs were not supporting setting an SDA hold time, vendors developed their own solution. Add a way for the final driver to provide its own SDA hold time handling. Signed-off-by: Alexandre Belloni Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/i2c-designware-commo

[PATCH v3 6/6] MIPS: dts: mscc: enable i2c on ocelot_pcb123

2018-08-06 Thread Alexandre Belloni
Enable the i2c controller on ocelot PCB123. While there are no i2c devices on the board itself, it can be used to control the SFP transceivers. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/

[PATCH v3 4/6] i2c: designware: add MSCC Ocelot support

2018-08-06 Thread Alexandre Belloni
The Microsemi Ocelot I2C controller is a designware IP. It also has a second set of registers to allow tweaking SDA hold time and spike filtering. Cc: Rob Herring Reviewed-by: Andy Shevchenko Signed-off-by: Alexandre Belloni --- .../bindings/i2c/i2c-designware.txt | 9 - drivers

[PATCH] spi: orion: cosmetics - alias long direct_access variables

2018-08-06 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dacc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel --- drivers/spi/spi-orion.c | 22 +++--- 1 file changed,

Re: [PATCH 20/20] perf report: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:21PM +0200, Jiri Olsa escreveu: > Set annotation percent type from following choices: > global-period, local-period, global-hits, local-hits > > With following report option setup the percent type will be > passed to annotation browser: > > $ perf report --percen

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Fri, Aug 03, 2018 at 08:56:57AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 08월 03일 08:13, Matthias Kaehlcke wrote: > > Hi Chanwoo, > > > > On Thu, Aug 02, 2018 at 10:58:59AM +0900, Chanwoo Choi wrote: > >> Hi Matthias, > >> > >> On 2018년 08월 02일 02:08, Matthias Kaehlck

Re: [PATCH] vfs: fix statfs64() returning impossible EOVERFLOW for 64-bit f_files

2018-08-06 Thread Linus Torvalds
On Mon, Aug 6, 2018 at 10:06 AM Al Viro wrote: > > That leaves us with f_bsize and f_frsize (the latter defaulting to the > former). > Hugetlbfs can put greater than 4Gb values in there, for really huge pages. > And that's the only thing worth checking in there. > > So the whole put_compat_statfs

Re: WARNING in try_charge

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 20:13:39, Michal Hocko wrote: > I simply do not see how this is possible. Let's try with the following > extended debugging patch. > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > 116b181bb646afedd770985de20a68721bdb2648 > > diff --git a/mm/memco

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-08-06 Thread Alex_Gagniuc
On 08/05/2018 02:06 AM, Tal Gilboa wrote: > On 7/31/2018 6:10 PM, Alex G. wrote: >> On 07/31/2018 01:40 AM, Tal Gilboa wrote: >> [snip] >> @@ -2240,6 +2258,9 @@ static void pci_init_capabilities(struct >> pci_dev *dev) >>   /* Advanced Error Reporting */ >>   pci_aer_init(

Re: [PATCH 3/3] perf/x86/intel: Add quirk for Goldmont Plus

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 10:23:43AM -0700, kan.li...@linux.intel.com wrote: > +static bool intel_glk_counter_freezing_broken(int cpu) > case INTEL_FAM6_ATOM_GEMINI_LAKE: > + x86_add_quirk(intel_counter_freezing_quirk); We really should fix that ATOM naming instead of making it w

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Pierre-Louis Bossart
On 8/1/18 6:00 AM, Takashi Iwai wrote: On Wed, 01 Aug 2018 12:47:42 +0200, Colin King wrote: From: Colin Ian King Variable cfg_val is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cfg_val' set but not used [-Wunused-but

Re: [PATCH 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 10:23:42AM -0700, kan.li...@linux.intel.com wrote: > @@ -2044,6 +2056,14 @@ static void intel_pmu_disable_event(struct perf_event > *event) > if (unlikely(event->attr.precise_ip)) > intel_pmu_pebs_disable(event); > > + /* > + * We could disabl

Re: [PATCH 19/20] perf annotate: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 06, 2018 at 04:26:25PM +0200, Jiri Olsa escreveu: > On Mon, Aug 06, 2018 at 10:49:12PM +0900, Namhyung Kim wrote: > > On Sat, Aug 04, 2018 at 03:05:20PM +0200, Jiri Olsa wrote: > > > The local/global keywords set if the percentage is computed > > > in the scope of the function (local) o

Re: [PATCH 19/20] perf annotate: Add --percent-type option

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:20PM +0200, Jiri Olsa escreveu: > Adding --percent-type option to set annotation percent type > from following choices: > global-period, local-period, global-hits, local-hits > > Examples: > $ perf annotate --percent-type period-local --stdio | head -1 >Percen

Re: [PATCH] firmware: coreboot: Let OF core populate platform device

2018-08-06 Thread Julius Werner
Thanks for the quick fix! Reviewed-by: Julius Werner

Re: [PATCH 18/20] perf annotate: Display percent type in stdio output

2018-08-06 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 04, 2018 at 03:05:19PM +0200, Jiri Olsa escreveu: > In following patches we will allow to switch percent type > even for stdio annotation outputs. Adding the percent type > value into the annotation outputs title. > > $ perf annotate --stdio >Percent | Sou ... instru

<    1   2   3   4   5   6   7   >