[RFC PATCH v2 41/41] arm64/sve: Documentation: Add overview of the SVE userspace ABI

2017-03-22 Thread Dave Martin
This patch adds initial documentation of the ABI provided by the kernel to enable userspace software to make use of SVE. Signed-off-by: Dave Martin --- Documentation/arm64/sve.txt | 475 1 file changed, 475 insertions(+) create mode 100644 Documentat

Re: [PATCH v6 04/14] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2017-03-22 Thread Adrian Hunter
On 14/02/17 19:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Export sdhci_set_ios() in sdhci.c. > Thus vendor sdhci driver can implement its own set_ios() routine. > > Signed-off-by: Hu Ziji > Signed-off-by: Gregory CLEMENT Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci.c | 3 ++-

Re: [PATCH v5] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-22 Thread Michal Hocko
On Wed 22-03-17 22:11:33, Yisheng Xie wrote: > From: Yisheng Xie > > By reviewing code, I find that when enter do_try_to_free_pages, the > may_thrash is always clear, and it will retry shrink zones to tap > cgroup's reserves memory by setting may_thrash when the former > shrink_zones reclaim noth

Re: [PATCH v7 3/6] i2c: designware: MASTER mode as separated driver

2017-03-22 Thread Luis Oliveira
On 22-Mar-17 14:47, Jarkko Nikula wrote: > On 03/20/17 13:10, Luis Oliveira wrote: >> - The functions related to I2C master mode of operation were transformed >> in a single driver. >> - Common definitions were moved to i2c-designware-core.h >> - The i2c-designware-core is now only a library file

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Eric Dumazet
On Wed, 2017-03-22 at 15:33 +0100, Peter Zijlstra wrote: > > But I would feel a whole lot better about the entire thing if we could > measure their impact. It would also give us good precedent to whack > other potential users of _nocheck over the head with -- show numbers. I wont be able to meas

[RFC PATCH v2 33/41] arm64/sve: Wire up vector length control prctl() calls

2017-03-22 Thread Dave Martin
This patch provides implementation for the PR_SVE_SET_VL and PR_SVE_GET_VL prctls, which allow a task to set and query its vector length and associated control flags (although no flags are defined in this patch). Currently any thread can set its VL, allowing a mix of VLs within a single process --

[GIT PULL] phy: for 4.11 -rc cycle

2017-03-22 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for this -rc cycle below. The major change is removing USB3 PHY driver for Broadcom NSP merged during the last merge window. It is found there already exists a PHY driver (used by NS) and it can be shared with NSP as well. So in the coming merge windows the e

Re: [PATCH] percpu-refcount: support synchronous switch to atomic mode.

2017-03-22 Thread Tejun Heo
On Wed, Mar 22, 2017 at 12:50:12PM +1100, NeilBrown wrote: > > percpu_ref_switch_to_atomic_sync() schedules the switch > to atomic mode, then waits for it to complete. > > Also export percpu_ref_switch_to_* so they can be used from modules. > > This will be used in md/raid to count the number of

[PATCH 4/4] phy: qcom-usb-hs: Add depends on EXTCON

2017-03-22 Thread Kishon Vijay Abraham I
From: Stephen Boyd We get the following compile errors if EXTCON is enabled as a module but this driver is builtin: drivers/built-in.o: In function `qcom_usb_hs_phy_power_off': phy-qcom-usb-hs.c:(.text+0x1089): undefined reference to `extcon_unregister_notifier' drivers/built-in.o: In function

Re: [PATCH v2 05/18] arm64: cpu_errata: Add capability to advertise Cortex-A73 erratum 858921

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:16PM +, Marc Zyngier wrote: > In order to work around Cortex-A73 erratum 858921 in a subsequent > patch, add the required capability that advertise the erratum. > > As the configuration option it depends on is not present yet, > this has no immediate effect. > >

[PATCH 2/4] Revert "dt-bindings: phy: Add documentation for NSP USB3 PHY"

2017-03-22 Thread Kishon Vijay Abraham I
From: Rafał Miłecki This reverts commit c8ca631f9480 ("dt-bindings: phy: Add documentation for NSP USB3 PHY") to match reverting commit adding the new PHY driver. Please note we revert this commit before it reached stable release. If new compatible string is needed it should be added to the exis

Re: [PATCH v3 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-03-22 Thread Philipp Zabel
On Wed, 2017-03-22 at 08:26 -0500, Rob Herring wrote: > Similar to the previous commit, convert drivers open coding OF graph > parsing to use drm_of_find_panel_or_bridge instead. > > This changes some error messages to debug messages (in the graph core). > Graph connections are often "no connects"

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Jiri Slaby
On 03/22/2017, 03:11 PM, Josh Poimboeuf wrote: > Or, here's a much easier way to do it, without involving objtool: > > --- a/include/linux/linkage.h > +++ b/include/linux/linkage.h > @@ -138,9 +138,17 @@ > name: > #endif > > +#ifndef CHECK_DUP_SYM_END > +#define CHECK_DUP_SYM_END(name)

[PATCH 1/4] Revert "phy: Add USB3 PHY support for Broadcom NSP SoC"

2017-03-22 Thread Kishon Vijay Abraham I
From: Rafał Miłecki This reverts commit d7bc1a7d41bf ("phy: Add USB3 PHY support for Broadcom NSP SoC") as we already have driver for this PHY (shared by NS and NSP). It was added in commit e5666281d9ea ("phy: bcm-ns-usb3: new driver for USB 3.0 PHY on Northstar"). Instead of adding separated dr

Re: [PATCH v7 5/6] i2c: designware: add SLAVE mode functions

2017-03-22 Thread Jarkko Nikula
On 03/20/17 13:10, Luis Oliveira wrote: - Changes in Kconfig to enable I2C_DESIGNWARE_SLAVE support - Slave functions added to core library file - Slave abort sources added to common source file - New driver: i2c-designware-slave added - Changes in the Makefile to compile the I2C_DESIGNWARE_SLAVE

Re: [PATCH v3 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-03-22 Thread Philipp Zabel
On Wed, 2017-03-22 at 08:26 -0500, Rob Herring wrote: > Many drivers have a common pattern of searching the OF graph for either an > attached panel or bridge and then finding the DRM struct for the panel > or bridge. Also, most drivers need to handle deferred probing when the > DRM device is not ye

[PATCH 3/4] phy: phy-exynos-pcie: fix the wrong error return

2017-03-22 Thread Kishon Vijay Abraham I
From: Jaehoon Chung When it doesn't get the blk_base's resource, it was returned the error about phy_base, not blk_base. This patch is for fixing the wrong error return about blk_base. Fixes: cf0adb8e281b ("phy: phy-exynos-pcie: Add support for Exynos PCIe PHY") Signed-off-by: Jaehoon Chung Si

Re: [PATCH 03/20] asm-generic/io.h: add PCI config space remap interface

2017-03-22 Thread Lorenzo Pieralisi
Hi Bjorn, Arnd, On Thu, Mar 16, 2017 at 04:12:43PM -0500, Bjorn Helgaas wrote: > [+cc Luis] > > On Mon, Feb 27, 2017 at 03:14:14PM +, Lorenzo Pieralisi wrote: > > The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and > > Posting") mandate non-posted configuration transactions. As f

[v3 PATCH 4/4] powernv: Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" POWER9 DD1.0 hardware has an issue due to which the SPRs of a thread waking up from stop 0,1,2 with ESL=1 can endup being misplaced in the core. Thus the HSPRG0 of a thread waking up from can contain the paca pointer of its sibling. This patch implements a context recov

[v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently, the powernv cpu-offline function assumes that platform idle states such as stop on POWER9, winkle/sleep/nap on POWER8 are always available. On POWER8, it picks nap as the default state if other deep idle states like sleep/winkle are not available and enabled i

[v3 PATCH 0/4] powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, This is the third version of the patchset containing the fixes to make CPU-Hotplug working on correctly on POWER9 DD1 systems. The earlier versions can be found here: [v2] : https://lkml.org/lkml/2017/3/20/555 [v1] : https://lkml.org/lkml/2017/3/13/46 The only cha

[v3 PATCH 1/4] powernv: Move CPU-Offline idle state invocation from smp.c to idle.c

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Move the piece of code in powernv/smp.c::pnv_smp_cpu_kill_self() which transitions the CPU to the deepest available platform idle state to a new function named pnv_cpu_offline() in powernv/idle.c. The rationale behind this code movement is that the data required to deter

[v3 PATCH 3/4] powernv:idle: Don't override default/deepest directly in kernel

2017-03-22 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently during idle-init on power9, if we don't find suitable stop states in the device tree that can be used as the default_stop/deepest_stop, we set stop0 (ESL=1,EC=1) as the default stop state psscr to be used by power9_idle and deepest stop state which is used by C

[PATCH v3 5/5] ARM: configs: Add watchdog support in STM32 defconfig

2017-03-22 Thread Yannick Fertre
This patch adds STM32 watchdog support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..83afa73 100644 --- a/arch/arm/c

[PATCH v3 3/5] ARM: dts: stm32: Add watchdog support for STM32F429 SoC

2017-03-22 Thread Yannick Fertre
Add watchdog into DT for stm32f429 family. Signed-off-by: Yannick FERTRE --- arch/arm/boot/dts/stm32f429.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ee0da97..9b71dde 100644 --- a/arch/a

[PATCH v3 4/5] ARM: dts: stm32: Add watchdog support for STM32F429 eval board

2017-03-22 Thread Yannick Fertre
This patch adds watchdog support for STM32x9I-Eval board. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 3c99466..1c7d0b9 100644 ---

[PATCH v3 0/5] STM32 Independant watchdog

2017-03-22 Thread Yannick Fertre
Version 3: - Update typo into bindings file - Reorder node in devicetree (ordering by address) - Remove unecessary lines in commits Version 2: - Add commit messages Version 1: - Initial commit The purpose of this set of patches is to add a new watchdog driver for stm32f429. This driver was deve

[PATCH v3 1/5] dt-bindings: Document STM32 IWDG bindings

2017-03-22 Thread Yannick Fertre
From: Yannick Fertre This adds documentation of device tree bindings for the STM32 IWDG (Independent WatchDoG). Change-Id: Idadacc806d00205fe9af2e8606af229b4b760558 Signed-off-by: Yannick Fertre --- .../devicetree/bindings/watchdog/st,stm32-iwdg.txt| 15 +++ 1 file changed,

[PATCH v3 2/5] drivers: watchdog: Add STM32 IWDG driver

2017-03-22 Thread Yannick Fertre
This patch adds IWDG (Independent WatchDoG) support for STM32 platform. Change-Id: Iab218745fc25566f12558fae7f52e2f8c21db74e Signed-off-by: Yannick FERTRE --- drivers/watchdog/Kconfig | 11 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/stm32_iwdg.c | 289 ++

Re: [PATCH v2 04/18] arm64: cpu_errata: Allow an erratum to be match for all revisions of a core

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:15PM +, Marc Zyngier wrote: > Some minor erratum may not be fixed in further revisions of a core, > leading to a situation where the workaround needs to be updated each > time an updated core is released. > > Introduce a MIDR_ALL_VERSIONS match helper that will wo

[PATCH linux-next V2] tty: Disable default console blanking interval

2017-03-22 Thread Tim Gardner
BugLink: http://bugs.launchpad.net/bugs/869017 Console blanking is not enabling DPMS power saving (thereby negating any power-saving benefit), and is simply turning the screen content blank. This means that any crash output is invisible which is unhelpful on a server (virtual or otherwise). Furth

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 07:54:04AM -0700, Eric Dumazet wrote: > On Wed, 2017-03-22 at 15:33 +0100, Peter Zijlstra wrote: > > > > > But I would feel a whole lot better about the entire thing if we could > > measure their impact. It would also give us good precedent to whack > > other potential use

[PATCH] x86, asm-generic: add KASAN instrumentation to bitops

2017-03-22 Thread Dmitry Vyukov
Instrument bitops similarly to atomicops. See the following patches for details: asm-generic, x86: wrap atomic operations asm-generic: add KASAN instrumentation to atomic operations Signed-off-by: Dmitry Vyukov Cc: Mark Rutland Cc: Peter Zijlstra Cc: Will Deacon Cc: Andrey Ryabinin Cc: Ingo M

Re: [REGRESSION next-20170321] acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") causes silent kernel.

2017-03-22 Thread Ralph Sennhauser
Hi Philipp On Wed, 22 Mar 2017 15:33:47 +0100 Philipp Zabel wrote: > Hi Ralph, > > On Wed, 2017-03-22 at 15:24 +0100, Ralph Sennhauser wrote: > > Hi Philipp, > > > > Commit acbdad8dd1ab ("serial: 8250_dw: simplify optional reset > > handling") causes the kernel to no longer print anything to t

Re: [PATCH 03/20] asm-generic/io.h: add PCI config space remap interface

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 4:04 PM, Lorenzo Pieralisi wrote: > Hi Bjorn, Arnd, > > On Thu, Mar 16, 2017 at 04:12:43PM -0500, Bjorn Helgaas wrote: >> [+cc Luis] >> >> On Mon, Feb 27, 2017 at 03:14:14PM +, Lorenzo Pieralisi wrote: >> > The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering an

[PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Lionel Debieve
Use raw_spin_lock in enable/disable channel as it comes from interrupt context. BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:995 in_atomic(): 1, irqs_disabled(): 128, pid: 307, name: pulseaudio Preemption disabled at: [] __handle_domain_irq+0x4c/0xec CPU: 0 PID: 3

Re: [PATCH v6 4/4] fpga pr ip: Platform driver for Altera Partial Reconfiguration IP.

2017-03-22 Thread Alan Tull
On Tue, Mar 21, 2017 at 4:02 PM, wrote: > From: Matthew Gerlach > > This adds a platform bus driver for a fpga-mgr driver > that uses the Altera Partial Reconfiguration IP component. > > Signed-off-by: Matthew Gerlach Acked-by: Alan Tull > --- > v6: > add MODULE_LICENSE/DESCRIPTION/AUTHO

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Eric Dumazet
On Wed, 2017-03-22 at 16:08 +0100, Peter Zijlstra wrote: > On Wed, Mar 22, 2017 at 07:54:04AM -0700, Eric Dumazet wrote: > > On Wed, 2017-03-22 at 15:33 +0100, Peter Zijlstra wrote: > > > > > > > > But I would feel a whole lot better about the entire thing if we could > > > measure their impact.

Re: [PATCH] checkpatch: Flag spam header (X-Spam-Report) to prevent spurious warnings

2017-03-22 Thread Darren Hart
On Tue, Mar 21, 2017 at 11:31:08AM -0700, Joe Perches wrote: > On Tue, 2017-03-21 at 09:30 -0700, John 'Warthog9' Hawley (VMware) wrote: > > Spamassassin sticks a long (~79 character) long string after a > > line that has a single space in it. The line with space causes > > checkpatch to erroniousl

RE.......................

2017-03-22 Thread Ahmed Zama
Greetings I am requesting for your help, to assist me in getting about €15 million Euros transferred to your personal or company's account. please do indicate your interest for more information's. .Send me the followings 1) Names 2) Age 3) Nationality 4) Mobile telephon

Re: [PATCH] ARM: imx_v6_v7_defconfig: Select SMSC_PHY

2017-03-22 Thread Fabio Estevam
On Wed, Mar 22, 2017 at 11:27 AM, Leonard Crestez wrote: > The imx6sl-evk board has a LAN8720A ethernet phy supported by SMSC_PHY. > Add this driver to the default imx config since the device is present on > one of the evaluation boards. > > This used to work mostly fine with the generic phy drive

Re: [PATCH v6 3/4] fpga dt: bindings for Altera Partial Reconfiguration IP.

2017-03-22 Thread Alan Tull
On Tue, Mar 21, 2017 at 4:02 PM, wrote: > > From: Matthew Gerlach > > Device Tree bindings for Altera Partial Reconfiguration IP. > > Signed-off-by: Matthew Gerlach > Acked-by: Rob Herring Acked-by: Alan Tull > --- > v5: > fix comment as suggested by Rob Herring > added Acked-by: Ro

Re: [PATCH] ipmi: bt-bmc: Add ast2500 compatible string

2017-03-22 Thread Cédric Le Goater
On 03/22/2017 03:01 PM, Joel Stanley wrote: > The ast2500 SoCs contain the same IPMI BT device. > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater Thanks, C. > --- > Documentation/devicetree/bindings/ipmi/aspeed,ast2400-ibt-bmc.txt | 4 +++- > drivers/char/ipmi/bt-bmc.c

Re: [PATCH v6 2/4] fpga pr ip: Core driver support for Altera Partial Reconfiguration IP.

2017-03-22 Thread Alan Tull
On Tue, Mar 21, 2017 at 4:02 PM, wrote: > From: Matthew Gerlach > > Adding the core functions necessary for a fpga-mgr driver > for the Altera Partial IP component. It is intended for > these functions to be used by the various bus implementations > like the platform bus or the PCIe bus. > > Si

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Josh Poimboeuf
On Wed, Mar 22, 2017 at 04:01:08PM +0100, Jiri Slaby wrote: > On 03/22/2017, 03:11 PM, Josh Poimboeuf wrote: > > Or, here's a much easier way to do it, without involving objtool: > > > > --- a/include/linux/linkage.h > > +++ b/include/linux/linkage.h > > @@ -138,9 +138,17 @@ > > name: > > #en

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread Dmitry Vyukov
On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: > > > On 15/02/2017 10:26, David Hildenbrand wrote: >>> >>> Any progress with this? Should we commit this as is? >>> >> Paolo, should I resend as a proper notcopieddiff mail? > > Yes, please do (CCing sta...@vger.kernel.org too). > > Paolo Ha

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread David Hildenbrand
On 22.03.2017 16:34, Dmitry Vyukov wrote: > On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: >> >> >> On 15/02/2017 10:26, David Hildenbrand wrote: Any progress with this? Should we commit this as is? >>> Paolo, should I resend as a proper notcopieddiff mail? >> >> Yes, please

Re: [PATCH v2 2/7] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-03-22 Thread jacopo
Hi Geert, thanks for reviews On Wed, Mar 22, 2017 at 02:20:08PM +0100, Geert Uytterhoeven wrote: > On Wed, Mar 22, 2017 at 11:33 AM, Geert Uytterhoeven > wrote: > > On Mon, Mar 20, 2017 at 5:14 PM, Jacopo Mondi > > wrote: > >> Add device tree bindings documentation for Renesas RZ/A1 gpio an

Re: [RFC][PATCH 3/4] kernel, power: disable printk_kthread in unsafe places

2017-03-22 Thread Petr Mladek
(added Eric, kexec mailing likst, and linux-pm mailing list into CC because we touch their code) On Mon 2017-03-06 21:45:53, Sergey Senozhatsky wrote: > It's not always possible/safe to wake_up() printk kernel > thread. For example, late suspend/early resume may printk() > while timekeeping is not

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Catalin Marinas
On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: > On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas > wrote: > > Hi Arnd, > > > > On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: > >> This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as > >> asm(BUG_INSTR) wi

Re: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs

2017-03-22 Thread Sinan Kaya
On 3/22/2017 10:18 AM, Will Deacon wrote: > On Wed, Mar 22, 2017 at 10:15:04AM -0400, Sinan Kaya wrote: >> On 3/22/2017 10:04 AM, David Woodhouse wrote: >>> On Wed, 2017-03-22 at 09:54 -0400, Sinan Kaya wrote: On 3/22/2017 9:25 AM, David Woodhouse wrote: > > > +#ifdef __aarch64__

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:17PM +, Marc Zyngier wrote: > We're currently stuck with DT when it comes to handling errata, which > is pretty restrictive. In order to make things more flexible, let's > introduce an infrastructure that could support alternative discovery > methods. No change in

Re: [RFC][PATCH 4/4] printk: enable printk offloading

2017-03-22 Thread Petr Mladek
On Mon 2017-03-06 21:45:54, Sergey Senozhatsky wrote: > Initialize the kernel printing thread and enable printk() > offloading. The patch looks fine to me. But it might get more complicated if we decide to have a global option to avoid the kthread. Let's discuss this in the 3rd patch first. Best

[PATCH v7 1/7] clocksource/drivers/clksrc-evt-probe: Describe with the DT both the clocksource and the clockevent

2017-03-22 Thread Alexander Kochetkov
From: Daniel Lezcano The CLOCKSOURCE_OF_DECLARE() was introduced before the CLOCKEVENT_OF_DECLARE() and that resulted in some abuse where the clockevent and the clocksource are both initialized in the same init routine. With the introduction of the CLOCKEVENT_OF_DECLARE(), the driver can now spl

Re: [PATCH] PCI: dwc: fix crash seen due to missing ops

2017-03-22 Thread Joao Pinto
Hi Niklas, Às 2:43 PM de 3/21/2017, Niklas Cassel escreveu: > From: Niklas Cassel > > Fix the following crash, seen in dwc/pcie-artpec6. > > Unable to handle kernel NULL pointer dereference at virtual address 0004 > pgd = c0204000 > [0004] *pgd= > Internal error: Oops:

Re: [PATCH] blk-mq: don't complete un-started request in timeout handler

2017-03-22 Thread Keith Busch
On Tue, Mar 21, 2017 at 11:03:59PM -0400, Jens Axboe wrote: > On 03/21/2017 10:14 PM, Ming Lei wrote: > > When iterating busy requests in timeout handler, > > if the STARTED flag of one request isn't set, that means > > the request is being processed in block layer or driver, and > > isn't submitte

Re: [PATCH v2] x86: mostly disable '-maccumulate-outgoing-args'

2017-03-22 Thread Josh Poimboeuf
On Wed, Mar 22, 2017 at 08:51:53AM +0100, Ingo Molnar wrote: > > +#if defined(CONFIG_FUNCTION_GRAPH_TRACER) && \ > > + !defined(CC_USING_FENTRY) && \ > > + !defined(CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE) > > +# error Your compiler does not support function graph tracing > > +#endif > > Might make

[PATCH] regulator: rk808: Fix RK818 LDO2

2017-03-22 Thread Wadim Egorov
Set the correct voltage select register for LDO2. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index fb44d52..a16d814 100644 --- a

Re: [PATCH v2 2/7] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-03-22 Thread Geert Uytterhoeven
Hi Jacopo, On Wed, Mar 22, 2017 at 4:36 PM, jacopo wrote: > On Wed, Mar 22, 2017 at 02:20:08PM +0100, Geert Uytterhoeven wrote: >> On Wed, Mar 22, 2017 at 11:33 AM, Geert Uytterhoeven >> wrote: >> > On Mon, Mar 20, 2017 at 5:14 PM, Jacopo Mondi >> > wrote: >> >> Add device tree bindings docume

[PATCH v7 0/7] Implement clocksource for rockchip SoC using rockchip timer

2017-03-22 Thread Alexander Kochetkov
Hello, Daniel, Heiko. Here is try 7 :) Could you please take a look into it? rockchip_timer init code implemented using CLOCKEVENT_OF_DECLARE() introduced in commit 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") There is change in the arch/arm/mach-rockchip/rockchip.c. T

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Mike Leach
On 22 March 2017 at 14:07, Sudeep Holla wrote: > > > On 22/03/17 12:54, Mike Leach wrote: >> >> >> On 21 March 2017 at 15:39, Sudeep Holla > > wrote: >> > [...] > >> I disagree with this approach. One of the main usefulness of such >> self hosted debug feature is to de

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-22 Thread Pavel Machek
On Wed 2017-03-22 13:06:54, Jiri Slaby wrote: > Hi, > > On 03/21/2017, 03:08 PM, Pavel Machek wrote: > >> -ENTRY(saved_rbp) .quad 0 > >> -ENTRY(saved_rsi) .quad 0 > >> -ENTRY(saved_rdi) .quad 0 > >> -ENTRY(saved_rbx) .quad 0 > >> +SYM_DATA_START(saved_rbp) .quad 0 > >> +SYM_D

Re: [PATCH v2 03/10] x86: assembly, use SYM_FUNC_END for functions

2017-03-22 Thread Jiri Slaby
On 03/22/2017, 03:26 PM, Josh Poimboeuf wrote: > On Mon, Mar 20, 2017 at 01:32:15PM +0100, Jiri Slaby wrote: >> Somewhere END was used to end a function, elsewhere, nothing was used. >> So unify it and mark them all by SYM_FUNC_END. >> >> Signed-off-by: Jiri Slaby > > For me these patches would b

[PATCH v1] KVM: x86: fix illegal MP_STATE when in/entering SMM

2017-03-22 Thread David Hildenbrand
If we already entered/are about to enter SMM, don't allow switching to INIT/SIPI_RECEIVED, otherwise the next call to kvm_apic_accept_events() will report a warning. Fixes: cd7764fe9f73 ("KVM: x86: latch INITs while in system management mode") Cc: sta...@vger.kernel.org # 4.2+ Reported-by: Dmitry

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-22 Thread Marc Zyngier
On 22/03/17 15:41, Daniel Lezcano wrote: > On Mon, Mar 20, 2017 at 05:48:17PM +, Marc Zyngier wrote: >> We're currently stuck with DT when it comes to handling errata, which >> is pretty restrictive. In order to make things more flexible, let's >> introduce an infrastructure that could support

[PATCH v2] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-22 Thread Arushi Singhal
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ constant c; @@ -1 << c +BIT(c) Signed-off-by: Arushi Singhal --- changes in v2 - remove the unnecessary parenthesis. - removethe wrong changes. drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.

[v2] PCI: Add an option to control probing of VFs before enabling SR-IOV

2017-03-22 Thread bodong
From: Bodong Wang Sometimes it is not desirable to probe the virtual functions after SRIOV is enabled. This can save host side resource usage by VF instances which would be eventually probed to VMs. Add a new PCI sysfs interface "sriov_probe_vfs" to control that from the PF, all current callers

Re: [PATCH] ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188

2017-03-22 Thread Heiko Stuebner
Hi Alexander, Am Dienstag, 21. März 2017, 18:13:47 CET schrieb Alexander Kochetkov: > This commit enable DMA-based transfers for SD/eMMC card adapters > and reduce number of interrupts produced by SD-card/eMMC-card > adapters. > > Sometimes interrupts from SD-card/eMMC-card adapters running in >

[PATCH v7 4/7] ARM: dts: rockchip: add clockevent attribute to rockchip timers

2017-03-22 Thread Alexander Kochetkov
All rockchip timers present in the DT act as clockevent. It is possible to specify timer role using DT attribute. Mark them accordingly. Also this patch specify that for timer should be called init function specified with CLOCKEVENT_OF_DECLARE(). Without the commit boot warnings will appear becau

[PATCH] net: stmmac: dwmac-rk: Add handling for RGMII_ID/RXID/TXID

2017-03-22 Thread Wadim Egorov
ATM dwmac-rk will always set and enable it's internal delay lines. Using PHY internal delays in combination with the phy-mode rgmii-id/rxid/txid was not possible. Only rgmii was supported. Now we can disable rockchip's gmac delay lines and also use rgmii-id/rxid/txid. Tested only with a RK3288 ba

[PATCH v7 3/7] ARM: dts: rockchip: update compatible property for rk322x timer

2017-03-22 Thread Alexander Kochetkov
Property set to '"rockchip,rk3228-timer", "rockchip,rk3288-timer"' to match devicetree bindings. Signed-off-by: Alexander Kochetkov Suggested-by: Heiko Stübner Reviewed-by: Heiko Stuebner --- arch/arm/boot/dts/rk322x.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

Re: [PATCH v2 09/18] arm64: arch_timer: Move arch_timer_reg_read/write around

2017-03-22 Thread Daniel Lezcano
On Mon, Mar 20, 2017 at 05:48:20PM +, Marc Zyngier wrote: > As we're about to move things around, let's start with the low > level read/write functions. This allows us to use these functions > in the errata handling code without having to use forward declaration > of static functions. > > Acke

[PATCH v7 6/7] ARM: dts: rockchip: add timer entries to rk3188 SoC

2017-03-22 Thread Alexander Kochetkov
The patch add two timers to all rk3188 based boards. The first timer is from alive subsystem and it act as a backup for the local timers at sleep time. It act the same as other SoC rockchip timers already present in kernel. The second timer is from CPU subsystem and act as replacement for the arm

[PATCH v7 2/7] dt-bindings: clarify compatible property for rockchip timers

2017-03-22 Thread Alexander Kochetkov
Make all properties description in form '"rockchip,-timer", "rockchip,rk3288-timer"' for all chips found in linux kernel. Suggested-by: Heiko Stübner Signed-off-by: Alexander Kochetkov Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- .../bindings/timer/rockchip,rk-timer.txt |

[PATCH v7 5/7] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-03-22 Thread Alexander Kochetkov
The clock supplying the arm-global-timer on the rk3188 is coming from the the cpu clock itself and thus changes its rate everytime cpufreq adjusts the cpu frequency making this timer unsuitable as a stable clocksource and sched clock. The rk3188, rk3288 and following socs share a separate timer bl

Re: [PATCHv2 1/2] mfd: cpcap: Add missing include dependencies

2017-03-22 Thread Tony Lindgren
* Pavel Machek [170322 02:29]: > On Wed 2017-03-22 01:09:11, Sebastian Reichel wrote: > > This fixes compilation for files, that try to include the > > cpcap header in alphabetically sorted #include lists. > > > > Signed-off-by: Sebastian Reichel > > Acked-by: Pavel Machek Hmm I wonder why I

[patch added to 3.12-stable] MIPS: ip22: Fix ip28 build for modern gcc

2017-03-22 Thread Jiri Slaby
From: Arnd Bergmann This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit 23ca9b522383d3b9b7991d8586db30118992af4a upstream. kernelci reports a failure of the ip28_defconfig build after upgrading its gcc version: arch/mips/sg

[patch added to 3.12-stable] MIPS: ip27: Disable qlge driver in defconfig

2017-03-22 Thread Jiri Slaby
From: Arnd Bergmann This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit b617649468390713db1515ea79fc772d2eb897a8 upstream. One of the last remaining failures in kernelci.org is for a gcc bug: drivers/net/ethernet/qlogic/qlg

[PATCH v7 7/7] ARM: dts: rockchip: disable arm-global-timer for rk3188

2017-03-22 Thread Alexander Kochetkov
The clocksource and the sched_clock provided by the arm_global_timer are quite unstable because their rates depend on the cpu frequency. On the other side, the arm_global_timer has a higher rating than the rockchip_timer, it will be selected by default by the time framework while we want to use th

Re: [PATCH 12/15] i2c: core: Add new i2c_acpi_new_device helper function

2017-03-22 Thread Hans de Goede
Hi, On 17-03-17 18:37, Andy Shevchenko wrote: On Fri, 2017-03-17 at 10:55 +0100, Hans de Goede wrote: By default the i2c subsys creates an i2c-client for the first I2cSerialBus resource of an acpi_device, but some acpi_devices have multiple I2cSerialBus resources and the driver may need access

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-22 Thread Marc Zyngier
[Sorry, sent too quickly] On 22/03/17 15:41, Daniel Lezcano wrote: > On Mon, Mar 20, 2017 at 05:48:17PM +, Marc Zyngier wrote: >> We're currently stuck with DT when it comes to handling errata, which >> is pretty restrictive. In order to make things more flexible, let's >> introduce an infrast

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Leo Yan
On Wed, Mar 22, 2017 at 02:07:47PM +, Sudeep Holla wrote: > On 22/03/17 12:54, Mike Leach wrote: > > On 21 March 2017 at 15:39, Sudeep Holla > > wrote: > > > [...] > > > I disagree with this approach. One of the main usefulness of such > > self hosted debug featu

Re: [PATCH 0/5] fujitsu-laptop: platform device code cleanup

2017-03-22 Thread Darren Hart
On Sat, Mar 18, 2017 at 10:10:35PM +1030, Jonathan Woithe wrote: > Apologies for the delay in reviewing this series: I've had a busy few days. > > On Tue, Mar 14, 2017 at 11:26:26AM +0100, Micha?? K??pie?? wrote: > > This series removes backlight-related sysfs attributes from the platform > > devi

Re: [v3 PATCH 4/4] powernv: Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-22 Thread Nicholas Piggin
On Wed, 22 Mar 2017 20:34:17 +0530 "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > POWER9 DD1.0 hardware has an issue due to which the SPRs of a thread > waking up from stop 0,1,2 with ESL=1 can endup being misplaced in the > core. Thus the HSPRG0 of a thread waking up from can conta

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Steven Rostedt
On Wed, 22 Mar 2017 16:18:43 +0100 Lionel Debieve wrote: > Use raw_spin_lock in enable/disable channel as it comes from > interrupt context. > > BUG: sleeping function called from invalid context at > kernel/locking/rtmutex.c:995 > in_atomic(): 1, irqs_disabled(): 128, pid: 307, name: pulseaudio

[PATCH] kasan: report only the first error

2017-03-22 Thread Andrey Ryabinin
Disable kasan after the first report. There are several reasons for this: * Single bug quite often has multiple invalid memory accesses causing storm in the dmesg. * Write OOB access might corrupt metadata so the next report will print bogus alloc/free stacktraces. * Reports after the fi

[RESEND v1] UBI: add debugfs file for tracking PEB state

2017-03-22 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown --- drivers/mtd/ubi/de

Re: [PATCH v5 2/4] fpga pr ip: Core driver support for Altera Partial Reconfiguration IP.

2017-03-22 Thread matthew . gerlach
On Tue, 21 Mar 2017, Anatolij Gustschin wrote: Hi Matthew, Hi Anatolij, On Fri, 10 Mar 2017 11:40:25 -0800 matthew.gerl...@linux.intel.com matthew.gerl...@linux.intel.com wrote: ... +int alt_pr_unregister(struct device *dev) +{ + dev_dbg(dev, "%s\n", __func__); + + fpga_mgr_u

Re: [PATCH v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Neil Armstrong
On 03/22/2017 05:08 PM, Jose Abreu wrote: > Hi Neil, > > > On 21-03-2017 15:12, Neil Armstrong wrote: >> Some display pipelines can only provide non-RBG input pixels to the HDMI TX >> Controller, this patch takes the pixel format from the plat_data if provided. >> >> Signed-off-by: Neil Armstrong

Re: [PATCH v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Jose Abreu
Hi Neil, On 21-03-2017 15:12, Neil Armstrong wrote: > Some display pipelines can only provide non-RBG input pixels to the HDMI TX > Controller, this patch takes the pixel format from the plat_data if provided. > > Signed-off-by: Neil Armstrong Looks fine, I'm assuming you test this on your plat

Re: [PATCH RT] tty: serial: st-asc: Make the locking RT aware

2017-03-22 Thread Steven Rostedt
On Wed, 22 Mar 2017 08:43:50 + Lionel DEBIEVE wrote: > Just to agree with Thomas. > > Do you want me to resend the patch without RT tag? > Yes please. And hopefully it will be picked up in mainline. -- Steve

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 08:44:14AM -0400, William Breathitt Gray wrote: > On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: > >The 104-idi-48 gpio driver currently implements an irq_chip for handling > >interrupts; due to how irq_chip handling is done, it's necessary for the > >irq_

Re: kexec regression since 4.9 caused by efi

2017-03-22 Thread Ard Biesheuvel
On 21 March 2017 at 07:48, Dave Young wrote: > On 03/20/17 at 10:14am, Dave Young wrote: >> On 03/17/17 at 01:32pm, Matt Fleming wrote: >> > On Fri, 17 Mar, at 10:09:51AM, Dave Young wrote: >> > > >> > > Matt, I think it should be fine although I think the md type checking in >> > > efi_mem_desc_l

Re: [PATCH] x86: remove unused atomic_inc_short()

2017-03-22 Thread Andrey Ryabinin
On 03/22/2017 05:10 PM, Dmitry Vyukov wrote: > It is completely unused and implemented only on x86. > Remove it. > > Signed-off-by: Dmitry Vyukov > Suggested-by: Andrey Ryabinin Not me, it was Mark Rutland > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Peter Zijlstr

[PATCH] staging: vt6656: removed coding style errors

2017-03-22 Thread Prasant Jalan
The patch replaces spaces with tabs as required by kernel coding standards. Signed-off-by: Prasant Jalan --- drivers/staging/vt6656/rxtx.c | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/stagin

RE: [PATCH RT] tty: serial: st-asc: Make the locking RT aware

2017-03-22 Thread Lionel DEBIEVE
OK, resend without. BR Lionel -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: mercredi 22 mars 2017 17:11 To: Lionel DEBIEVE Cc: Thomas Gleixner ; linux-rt-us...@vger.kernel.org; linux-kernel@vger.kernel.org; bige...@linutronix.de; Patrice CHOTARD ; Greg Kroa

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Sudeep Holla
On 22/03/17 15:45, Mike Leach wrote: > On 22 March 2017 at 14:07, Sudeep Holla wrote: >> >> >> On 22/03/17 12:54, Mike Leach wrote: >>> >>> >>> On 21 March 2017 at 15:39, Sudeep Holla >> > wrote: >>> >> [...] >> >>> I disagree with this approach. One of the main usef

[PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread simran singhal
The IIO subsystem is redefining iio_dev->mlock to be used by the IIO core only for protecting device operating mode changes. ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. In this driver, mlock was being used to protect hardware state changes. In the driver, buf_lock protects both t

Re: [PATCH] staging: fbtft: Replace a bit shift by a use of BIT.

2017-03-22 Thread Andy Shevchenko
On Wed, Mar 22, 2017 at 4:37 AM, Arushi Singhal wrote: > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > While using BIT() macro is a good idea, you make it inconsistent here. There are at least two opti

Re: [PATCH v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Philipp Zabel
On Tue, 2017-03-21 at 16:12 +0100, Neil Armstrong wrote: > Some display pipelines can only provide non-RBG input pixels to the HDMI TX > Controller, this patch takes the pixel format from the plat_data if provided. > > Signed-off-by: Neil Armstrong On i.MX6 we could provide RGB/YUV bus formats d

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