Re: [PATCH v2 09/16] mmc: sdhci: Add quirk to disable HW timeout

2018-03-05 Thread Adrian Hunter
On 05/03/18 11:30, Kishon Vijay Abraham I wrote: > Hi Adrian, > > On Monday 19 February 2018 02:21 PM, Adrian Hunter wrote: >> On 05/02/18 14:50, Kishon Vijay Abraham I wrote: >>> Add quirk to disable HW timeout if the requested timeout is more than >>> the maximum obtainable timeout. >>> >>> Sign

Re: [PATCH 3/3] fixdep: do not ignore kconfig.h

2018-03-05 Thread Masahiro Yamada
2018-03-05 17:15 GMT+09:00 Rasmus Villemoes : > On 5 March 2018 at 05:52, Masahiro Yamada > wrote: >> 2018-03-01 4:17 GMT+09:00 Rasmus Villemoes : >>> kconfig.h was excluded from consideration by fixdep by >>> 6a5be57f0f00 (fixdep: fix extraneous dependencies) to avoid some false >>> positive hit

Re: [PATCH v3 00/16] mmc: tmio: another batch of TMIO MMC fixes and cleanups

2018-03-05 Thread Wolfram Sang
> >> They are all present in my next branch. The fix that Wolfram sent on > >> top, is added immediately after the commit it fixes. > > > > Could we also squash it, then? > > > > If Wolfram is fine with squashing, > that would be cleaner. > > In that case, can you add Tested-by > to patch 12? Y

Re: [PATCH 1/2] arm: add basic support for Renesas RZ/N1 boards

2018-03-05 Thread Geert Uytterhoeven
Hi Michel, On Mon, Feb 26, 2018 at 1:18 PM, Michel Pollet wrote: > This adds the Renesas RZ/N1 CPU and bare bone support. > > This currently only handles generic parts (gic, architected timer) > and a UART. > This also relies on the bootloader to set the pinctrl and clocks. > > Signed-off-by: Mic

Re: [PATCH -V2 -mm] mm: Fix races between swapoff and flush dcache

2018-03-05 Thread Mike Rapoport
On Mon, Mar 05, 2018 at 04:36:34PM +0800, Huang, Ying wrote: > From: Huang Ying > > From commit 4b3ef9daa4fc ("mm/swap: split swap cache into 64MB > trunks") on, after swapoff, the address_space associated with the swap > device will be freed. So page_mapping() users which may touch the > addres

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Roger Quadros
Felipe, On 05/03/18 10:49, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> Roger Quadros writes: In the following test we get stuck by sleeping forever in _dwc3_set_mode() after which dual-role switching doesn't work. On dra7-evm's dual-role port, - Load g_ze

Re: [PATCH 2/2] arm: rzn1: Add basic support for RZN1D-DB Board

2018-03-05 Thread Geert Uytterhoeven
Hi Michel, On Mon, Feb 26, 2018 at 1:18 PM, Michel Pollet wrote: > Only enables the uart0 for now, and also relies on the bootloader > for setting up the clocks and pinctrl. > > Signed-off-by: Michel Pollet Thanks for your patch! This should be split in two parts: > Documentation/devicetree/

Re: [PATCH v8 1/6] fs/posix_acl: Update the comments and support lightweight cache skipping

2018-03-05 Thread Miklos Szeredi
On Fri, Mar 2, 2018 at 10:59 PM, Eric W. Biederman wrote: > The code has been missing a way for a ->get_acl method to not cache > a return value without risking invalidating a cached value > that was set while get_acl() was returning. > > Add that support by implementing to_uncachable_acl, to_cach

[PATCH 6/6] remoteproc: qcom: Always assert and deassert reset signals in SDM845

2018-03-05 Thread sibis
SDM845 brings a new reset signal ALT_RESET which is a part of the MSS subsystem hence requires some of the active clks to be enabled before assert/deassert Reset the modem if the BOOT FSM does timeout Reset assert/deassert sequence vary across SoCs adding reset, adding start/stop helper functions

[PATCH 0/6] Add support for remoteproc modem-pil on SDM845 SoCs

2018-03-05 Thread sibis
This patch series add support for remoteproc Q6v5 modem-pil on Qualcomm SDM845 SoC. The first patch adds AOSS (Always on subsystem) reset driver to provide for mss reset line. The third patch adds the APCS offset for SDM845. The last couple of patches add the resets sequence for Q6 on SDM845 and ad

[PATCH 3/6] mailbox: Add support for Qualcomm SDM845 SoCs

2018-03-05 Thread sibis
Add the corresponding APCS offset for SDM845 SoC Signed-off-by: sibis --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 57bde0d..62d704d 100644 --- a/drivers/mai

Re: [PATCH v8 7/8] livepatch: Correctly handle atomic replace for not yet loaded modules

2018-03-05 Thread Miroslav Benes
On Fri, 2 Mar 2018, Joe Lawrence wrote: > On 03/01/2018 05:28 AM, Petr Mladek wrote: > > On Thu 2018-02-22 22:00:28, Miroslav Benes wrote: > >> On Wed, 21 Feb 2018, Petr Mladek wrote: > >>> This patch allows the late initialization. > >>> > >>> diff --git a/kernel/livepatch/core.c b/kernel/livepat

[PATCH 2/6] dt-bindings: mailbox: Add APCS global binding for SDM845 SoCs

2018-03-05 Thread sibis
Include SDM845 APCS binding to the list of possible bindings Signed-off-by: sibis --- Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/

[PATCH 5/6] remoteproc: qcom: Add support for mss remoteproc on SDM845

2018-03-05 Thread sibis
>From SDM845, the Q6SS reset sequence on software side has been simplified with the introduction of boot FSM which assists in bringing the Q6 out of reset Add GLINK subdevice to allow definition of GLINK edge as a child of modem-pil Signed-off-by: sibis --- drivers/remoteproc/qcom_q6v5_pil.c |

[PATCH 1/6] reset: qcom: AOSS (Always on subsystem) reset controller

2018-03-05 Thread sibis
Add reset controller driver for Qualcomm SDM845 SoC to control reset signals provided by AOSS for Modem, Venus ADSP, GPU, Camera, Wireless, Display subsystem Signed-off-by: sibis --- .../devicetree/bindings/reset/qcom,aoss-reset.txt | 54 drivers/reset/Kconfig

[PATCH 4/6] dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845

2018-03-05 Thread sibis
Add new compatible string for Qualcomm SDM845 SoCs Signed-off-by: sibis --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/b

Re: [PATCH RFC 1/3] x86/kvm/vmx: read MSR_FS_BASE from current->thread

2018-03-05 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: >> vmx_save_host_state() is only called from kvm_arch_vcpu_ioctl_run() so >> the context is pretty well defined >> > > True. > >> and MSR_FS_BASE should always be >> equal to current->thread.fsbase. > > Not true.

[RFC PATCH] cdc-acm: do not drop data from fast devices

2018-03-05 Thread Romain Izard
There are some devices using their USB CDC-ACM interfaces as a debug port that are able to send data at a very high speed, but with the current driver implementation it is not possible to receive it when using a relatively slow embedded system without dropping an important part of the data. The ex

Re: [PATCH RFC 3/3] x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE

2018-03-05 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: >> vmx_save_host_state() is only called from kvm_arch_vcpu_ioctl_run() so >> the context is pretty well defined and as we're past 'swapgs' MSR_GS_BASE >> should contain kernel's GS base which we point to irq_stack

Re: [PATCH v4 01/19] [BUGFIX] tracing: probeevent: Fix to support minus offset from symbol

2018-03-05 Thread Masami Hiramatsu
On Mon, 5 Mar 2018 11:28:14 +0900 Namhyung Kim wrote: > Hi Masami, > > On Fri, Mar 02, 2018 at 03:32:29PM +0900, Masami Hiramatsu wrote: > > On Fri, 2 Mar 2018 13:49:51 +0900 > > Namhyung Kim wrote: > > > > > Hi Masami, > > > > > > On Wed, Feb 28, 2018 at 12:19:53PM +0900, Masami Hiramatsu wr

Re: Linux 4.16-rc4

2018-03-05 Thread Martin Steigerwald
Hi Sven. Sven Joachim - 05.03.18, 09:09: > On 2018-03-04 15:15 -0800, Linus Torvalds wrote: > > Hmm. A reasonably calm week - the biggest change is to the 'kvm-stat' > > tool, not any actual kernel files. > > > > But there's small changes all over, with architecture updates (x86, > > s390, arm, p

Re: [PATCH 07/11] Staging: iio: accel: Adjust arguments to match open parentheses

2018-03-05 Thread Dan Carpenter
On Mon, Mar 05, 2018 at 01:19:26PM +0530, Himanshu Jha wrote: > In adis16201_read_raw() adjust an argument to match an open parentheses > using tabs. > > Signed-off-by: Himanshu Jha > --- > drivers/staging/iio/accel/adis16201.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --

Re: Linux 4.16-rc4

2018-03-05 Thread Peter Zijlstra
On Mon, Mar 05, 2018 at 09:09:31AM +0100, Sven Joachim wrote: > On 2018-03-04 15:15 -0800, Linus Torvalds wrote: > > > Hmm. A reasonably calm week - the biggest change is to the 'kvm-stat' > > tool, not any actual kernel files. > > > > But there's small changes all over, with architecture updates

Re: [PATCH] staging: irda: Replace printk() with appropriate net_*macro_ratelimited()

2018-03-05 Thread Dan Carpenter
On Mon, Mar 05, 2018 at 04:02:06AM +0530, Arushi Singhal wrote: > Replace printk having a log level with the appropriate > net_*macro_ratelimited. > It's better to use actual device name as a prefix in error messages. > Indentation is also changed, to fix the checkpatch issue if line is not > exce

Re: [PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-03-05 Thread Vratislav Bendel
(In response to Luis' comment:) > Can you add a respective Fixes: tag? It was apparently present since LRU was added to xfs buffer cache via: commit 430cbeb86fdcbbdabea7d4aa65307de8de425350 [xfs: add a lru to the XFS buffer cache] But I wouldn't say this patch "fixes" that commit. What do you thi

Re: [PATCH AUTOSEL for 4.15 026/102] ASoC: fsl_ssi: only enable proper channel slots in AC'97 mode

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:24:24PM +, Sasha Levin wrote: > We need to make sure that only proper channel slots (in SACCST register) > are enabled at playback start time since some AC'97 CODECs (like VT1613 on > UDOO board) were observed requesting via SLOTREQ spurious ones just after > an AC'9

Re: [PATCH AUTOSEL for 4.15 043/102] ASoC: tlv320aic31xx: Handle inverted BCLK in non-DSP modes

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:24:34PM +, Sasha Levin wrote: > Currently BCLK inverting is only handled when the DAI format is > DSP, but the BCLK may be inverted in any supported mode. Without > this using this CODEC in any other mode than DSP with the BCLK > inverted leads to bad sampling timing

Re: [PATCH v2 1/1] usb: xhci: do not create and register shared_hcd when USB3.0 is disabled

2018-03-05 Thread Thang Q. Nguyen
On Mon, Jan 29, 2018 at 5:24 PM, Thang Q. Nguyen wrote: > From: Tung Nguyen > > Currently, hcd->shared_hcd always creates and registers to the usb-core. > If, for some reasons, USB3 downstream port is disabled, no roothub port for > USB3.0 is found. This causes kernel to display an error: > hub 2

Re: [PATCH AUTOSEL for 4.9 002/219] spi/bcm63xx: make spi subsystem aware of message size limits

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:27:56PM +, Sasha Levin wrote: > From: Jonas Gorski > > [ Upstream commit 0135c03df914f0481c61f097c78d37cece84f330 ] Why are there so many more patches for v4.9 than for more recent kernels? > The bcm63xx SPI controller does not allow manual control of the CS > lin

Re: [PATCH v3 3/3] arm64: dts: rockchip: Avoid wakeup when inserting the pen

2018-03-05 Thread Enric Balletbo Serra
Hi Jeffy, Thanks for the patch. 2018-03-02 4:51 GMT+01:00 Jeffy Chen : > Add wakeup event action for Pen Insert gpio key, to avoid wakeup when > inserting the pen. > > Signed-off-by: Jeffy Chen > --- > > Changes in v3: None > Changes in v2: > Specify wakeup event action instead of irq trigger ty

[PATCH v6 4/6] regulator: pfuze100: add fsl,pmic-stby-poweroff property

2018-03-05 Thread Oleksij Rempel
Document the new optional "fsl,pmic-stby-poweroff" property. Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/regulator/pfuze100.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/pfuze100.txt b/Do

[PATCH v6 5/6] regulator: pfuze100-regulator: provide pm_power_off_prepare handler

2018-03-05 Thread Oleksij Rempel
On some boards the SoC can use one pin "PMIC_STBY_REQ" to notify th PMIC about state changes. In this case internal state of PMIC must be preconfigured for upcomming state change. It works fine with the current regulator framework, except with the power-off case. This patch is providing an optiona

[PATCH 21/34] x86/mm/pae: Populate valid user PGD entries

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Generic page-table code populates all non-leaf entries with _KERNPG_TABLE bits set. This is fine for all paging modes except PAE. In PAE mode only a subset of the bits is allowed to be set. Make sure we only set allowed bits by masking out the reserved bits. Signed-off-by: Jo

[PATCH 14/34] x86/entry/32: Add PTI cr3 switch to non-NMI entry/exit points

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Add unconditional cr3 switches between user and kernel cr3 to all non-NMI entry and exit points. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 91 +-- 1 file changed, 88 insertions(+), 3 deletions(-) diff --git a/arc

[PATCH 00/34 v3] PTI support for x32

2018-03-05 Thread Joerg Roedel
Hi, here is an updated version of my PTI patches for x86-32. I worked in the review comments and fixed a few bugs that were found during review of v2. In particular, the changes to v2 are: * Switched from movsb to movsl for stack copy * Simplified sysexit path to not do a full pt

[PATCH 28/34] x86/pgtable/pae: Use separate kernel PMDs for user page-table

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel We need separate kernel PMDs in the user page-table when PTI is enabled to map the per-process LDT for user-space. Signed-off-by: Joerg Roedel --- arch/x86/mm/pgtable.c | 100 -- 1 file changed, 81 insertions(+), 19 deletions(-

[PATCH 02/34] x86/entry/32: Rename TSS_sysenter_sp0 to TSS_entry_stack

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel The stack address doesn't need to be stored in tss.sp0 if we switch manually like on sysenter. Rename the offset so that it still makes sense when we change its location. We will also use this stack for all kernel-entry points, not just sysenter. Reflect that in the name as we

[PATCH 33/34] x86/pti: Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Allow PTI to be compiled on x86_32. Signed-off-by: Joerg Roedel --- security/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Kconfig b/security/Kconfig index b0cb9a5..93d85fd 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -57,7 +

Re: [PATCH v5 1/6] dt-bindings: add bindings for USB physical connector

2018-03-05 Thread Heikki Krogerus
On Mon, Mar 05, 2018 at 09:18:10AM +0100, Andrzej Hajda wrote: > On 02.03.2018 14:13, Heikki Krogerus wrote: > > Hi, > > > > On Tue, Feb 27, 2018 at 08:11:29AM +0100, Andrzej Hajda wrote: > >> +2. USB-C connector attached to CC controller (s2mm005), HS lines routed > >> +to companion PMIC (max77865

[PATCH 34/34] x86/mm/pti: Add Warning when booting on a PCIE capable CPU

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Warn the user in case the performance can be significantly improved by switching to a 64-bit kernel. Suggested-by: Andy Lutomirski Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/mm/pti.c b/arc

[PATCH 31/34] x86/ldt: Split out sanity check in map_ldt_struct()

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel This splits out the mapping sanity check and the actual mapping of the LDT to user-space from the map_ldt_struct() function in a way so that it is re-usable for PAE paging. Signed-off-by: Joerg Roedel --- arch/x86/kernel/ldt.c | 82 ---

[PATCH 24/34] x86/mm/pti: Add an overflow check to pti_clone_pmds()

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel The addr counter will overflow if we clone the last PMD of the address space, resulting in an endless loop. Check for that and bail out of the loop when it happens. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 4 1 file changed, 4 insertions(+) diff --git a/arc

[PATCH 32/34] x86/ldt: Enable LDT user-mapping for PAE

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel This adds the needed special case for PAE to get the LDT mapped into the user page-table when PTI is enabled. The big difference to the other paging modes is that we don't have a full top-level PGD entry available for the LDT, but only PMD entry. Signed-off-by: Joerg Roedel -

[PATCH 29/34] x86/ldt: Reserve address-space range on 32 bit for the LDT

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Reserve 2MB/4MB of address-space for mapping the LDT to user-space on 32 bit PTI kernels. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_32_types.h | 7 +-- arch/x86/mm/dump_pagetables.c | 9 + 2 files changed, 14 insertions(+), 2 deletion

[PATCH 30/34] x86/ldt: Define LDT_END_ADDR

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel It marks the end of the address-space range reserved for the LDT. The LDT-code will use it when unmapping the LDT for user-space. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_32_types.h | 2 ++ arch/x86/include/asm/pgtable_64_types.h | 2 ++ arch/x86/kernel/l

[PATCH 27/34] x86/mm/dump_pagetables: Define INIT_PGD

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Define INIT_PGD to point to the correct initial page-table for 32 and 64 bit and use it where needed. This fixes the build on 32 bit with CONFIG_PAGE_TABLE_ISOLATION enabled. Signed-off-by: Joerg Roedel --- arch/x86/mm/dump_pagetables.c | 12 ++-- 1 file changed, 6 i

[PATCH 22/34] x86/mm/pae: Populate the user page-table with user pgd's

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel When we populate a PGD entry, make sure we populate it in the user page-table too. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-3level.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/p

[PATCH 26/34] x86/mm/pti: Clone CPU_ENTRY_AREA on PMD level on x86_32

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Cloning on the P4D level would clone the complete kernel address space into the user-space page-tables for PAE kernels. Cloning on PMD level is fine for PAE and legacy paging. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 20 1 file changed, 20 ins

[PATCH 19/34] x86/pgtable: Move pti_set_user_pgtbl() to pgtable.h

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel There it is also usable from 32 bit code. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h| 23 +++ arch/x86/include/asm/pgtable_64.h | 21 - 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/arch/x86/i

Re: [PATCH] KVM: lapic: stop advertising DIRECTED_EOI when in-kernel IOAPIC is in use

2018-03-05 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Devices which use level-triggered interrupts under Windows 2016 with > Hyper-V role enabled don't work: Windows disables EOI broadcast in SPIV > unconditionally. Our in-kernel IOAPIC implementation emulates an old IOAPIC > version which has no EOI register so EOI never

[PATCH 25/34] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Move it out of the X86_64 specific processor defines so that its visible for 32bit too. Reviewed-by: Andy Lutomirski Signed-off-by: Joerg Roedel --- arch/x86/include/asm/processor-flags.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/i

[PATCH 20/34] x86/pgtable: Move two more functions from pgtable_64.h to pgtable.h

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel These two functions are required for PTI on 32 bit: * pgdp_maps_userspace() * pgd_large() Also re-implement pgdp_maps_userspace() so that it will work on 64 and 32 bit kernels. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-2level_types.h | 3

[PATCH 18/34] x86/pgtable: Move pgdp kernel/user conversion functions to pgtable.h

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Make them available on 32 bit and clone_pgd_range() happy. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h| 49 +++ arch/x86/include/asm/pgtable_64.h | 49 --- 2 files changed, 49 inse

[PATCH 03/34] x86/entry/32: Load task stack from x86_tss.sp1 in SYSENTER handler

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel We want x86_tss.sp0 point to the entry stack later to use it as a trampoline stack for other kernel entry points besides SYSENTER. So store the task stack pointer in x86_tss.sp1, which is otherwise unused by the hardware, as Linux doesn't make use of Ring 1. Signed-off-by: Jo

[PATCH 23/34] x86/mm/legacy: Populate the user page-table with user pgd's

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Also populate the user-spage pgd's in the user page-table. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-2level.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/include/asm/pgtable-2level.h b/arch/x86/include/asm/pgtable-2level.h index

[PATCH 10/34] x86/entry/32: Introduce SAVE_ALL_NMI and RESTORE_ALL_NMI

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel These macros will be used in the NMI handler code and replace plain SAVE_ALL and RESTORE_REGS there. We will add the NMI-specific CR3-switch to these macros later. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 23 +++ 1 file changed, 19 inse

[PATCH 16/34] x86/pgtable/pae: Unshare kernel PMDs when PTI is enabled

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel With PTI we need to map the per-process LDT into the kernel address-space for each process, so we need separate kernel PMDs per PGD. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-3level_types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -

[PATCH 17/34] x86/pgtable/32: Allocate 8k page-tables when PTI is enabled

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Allocate a kernel and a user page-table root when PTI is enabled. Also allocate a full page per root for PAE because otherwise the bit to flip in cr3 to switch between them would be non-constant, which creates a lot of hassle. Keep that for a later optimization. Signed-off-by:

[PATCH 13/34] x86/entry/32: Add PTI cr3 switches to NMI handler code

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel The NMI handler is special, as it needs to leave with the same cr3 as it was entered with. We need to do this because we could enter the NMI handler from kernel code with user-cr3 already loaded. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 52

[PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Restoring the segments can cause exceptions that need to be handled. With PTI enabled, we still need to be on kernel cr3 when the exception happens. For the cr3-switch we need at least one integer scratch register, so we can't switch with the user integer registers already load

[PATCH 12/34] x86/entry/32: Simplify debug entry point

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel The common exception entry code now handles the entry-from-sysenter stack situation and makes sure to leave with the same stack as it entered the kernel. So there is no need anymore for the special handling in the debug entry code. Signed-off-by: Joerg Roedel --- arch/x86/e

[PATCH 15/34] x86/pgtable: Rename pti_set_user_pgd to pti_set_user_pgtbl

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel With the way page-table folding is implemented on 32 bit, we are not only setting PGDs with this functions, but also PUDs and even PMDs. Give the function a more generic name to reflect that. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_64.h | 12 ++--

[PATCH 08/34] x86/entry/32: Enter the kernel via trampoline stack

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Use the entry-stack as a trampoline to enter the kernel. The entry-stack is already in the cpu_entry_area and will be mapped to userspace when PTI is enabled. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S| 136 +++ arch

[PATCH 11/34] x86/entry/32: Handle Entry from Kernel-Mode on Entry-Stack

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel It can happen that we enter the kernel from kernel-mode and on the entry-stack. The most common way this happens is when we get an exception while loading the user-space segment registers on the kernel-to-userspace exit path. The segment loading needs to be done after the entr

Re: [PATCH] phy: berlin-usb: adjust USB_PHY_RX_CTRL init flags

2018-03-05 Thread Antoine Tenart
Hi Alexander, I've added Jisheng in Cc so he can have a look at this. Thanks! Antoine On Sun, Mar 04, 2018 at 09:18:07PM +0300, Alexander Monakov wrote: > Make the value written into the USB_PHY_RX_CTRL configuration register > match 0xAA79 value written by manufacturer-supplied kernels for Sony

[PATCH 01/34] x86/asm-offsets: Move TSS_sp0 and TSS_sp1 to asm-offsets.c

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel These offsets will be used in 32 bit assembly code as well, so make them available for all of x86 code. Signed-off-by: Joerg Roedel --- arch/x86/kernel/asm-offsets.c| 4 arch/x86/kernel/asm-offsets_64.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH 06/34] x86/entry/32: Split off return-to-kernel path

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Use a separate return path when we know we are returning to the kernel. This allows us to put the PTI cr3-switch and the switch to the entry-stack into the return-to-user path without further checking. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 11 --

[PATCH 09/34] x86/entry/32: Leave the kernel via trampoline stack

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel Switch back to the trampoline stack before returning to userspace. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 79 +-- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/arch/x86/entry/entry_32.S b/arch/

[PATCH 05/34] x86/entry/32: Unshare NMI return path

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel NMI will no longer use most of the shared return path, because NMI needs special handling when the CR3 switches for PTI are added. This patch prepares for that. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 8 ++-- 1 file changed, 6 insertions(+), 2 deletio

[PATCH v6 1/6] ARM: imx6q: provide documentation for new fsl,pmic-stby-poweroff property

2018-03-05 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/imx6q-clock.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.txt b/Documentation/devicetree/bindings/clock/imx6q-clock.txt index a45

[PATCH v6 3/6] kernel/reboot.c: export pm_power_off_prepare

2018-03-05 Thread Oleksij Rempel
Export pm_power_off_prepare. It is needed to implement power off on Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). Signed-off-by: Oleksij Rempel --- kernel/reboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/reboot.c b/kernel/reboot.c in

[PATCH v6 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2018-03-05 Thread Oleksij Rempel
This board, as well as some other boards with i.MX6 and a PMIC, uses a "PMIC_STBY_REQ" line to notify the PMIC about a state change. The PMIC is programmed for a specific state change before triggering the line. In this case, PMIC_STBY_REQ can be used for stand by, sleep and power off modes. Signe

[PATCH 04/34] x86/entry/32: Put ESPFIX code into a macro

2018-03-05 Thread Joerg Roedel
From: Joerg Roedel This makes it easier to split up the shared iret code path. Signed-off-by: Joerg Roedel --- arch/x86/entry/entry_32.S | 97 --- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/arch/x86/entry/entry_32.S b/arch/x86/en

[PATCH RESEND v6 0/6] provide power off support for iMX6 with external PMIC

2018-03-05 Thread Oleksij Rempel
This patch series is providing power off support for Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). As a first step the PMIC is configured to turn off the system if the standby pin is asserted. On second step we assert the standby pin. For this reason we n

[PATCH v6 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2018-03-05 Thread Oleksij Rempel
One of the Freescale recommended sequences for power off with external PMIC is the following: ... 3. SoC is programming PMIC for power off when standby is asserted. 4. In CCM STOP mode, Standby is asserted, PMIC gates SoC supplies. See: http://www.nxp.com/assets/documents/data/en/reference-manua

Re: [PATCH 3/3] drivers: clk: Add ZynqMP clock driver

2018-03-05 Thread Sudeep Holla
On 03/03/18 03:32, kbuild test robot wrote: > Hi Jolly, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on clk/clk-next] > [also build test ERROR on v4.16-rc3 next-20180302] > [if your patch is applied to the wrong git tree, please drop us a note to > help imp

[PATCH] crypto: doc - clarify hash callbacks state machine

2018-03-05 Thread Horia Geantă
Even though it doesn't make too much sense, it is perfectly legal to: - call .init() and then (as many times) .update() - subseqently _not_ call any of .final(), .finup() or .export() Update documentation since this is an important issue to consider from resource management perspective. Link: htt

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Baolin Wang
Hi Roger, On 5 March 2018 at 17:45, Roger Quadros wrote: > Felipe, > > On 05/03/18 10:49, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: Roger Quadros writes: > In the following test we get stuck by sleeping forever in _dwc3_set_mode() > after which dual-role switching d

Re: [PATCH AUTOSEL for 4.9 111/219] ASoc: rt5645: Add OF device ID table

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:29:00PM +, Sasha Levin wrote: > From: Javier Martinez Canillas > > [ Upstream commit 9ba2da5f5d18daaa365ab5426b05e16f1d114786 ] > > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the a

Re: [PATCH AUTOSEL for 4.9 112/219] ASoC: ssm4567: Add OF device ID table

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:29:00PM +, Sasha Levin wrote: > From: Javier Martinez Canillas > > [ Upstream commit 71c314d7ef2442cd798584a3dece8151215e1777 ] > > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the a

Re: [PATCH 1/2 v6] tpm: cmd_ready command can be issued only after granting locality

2018-03-05 Thread Jarkko Sakkinen
On Thu, Mar 01, 2018 at 11:08:13PM +0200, Tomas Winkler wrote: > The correct sequence is to first request locality and only after > that perform cmd_ready handshake, otherwise the hardware will drop > the subsequent message as from the device point of view the cmd_ready > handshake wasn't performed

Re: [PATCH AUTOSEL for 4.9 113/219] ASoC: wm8978: Add OF device ID table

2018-03-05 Thread Mark Brown
On Sat, Mar 03, 2018 at 10:29:01PM +, Sasha Levin wrote: > From: Javier Martinez Canillas > > [ Upstream commit 5cf015d9cb02c360582b624497b0a1716881cf28 ] > > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the a

Re: [PATCH v5 4/4] arm64: dts: sdm845: Add serial console support

2018-03-05 Thread Rajendra Nayak
On 03/05/2018 01:29 AM, Bjorn Andersson wrote: > On Wed 21 Feb 22:12 PST 2018, Rajendra Nayak wrote: >> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi >> b/arch/arm64/boot/dts/qcom/sdm845.dtsi > [..] >> +qup_uart2: serial@a84000 { >> +compatible

[PATCH v3 4/4] rtc: isl1208: Add "evdet" interrupt source for isl1219.

2018-03-05 Thread Denis OSTERLAND
From: Denis Osterland Add support for "evdet" named interrupt source. The check if i2c client irq matches evdet irq is needed for the case that there is only one interrupt named "evdet". In this case i2c client code handles this like an unnamed interrupt souce and assigns the value. Signed-off-

[PATCH v3 1/4] rtc: isl1208: enable interrupt after context preparation

2018-03-05 Thread Denis OSTERLAND
From: Michael Grzeschik The interrupt handler got enabled very early. If the interrupt cause is triggering immediately before the context is fully prepared. This can lead to undefined behaviour. Therefor we move the interrupt enable code to the end of the probe function. Signed-off-by: Michael G

[PATCH v3 0/4] rtc: isl1208: fixes, documentation and isl1219 support

2018-03-05 Thread Denis OSTERLAND
changes since v2: Fix rebase issue in 2/4 and 3/4, where 2/4 uses a data type declared 3/4. changes since v1: Represent isl1219 tamper detection as RTC timestamp event, instead of hwmon intrusion sensor. Switch to rtc_register_device, to fix possible race conditions in probe. Add documentation of

[PATCH v3 2/4] rtc: isl1208: switch to rtc_register_device

2018-03-05 Thread Denis OSTERLAND
From: Denis Osterland Fix possible race condition. It is not allowed to return with an error code after RTC is registered. Suggested-by: Alexandre Belloni Signed-off-by: Denis Osterland Reviewed-by: Michael Grzeschik --- drivers/rtc/rtc-isl1208.c | 8 1 file changed, 4 insertions(+)

[PATCH v3 3/4] rtc: isl1208: add support for isl1219 with tamper detection

2018-03-05 Thread Denis OSTERLAND
From: Michael Grzeschik We add support for the ISL1219 chip that got an integrated tamper detection function. This patch implements the feature by adding an additional timestamp0 file to sysfs device path. This file contains seconds since epoch, if an event occurred, or is empty, if none occurred

Re: [RFC/RFT][PATCH 1/7] time: tick-sched: Reorganize idle tick management code

2018-03-05 Thread Peter Zijlstra
On Sun, Mar 04, 2018 at 11:24:00PM +0100, Rafael J. Wysocki wrote: > +/** > + * tick_nohz_idle_prepare - prepare for entering idle on the current CPU. > + * > + * Called when we start the idle loop. > + */ > +void tick_nohz_idle_prepare(void) > +{ > + __tick_nohz_idle_prepare(); > + > + loc

Re: [PATCH net-next 1/5] net: mvpp2: use the same buffer pool for all ports

2018-03-05 Thread Antoine Tenart
Hi Thomas, On Fri, Mar 02, 2018 at 05:01:59PM +0100, Thomas Petazzoni wrote: > On Fri, 2 Mar 2018 16:40:40 +0100, Antoine Tenart wrote: > > +static struct { > > + int pkt_size; > > + int buf_num; > > +} mvpp2_pools[MVPP2_BM_POOLS_NUM]; > > Any reason for not doing: > > } mvpp2_pools[MVPP2_B

Re: [PATCH v8 18/24] mm: Provide speculative fault infrastructure

2018-03-05 Thread Laurent Dufour
Hi Jordan, Thanks for reporting this. On 26/02/2018 18:16, Daniel Jordan wrote: > Hi Laurent, > > This series doesn't build for me[*] when CONFIG_TRANSPARENT_HUGEPAGE is unset. > > The problem seems to be that the BUILD_BUG() version of pmd_same is called in > pte_map_lock: > > On 02/16/2018 1

Re: [PATCH 2/3] tpm: reduce poll sleep time between send() and recv() in tpm_transmit()

2018-03-05 Thread Jarkko Sakkinen
On Fri, Mar 02, 2018 at 12:26:35AM +0530, Nayna Jain wrote: > > > On 03/01/2018 02:52 PM, Jarkko Sakkinen wrote: > > On Wed, Feb 28, 2018 at 02:18:27PM -0500, Nayna Jain wrote: > > > In tpm_transmit, after send(), the code checks for status in a loop > > Maybe cutting hairs now but please just us

Re: [PATCH AUTOSEL for 4.9 111/219] ASoc: rt5645: Add OF device ID table

2018-03-05 Thread Javier Martinez Canillas
On Mon, Mar 5, 2018 at 11:42 AM, Mark Brown wrote: > On Sat, Mar 03, 2018 at 10:29:00PM +, Sasha Levin wrote: >> From: Javier Martinez Canillas >> >> [ Upstream commit 9ba2da5f5d18daaa365ab5426b05e16f1d114786 ] >> >> The driver doesn't have a struct of_device_id table but supported devices >>

Re: [PATCH v8 0/8] livepatch: Atomic replace feature

2018-03-05 Thread Evgenii Shatokhin
Hi, Petr, Jason - thanks a lot for working on this series, first of all! And especially for your patience. On 21.02.2018 16:29, Petr Mladek wrote: The atomic replace allows to create cumulative patches. They are useful when you maintain many livepatches and want to remove one that is lower on

Re: [PATCH v11 8/8] perf: ARM DynamIQ Shared Unit PMU support

2018-03-05 Thread Mark Rutland
On Fri, Mar 02, 2018 at 11:19:56AM -0800, Saravana Kannan wrote: > On 03/02/2018 02:42 AM, Mark Rutland wrote: > > It's important to note that the DSU PMU's event_init() ensures events > > are affine to a single CPU, and the perf core code serializes operations > > on those events via the context l

Re: [PATCH] i2c: core: report OF style module alias for devices registered via OF

2018-03-05 Thread Javier Martinez Canillas
Hello Wolfram, On Sun, Jan 7, 2018 at 2:17 PM, Javier Martinez Canillas wrote: > > On Sun, Dec 3, 2017 at 10:40 PM, Javier Martinez Canillas > wrote: >> The buses should honor the firmware interface used to register the device, >> but the I2C core reports a MODALIAS of the form i2c: even for I2

Re: [PATCH] arm64/debug: Fix registers on sleeping tasks

2018-03-05 Thread Mark Rutland
On Fri, Mar 02, 2018 at 10:45:25AM -0800, Doug Anderson wrote: > Hi, > > On Fri, Mar 2, 2018 at 10:16 AM, Mark Rutland wrote: > > On Fri, Mar 02, 2018 at 06:01:31PM +, Will Deacon wrote: > >> On Thu, Mar 01, 2018 at 11:38:03AM -0800, Douglas Anderson wrote: > >> > /* Initialize to zero *

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Roger Quadros
On 05/03/18 12:41, Baolin Wang wrote: > Hi Roger, > > On 5 March 2018 at 17:45, Roger Quadros wrote: >> Felipe, >> >> On 05/03/18 10:49, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Roger Quadros writes: > Roger Quadros writes: >> In the following test we get stuck by sleeping forever in >>

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Felipe Balbi
Hi, Baolin Wang writes: >>> Roger Quadros writes: > Roger Quadros writes: >> In the following test we get stuck by sleeping forever in >> _dwc3_set_mode() >> after which dual-role switching doesn't work. >> >> On dra7-evm's dual-role port, >> - Load g_zero gadget d

Re: [PATCH 3/5] tpm: migrate tpm2_probe() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
On Thu, Mar 01, 2018 at 02:10:17PM -0800, J Freyensee wrote: > . > . > . > I'm new to this area of the kernel, but I'm not getting these lines: > > > + rc = tpm_transmit_cmd(chip, NULL, buf.data, PAGE_SIZE, 0, 0, NULL); > > + tpm_buf_destroy(&buf); > > if (rc < 0) > Why is this if() check

<    5   6   7   8   9   10   11   12   >