Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-10 Thread J. Bruce Fields
On Fri, Aug 10, 2018 at 01:17:14PM +1000, NeilBrown wrote: > On Thu, Aug 09 2018, J. Bruce Fields wrote: > > > On Fri, Aug 10, 2018 at 11:50:58AM +1000, NeilBrown wrote: > >> You're good at this game! > > > > Everybody's got to have a hobby, mine is pathological posix locking > > cases > > > >

Re: [PATCH v8 04/22] s390/zcrypt: Integrate ap_asm.h into include/asm/ap.h.

2018-08-10 Thread Tony Krowiak
On 08/10/2018 04:49 AM, Cornelia Huck wrote: On Thu, 9 Aug 2018 12:06:56 -0400 Tony Krowiak wrote: On 08/09/2018 05:17 AM, Harald Freudenberger wrote: On 09.08.2018 11:06, Cornelia Huck wrote: On Wed, 8 Aug 2018 10:44:14 -0400 Tony Krowiak wrote: From: Harald Freudenberger Move all t

Re: [PATCH v8 04/22] s390/zcrypt: Integrate ap_asm.h into include/asm/ap.h.

2018-08-10 Thread Tony Krowiak
On 08/10/2018 05:37 AM, Harald Freudenberger wrote: On 10.08.2018 10:49, Cornelia Huck wrote: On Thu, 9 Aug 2018 12:06:56 -0400 Tony Krowiak wrote: On 08/09/2018 05:17 AM, Harald Freudenberger wrote: On 09.08.2018 11:06, Cornelia Huck wrote: On Wed, 8 Aug 2018 10:44:14 -0400 Tony Krowiak

[PATCH 0/3] arm64 live patching

2018-08-10 Thread Torsten Duwe
Hi all, with gcc-8 now being out which includes the patchable-function-entries feature, I can now propose the live patching framework based on it. The series consists of 3 parts: 1st: Implement ftrace with regs -- uses gcc-8's nop insertions to patch in ftrace calls. 2nd: "Classic" live pat

[PATCH 1/3] arm64: implement ftrace with regs

2018-08-10 Thread Torsten Duwe
Check for compiler support of -fpatchable-function-entry and use it to intercept functions immediately on entry, saving the LR in x9. Disable ftracing in efi/libstub, because this triggers cross-section linker errors now (-pg used to be disabled already). Add an ftrace_caller which can handle LR in

[PATCH 2/3] arm64: implement live patching

2018-08-10 Thread Torsten Duwe
Based on ftrace with regs, do the usual thing. Also allocate a task flag for whatever consistency handling is implemented. Watch out for interactions with the graph tracer. This code has been compile-tested, but has not yet seen any heavy livepatching. Signed-off-by: Torsten Duwe diff --git a/ar

[PATCH 3/3] arm64: reliable stacktraces

2018-08-10 Thread Torsten Duwe
This is more an RFC in the original sense: is this basically the correct approach? (as I had to tweak the API a bit). In particular the code does not detect interrupts and exception frames, and does not yet check whether the code address is valid. The latter check would also have to be omitted for

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Mark Brown
On Fri, Aug 10, 2018 at 08:40:17AM -0700, Doug Anderson wrote: > On Fri, Aug 10, 2018 at 3:52 AM, Mark Brown wrote: > > This is more about matching the data rate between the two drivers - the > > clock framework could (and possibly should) reasonably return an error > > here, we're trying to ensu

Re: [PATCH v8 07/22] KVM: s390: refactor crypto initialization

2018-08-10 Thread Tony Krowiak
On 08/09/2018 01:58 AM, Janosch Frank wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Tony Krowiak This patch refactors the code that initializes and sets up the crypto configuration for a guest. The following changes are implemented via this patch: 1. Prior to the introduction of AP de

[Regression] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

2018-08-10 Thread Joseph Salisbury
Hi Daniel, A kernel bug report was opened against Ubuntu [0].  It was found the following patch introduced the regression: da9970668948 ("usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201") The bug reporter claims there is a typo in the patch that caused the regression.  I built a test k

Re: [PATCH RESEND RFC 1/4] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-08-10 Thread Lina Iyer
On Fri, Aug 10 2018 at 09:06 -0600, Stephen Boyd wrote: Quoting Marc Zyngier (2018-08-10 00:45:12) On Thu, 09 Aug 2018 18:30:53 +0100, Stephen Boyd wrote: > > Quoting Marc Zyngier (2018-08-07 23:26:32) > > > > Level interrupts should be taken care of without doing anything, by the > > very natu

Re: possible deadlock in shmem_fallocate (2)

2018-08-10 Thread Matthew Wilcox
This is another ashmem lockdep splat. Forwarding to the appropriate ashmem people. On Fri, Aug 10, 2018 at 04:59:02AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:4110b42356f3 Add linux-next specific files for 20180810 > git

[PATCH 2/2] docs: kernel-parameters.txt: document rand_mem_physical_padding parameter

2018-08-10 Thread Masayoshi Mizuma
From: Masayoshi Mizuma This kernel parameter allows to change the padding used for the physical memory mapping section when KASLR memory is enabled. For some systems, the default value, CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING, is not enough. The option is useful to adjust the padding size to wo

[PATCH 1/2] x86/mm: Add an option to change the padding used for the physical memory mapping.

2018-08-10 Thread Masayoshi Mizuma
From: Masayoshi Mizuma There are some exceptional cases that the padding used for the physical memory mapping section is not enough. For example of the cases: - As Baoquan reported in the following, SGI UV system. https://lkml.org/lkml/2017/9/7/87 - Each node of physical memory layout has huge

Live and Study in Canada for as Low as $2,000.

2018-08-10 Thread Aurora College Canada
For as low as 2000 USD Study in Aurora College Aurora college is giving easy admission to 500 international students. We provide VISAs for international students to LIVE and WORK while they study here. Aurora College is a private co-educational institution dedicated to academic excellence in

Re: [PATCH v8 17/22] s390: vfio-ap: zeroize the AP queues.

2018-08-10 Thread Tony Krowiak
On 08/10/2018 07:16 AM, Cornelia Huck wrote: On Fri, 10 Aug 2018 12:49:08 +0200 Pierre Morel wrote: On 10/08/2018 11:14, Cornelia Huck wrote: On Wed, 8 Aug 2018 10:44:27 -0400 Tony Krowiak wrote: From: Tony Krowiak Let's call PAPQ(ZAPQ) to zeroize a queue: * For each queue configured

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

2018-08-10 Thread Reinette Chatre
Hi Peter, On 8/8/2018 10:33 AM, Reinette Chatre wrote: > On 8/8/2018 12:51 AM, Peter Zijlstra wrote: >> On Tue, Aug 07, 2018 at 03:47:15PM -0700, Reinette Chatre wrote: - I don't much fancy people accessing the guts of events like that; would not an inline function like:

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Doug Anderson
Hi, On Fri, Aug 10, 2018 at 9:13 AM, Mark Brown wrote: > On Fri, Aug 10, 2018 at 08:40:17AM -0700, Doug Anderson wrote: >> On Fri, Aug 10, 2018 at 3:52 AM, Mark Brown wrote: > >> > This is more about matching the data rate between the two drivers - the >> > clock framework could (and possibly sh

Re: [PATCH v9 2/2] regulator: add QCOM RPMh regulator driver

2018-08-10 Thread Mark Brown
On Fri, Jul 13, 2018 at 06:50:59PM -0700, David Collins wrote: > + switch (rpmh_mode) { > + default: > + mode = REGULATOR_MODE_INVALID; > + } I'm not sure why the break statements are being omitted in default cases, but I do find myself stopping and trying to figure it ou

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread dkota
On 2018-08-10 21:43, Mark Brown wrote: On Fri, Aug 10, 2018 at 08:40:17AM -0700, Doug Anderson wrote: On Fri, Aug 10, 2018 at 3:52 AM, Mark Brown wrote: > This is more about matching the data rate between the two drivers - the > clock framework could (and possibly should) reasonably return a

[RFC][PATCH] tracepoints: Free early tracepoints after RCU is initialized

2018-08-10 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When enabling trace events via the kernel command line, I hit this warning: WARNING: CPU: 0 PID: 13 at kernel/rcu/srcutree.c:236 check_init_srcu_struct+0xe/0x61 Modules linked in: CPU: 0 PID: 13 Comm: watchdog/0 Not tainted 4.18.0-rc6-test+ #6 Hardware name: MS

Applied "regulator: add QCOM RPMh regulator driver" to the regulator tree

2018-08-10 Thread Mark Brown
The patch regulator: add QCOM RPMh regulator driver has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

Applied "spi: davinci: fix a NULL pointer dereference" to the spi tree

2018-08-10 Thread Mark Brown
The patch spi: davinci: fix a NULL pointer dereference has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "regulator: dt-bindings: add QCOM RPMh regulator bindings" to the regulator tree

2018-08-10 Thread Mark Brown
The patch regulator: dt-bindings: add QCOM RPMh regulator bindings has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

Re: [PATCH v12 2/3] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-08-10 Thread Steven Rostedt
On Fri, 10 Aug 2018 11:35:54 -0400 Steven Rostedt wrote: > Investigating it, it's that when we register more than one event, the > tracepoint code calls "release_probes" when adding new tracepoints (as > it updated the tracepoint array), and this is done very early in boot > up, causing this warn

Re: [RFC][PATCH] tracepoints: Free early tracepoints after RCU is initialized

2018-08-10 Thread Steven Rostedt
On Fri, 10 Aug 2018 12:30:42 -0400 Steven Rostedt wrote: Maybe I should say SRCU? +/* SRCU is initialized at core_initcall */ +postcore_initcall(release_early_probes); + static inline void release_probes(struct tracepoint_func *old) { if (old) { struct tp_probes *tp_pro

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Mark Brown
On Fri, Aug 10, 2018 at 09:27:05AM -0700, Doug Anderson wrote: > On Fri, Aug 10, 2018 at 9:13 AM, Mark Brown wrote: > > On Fri, Aug 10, 2018 at 08:40:17AM -0700, Doug Anderson wrote: > >> The clock framework should be able to accomplish what you want. If > >> you just request the rate it will do

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Mark Brown
On Fri, Aug 10, 2018 at 09:59:46PM +0530, dk...@codeaurora.org wrote: > Now the need is, how to communicate the SPI controller maximum frequency to > SPI core framework? > Is it by DTSI entry or hardcoding in the SPI controller driver? If you've got a limit that exists in the IP the hard code it

Re: [linux-sunxi] [PATCH] clk: sunxi-ng: fix H6 bus clocks divider position

2018-08-10 Thread Chen-Yu Tsai
On Thu, Aug 9, 2018 at 1:19 AM, Icenowy Zheng wrote: > The bus clocks (AHB/APB) on Allwinner H6 have their second divider start > at bit 8, according to the user manual and the BSP code. However, > currently the divider is wrongly set to 16, thus the divider is not > correctly read and the clock f

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Doug Anderson
Hi, On Fri, Aug 10, 2018 at 9:43 AM, Mark Brown wrote: >> IMO the line marked "/* UNNEEDED */" below should be removed: > >> ... >> spi-max-frequency = <5000>; /* UNNEEDED */ > > This is a line in the device tree (which I agree shouldn't be there), > not code in the SPI driver? My w

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Doug Anderson
Hi, On Fri, Aug 10, 2018 at 9:29 AM, wrote: > Here are my couple of cents: > SPI controller maximum frequency can be lesser than or equal to Clock > framework's maximum > frequency, so should not rely on the Clock framework. You could make that argument on other SoCs perhaps, but from what I've

Re: [RFC v7 PATCH 4/4] mm: unmap special vmas with regular do_munmap()

2018-08-10 Thread Yang Shi
On 8/10/18 2:51 AM, Vlastimil Babka wrote: On 08/10/2018 01:36 AM, Yang Shi wrote: Unmapping vmas, which have VM_HUGETLB | VM_PFNMAP flag set or have uprobes set, need get done with write mmap_sem held since they may update vm_flags. So, it might be not safe enough to deal with these kind of

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

2018-08-10 Thread Rob Herring
On Thu, Aug 9, 2018 at 12:29 AM Palmer Dabbelt wrote: > > On Wed, 08 Aug 2018 16:32:07 PDT (-0700), robh...@kernel.org wrote: > > On Wed, Aug 8, 2018 at 1:38 PM Palmer Dabbelt wrote: > >> > >> On Wed, 08 Aug 2018 07:16:14 PDT (-0700), robh...@kernel.org wrote: > >> > On Tue, Aug 7, 2018 at 8:17 P

Re: [RFC][PATCH 00/24] tools lib traceevent: Rename pevent to tep for preparation for library

2018-08-10 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 10, 2018 at 03:14:01PM +0200, Jiri Olsa escreveu: > On Fri, Aug 10, 2018 at 09:00:10AM -0400, Steven Rostedt wrote: > > On Fri, 10 Aug 2018 11:21:37 +0200 > > Jiri Olsa wrote: > > > > > > > > This is not complete. It is only one of many preparations to make > > > > libtraceevent into

Re: [PATCH 02/16] staging: gasket: core: remove debug log that could crash

2018-08-10 Thread Rob Springer
Reviewed-by: Rob Springer On Fri, Aug 10, 2018 at 9:56 AM Rob Springer wrote: > > Revewed-by: Rob Springer > > On Thu, Aug 9, 2018 at 8:21 PM Todd Poynor wrote: >> >> From: Todd Poynor >> >> A debug log in gasket_alloc_dev() is issued regardless of whether the >> device pointer used returned

Re: [RFC v7 PATCH 4/4] mm: unmap special vmas with regular do_munmap()

2018-08-10 Thread Yang Shi
On 8/10/18 3:46 AM, Vlastimil Babka wrote: On 08/10/2018 01:36 AM, Yang Shi wrote: Unmapping vmas, which have VM_HUGETLB | VM_PFNMAP flag set or have uprobes set, need get done with write mmap_sem held since they may update vm_flags. So, it might be not safe enough to deal with these kind of

[PATCH v2] checkpatch: DT bindings should be a separate patch

2018-08-10 Thread Rob Herring
Devicetree bindings should be their own patch as documented in Documentation/devicetree/bindings/submitting-patches.txt section I.1. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same tre

Re: [RFC][PATCH] tracepoints: Free early tracepoints after RCU is initialized

2018-08-10 Thread Paul E. McKenney
On Fri, Aug 10, 2018 at 12:30:42PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > When enabling trace events via the kernel command line, I hit this warning: > > WARNING: CPU: 0 PID: 13 at kernel/rcu/srcutree.c:236 > check_init_srcu_struct+0xe/0x61 > Modules linked in: >

Re: [RFC][PATCH] tracepoints: Free early tracepoints after RCU is initialized

2018-08-10 Thread Paul E. McKenney
On Fri, Aug 10, 2018 at 12:35:17PM -0400, Steven Rostedt wrote: > On Fri, 10 Aug 2018 12:30:42 -0400 > Steven Rostedt wrote: > > Maybe I should say SRCU? That would be an improvement. What, me read comments? ;-) Thanx, Paul > +/* SRCU is initia

Re: [RFC][PATCH] tracepoints: Free early tracepoints after RCU is initialized

2018-08-10 Thread Joel Fernandes
On Fri, Aug 10, 2018 at 9:30 AM, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > When enabling trace events via the kernel command line, I hit this warning: > > WARNING: CPU: 0 PID: 13 at kernel/rcu/srcutree.c:236 > check_init_srcu_struct+0xe/0x61 > Modules linked in: > CPU: 0 PID:

Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-08-10 Thread Sodagudi Prasad
On 2018-08-10 00:10, Rafael J. Wysocki wrote: On Fri, Aug 10, 2018 at 12:30 AM, wrote: On 2018-08-06 01:53, Rafael J. Wysocki wrote: On Fri, Aug 3, 2018 at 12:20 AM, Sodagudi Prasad wrote: From: RAFAEL J. WYSOCKI Date: Wed, Aug 1, 2018 at 2:21 PM Subject: Re: [PATCH] dd: Invoke one probe

Re: [PATCH v1 2/4] drivers: soc: Add support to register LLCC EDAC driver

2018-08-10 Thread Evan Green
On Wed, Aug 1, 2018 at 1:33 PM Venkata Narendra Kumar Gutta wrote: > > Cache error reporting controller is to detect and report single > and double bit errors on Last Level Cache Controller (LLCC) cache. > Add required support to register LLCC EDAC driver as platform driver, > from LLCC driver. >

Re: [PATCH v1 3/4] drivers: edac: Add EDAC driver support for QCOM SoCs

2018-08-10 Thread Evan Green
On Wed, Aug 1, 2018 at 1:34 PM Venkata Narendra Kumar Gutta wrote: > > From: Channagoud Kadabi > > Add error reporting driver for SBEs and DBEs. As of now, this driver > supports erp for Last Level Cache Controller (LLCC). This driver takes > care of dumping registers and adding config options to

Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-10 Thread Jarkko Sakkinen
On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: > Add a ptr to struct tpm_space to the file_priv to have an easy > access to it in the async job without the need to allocate memory. > This also allows to consolidate of the write operations for > the two interfaces. I think the 2nd p

Re: [RFC] serial: sc16is7xx: Use DT sub-nodes for UART ports

2018-08-10 Thread Rob Herring
On Sun, Aug 5, 2018 at 5:27 PM Andreas Färber wrote: > > This is to allow using serdev. > > Signed-off-by: Andreas Färber > --- > drivers/tty/serial/sc16is7xx.c | 25 + > 1 file changed, 25 insertions(+) > > diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial

Re: [PATCH] x86, kdump: Fix efi=noruntime NULL pointer dereference

2018-08-10 Thread Mike Galbraith
On Fri, 2018-08-10 at 18:28 +0800, Dave Young wrote: > > > @@ -250,8 +253,10 @@ setup_boot_parameters(struct kimage *image, struct > > boot_params *params, > > > > #ifdef CONFIG_EFI > > /* Setup EFI state */ > > - setup_efi_state(params, params_load_addr, efi_map_offset, efi_map_sz, > >

Re: [RFC v7 PATCH 1/4] mm: refactor do_munmap() to extract the common part

2018-08-10 Thread Matthew Wilcox
On Fri, Aug 10, 2018 at 07:36:00AM +0800, Yang Shi wrote: > +static inline bool addr_ok(unsigned long start, size_t len) Maybe munmap_range_ok()? Otherwise some of the conditions here don't make sense for such a generic sounding function. > { > - unsigned long end; > - struct vm_area_st

Re: [PATCH v4 2/2] tpm: add support for nonblocking operation

2018-08-10 Thread Jarkko Sakkinen
On Tue, Aug 07, 2018 at 01:27:49PM -0700, Tadeusz Struk wrote: > Currently the TPM driver only supports blocking calls, which doesn't allow > asynchronous IO operations to the TPM hardware. > This patch changes it and adds support for nonblocking write and a new poll > function to enable applicatio

Re: [RFC] serial: sc16is7xx: Use DT sub-nodes for UART ports

2018-08-10 Thread Andreas Färber
Am 10.08.2018 um 19:34 schrieb Rob Herring: > On Sun, Aug 5, 2018 at 5:27 PM Andreas Färber wrote: >> >> This is to allow using serdev. >> >> Signed-off-by: Andreas Färber >> --- >> drivers/tty/serial/sc16is7xx.c | 25 + >> 1 file changed, 25 insertions(+) >> >> diff --gi

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

2018-08-10 Thread Reinette Chatre
Just one clarification ... On 8/10/2018 9:25 AM, Reinette Chatre wrote: > static inline int x86_perf_event_error_state(struct perf_event *event) > { > int ret = 0; > u64 tmp; > > ret = perf_event_read_local(event, &tmp, NULL, NULL); > if (ret < 0) >

Re: [PATCH bpf-next 0/4] Convert filter.txt to RST

2018-08-10 Thread Alexei Starovoitov
On Fri, Aug 10, 2018 at 5:57 AM Jonathan Corbet wrote: > > The objective actually is to have SPDX tags in all files in the kernel. > That includes documentation, even though people, as always, care less > about the docs than they do the code. right, but let's do that as a separate patch set. In t

[PATCH 1/4] dt-bindings: arm: hisilicon: Add binding for Hi3670 SoC

2018-08-10 Thread Manivannan Sadhasivam
Add devicetree binding for Hi3670 SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt b/Documentation/devicetree/bindings

[PATCH 0/4] Add HiSilicon Hi3670 SoC and HiKey970 board

2018-08-10 Thread Manivannan Sadhasivam
This patchset adds support for Hi3670 SoC and HiKey970 board. Hi3670 SoC is very similar to the Hi3660 SoC with additional NPU support. For now, only UART6 has been enabled which is configured by the bootloader for console support. HiKey970 board is one of the 96Boards Consumer Edition and AI plat

[PATCH 2/4] arm64: dts: Add devicetree for Hisilicon Hi3670 SoC

2018-08-10 Thread Manivannan Sadhasivam
Add initial devicetree support for Hisilicon Hi3670 SoC which is similar to Hi3660 SoC with NPU support. This SoC has Octal core BigLittle CPUs in two clusters(4 * A53 & 4 * A73). Only UART6 has been added for console support which is pre configured by the bootloader. A fixed clock is sourcing th

[PATCH 3/4] dt-bindings: arm: hisilicon: Add binding for HiKey970 board

2018-08-10 Thread Manivannan Sadhasivam
Add devicetree binding for HiKey970 board. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt b/Documentation/devicetree/bind

[PATCH 4/4] arm64: dts: Add devicetree support for HiKey970 board

2018-08-10 Thread Manivannan Sadhasivam
Add devicetree support for HiKey970 development board which based on Hi3670 SoC and is also one of the 96Boards Consumer Edition and AI platform. Only UART6 is enabled which is the default console required by the 96Boards Consumer Edition Specification. This patch has been tested on HiKey970 Boar

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-10 Thread Trent Piepho
On Fri, 2018-08-10 at 21:59 +0530, dk...@codeaurora.org wrote: > > Here are my couple of cents: > SPI controller maximum frequency can be lesser than or equal to Clock > framework's maximum > frequency, so should not rely on the Clock framework. But there is probably some means, via the controll

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

2018-08-10 Thread Matthew Wilcox
On Fri, Aug 10, 2018 at 07:36:01AM +0800, Yang Shi wrote: > +/* > + * Zap pages with read mmap_sem held > + * > + * uf is the list for userfaultfd > + */ > +static int do_munmap_zap_rlock(struct mm_struct *mm, unsigned long start, > +size_t len, struct list_head *uf) I

Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-10 Thread Tadeusz Struk
On 08/10/2018 10:27 AM, Jarkko Sakkinen wrote: > On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: >> Add a ptr to struct tpm_space to the file_priv to have an easy >> access to it in the async job without the need to allocate memory. >> This also allows to consolidate of the write ope

Re: [PATCH 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-10 Thread Jianxin Pan
On 8/10/2018 7:58 PM, Jerome Brunet wrote: > On Thu, 2018-08-09 at 16:22 +0800, Jianxin Pan wrote: >> Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, >> which describe components as follows: Reserve Memory, CPU, GIC, IRQ, >> Timer, UART. It's capable of booting up into the seri

[PATCH v2 01/40] dt-bindings: Add Tegra PMC pad configuration bindings

2018-08-10 Thread Aapo Vienamo
Document the PMC pinctrl bindings for pad power state and signaling voltage configuration. Both nvidia,tegra186-pmc.txt and nvidia,tegra20-pmc.txt are modified as they both cover SoC generations for which these bindings apply. Add a header defining Tegra PMC pad voltage configurations. Signed-off

[PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-10 Thread Aapo Vienamo
Hi all, This series implements support for faster signaling modes on Tegra SDHCI controllers. This series consist of several parts: changes requried for 1.8 V signaling and pad control, pad calibration, and tuning. Following earlies patch sets have been merged into this larger set: "Tegra PMC pinc

[PATCH v2 02/40] dt-bindings: mmc: tegra: Add pad voltage control properties

2018-08-10 Thread Aapo Vienamo
Document the pinctrl bindings used by the SDHCI driver to reconfigure pad voltages on controllers supporting multiple voltage levels. Signed-off-by: Aapo Vienamo Reviewed-by: Mikko Perttunen Reviewed-by: Rob Herring --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 22 ++

[PATCH v2 03/40] dt-bindings: Add Tegra SDHCI pad pdpu offset bindings

2018-08-10 Thread Aapo Vienamo
Add bindings documentation for pad pull up and pull down offset values to be programmed before executing automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 35 ++ 1 file changed, 35 insertions(+) dif

[PATCH v2 05/40] soc/tegra: pmc: Fix pad voltage configuration for Tegra186

2018-08-10 Thread Aapo Vienamo
Implement support for the PMC_IMPL_E_33V_PWR register which replaces PMC_PWR_DET register interface of the SoC generations preceding Tegra186. Also add the voltage bit offsets to the tegra186_io_pads[] table and the AO_HV pad. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/teg

[PATCH v2 07/40] soc/tegra: pmc: Implement tegra_io_pad_is_powered()

2018-08-10 Thread Aapo Vienamo
Implement a function to query whether a pad is in deep power down mode. This is needed by the pinctrl callbacks. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/drivers/so

[PATCH v2 08/40] soc/tegra: pmc: Use X macro to generate IO pad tables

2018-08-10 Thread Aapo Vienamo
Refactor the IO pad tables into macro tables so that they can be reused to generate pinctrl pin descriptors. Also add a name field which is needed by pinctrl. Signed-off-by: Aapo Vienamo --- drivers/soc/tegra/pmc.c | 233 ++-- 1 file changed, 127 inser

[PATCH v2 10/40] soc/tegra: pmc: Implement pad configuration via pinctrl

2018-08-10 Thread Aapo Vienamo
Register a pinctrl device and implement get and set functions for PIN_CONFIG_LOW_POWER_MODE and PIN_CONFIG_POWER_SOURCE parameters. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 187 +++- 1 file changed, 185 insertions

[PATCH v2 09/40] soc/tegra: pmc: Remove public pad voltage APIs

2018-08-10 Thread Aapo Vienamo
Make tegra_io_pad_set_voltage() and tegra_io_pad_get_voltage() static and remove the prototypes from pmc.h. Remove enum tegra_io_pad_voltage and use the defines from instead. These functions aren't used outside of the pmc driver and new use cases should use the pinctrl interface instead. Signed-

[PATCH v2 06/40] soc/tegra: pmc: Factor out DPD register bit calculation

2018-08-10 Thread Aapo Vienamo
Factor out the the code to calculate the correct DPD register and bit number for a given pad. This logic will be needed to query the status register. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 20 +--- 1 file changed, 17 insertions(+), 3 delet

[PATCH v2 04/40] dt-bindings: mmc: Add Tegra SDHCI sampling trimmer values

2018-08-10 Thread Aapo Vienamo
Document the Tegra SDHCI inbound and outbound sampling trimmer values. Signed-off-by: Aapo Vienamo --- .../devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt b/

[PATCH v2 12/40] mmc: tegra: Reconfigure pad voltages during voltage switching

2018-08-10 Thread Aapo Vienamo
Parse the pinctrl state and nvidia,only-1-8-v properties from the device tree. Validate the pinctrl and regulator configuration before unmasking UHS modes. Implement pad voltage state reconfiguration in the mmc start_signal_voltage_switch() callback. Add NVQUIRK_NEEDS_PAD_CONTROL and add set it for

[PATCH v2 16/40] mmc: tegra: Disable card clock during pad calibration

2018-08-10 Thread Aapo Vienamo
Disable the card clock during automatic pad drive strength calibration and re-enable it afterwards. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdh

[PATCH v2 14/40] mmc: tegra: Set calibration pad voltage reference

2018-08-10 Thread Aapo Vienamo
Configure the voltage reference used by the automatic pad drive strength calibration procedure. The value is a magic number from the TRM. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 56 +- 1 file changed, 33 insertions(+), 23 deletions

[PATCH v2 20/40] mmc: tegra: Add a workaround for tap value change glitch

2018-08-10 Thread Aapo Vienamo
Add quirk to disable the card clock during configuration of the tap value in tegra_sdhci_set_tap() and issue sdhci_reset() after value change. This is a workaround to avoid propagation of a potential glitch caused by setting the tap value. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-t

[PATCH v2 19/40] mmc: tegra: Enable pad calibration on Tegra210 and Tegra186

2018-08-10 Thread Aapo Vienamo
Set NVQUIRK_HAS_PADCALIB on Tegra210 and Tegra186 to enable automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-t

[PATCH v2 13/40] mmc: tegra: Poll for calibration completion

2018-08-10 Thread Aapo Vienamo
Implement polling with 10 ms timeout for automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-te

[PATCH v2 11/40] mmc: sdhci: Add a quirk to skip clearing the transfer mode register on tuning

2018-08-10 Thread Aapo Vienamo
Add SDHCI_QUIRK2_TUNE_SKIP_XFERRMODE_REG_PROG to skip programming the SDHCI_TRANSFER_MODE in sdhci_set_transfer_mode() if tuning command is being sent. On Tegra210 and Tegra186 the tuning sequence hangs if the SDHCI transfer mode register is touched. Signed-off-by: Aapo Vienamo --- drivers/mmc/

[PATCH v2 15/40] mmc: tegra: Power on the calibration pad

2018-08-10 Thread Aapo Vienamo
Automatic pad drive strength calibration is performed on a separate pad identical to the ones used for driving the actual bus. Power on the calibration pad during the calibration procedure and power it off afterwards to save power. Signed-off-by: Aapo Vienamo Reviewed-by: Mikko Perttunen --- dr

[PATCH v2 21/40] mmc: tegra: Parse default trim and tap from dt

2018-08-10 Thread Aapo Vienamo
Parse the default inbound and outbound sampling trimmer values from the device tree. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index e8

[PATCH v2 22/40] mmc: tegra: Configure default tap values

2018-08-10 Thread Aapo Vienamo
Set the default inbound timing adjustment tap value on reset and on non-tunable modes. The default tap value is not programmed on tunable modes because the tuning sequence is used instead to determine the tap value. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 132 ++

[PATCH v2 17/40] mmc: tegra: Program pad autocal offsets from dt

2018-08-10 Thread Aapo Vienamo
Parse the pad drive strength calibration offsets from the device tree. Program the calibration offsets in accordance with the current signaling mode. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 152 - 1 file changed, 151 insertions(+),

[PATCH v2 18/40] mmc: tegra: Perform pad calibration after voltage switch

2018-08-10 Thread Aapo Vienamo
Run the automatic pad calibration after voltage switching if tegra_host->pad_calib_required is set. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index eff1c8

[PATCH v2 24/40] mmc: tegra: Use standard SDHCI tuning on Tegra210 and Tegra186

2018-08-10 Thread Aapo Vienamo
Add a new sdhci_ops struct for Tegra210 and Tegra186 which doesn't set the custom tuning callback used on previous SoC generations. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/ho

[PATCH v2 28/40] mmc: tegra: Enable UHS and HS200 modes for Tegra210

2018-08-10 Thread Aapo Vienamo
Set nvquirks to enable higher speed modes. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 0959102..8cfa8f4 100644 --- a/drivers/mmc/host/sd

[PATCH v2 23/40] mmc: tegra: Configure default trim value on reset

2018-08-10 Thread Aapo Vienamo
Program the outbound sampling trim value in tegra_sdhci_reset(). Unlike the outbound tap value this does not depend on the signaling mode and needs to be only programmed once. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(

[PATCH v2 27/40] mmc: tegra: Set SDHCI_QUIRK2_TUNE_DIS_CARD_CLK on Tegra210

2018-08-10 Thread Aapo Vienamo
This prevents a possible hardware hang during tuning. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 3a53593..0959102 100644 --- a/drivers/m

[PATCH v2 31/40] arm64: dts: Add Tegra186 sdmmc pinctrl voltage states

2018-08-10 Thread Aapo Vienamo
Add pad voltage configuration nodes for sdmmc pads with configurable voltages on Tegra186. Signed-off-by: Aapo Vienamo Reviewed-by: Mikko Perttunen --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 40 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/

[PATCH v2 32/40] arm64: dts: tegra210-p2180: Allow ldo2 to go down to 1.8 V

2018-08-10 Thread Aapo Vienamo
Set regulator-min-microvolt property of ldo2 to 1.8 V in tegra210-p2180.dtsi. ldo2 is used by the sdmmc1 SDHCI controller and its voltage needs to be adjusted down to 1.8 V to support faster signaling modes. It appears that the comment about the SDHCI driver requesting invalid voltages no longer ap

[PATCH v2 34/40] arm64: dts: tegra210-p2597: Remove no-1-8-v from sdmmc1

2018-08-10 Thread Aapo Vienamo
Allow sdmmc1 to set the signaling voltage to 1.8 V in order to support faster signaling modes. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/n

[PATCH v2 29/40] mmc: tegra: Enable UHS and HS200 modes for Tegra186

2018-08-10 Thread Aapo Vienamo
Set nvquirks to enable higher speed modes. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 8cfa8f4..2d775ad 100644 --- a/drivers/mmc/host/sd

[PATCH v2 36/40] arm64: dts: tegra210: Add sdmmc pad auto calibration offsets

2018-08-10 Thread Aapo Vienamo
Add the calibration offset properties used for automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvid

[PATCH v2 26/40] mmc: tegra: Enable workaround for tuning transfer mode bug

2018-08-10 Thread Aapo Vienamo
Set SDHCI_QUIRK2_TUNE_SKIP_XFERMODE_REG_PROG on Tegra210 and Tegra186. This prevents the controller from hanging during tuning. This bug does not seem to be documented but it's handled in a similar way in the downstream kernel. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 6 +

[PATCH v2 35/40] arm64: dts: tegra186: Add sdmmc pad auto calibration offsets

2018-08-10 Thread Aapo Vienamo
Add the calibration offset properties used for automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/

[PATCH v2 25/40] mmc: sdhci: Add a quirk to disable card clock during tuning

2018-08-10 Thread Aapo Vienamo
Add a quirk to disable card clock when the tuning command is sent. This has to be done to prevent the SDHCI controller from hanging on Tegra210. Without the quirk enabled there appears to be around 10% chance that the tuning sequence will fail and time out due to the controller locking up. Signed

[PATCH v2 39/40] arm64: dts: tegra186: Assign clocks for sdmmc1 and sdmmc4

2018-08-10 Thread Aapo Vienamo
Configure sdmmc4 parent clock to pllc4 and sdmmc1 to pllp_out0 by setting the assigned-clocks device tree properties. pllc4 offer better jitter performance and should be used with higher speed modes like HS200 and HS400. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi |

[PATCH v2 40/40] arm64: dts: tegra210: Assign clocks for sdmmc1 and sdmmc4

2018-08-10 Thread Aapo Vienamo
Use assigned-clock properties to configure pllc4 as the parent clock for sdmmc4 on Tegra210. pllc4 offers better jitter perfomance than the default pllp and is required by HS200 and HS400 modes. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 8 1 file changed

[PATCH v2 38/40] arm64: dts: tegra186: Add SDHCI tap and trim values

2018-08-10 Thread Aapo Vienamo
Add SDHCI inbound and outbound SDHCI sampling trimmer values for Tegra186. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi ind

[PATCH v2 37/40] arm64: dts: tegra210: Add SDHCI tap and trim values

2018-08-10 Thread Aapo Vienamo
Add SDHCI inbound and outbound SDHCI sampling trimmer values for Tegra210. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi ind

[PATCH v2 33/40] arm64: dts: tegra210-p2180: Correct sdmmc4 vqmmc-supply

2018-08-10 Thread Aapo Vienamo
On p2180 sdmmc4 is powered from a fixed 1.8 V regulator. Signed-off-by: Aapo Vienamo Reviewed-by: Mikko Perttunen --- arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/t

<    1   2   3   4   5   >