Re: [GIT PULL] PCI changes for v4.20

2018-11-13 Thread Bjorn Helgaas
[+cc Martin, Rafael, Len, linux-acpi] On Tue, Nov 13, 2018 at 11:20:04AM +0100, Borislav Petkov wrote: > On Tue, Nov 13, 2018 at 08:17:12AM +0100, Ingo Molnar wrote: > > > > * Bjorn Helgaas wrote: > > > > > PCI changes: > > > > > > - Pay attention to device-specific _PXM node values (Jonatha

[PATCH 2/3] irqchip: stm32: protect configuration registers with hwspinlock

2018-11-13 Thread Benjamin Gaignard
If a hwspinlock is defined in device tree use it to protect configuration registers. Signed-off-by: Benjamin Gaignard --- drivers/irqchip/irq-stm32-exti.c | 36 ++-- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-stm32-exti.c b/

[PATCH 1/3] dt-bindings: interrupt-controller: stm32: Document hwlock properties

2018-11-13 Thread Benjamin Gaignard
Add hwlocks as optional property Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/interrupt-controller/st,stm32-exti.txt| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.txt b/Documentation/devicetre

[PATCH 0/3] Make STM32 interrupt controller use hwspinlock

2018-11-13 Thread Benjamin Gaignard
This series allow to protect STM32 interrupt controller configuration registers with a hwspinlock to avoid conflicting accesses between processors. Benjamin Gaignard (3): dt-bindings: interrupt-controller: stm32: Document hwlock properties irqchip: stm32: protect configuration registers with

[PATCH 3/3] ARM: dts: stm32: Add hwlock for irqchip on stm32mp157

2018-11-13 Thread Benjamin Gaignard
Define a hwspinlock to be used by irq controller Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 98f824d8b0f0..7c9ee32b775d 100644 --- a/arch

Re: [PATCH v5 1/4] mm: reference totalram_pages and managed_pages once per function

2018-11-13 Thread David Hildenbrand
On 13.11.18 07:33, Arun KS wrote: > This patch is in preparation to a later patch which converts totalram_pages > and zone->managed_pages to atomic variables. Please note that re-reading > the value might lead to a different value and as such it could lead to > unexpected behavior. There are no kno

Re: [PATCH v2] exec: make de_thread() freezable

2018-11-13 Thread Michal Hocko
On Mon 12-11-18 12:54:45, Chanho Min wrote: > Suspend fails due to the exec family of functions blocking the freezer. > The casue is that de_thread() sleeps in TASK_UNINTERRUPTIBLE waiting for > all sub-threads to die, and we have the deadlock if one of them is frozen. > This also can occur with th

Re: [PATCH v5 2/4] mm: convert zone->managed_pages to atomic variable

2018-11-13 Thread David Hildenbrand
On 13.11.18 07:33, Arun KS wrote: > totalram_pages, zone->managed_pages and totalhigh_pages updates > are protected by managed_page_count_lock, but readers never care > about it. Convert these variables to atomic to avoid readers > potentially seeing a store tear. > > This patch converts zone->man

Re: [PATCH v2 2/3] drivers/irqchip: Add Actions external interrupts support

2018-11-13 Thread Marc Zyngier
On Mon, 12 Nov 2018 10:32:51 +, Parthiban Nallathambi wrote: > > > > On 11/8/18 6:03 PM, Marc Zyngier wrote: > > On 26/08/18 16:20, Parthiban Nallathambi wrote: > >> Hello Marc, > >> > >> Thanks for your feedback. > >> > >> On 8/13/18 1:46 PM, Marc Zyngier wrote: > >>> On 12/08/18 13:22,

RE: [RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-13 Thread David Laight
From: Li, Aubrey > Sent: 13 November 2018 13:07 ... > > Isn't there an obvious optimisation to execute VZEROALL during system call > > entry? > > I'm not aware of this in the kernel, maybe you are talking about some > optimization in glibc? I've not seen it anywhere either. IIRC all the xmm and

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-13 Thread Clément Péron
Hi Shawn, On Tue, 13 Nov 2018 at 15:42, Shawn Guo wrote: > > On Mon, Nov 05, 2018 at 10:12:30AM +0100, Martin Kaiser wrote: > > Hi, > > > > Thus wrote Shawn Guo (shawn...@kernel.org): > > > > > On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: > > > > The i.MX25 contains two EPIT (En

Re: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread mika.westerb...@linux.intel.com
On Tue, Nov 13, 2018 at 01:28:04PM +, Shameerali Kolothum Thodi wrote: > > > -Original Message- > > From: mika.westerb...@linux.intel.com > > [mailto:mika.westerb...@linux.intel.com] > > Sent: 13 November 2018 12:59 > > To: Shameerali Kolothum Thodi > > Cc: linux-...@vger.kernel.org;

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2018-11-13 Thread Paul E. McKenney
On Tue, Nov 13, 2018 at 03:54:53PM +0200, Ville Syrjälä wrote: > Hi Paul, > > After 4.20-rc1 some of my 32bit UP machines no longer reboot/shutdown. > I bisected this down to commit 45975c7d21a1 ("rcu: Define RCU-sched > API in terms of RCU for Tree RCU PREEMPT builds"). > > I traced the hang int

Re: [PATCH v5 04/15] sched/core: uclamp: add CPU's clamp groups refcounting

2018-11-13 Thread Patrick Bellasi
On 11-Nov 17:47, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 06:32:59PM +, Patrick Bellasi wrote: > > +static inline void uclamp_cpu_update(struct rq *rq, unsigned int clamp_id) > > +{ > > + unsigned int group_id; > > + int max_value = 0; > > + > > + for (group_id = 0; group_id < UCLA

Re: [PATCH trivial] reset: Improve reset controller kernel docs

2018-11-13 Thread Geert Uytterhoeven
Hi Philipp, On Mon, Oct 8, 2018 at 2:55 PM Philipp Zabel wrote: > On Mon, 2018-10-08 at 13:15 +0200, Geert Uytterhoeven wrote: > > Grammar and indentation fixes. > > > > Signed-off-by: Geert Uytterhoeven > > --- > > include/linux/reset.h | 8 > > 1 file changed, 4 insertions(+), 4 dele

Re: [PATCH v5 06/15] sched/core: uclamp: enforce last task UCLAMP_MAX

2018-11-13 Thread Patrick Bellasi
On 11-Nov 18:08, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 06:33:01PM +, Patrick Bellasi wrote: > > When a util_max clamped task sleeps, its clamp constraints are removed > > from the CPU. However, the blocked utilization on that CPU can still be > > higher than the max clamp value enforc

Re: [PATCH v6 2/4] pps: descriptor-based gpio, capture-clear addition

2018-11-13 Thread Richard Cochran
On Tue, Nov 13, 2018 at 02:40:05PM +1100, Tom Burkart wrote: > The change from integer based GPIO API to the descriptor based API > breaks backward compatibility for the devicetree. This is due to > the descriptor based API appending "-gpio" or "-gpios" (see > Documentation/gpio/base.txt.) Device

Re: Official Linux system wrapper library?

2018-11-13 Thread Carlos O'Donell
On 11/12/18 11:43 AM, Joseph Myers wrote: > On Sun, 11 Nov 2018, Florian Weimer wrote: > >> People may have disappeared from glibc development who have objected to >> gettid. I thought this was the case with strlcpy/strlcat, but it was >> not. > > Well, I know of two main people who were objecti

[PATCH V9 06/19] fs/buffer.c: use bvec iterator to truncate the bio

2018-11-13 Thread Ming Lei
Once multi-page bvec is enabled, the last bvec may include more than one page, this patch use bvec_last_segment() to truncate the bio. Cc: Christoph Hellwig Cc: linux-fsde...@vger.kernel.org Signed-off-by: Ming Lei --- fs/buffer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[RFC PATCH 1/1] vmalloc: add test driver to analyse vmalloc allocator

2018-11-13 Thread Uladzislau Rezki (Sony)
This adds a new kernel module for analysis of vmalloc allocator. It is only enabled as a module. There are two main reasons this module should be used for. Those are performance evaluation and stressing of vmalloc subsystem. It consists of several test cases. As of now there are 8. The module has

[RFC PATCH 0/1] test driver to analyse vmalloc allocator

2018-11-13 Thread Uladzislau Rezki (Sony)
Hello. As an outcome of https://lkml.org/lkml/2018/10/19/786 discussion there was an interest in stress/performance test suite. It was developed to analyse a vmalloc allocator from performance, stability point of view and compare the new approach with current one. I have explained in the commit m

[PATCH V9 14/19] block: enable multipage bvecs

2018-11-13 Thread Ming Lei
This patch pulls the trigger for multi-page bvecs. Now any request queue which supports queue cluster will see multi-page bvecs. Cc: Christoph Hellwig Signed-off-by: Ming Lei --- block/bio.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/block/bio

[PATCH] selinux: check length properly in SCTP bind hook

2018-11-13 Thread Ondrej Mosnacek
selinux_sctp_bind_connect() must verify if the address buffer has sufficient length before accessing the 'sa_family' field. See __sctp_connect() for a similar check. The length of the whole address ('len') is already checked in the callees. Reported-by: Qian Cai Fixes: d452930fd3b9 ("selinux: Ad

[PATCH 0/3] x86/kvm/hyper-v: Implement Direct Mode for synthetic timers

2018-11-13 Thread Vitaly Kuznetsov
Turns out Hyper-V on KVM (as of 2016) will only use synthetic timers if direct mode is available. With direct mode we notify the guest by asserting APIC irq instead of sending a SynIC message. The series was tested with Hyper-V on KVM as well as kvm-unit-tests. I'm including Qemu a kvm-unit-tests

[PATCH 1/3] x86/hyper-v: move synic/stimer control structures definitions to hyperv-tlfs.h

2018-11-13 Thread Vitaly Kuznetsov
We implement Hyper-V SynIC and synthetic timers in KVM too so there's some room for code sharing. Signed-off-by: Vitaly Kuznetsov --- arch/x86/include/asm/hyperv-tlfs.h | 69 ++ drivers/hv/hv.c| 2 +- drivers/hv/hyperv_vmbus.h | 68 --

[PATCH 2/3] x86/kvm/hyper-v: use stimer config definition from hyperv-tlfs.h

2018-11-13 Thread Vitaly Kuznetsov
As a preparation to implementing Direct Mode for Hyper-V synthetic timers switch to using stimer config definition from hyperv-tlfs.h. Signed-off-by: Vitaly Kuznetsov --- arch/x86/include/asm/hyperv-tlfs.h | 6 -- arch/x86/include/asm/kvm_host.h| 2 +- arch/x86/kvm/hyperv.c

[PATCH 3/3] x86/kvm/hyper-v: direct mode for synthetic timers

2018-11-13 Thread Vitaly Kuznetsov
Turns out Hyper-V on KVM (as of 2016) will only use synthetic timers if direct mode is available. With direct mode we notify the guest by asserting APIC irq instead of sending a SynIC message. The implementation uses existing vec_bitmap for letting lapic code know that we're interested in the part

[kvm-unit-tests PATCH] x86/hyper-v: stimer_direct test

2018-11-13 Thread Vitaly Kuznetsov
Signed-off-by: Vitaly Kuznetsov --- x86/Makefile.common| 3 + x86/hyperv.h | 7 ++ x86/hyperv_stimer_direct.c | 250 + x86/unittests.cfg | 6 + 4 files changed, 266 insertions(+) create mode 100644 x86/hyperv_stimer_direct.

[QEMU PATCH] i386/kvm: add support for Direct Mode for Hyper-V synthetic timers

2018-11-13 Thread Vitaly Kuznetsov
Signed-off-by: Vitaly Kuznetsov --- linux-headers/linux/kvm.h | 1 + target/i386/cpu.c | 1 + target/i386/cpu.h | 1 + target/i386/hyperv-proto.h | 1 + target/i386/kvm.c | 11 +++ 5 files changed, 15 insertions(+) diff --git a/linux-headers/linux/kvm.h b/

Re: [PATCH] mm/hugetl.c: keep the page mapping info when free_huge_page() hit the VM_BUG_ON_PAGE

2018-11-13 Thread Michal Hocko
[Please do not top-post] On Tue 13-11-18 23:12:24, Yongkai Wu wrote: > Dear Maintainer, > Actually i met a VM_BUG_ON_PAGE issue in centos7.4 some days ago.When the > issue first happen, > i just can know that it happen in free_huge_page() when doing soft offline > huge page. > But because page->ma

Re: [PATCH v5 07/15] sched/core: uclamp: add clamp group bucketing support

2018-11-13 Thread Patrick Bellasi
On 12-Nov 01:09, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 06:33:02PM +, Patrick Bellasi wrote: > > The number of clamp groups configured at compile time defines the range > > of utilization clamp values tracked by each CPU clamp group. > > For example, with the default configuration: > >

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Oleg Nesterov
On 11/12, Roman Gushchin wrote: > > This patch implements freezer for cgroup v2. However the functionality > is similar, the interface is different to cgroup v1: it follows > cgroup v2 interface principles. Oh, it seems that I actually need to apply this patch to (try to) understand the details ;)

[PATCH] extcon: max8997: Fix lack of path setting in USB device mode

2018-11-13 Thread Marek Szyprowski
MAX8997 driver disables automatic path selection from MicroUSB connector and manually sets path to either UART or USB lines. However the code for setting USB path worked only for USB host mode (when ID pin is set to ground). When standard USB cable (USB device mode) is connected, path registers are

Re: [PATCH v1 4/7] vfio: ap: AP Queue Interrupt Control VFIO ioctl calls

2018-11-13 Thread Tony Krowiak
On 11/7/18 5:31 PM, Pierre Morel wrote: On 06/11/2018 21:21, Tony Krowiak wrote: On 10/31/18 2:12 PM, Pierre Morel wrote: This is the implementation of the VFIO ioctl calls to handle the AQIC interception and use GISA to handle interrupts. Signed-off-by: Pierre Morel ---   drivers/s390/crypto

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Tejun Heo
Hello, Oleg. On Tue, Nov 13, 2018 at 04:37:01PM +0100, Oleg Nesterov wrote: > On 11/12, Roman Gushchin wrote: > > > > This patch implements freezer for cgroup v2. However the functionality > > is similar, the interface is different to cgroup v1: it follows > > cgroup v2 interface principles. > >

Re: [PATCH tip/core/rcu 27/41] percpu-refcount: Replace call_rcu_sched() with call_rcu()

2018-11-13 Thread Tejun Heo
On Sun, Nov 11, 2018 at 11:43:56AM -0800, Paul E. McKenney wrote: > Now that call_rcu()'s callback is not invoked until after all > preempt-disable regions of code have completed (in addition to explicitly > marked RCU read-side critical sections), call_rcu() can be used in place > of call_rcu_sche

Re: [PATCH tip/core/rcu 25/41] workqueue: Replace call_rcu_sched() with call_rcu()

2018-11-13 Thread Tejun Heo
On Sun, Nov 11, 2018 at 11:43:54AM -0800, Paul E. McKenney wrote: > Now that call_rcu()'s callback is not invoked until after all > preempt-disable regions of code have completed (in addition to explicitly > marked RCU read-side critical sections), call_rcu() can be used in place > of call_rcu_sche

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Oleg Nesterov
On 11/12, Roman Gushchin wrote: > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -83,7 +83,8 @@ struct task_group; > #define TASK_WAKING 0x0200 > #define TASK_NOLOAD 0x0400 > #define TASK_NEW 0x0800 > -#define TASK_STATE_MAX

Re: [PATCH tip/core/rcu 34/41] percpu-rwsem: Replace synchronize_sched() with synchronize_rcu()

2018-11-13 Thread Tejun Heo
On Sun, Nov 11, 2018 at 11:44:03AM -0800, Paul E. McKenney wrote: > Now that synchronize_rcu() waits for preempt-disable regions of code > as well as RCU read-side critical sections, synchronize_sched() can be > replaced by synchronize_rcu(). This commit therefore makes this change, > even though

Re: [PATCH tip/core/rcu 36/41] cgroups: Replace synchronize_sched() with synchronize_rcu()

2018-11-13 Thread Tejun Heo
On Sun, Nov 11, 2018 at 11:44:05AM -0800, Paul E. McKenney wrote: > Now that synchronize_rcu() waits for preempt-disable regions of code > as well as RCU read-side critical sections, synchronize_sched() can be > replaced by synchronize_rcu(). This commit therefore makes this change, > even though

Re: [PATCH] selinux: check length properly in SCTP bind hook

2018-11-13 Thread Paul Moore
On Tue, Nov 13, 2018 at 10:18 AM Ondrej Mosnacek wrote: > > selinux_sctp_bind_connect() must verify if the address buffer has > sufficient length before accessing the 'sa_family' field. See > __sctp_connect() for a similar check. > > The length of the whole address ('len') is already checked in th

Re: [PATCH v5 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
On Tue, Nov 13, 2018 at 11:58:58AM +, Winkler, Tomas wrote: > Yes, w/o this constrain it would be okay to request locality only once, > we can ask tboot ask again but at the time the requirement was that locality > can be taken of at any point, > I believe that the locality won't be granted

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 15:08 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject: Re

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Oleg Nesterov
Hi Tejun, On 11/13, Tejun Heo wrote: > > > OK, please forget for now, but perhaps it would be more clean to add > > JOBCTL_TRAP_FREEZE to the JOBCTL_PENDING_MASK check in recalc_sigpending() > > and change get_signal to check JOBCTL_TRAP_MASK | JOBCTL_TRAP_FREEZE; and > > I am not even sure cgroup

Re: [PATCH v1 01/11] clk: mediatek: add new clkmux register API

2018-11-13 Thread Nicolas Boichat
On Mon, Nov 5, 2018 at 10:42 PM Weiyi Lu wrote: > > From: Owen Chen > > On both MT8183 & MT6765, there add "set/clr" register for > each clkmux setting, and one update register to trigger value change. > It is designed to prevent read-modify-write racing issue. > The sw design need to add a new A

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-13 Thread Andreas Kemnade
On Mon, 12 Nov 2018 18:17:38 -0600 Rob Herring wrote: > On Mon, Nov 12, 2018 at 4:27 PM Sebastian Reichel > wrote: > > > > Hi, > > > > On Mon, Nov 12, 2018 at 10:19:02PM +0100, H. Nikolaus Schaller wrote: > > > > Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > > > > On Sun, 11 Nov 2018 03:4

Re: [PATCH V4] binder: ipc namespace support for android binder

2018-11-13 Thread Todd Kjos
On Tue, Nov 13, 2018 at 12:12 AM chouryzhou(周威) wrote: > > > I have not received an answer to my questions in the last version of this > > patch > > set. Also it would be good if I could be Cc'ed by default. I can't hunt > > down all > > patches. > > I do not know of any kernel entity, specifica

Re: [PATCH v2] exec: make de_thread() freezable

2018-11-13 Thread Oleg Nesterov
On 11/13, Michal Hocko wrote: > > On Mon 12-11-18 12:54:45, Chanho Min wrote: > > Suspend fails due to the exec family of functions blocking the freezer. > > The casue is that de_thread() sleeps in TASK_UNINTERRUPTIBLE waiting for > > all sub-threads to die, and we have the deadlock if one of them

Re: [PATCH v1 02/11] clk: mediatek: add new member to mtk_pll_data

2018-11-13 Thread Nicolas Boichat
On Mon, Nov 5, 2018 at 10:43 PM Weiyi Lu wrote: > > From: Owen Chen > > 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, >add a variable to indicate this change and >backward-compatible. > 2. fmin: The pll freqency lower-bound is vary from 1GMhz to >1.5Ghz, add a var

[PATCH v13 2/5] clk: imx: add fractional PLL output clock

2018-11-13 Thread Abel Vesa
From: Lucas Stach This is a new fractional clock type introduced on i.MX8. The description of this fractional clock can be found here: https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf#page=834 Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Sascha Hauer --- dri

[PATCH v13 1/5] dt-bindings: add binding for i.MX8MQ CCM

2018-11-13 Thread Abel Vesa
From: Lucas Stach This adds the binding for the i.MX8MQ Clock Controller Module. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/imx8mq-clock.txt | 20 ++ include/dt-bindings/clock/imx8mq-clock.h | 395

[PATCH v13 0/5] Add i.MX8MQ clock driver

2018-11-13 Thread Abel Vesa
Here is a link to the 12th version: https://lkml.org/lkml/2018/11/7/642 Changes since v12: * replaced the division in clk_pll_recalc_rate in clk-frac with do_div as suggested by Stephen Abel Vesa (2): clk: imx: Add imx composite clock clk: imx: Add clock driver for i.MX8MQ CCM Lucas Stac

[PATCH v13 3/5] clk: imx: Add SCCG PLL type

2018-11-13 Thread Abel Vesa
From: Lucas Stach The SCCG is a new PLL type introduced on i.MX8. The description of this SCCG clock can be found here: https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf#page=834 Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Sascha Hauer --- drivers/clk/imx/Ma

[PATCH v13 5/5] clk: imx: Add clock driver for i.MX8MQ CCM

2018-11-13 Thread Abel Vesa
Add driver for the Clock Control Module found on i.MX8MQ. Signed-off-by: Anson Huang Signed-off-by: Bai Ping Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Reviewed-by: Sascha Hauer --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mq.c | 589

[PATCH v13 4/5] clk: imx: Add imx composite clock

2018-11-13 Thread Abel Vesa
Since a lot of clocks on imx8m are formed by a mux, gate, predivider and divider, the idea here is to combine all of those into one composite clock, but we need to deal with both predivider and divider at the same time and therefore we add the imx8m_clk_composite_divider_ops and register the compos

Re: [RFC PATCH v4 05/13] workqueue, ktask: renice helper threads to prevent starvation

2018-11-13 Thread Tejun Heo
Hello, Daniel. On Mon, Nov 05, 2018 at 11:55:50AM -0500, Daniel Jordan wrote: > static bool start_flush_work(struct work_struct *work, struct wq_barrier > *barr, > - bool from_cancel) > + struct nice_work *nice_work, int flags) > { > struc

Re: [RFC v2 1/7] MIPS: Add support for the Lexra LX5280 CPU

2018-11-13 Thread Maciej W. Rozycki
On Mon, 1 Oct 2018, Yasha Cherikovsky wrote: > The Lexra LX5280 CPU [1][2] implements the MIPS-I ISA, > without unaligned load/store instructions (lwl, lwr, swl, swr). I think you actually need to emulate these missing instructions for user programs, so that the 32-bit MIPS psABI is supported a

Re: [PATCH] vfio/pci: Parallelize device open and release

2018-11-13 Thread Alex Williamson
On Tue, 13 Nov 2018 15:42:49 +0100 Auger Eric wrote: > Hi Alex, > > On 11/9/18 11:09 PM, Alex Williamson wrote: > > In commit 61d792562b53 ("vfio-pci: Use mutex around open, release, and > > remove") a mutex was added to freeze the refcnt for a device so that > > we can handle errors and perform

WARNING: CPU: 31 PID: 15473 at lib/iov_iter.c:1109 iov_iter_pipe+0xe0/0xe8

2018-11-13 Thread Qian Cai
Running the trinity fuzzer with a non-root user on an aarch64 server with the latest mainline (rc2) generated this, [  378.743211] WARNING: CPU: 31 PID: 15473 at lib/iov_iter.c:1109 iov_iter_pipe+0xe0/0xe8 [  378.751590] Modules linked in: bridge 8021q garp mrp stp llc dlci tcp_diag inet_diag af_k

Re: [PATCH v2] clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL

2018-11-13 Thread Neil Armstrong
Hi Stable team, Le 06/11/2018 00:08, Jerome Brunet a écrit : > From: Christian Hewitt > > On the Khadas VIM2 (GXM) and LePotato (GXL) board there are problems > with reboot; e.g. a ~60 second delay between issuing reboot and the > board power cycling (and in some OS configurations reboot will fa

Re: [PATCH 1/2] exec: load_script: don't blindly truncate shebang string

2018-11-13 Thread Oleg Nesterov
On 11/13, Michal Hocko wrote: > > A bit cryptic to my taste Ys, because I didn't want to touch the code below. We need to cleanup the whole "parse bprm->buf" code, not only this part. > but it looks correct. I have tried to come up > with something more tasty but I am afraid it would be just

Re: [PATCH v2] clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL

2018-11-13 Thread Neil Armstrong
Le 13/11/2018 17:38, Neil Armstrong a écrit : > Hi Stable team, > > Le 06/11/2018 00:08, Jerome Brunet a écrit : >> From: Christian Hewitt >> >> On the Khadas VIM2 (GXM) and LePotato (GXL) board there are problems >> with reboot; e.g. a ~60 second delay between issuing reboot and the >> board pow

kernel BUG at include/linux/mm.h:519!

2018-11-13 Thread Qian Cai
Running the trinity fuzzer with a non-root user on an aarch64 server with the latest mainline (rc2) triggered this, [ 2058.662628] page:7fe022fe7d80 count:0 mapcount:0 mapping:808ea6153160 index:0x5a [ 2058.670842] flags: 0x9f04(uptodate) [ 2058.675448] raw: 9f04 de

Re: [PATCH] clk: meson: axg: mark fdiv2 and fdiv3 as critical

2018-11-13 Thread Neil Armstrong
Hi Stable team, Le 08/11/2018 10:31, Jerome Brunet a écrit : > Similar to gxbb and gxl platforms, axg SCPI Cortex-M co-processor > uses the fdiv2 and fdiv3 to, among other things, provide the cpu > clock. > > Until clock hand-off mechanism makes its way to CCF and the generic > SCPI claims platfo

Re: [PATCH v2] ARM: staging: bcm2835-audio: interpolate audio delay

2018-11-13 Thread Takashi Iwai
On Sun, 11 Nov 2018 19:21:29 +0100, Mike Brady wrote: > > /* hardware definition */ > static const struct snd_pcm_hardware snd_bcm2835_playback_hw = { > .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | >SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |

[PATCH v2] proc: fixup map_files test on arm

2018-11-13 Thread Alexey Dobriyan
https://bugs.linaro.org/show_bug.cgi?id=3782 Turns out arm doesn't allow to map address 0, so try minimum virtual address instead. Reported-by: Rafael David Tinoco Tested-by: Rafael David Tinoco Signed-off-by: Alexey Dobriyan --- tools/testing/selftests/proc/proc-self-map-files-002.c |9

RE: [Intel-wired-lan] [PATCH tip/core/rcu 13/41] ethernet/intel/ixgbe: Replace synchronize_sched() with synchronize_rcu()

2018-11-13 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Paul E. McKenney > Sent: Sunday, November 11, 2018 11:44 AM > To: linux-kernel@vger.kernel.org > Cc: t...@linutronix.de; David S. Miller ; > pet...@infradead.org; fweis...@gmail.com; jian

Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256

2018-11-13 Thread Oleg Nesterov
On 11/12, Andrew Morton wrote: > On Mon, 12 Nov 2018 17:09:56 +0100 Oleg Nesterov wrote: > > > /* sizeof(linux_binprm->buf) */ > > -#define BINPRM_BUF_SIZE 128 > > +#define BINPRM_BUF_SIZE 256 > > > > #endif /* _UAPI_LINUX_BINFMTS_H */ > > It does seem a rather silly restriction, and it's tempt

Re: [PATCH v6 00/17] Removed nested TPM operations

2018-11-13 Thread Jarkko Sakkinen
On Tue, Nov 13, 2018 at 12:30:55PM +, Winkler, Tomas wrote: > > > > [was Detach TPM space code out of the tpm_transmit() flow but the scope > > expanded a bit.] > > I believe you making this series artificially large we can merge the > first 4 patches and leave the rest for further discussion

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Jarkko Sakkinen
On Tue, Nov 13, 2018 at 01:39:26PM +0100, Roberto Sassu wrote: > > AFAIK the kernel development process does not disallow to use direct > > git protocol for maintainer branches. Please, correct me if I'm > > mistaken. > > I solved the issue by creating a mirror of your repository with gitlab. Ok,

WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90

2018-11-13 Thread Qian Cai
Running the trinity fuzzer with a non-root user on an aarch64 server with the latest mainline (rc2) generated this. Is it just a false alarm to ignore? [  807.847370] precision 65525 too large [  807.847449] WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90 [  807.860161]

Re: [PATCH v4 6/6] tpm: ensure that the output of PCR read contains the correct digest size

2018-11-13 Thread Jarkko Sakkinen
On Tue, Nov 13, 2018 at 02:08:39PM +0100, Roberto Sassu wrote: > On 11/8/2018 3:08 PM, Jarkko Sakkinen wrote: > > On Tue, Nov 06, 2018 at 04:01:59PM +0100, Roberto Sassu wrote: > > > This patch protects against data corruption that could happen in the bus, > > > by checking that that the digest siz

Re: [PATCH v2] proc: fixup map_files test on arm

2018-11-13 Thread Cyrill Gorcunov
On Tue, Nov 13, 2018 at 07:54:46PM +0300, Alexey Dobriyan wrote: > https://bugs.linaro.org/show_bug.cgi?id=3782 > > Turns out arm doesn't allow to map address 0, so try minimum virtual > address instead. > > Reported-by: Rafael David Tinoco > Tested-by: Rafael David Tinoco > Signed-off-by: Alex

Re: [PATCH v3 17/18] USB: phy-mv-usb: use phy-pxa-usb

2018-11-13 Thread Robert Jarzmik
Lubomir Rintel writes: > Use a proper PHY driver, instead of hooks to a board support package. Hi Lubomir, This specific patch caught my attention, because of its title : I don't see what phy-pxa-usb stands for, is it a typo ? I don't think anybody implemented so far a proper phy support for pxa

[PATCH] arm64: sunxi: Enable REGMAP_MMIO to fix linker error

2018-11-13 Thread John Garry
The following linker failure can be seen for a certain heavily reduced defconfig: drivers/soc/sunxi/sunxi_sram.o: In function `sunxi_sram_probe': drivers/soc/sunxi/sunxi_sram.c:353: undefined reference to `__devm_regmap_init_mmio_clk' drivers/soc/sunxi/sunxi_sram.c:353:(.text+0x3c4): relocation tr

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Jarkko Sakkinen
On Tue, Nov 13, 2018 at 02:34:39PM +0100, Roberto Sassu wrote: > On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: > > Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: > > > This patch removes the hard-coded limit of the active_banks array size. > > > It stores in the tpm_chip structur

Re: [PATCH] staging: vc04_services: bcm2835-audio: Fixed warnings, checks

2018-11-13 Thread Arnold Chand
On Mon, 2018-11-12 at 17:08 -0800, gre...@linuxfoundation.org wrote: > On Mon, Nov 12, 2018 at 07:29:09PM -0500, Arnold Chand wrote: > > Corrected warnings and checks issued by scripts/checkpatch.pl which > > includes: > > alignment of > > parenthesis, lines over 80 characters and mutex definition

[PATCH] staging: vc04_services: bcm2835-audio: bcm2835-ctl.c fixed warnings

2018-11-13 Thread Arnold Chand
Fixed lines over 80 characters by adding braces where control flow statements are more than one line, aligned parenthesis of function arguments. Signed-off-by: Arnold Chand --- .../vc04_services/bcm2835-audio/bcm2835-ctl.c | 27 +++ 1 file changed, 16 insertions(+), 11 deletions(

RE: [PATCH v5 0/5] ia64: system call table generation support

2018-11-13 Thread Luck, Tony
> The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the > system call table generation support implementation > across all the architectures

Re: [PATCH v3 1/4] dt-bindings: hwlock: Document STM32 hwspinlock bindings

2018-11-13 Thread Bjorn Andersson
On Mon 12 Nov 18:13 PST 2018, Rob Herring wrote: > On Mon, Nov 12, 2018 at 04:23:39PM +0100, Benjamin Gaignard wrote: > > Add bindings for STM32 hardware spinlock device > > > > Signed-off-by: Benjamin Gaignard > > Linaro or ST? Please make the author email match. > Thanks for the review Rob

[PATCH] staging: pi433: remove GPL boiler plate text

2018-11-13 Thread Michael Straube
The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. All source and header files have SPDX identifiers. Remove the GPL boiler plate text to reduce file size. Signed-off-by: Michael Straube --- drivers/staging/pi433/pi433_if.c | 10 --

[PATCH v3 17/20] rtc: tegra: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Thierry Reding Cc: Jonathan Hunter Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-tegra.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --g

[PATCH v3 14/20] rtc: rx8025: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-rx8025.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8

[PATCH v3 02/20] rtc: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Arnd Bergmann Acked-by: Greg Kroah-Hartman Signed-off-by: Andy Shevchenko --- drivers/char/rtc.c | 7 +++ drivers/rtc/hctosys.c | 8 ++-- drivers/rtc/interface.c | 8 ++---

[PATCH v3 01/20] lib/vsprintf: Print time and date in human readable format via %pt

2018-11-13 Thread Andy Shevchenko
There are users which print time and date represented by content of struct rtc_time in human readable format. Instead of open coding that each time introduce %ptR[dt][rv] specifier. Note, users have to select PRINTK_PEXT_TIMEDATE option in a Kconfig. Cc: Arnd Bergmann Cc: Bartlomiej Zolnierkiew

[PATCH v3 16/20] rtc: s5m: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Bartlomiej Zolnierkiewicz Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s5m.c | 27 ++- 1 file changed, 6 insertions(+), 21 del

[PATCH v3 20/20] PM: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: linux...@vger.kernel.org Acked-by: Rafael J. Wysocki Signed-off-by: Andy Shevchenko --- drivers/base/power/trace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/driv

[PATCH v3 05/20] rtc: m41t80: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-m41t80.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index a3fb

[PATCH v3 19/20] mk68/mac: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Geert Uytterhoeven Signed-off-by: Andy Shevchenko --- arch/m68k/mac/misc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/mi

[PATCH v3 18/20] Input: hp_sdc_rtc - Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Dmitry Torokhov Signed-off-by: Andy Shevchenko --- drivers/input/misc/hp_sdc_rtc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/hp_sdc_rtc.c

[PATCH v3 13/20] rtc: rx6110: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-rx6110.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c in

[PATCH v3 06/20] rtc: m48t59: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-m48t59.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index a

[PATCH v3 11/20] rtc: puv3: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Guan Xuetao Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-puv3.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-puv3.c b/drivers

[PATCH v3 07/20] rtc: mcp795: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-mcp795.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp7

[PATCH v3 15/20] rtc: s3c: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s3c.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c in

[PATCH v3 08/20] rtc: pcf50633: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pcf50633.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pcf50633.c b/drivers/rtc/rtc-pcf50633.c i

[PATCH v3 09/20] rtc: pic32: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pic32.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-pic32.c b/drivers/rtc/rtc-pic32.

[PATCH v3 00/20] lib, rtc: Print rtc_time via %ptR[dt][rv]

2018-11-13 Thread Andy Shevchenko
At some point I have noticed too many users of struct rtc_time that printing its content field by field. In this series I introduce %ptR[dt][rv] specifier to make life a bit easier. There are still users of detailed output of the struct rtc_time, but we can introduce an additional extension for t

[PATCH v3 10/20] rtc: pm8xxx: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pm8xxx.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx

[PATCH v3 04/20] rtc: at91sam9: Switch to use %ptR

2018-11-13 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-at91sam9.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at

<    1   2   3   4   5   6   7   >