[PATCH v2 1/3] pwm: sun4i: improve hardware read out

2017-05-30 Thread Alexandre Belloni
Implement .get_state instead of only reading the polarity at probe time. This allows to get the proper state, period and duty cycle. Signed-off-by: Alexandre Belloni --- drivers/pwm/pwm-sun4i.c | 65 ++--- 1 file

[PATCH v2 0/3] pwm: sun4i: switch to atomic PWM

2017-05-30 Thread Alexandre Belloni
Switch to atomic PWM. The main goal is to properly wait for a period before disabling a channel to ensure the correct level is set on the output. Changes in v2: - fixed remaining checkpatch warnings - split the series to ease reviews - changed the delay handling to ensure the proper amount of

[PATCH] time: Fix parameter description of try_to_del_timer_sync()

2017-05-30 Thread Peter Meerwald-Stadler
Signed-off-by: Peter Meerwald-Stadler Cc: John Stultz Cc: Thomas Gleixner Cc: triv...@rustcorp.com.au --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c

Re: [PATCH V2 2/3] net-next: dsa: add multi cpu port support

2017-05-30 Thread Vivien Didelot
Hi John, Vivien Didelot writes: >> +int port_cpu = ds->ports[port].upstream; > > ds->ports[port] is p->dp. I misread this part, p is not yet allocated in that chunk, please ignore this one comment ;-) Thanks, Vivien

Re: [PATCH v7 2/4] arm64: dts: hisi: add kirin pcie node

2017-05-30 Thread Bjorn Helgaas
On Thu, May 25, 2017 at 11:02:02AM +0800, Xiaowei Song wrote: > Add PCIe node for hi3660, and add binding documentation. > > Cc: Guodong Xu > Signed-off-by: Xiaowei Song > --- > arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 31 >

Re: signals: Bug or manpage inconsistency?

2017-05-30 Thread Linus Torvalds
On Tue, May 30, 2017 at 12:35 PM, Thomas Gleixner wrote: > Right, blocking signals which are not set to SIG_IGN makes perfectly sense. > The > SIG_IGN case is what bothers me. The thing is, the SIG_IGN may not *remain* a SIG_IGN. Put another way, let's say that you are a

Re: [PATCH net-next v2 4/6] net: dsa: remove unused arguments of tagger rcv

2017-05-30 Thread Florian Fainelli
On 05/30/2017 12:55 PM, Vivien Didelot wrote: > Hi Florian, > > Florian Fainelli writes: > >> I actually have a patch pending that adds support for HW >> insertion/extraction of switch tags (broadcom HW supports that) which >> require the orig_dev to be there so we know

Re: [PATCH net-next v2 1/6] net: dsa: comment hot path requirements

2017-05-30 Thread Florian Fainelli
On 05/30/2017 11:33 AM, Vivien Didelot wrote: > The DSA layer uses inline helpers and copies of the tagging functions > for faster access in hot path. Add comments to detail that. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli

Re: [PATCH 2/2] PCI: Save properties required to handle FLR for replay purposes.

2017-05-30 Thread Bjorn Helgaas
On Tue, May 30, 2017 at 09:25:49AM -0700, Ashok Raj wrote: > From: CQ Tang > > Requires: https://patchwork.kernel.org/patch/9593891 > > > After a FLR, pci-states need to be restored. This patch saves PASID features > and PRI reqs cached. > > To: Bjorn Helgaas

[PATCH] NFC: add NULL checks to avoid potential NULL pointer dereference

2017-05-30 Thread Gustavo A. R. Silva
NULL checks at line 457: if (!link0 || !link1) {, implies that both pointers link0 and link1 might be NULL. Function nfcsim_link_free() dereference pointers link0 and link1. Add NULL checks before calling nfcsim_link_free() to avoid a potential NULL pointer dereference. Addresses-Coverity-ID:

[PATCH] mm: add NULL check to avoid potential NULL pointer dereference

2017-05-30 Thread Gustavo A. R. Silva
NULL check at line 1226: if (!pgdat), implies that pointer pgdat might be NULL. Function rollback_node_hotadd() dereference this pointer. Add NULL check to avoid a potential NULL pointer dereference. Addresses-Coverity-ID: 1369133 Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH v5 0/7] Add kselftest_harness.h

2017-05-30 Thread Shuah Khan
On 05/26/2017 01:09 PM, Kees Cook wrote: > On Fri, May 26, 2017 at 11:43 AM, Mickaël Salaün wrote: >> Hi, >> >> This patch series make the seccomp/test_harness.h more generally available >> [1] >> and update the kselftest documentation in the Sphinx format. It also improve >>

[patch 14/26] posix-timers: Use timer_rearm() callback in posixtimer_rearm()

2017-05-30 Thread Thomas Gleixner
Use the new timer_rearm() callback to replace the conditional hardcoded calls into the hrtimer and cpu timer code. This allows later to bring the same logic to alarmtimers. Signed-off-by: Thomas Gleixner --- kernel/time/posix-cpu-timers.c |7 +--

[patch 23/26] alarmtimer: Implement remaining callback

2017-05-30 Thread Thomas Gleixner
Preparatory change to utilize the common posix timer mechanisms. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) --- a/kernel/time/alarmtimer.c +++

[patch 25/26] alarmtimer: Implement arm callback

2017-05-30 Thread Thomas Gleixner
Preparatory change to utilize the common posix timer mechanisms. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 22 ++ 1 file changed, 22 insertions(+) Index: b/kernel/time/alarmtimer.c

[patch 18/26] posix-timers: Zero settings value in common code

2017-05-30 Thread Thomas Gleixner
Zero out the settings struct in the common code so the callbacks do not have to do it themself. Signed-off-by: Thomas Gleixner --- kernel/time/posix-cpu-timers.c |5 + kernel/time/posix-timers.c |3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) ---

Re: [HMM 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v3

2017-05-30 Thread Jerome Glisse
On Tue, May 30, 2017 at 10:43:55AM -0600, Ross Zwisler wrote: > On Wed, May 24, 2017 at 01:20:16PM -0400, Jérôme Glisse wrote: > > HMM (heterogeneous memory management) need struct page to support migration > > from system main memory to device memory. Reasons for HMM and migration to > > device

[patch 22/26] alarmtimer: Implement forward callback

2017-05-30 Thread Thomas Gleixner
Preparatory change to utilize the common posix timer mechanisms. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 13 + 1 file changed, 13 insertions(+) --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -549,6 +549,18 @@ static void

[patch 24/26] alarmtimer: Implement try_to_cancel callback

2017-05-30 Thread Thomas Gleixner
Preparatory change to utilize the common posix timer mechanisms. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 10 ++ 1 file changed, 10 insertions(+) --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -573,6 +573,15 @@ static ktime_t

[PATCH 52/58] PWM: atmel-tcb: switch to new binding

2017-05-30 Thread Alexandre Belloni
The PWM is now a subnode of the used TCB. This is cleaner and it mainly allows to stop wasting TCB channels when only 4 PWMs are used. Cc: Thierry Reding Cc: linux-...@vger.kernel.org Signed-off-by: Alexandre Belloni ---

[PATCH 55/58] misc: remove atmel_tclib.c

2017-05-30 Thread Alexandre Belloni
The last user of atmel_tclib is gone, remove it too. Signed-off-by: Alexandre Belloni --- drivers/misc/Kconfig | 33 drivers/misc/Makefile | 1 - drivers/misc/atmel_tclib.c | 198 -

[PATCH 48/58] clocksource/drivers: timer-atmel-tcbclksrc: add clockevent device on separate channel

2017-05-30 Thread Alexandre Belloni
Add an other clockevent device that uses a separate TCB channel when available. Cc: Daniel Lezcano Cc: Thomas Gleixner Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcbclksrc.c | 177

[PATCH 44/58] ARM: dts: at91: sama5d2 Xplained: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in sama5_defconfig. Tested-by: Alexandre Belloni Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 12 1 file changed,

[PATCH 46/58] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2017-05-30 Thread Alexandre Belloni
Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and a clockevent device. The clockevent device is linked to the clocksource counter and so it will run at the same frequency. This driver uses regmap and syscon to be able to probe early in the boot and avoid

[PATCH 45/58] ARM: at91: add TCB registers definitions

2017-05-30 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 229 +++ 1 file changed, 229 insertions(+) create mode

Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-30 Thread Alan Cox
> > So tty stuff should under a tty capabilities. > > (last reply on this) > > Currently capabilities.7 says > > * employ the TIOCSTI ioctl(2) to insert characters into the > input queue of a > terminal other than the caller's controlling terminal; > > for

Re: [PATCH 1/2] ARM: dts: imx6ul-14x14-evk: Add ksz8081 phy properties

2017-05-30 Thread Leonard Crestez
On Tue, 2017-05-30 at 11:10 -0700, Florian Fainelli wrote: > On 05/30/2017 10:34 AM, Leonard Crestez wrote: > > Right now mach-imx6ul registers a fixup for the ksz8081 phy. The same > > register values can be set through the micrel phy driver by using dts > > properties. > > > > This seems

Re: [PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-30 Thread Tyrel Datwyler
On 05/30/2017 09:25 AM, Johan Hovold wrote: > The thermal child device reuses the parent MFD-device device-tree node > when registering a thermal zone, but did not take a reference to the > node. > > This leads to a reference imbalance, and potential use-after-free, when > the node reference is

Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-30 Thread Matt Brown
On 5/30/17 4:22 PM, Daniel Micay wrote: >> Thanks, I didn't know that android was doing this. I still think this >> feature >> is worthwhile for people to be able to harden their systems against >> this attack >> vector without having to implement a MAC. > > Since there's a capable LSM hook for

Re: [PATCH 1/4] dt-bindings: mtk-sysirq: Correct bindings for supported SoCs

2017-05-30 Thread Rob Herring
On Mon, May 22, 2017 at 11:40:18AM +0200, Matthias Brugger wrote: > All SoCs supported up to now rely on the fallback binding of mt6577. > Fix the binding description to reflect this. > > Signed-off-by: Matthias Brugger > --- >

Re: [PATCH] genirq: Check irq disabled & masked states in irq_shutdown

2017-05-30 Thread Brian Norris
Sorry to respond to myself. Thomas, your reply to another mail in this series helped me to notice: On Tue, May 30, 2017 at 04:19:58PM -0700, Brian Norris wrote: > Side note: for issues like the first problem above, I wonder why there > isn't a flag that once could pass to request_irq() that

Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls

2017-05-30 Thread Laura Abbott
On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote: > This problem was found by strace ioctl list generator. > > Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and > ion_client") > Signed-off-by: Gleb Fotengauer-Malinovskiy > --- >

Re: [PATCH 2/2] PCI: Save properties required to handle FLR for replay purposes.

2017-05-30 Thread Bjorn Helgaas
On Tue, May 30, 2017 at 09:25:49AM -0700, Ashok Raj wrote: > From: CQ Tang > > Requires: https://patchwork.kernel.org/patch/9593891 The above patch (9593891) is not in my tree or Linus' tree, so I can't do anything with this yet. > After a FLR, pci-states need to be

Re: Q. drm/i915 shrinker, synchronize_rcu_expedited() from handlers

2017-05-30 Thread Hugh Dickins
On Mon, 22 May 2017, Joonas Lahtinen wrote: > On la, 2017-05-20 at 10:56 +0900, J. R. Okajima wrote: > > "J. R. Okajima": > > > > > > I don't know whether the fix is good to me or not yet. I will test your > > > fix, but I am busy now and my test will be a few weeks later. Other > > > people may

Re: [PATCH net-next v2 5/6] net: dsa: remove out_drop label in taggers rcv

2017-05-30 Thread Florian Fainelli
On 05/30/2017 11:33 AM, Vivien Didelot wrote: > Many rcv functions from net/dsa/tag_*.c have a useless out_drop goto > label which simply returns NULL. Kill it in favor of the obvious. Why not > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli

Re: [PATCH net-next v2 3/6] net: dsa: remove dsa_uses_tagged_protocol

2017-05-30 Thread Florian Fainelli
On 05/30/2017 11:33 AM, Vivien Didelot wrote: > Since dev->dsa_ptr is a pointer to a dsa_switch_tree, there is no need > to have another inline helper just to check rcv. > > Remove dsa_uses_tagged_protocol and check dsa_ptr && dsa_ptr->rcv > together at the same time. > > Signed-off-by: Vivien

Re: signals: Bug or manpage inconsistency?

2017-05-30 Thread Thomas Gleixner
On Tue, 30 May 2017, Linus Torvalds wrote: > On Tue, May 30, 2017 at 12:35 PM, Thomas Gleixner wrote: > > The reason why I'm looking into that is the silly case with posix interval > > timers dealing with ignored signals. We have to keep these timers self > > rearming because

[patch 03/26] alarmtimer: Remove pointless config conditional

2017-05-30 Thread Thomas Gleixner
Having a IF_ENABLED(CONFIG_POSIX_TIMERS) inside of a #ifdef CONFIG_POSIX_TIMERS section is pointless. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/kernel/time/alarmtimer.c +++

[patch 01/26] alarmtimer: Prevent overflow of relative timers

2017-05-30 Thread Thomas Gleixner
Andrey reported a alartimer related RCU stall while fuzzing the kernel with syzkaller. The reason for this is an overflow in ktime_add() which brings the resulting time into negative space and causes immediate expiry of the timer. The following rearm with a small interval does not bring the timer

Re: [PATCH 3/9] pinctrl: dt-bindings: add documentation for CP110 pin controllers

2017-05-30 Thread Rob Herring
On Fri, May 19, 2017 at 06:04:45PM +0200, Gregory CLEMENT wrote: > Document the device tree binding for the pin controllers found on the > Armada 7K and Armada 8K SoCs. > > Signed-off-by: Gregory CLEMENT > --- >

Re: [RFC] tick/nohz: schedule TIMER_SOFTIRQ immediately for expired timers

2017-05-30 Thread Thomas Gleixner
On Fri, 26 May 2017, Octavian Purdila wrote: > On Vi, 2017-05-26 at 14:55 +0200, Frederic Weisbecker wrote: > > Nice, it is less expensive and deletes some code :-) Thanks for the > quick fix Frederic, I confirm it solves my issue. > > Tested-by: Octavian Purdila

[PATCH 32/58] ARM: dts: at91: sama5d3xek: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in sama5_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d3xcm.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xcm.dtsi

Re: [PATCH v2 0/3] arm64: meson-gxm: R-Box Pro enablement

2017-05-30 Thread Kevin Hilman
Andreas Färber writes: > Hello, > > This mini-series adds initial support for the Amlogic S912 based > R-Box Pro TV boxes. > > v2 depends on my Meson cleanup series (amlogic.txt, Makefile) and > squashes the addition of a board compatible string. > > @Kingnovel: Your Acked-by

[PATCH 23/58] ARM: dts: at91: at91sam9rlek: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9rlek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9rlek.dts

Re: [PATCH V2 00/27] Drivers: ccree - align block comments

2017-05-30 Thread Tobin C. Harding
On Tue, May 30, 2017 at 08:49:41AM +0200, Antoine Tenart wrote: > Hello Derek, > > On Tue, May 30, 2017 at 06:09:37PM +1200, Derek Robson wrote: > > Fixed block comments across whole ccree driver > > Since all these commits are doing the same logical change across a > single driver, you could

[PATCH 34/58] ARM: dts: at91: kizbox2: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in sama5_defconfig. Cc: Antoine Aubert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-kizbox2.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 37/58] ARM: dts: at91: sama5d4: TC blocks are also simple-mfd and syscon devices

2017-05-30 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time. It also allow sto reuse regmap instead of tclib. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d4.dtsi | 8 ++-- 1

Re: Device address specific mapping of arm,mmu-500

2017-05-30 Thread Ray Jui
Hi Marc/Robin/Will, On 5/30/17 10:27 AM, Marc Zyngier wrote: > On 30/05/17 18:16, Ray Jui wrote: >> Hi Marc, >> >> On 5/30/17 9:59 AM, Marc Zyngier wrote: >>> On 30/05/17 17:49, Ray Jui wrote: Hi Will, On 5/30/17 8:14 AM, Will Deacon wrote: > On Mon, May 29, 2017 at 06:18:45PM

Re: [PATCH] hwmon: (aspeed-pwm-tacho) Select REGMAP

2017-05-30 Thread Guenter Roeck
On Tue, May 30, 2017 at 03:48:22PM +0930, Joel Stanley wrote: > On Sat, May 27, 2017 at 11:24 PM, Guenter Roeck wrote: > > The driver uses regmap and thus has to select it to avoid build > > errors such as the following. > > > > drivers/hwmon/aspeed-pwm-tacho.c:337:21: error:

Re: [PATCH v2] KVM: x86: Avoid guest page table walk when gpa_available is set

2017-05-30 Thread Brijesh Singh
Hi Jorge, On 05/30/2017 04:05 AM, Joerg Roedel wrote: On Fri, May 19, 2017 at 11:12:29AM -0400, Brijesh Singh wrote: From: Brijesh Singh On AMD hardware when a guest causes a NPF which requires emulation, the vcpu->arch.gpa_available flag is set to indicate that cr2

Re: [PATCH-v2 0/5] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-30 Thread Bjorn Helgaas
On Wed, May 24, 2017 at 01:41:23PM -0700, Jork Loeser wrote: > From: Jork Loeser > > Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI > protocol, fixing MSI creation and retargeting issues. > > Changes since v1: > - reduced spew in protocol

Re: [PATCH v5 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-05-30 Thread Stephen Hemminger
On Tue, 30 May 2017 19:17:46 + Jork Loeser wrote: > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Tuesday, May 30, 2017 09:53 > > To: Vitaly Kuznetsov > > Cc: x...@kernel.org;

Re: [PATCH] ARM64: dts: meson-gx: Add SPICC nodes

2017-05-30 Thread Kevin Hilman
Kevin Hilman writes: > Neil Armstrong writes: > >> Add nodes for the SPICC controller on GX common dtsi, GXBB and >> GXL dtsi files. >> >> Signed-off-by: Neil Armstrong > > Applied to v4.13/dt64, Oops, this one will have

Re: [PATCH-v2 0/5] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-30 Thread Bjorn Helgaas
On Wed, May 24, 2017 at 01:41:23PM -0700, Jork Loeser wrote: > From: Jork Loeser > > Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI > protocol, fixing MSI creation and retargeting issues. > > Changes since v1: > - reduced spew in protocol

Re: [PATCH v7 1/4] PCI: hisi: Add DT binding for PCIe of Kirin SoC series

2017-05-30 Thread Bjorn Helgaas
On Thu, May 25, 2017 at 11:02:01AM +0800, Xiaowei Song wrote: > Signed-off-by: Xiaowei Song > --- > .../devicetree/bindings/pci/kirin-pcie.txt | 49 > ++ > 1 file changed, 49 insertions(+) > create mode 100644

Re: [PATCH v5 26/32] x86, drm, fbdev: Do not specify encrypted memory for video mappings

2017-05-30 Thread Tom Lendacky
On 5/16/2017 12:35 PM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 04:20:56PM -0500, Tom Lendacky wrote: Since video memory needs to be accessed decrypted, be sure that the memory encryption mask is not set for the video ranges. Signed-off-by: Tom Lendacky ---

Re: [PATCH v8 4/4] defconfig: PCI: Enable Kirin PCIe defconfig

2017-05-30 Thread Bjorn Helgaas
Subject line: arm64: defconfig: Enable Kirin PCIe (Hint: run "git log --oneline " to see what pattern you should follow) On Fri, May 26, 2017 at 09:53:33AM +0800, Xiaowei Song wrote: > Cc: Guodong Xu > Signed-off-by: Xiaowei Song > --- >

RE: [PATCH] acpi: configfs: Unload SSDT on configfs entry removal

2017-05-30 Thread Moore, Robert
> -Original Message- > From: Jan Kiszka [mailto:jan.kis...@siemens.com] > Sent: Monday, May 29, 2017 5:53 AM > To: Mika Westerberg > Cc: Rafael J. Wysocki ; Len Brown ; > Zheng, Lv ;

Re: [RFC 0/3] WhiteEgret LSM module

2017-05-30 Thread Matthew Garrett
On Tue, May 30, 2017 at 08:11:57PM +0900, Masanobu Koike wrote: > An execution-whitelist, simply called whitelist, is a list > of executable components (e.g., applications, libraries) > that are approved to run on a host. The whitelist is used > to decide whether executable components are

[patch 21/26] alarmtimer: Implement timer_rearm() callback

2017-05-30 Thread Thomas Gleixner
Preparatory change to utilize the common posix timer mechanisms. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -537,6

[patch 26/26] alarmtimer: Switch over to generic set/get/rearm routine

2017-05-30 Thread Thomas Gleixner
All required callbacks are in place. Switch the alarm timer based posix interval timer callbacks to the common implementation and remove the incorrect private implementation. Signed-off-by: Thomas Gleixner --- kernel/time/alarmtimer.c | 121

Re: [PATCH] acpi: configfs: Unload SSDT on configfs entry removal

2017-05-30 Thread Rafael J. Wysocki
On Tue, May 30, 2017 at 11:16 PM, Moore, Robert wrote: > > >> -Original Message- >> From: Jan Kiszka [mailto:jan.kis...@siemens.com] >> Sent: Monday, May 29, 2017 5:53 AM >> To: Mika Westerberg >> Cc: Rafael J. Wysocki

[patch 10/26] posix-timers: Move interval out of the union

2017-05-30 Thread Thomas Gleixner
Preparatory patch to unify the alarm timer and hrtimer based posix interval timer handling. The interval is used as a criteria for rearming decisions so moving it out of the clock specific data structures allows later unification. Signed-off-by: Thomas Gleixner ---

[patch 19/26] posix-timers: Add cancel/arm callbacks

2017-05-30 Thread Thomas Gleixner
Add timer_try_to_cancel() and timer_arm() callbacks to kclock which allow to make common_timer_set() usable by both hrtimer and alarmtimer based clocks. Signed-off-by: Thomas Gleixner --- include/linux/posix-timers.h |3 +++ 1 file changed, 3 insertions(+) Index:

[patch 04/26] posix-timers: Remove unused export of posix_timer_event()

2017-05-30 Thread Thomas Gleixner
Since the removal of the mmtimer driver the export is not longer needed. Signed-off-by: Thomas Gleixner --- kernel/time/posix-timers.c |1 - 1 file changed, 1 deletion(-) --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -442,7 +442,6 @@ int

Re: [PATCH] dt-bindings: net: move FMan binding

2017-05-30 Thread Rob Herring
On Thu, May 25, 2017 at 12:57:26PM +, Madalin-Cristian Bucur wrote: > > -Original Message- > > From: David Miller [mailto:da...@davemloft.net] > > Sent: Monday, May 15, 2017 5:31 PM > > Subject: Re: [PATCH] dt-bindings: net: move FMan binding > > > > From: Madalin Bucur

[PATCH] char: tmp: fix potential null pointer dereference

2017-05-30 Thread Gustavo A. R. Silva
NULL check at line 147: if (chip) {, implies chip might be NULL. Function dev_get_drvdata() dereference pointer chip. Move pointer priv assignment inside the IF block that checks pointer chip. Addresses-Coverity-ID: 1397646 Signed-off-by: Gustavo A. R. Silva ---

[PATCH 01/58] ARM: at91: Document new TCB bindings

2017-05-30 Thread Alexandre Belloni
The current binding for the TCB is not flexible enough for some use cases and prevents proper utilization of all the channels. Cc: Daniel Lezcano Cc: Thierry Reding Cc: linux-...@vger.kernel.org Cc: Rob Herring Cc:

[PATCH 08/58] ARM: dts: at91: ethernut5: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in at91_dt_defconfig. Cc: Martin Reimann Cc: Tim Schendekehl Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/ethernut5.dts | 12

[PATCH 05/58] ARM: dts: at91: at91sam9260: TC blocks are also simple-mfd and syscon devices

2017-05-30 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time. It also allows to use regmap instead of tclib. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9260.dtsi | 8 ++-- 1

[PATCH 10/58] ARM: dts: at91: animeo_ip: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/animeo_ip.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/animeo_ip.dts

[PATCH 35/58] ARM: dts: at91: sama5d3xek_cmp: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in sama5_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xcm_cmp.dtsi

[PATCH 02/58] ARM: dts: at91: at91rm9200: TC blocks are also simple-mfd and syscon devices

2017-05-30 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time. It also allows to use regmap instead of tclib. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91rm9200.dtsi | 8 ++-- 1

Re: [PATCH] ARM64: dts: meson-gx: Add SPICC nodes

2017-05-30 Thread Kevin Hilman
Neil Armstrong writes: > Add nodes for the SPICC controller on GX common dtsi, GXBB and > GXL dtsi files. > > Signed-off-by: Neil Armstrong Applied to v4.13/dt64, Kevin

Re: [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume

2017-05-30 Thread Florian Fainelli
On 05/30/2017 03:08 PM, Leonard Crestez wrote: > On Tue, 2017-05-30 at 11:05 -0700, Florian Fainelli wrote: >> On 05/30/2017 10:34 AM, Leonard Crestez wrote: >>> These bits seem to be lost after a suspend/resume cycle so just set them >>> again. >>> >>> This patch fixes ethernet suspend/resume on

Re: [PATCH V1 14/15] spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq

2017-05-30 Thread kbuild test robot
Hi Subbaraman, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc3 next-20170530] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Kiran-Gunda/spmi-pmic_arb-block-access

Re: [PATCH 3/6] gpio: dt-bindings: Add documentation for gpio controllers on Armada 7K/8K

2017-05-30 Thread Rob Herring
On Mon, May 29, 2017 at 10:08:16AM +0200, Linus Walleij wrote: > On Tue, May 23, 2017 at 3:06 PM, Gregory CLEMENT > wrote: > > On mar., mai 23 2017, Linus Walleij wrote: > > >> Please rebase and resend the rest of the patches. > > >

Re: [PATCH] kthread: Fix race condition between kthread_parkme() and kthread_unpark()

2017-05-30 Thread Junaid Shahid
(Resending) On Friday, April 28, 2017 07:32:36 PM Junaid Shahid wrote: > In general, if kthread_unpark() and kthread_parkme() execute together, > the kthread is supposed to be in an unparked state. This is because > kthread_unpark() either wakes up the thread if it already got parked, > or it

Re: [PATCH V2 2/3] net-next: dsa: add multi cpu port support

2017-05-30 Thread Florian Fainelli
+Jiri, Ido, On 05/30/2017 03:44 AM, John Crispin wrote: > Some boards have two CPU interfaces connected to the switch, e.g. WiFi > access points, with 1 port labeled WAN, 4 ports labeled lan1-lan4, and > two port connected to the SoC. > > This patch extends DSA to allows both CPU ports to be

Re: [PATCH 1/7] USB: core: fix device node leak

2017-05-30 Thread Tyrel Datwyler
On 05/30/2017 09:25 AM, Johan Hovold wrote: > Make sure to release any OF device-node reference taken when creating > the USB device. > > Note that we currently do not hold a reference to the root hub > device-tree node (i.e. the parent controller node). > > Fixes: 69bec7259853 ("USB: core: let

Re: [PATCH V2 2/3] net-next: dsa: add multi cpu port support

2017-05-30 Thread Vivien Didelot
Hi John, John Crispin writes: > +static inline bool dsa_is_upstream_port(struct dsa_switch *ds, int p) > +{ > + return dsa_is_cpu_port(ds, p) || dsa_is_dsa_port(ds, p); > +} This looks confusing to me. What DSA calls an "upstream" port for the moment is the port which

Re: [PATCH v2] xen: don't print error message in case of missing Xenstore entry

2017-05-30 Thread Boris Ostrovsky
On 05/30/2017 02:52 PM, Juergen Gross wrote: > When registering for the Xenstore watch of the node control/sysrq the > handler will be called at once. Don't issue an error message if the > Xenstore node isn't there, as it will be created only when an event > is being triggered. > > Signed-off-by:

Re: [PATCH 2/2] PCI: Save properties required to handle FLR for replay purposes.

2017-05-30 Thread Raj, Ashok
On Tue, May 30, 2017 at 02:50:33PM -0500, Bjorn Helgaas wrote: > On Tue, May 30, 2017 at 09:25:49AM -0700, Ashok Raj wrote: > > From: CQ Tang > > > > Requires: https://patchwork.kernel.org/patch/9593891 > > The above patch (9593891) is not in my tree or Linus' tree, so I

Re: [PATCH net-next v2 2/6] net: dsa: do not cast dst

2017-05-30 Thread Florian Fainelli
On 05/30/2017 11:33 AM, Vivien Didelot wrote: > dsa_ptr is not a void pointer anymore since Nov 2011, as of cf50dcc24f82 > ("dsa: Change dsa_uses_{dsa, trailer}_tags() into inline functions"), > but an explicit dsa_switch_tree pointer, thus remove the (void *) cast. > > Signed-off-by: Vivien

Re: [PATCH net-next v2 6/6] net: dsa: factor skb freeing on xmit

2017-05-30 Thread Florian Fainelli
On 05/30/2017 11:33 AM, Vivien Didelot wrote: > The taggers are currently responsible to free the original SKB if they > made a copy of it, or in case of error. > > This patch simplifies this by freeing the original SKB in the > dsa_slave_xmit caller, but only if an error (NULL) is returned. Is

Re: [PATCH 0/2] Save and restore pci properties to support FLR

2017-05-30 Thread Bjorn Helgaas
On Tue, May 30, 2017 at 09:25:47AM -0700, Ashok Raj wrote: > Resending Jean's patch so it can be included earlier than his large > SVM commits. Original patch https://patchwork.kernel.org/patch/9593891 > was ack'ed by Bjorn. Let's commit these separately since we need > functionality earlier. > >

Re: [PATCH net-next 1/7] net: dsa: hide dsa_uses_tagged_protocol code

2017-05-30 Thread kbuild test robot
Hi Vivien, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Vivien-Didelot/net-dsa-tagger-simplification/20170531-032911 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget

Re: [RFC] KVM: SVM: do not drop VMCB CPL to 0 if SS is not present

2017-05-30 Thread Paolo Bonzini
On 30/05/2017 19:35, Roman Penyaev wrote: > On Tue, May 30, 2017 at 4:47 PM, Paolo Bonzini wrote: >> >> >> On 19/05/2017 18:14, Roman Penyaev wrote: >>> 2. A bit complicated, which makes sure the CPL field is preserved across >>>KVM_GET/SET_SREGS calls and makes

Re: [PATCH ALT4 V2 1/2] audit: show fstype:pathname for entries with anonymous parents

2017-05-30 Thread Paul Moore
On Tue, Apr 4, 2017 at 5:21 AM, Richard Guy Briggs wrote: > Tracefs or debugfs were causing hundreds to thousands of null PATH > records to be associated with the init_module and finit_module SYSCALL > records on a few modules when the following rule was in place for > startup: >

Re: [PATCH ALT4 V2 2/2] audit: filter PATH records keyed on filesystem magic

2017-05-30 Thread Paul Moore
On Tue, Apr 4, 2017 at 5:21 AM, Richard Guy Briggs wrote: > Tracefs or debugfs were causing hundreds to thousands of PATH records to > be associated with the init_module and finit_module SYSCALL records on a > few modules when the following rule was in place for startup: >

[PATCH v5 1/3] refcount: Create unchecked atomic_t implementation

2017-05-30 Thread Kees Cook
Many subsystems will not use refcount_t unless there is a way to build the kernel so that there is no regression in speed compared to atomic_t. This adds CONFIG_REFCOUNT_FULL to enable the full refcount_t implementation which has the validation but is slightly slower. When not enabled, refcount_t

[PATCH v5 0/3] Implement fast refcount overflow protection

2017-05-30 Thread Kees Cook
A new patch has been added at the start of this series to make the default refcount_t implementation just use an unchecked atomic_t implementation, since many kernel subsystems want to be able to opt out of the full validation, since it includes a small performance overhead. When enabling

[PATCH v5 3/3] x86/refcount: Implement fast refcount overflow protection

2017-05-30 Thread Kees Cook
This protection is a modified version of the x86 PAX_REFCOUNT defense from PaX/grsecurity. This speeds up the refcount_t API by duplicating the existing atomic_t implementation with a single instruction added to detect if the refcount has wrapped past INT_MAX (or below 0) resulting in a negative

[PATCH v5 2/3] x86/asm: Add suffix macro for GEN_*_RMWcc()

2017-05-30 Thread Kees Cook
The coming x86 refcount protection needs to be able to add trailing instructions to the GEN_*_RMWcc() operations. This extracts the difference between the goto/non-goto cases so the helper macros can be defined outside the #ifdef cases. Additionally adds argument naming to the resulting asm for

[PATCH 42/58] ARM: dts: at91: vinco: use TCB2 as clocksource

2017-05-30 Thread Alexandre Belloni
As TCB2 doesn't have any output pins, use it as a clocksource. Cc: Gregory CLEMENT Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-vinco.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 40/58] ARM: dts: at91: sama5d4 Xplained: use TCB2 as clocksource

2017-05-30 Thread Alexandre Belloni
As TCB2 doesn't have any output pins, use it as a clocksource. Tested-by: Alexandre Belloni Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 12

[PATCH 16/58] ARM: dts: at91: at91sam9263: TC blocks are also simple-mfd and syscon devices

2017-05-30 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time. It also allows to use regmap instead of tclib. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9263.dtsi | 4 +++- 1 file

[PATCH 36/58] ARM: dts: at91: linea/tse850-3: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in sama5_defconfig. Cc: Peter Rosin Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-linea.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 20/58] ARM: dts: at91: at91sam9m10g45ek: use TCB0 as clocksource

2017-05-30 Thread Alexandre Belloni
Use tcb0 as the clocksource like previously selected in at91_dt_defconfig. Tested-by: Alexandre Belloni Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9m10g45ek.dts | 12 1 file changed, 12

Re: [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume

2017-05-30 Thread Leonard Crestez
On Tue, 2017-05-30 at 11:05 -0700, Florian Fainelli wrote: > On 05/30/2017 10:34 AM, Leonard Crestez wrote: > > These bits seem to be lost after a suspend/resume cycle so just set them > > again. > > > > This patch fixes ethernet suspend/resume on imx6ul-14x14-evk boards. > > > > Signed-off-by:

  1   2   3   4   5   6   7   8   9   10   >