Re: [PATCH] ARM: wire up io_pgetevents syscall

2018-08-28 Thread Christoph Hellwig
On Mon, Aug 27, 2018 at 10:05:05PM +0200, Stefan Agner wrote: > Wire up the new io_pgetevents syscall for ARM. > > Signed-off-by: Stefan Agner Looks good to me: Acked-by: Christoph Hellwig

Re: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 09:41:22PM +, Huang, Kai wrote: > On Mon, 2018-08-27 at 21:53 +0300, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add a function to perform ENCLS(EINIT), which initializes an enclave, > > which can be used by a driver for running enclaves and VMMs. > >

Re: Removing entry trampoline and associated reversions

2018-08-28 Thread Adrian Hunter
On 27/08/18 19:42, Andy Lutomirski wrote: > [gah -- accidentally hit send] > > On Mon, Aug 27, 2018 at 9:42 AM, Andy Lutomirski wrote: >> Hi all- >> >> We had an unfortunate conflict. Adrian did all the plumbing to get >> entry_trampoline to play nicelyh with kcore and perf. Meanwhile, I >> was

Re: [PATCH 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-28 Thread Andrey Smirnov
On Mon, Aug 27, 2018 at 7:32 PM Anson Huang wrote: > > Hi, Andrey > > Anson Huang > Best Regards! > > > > -Original Message- > > From: Andrey Smirnov > > Sent: Tuesday, August 28, 2018 7:04 AM > > To: Anson Huang > > Cc: Shawn Guo ; Sascha Hauer > > ; Sascha Hauer ; Fabio > > Estevam ; l

Re: [PATCH] [v2] HID: add support for Apple Magic Keyboards

2018-08-28 Thread Benjamin Tissoires
On Mon, Aug 27, 2018 at 10:02 PM Sean O'Brien wrote: > > USB device > Vendor 05ac (Apple) > Device 026c (Magic Keyboard with Numeric Keypad) > > Bluetooth devices > Vendor 004c (Apple) > Device 0267 (Magic Keyboard) > Device 026c (Magic Keyboard with Numeric

[PATCH] arm64: dts: qcom: sdm845: Add smp2p nodes

2018-08-28 Thread Bjorn Andersson
Add the SMP2P nodes for the remoteproc states for adsp, cdsp, mpss and slpi. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/

Re: [PATCH v2 2/6] reset: qcom: PDC Global (Power Domain Controller) reset controller

2018-08-28 Thread Sibi Sankar
Hi Bjorn/Matthias, Thanks for the review, will fix them in the next-respin. On 2018-08-28 08:32, Bjorn Andersson wrote: On Mon 27 Aug 17:22 PDT 2018, Matthias Kaehlcke wrote: On Fri, Aug 24, 2018 at 06:48:56PM +0530, Sibi Sankar wrote: > diff --git a/drivers/reset/reset-qcom-pdc.c b/drivers/res

Re: [PATCH] RISC-V: Mask out the F extension on systems without D

2018-08-28 Thread Alan Kao
Hi Palmer, On Mon, Aug 27, 2018 at 03:03:52PM -0700, Palmer Dabbelt wrote: > The RISC-V Linux port doesn't support systems that have the F extension > but don't have the D extension -- we actually don't support systems > without D either, but Alan's patch set is rectifying that soon. For now > I

[PATCH] remoteproc: qcom: adsp: Add SDM845 ADSP and CDSP support

2018-08-28 Thread Bjorn Andersson
Add support for booting the Audio and Compute DSPs found in Qualcomm's SDM845 platform. As with the previous platforms the power rail handling needs to be updated once the appropriate support lands upstream. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/remoteproc/qcom,adsp.txt

Re: [PATCH v13 02/13] x86/cpufeature: Add SGX and SGX_LC CPU features

2018-08-28 Thread Jarkko Sakkinen
On Tue, Aug 28, 2018 at 12:07:41AM +, Huang, Kai wrote: > > +#define X86_FEATURE_SGX_LC (16*32+30) /* supports SGX launch > > configuration */ > > Sorry if it was me who wrote the comment "SGX launch configuration". I > think we should just use "SGX launch control". :) Not sure if we

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-08-28 Thread Matwey V. Kornilov
вт, 21 авг. 2018 г. в 20:06, Matwey V. Kornilov : > > DMA cocherency slows the transfer down on systems without hardware > coherent DMA. > Instead we use noncocherent DMA memory and explicit sync at data receive > handler. > > Based on previous commit the following performance benchmarks have been

Re: [PATCH] pinctrl: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Alexandre Belloni
On 27/08/2018 20:52:41-0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Linus Walleij > Cc: Dong Aisheng > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Stefan Agner > Cc: Pengutronix

Re: [PATCH] sysctl: do not allow a 64bit value write in a 32bit knob

2018-08-28 Thread kbuild test robot
-ci/linux/commits/Aristeu-Rozanski/sysctl-do-not-allow-a-64bit-value-write-in-a-32bit-knob/20180828-043801 config: i386-randconfig-x017-201834 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All

Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 12:39:36PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > + /* Intel SGX features: level 0x0012 */ > > + if (c->cpuid_level >= 0x0012) { > > + cpuid(0x0012, &eax, &ebx, &ecx, &edx); > > + > > + c->x86_capabi

RE: [PATCH 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-28 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Andrey Smirnov > Sent: Tuesday, August 28, 2018 6:51 AM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; linux-arm-kernel > ; linux-kernel > ; dl-linux-imx > Subject: Re: [PATCH 2/2] soc: imx:

[Fwd: 11 minute NTP hw clock update racy?]

2018-08-28 Thread Joakim Tjernlund
No luck on linuxppc-dev, trying LKML ... Forwarded Message From: Joakim Tjernlund To: linuxppc-dev linuxppc-dev Subject: 11 minute NTP hw clock update racy? Date: Mon, 27 Aug 2018 10:01:12 +0200 We see corrupt HW clock time every now and then(really hard to reproduce) Our RTC

Re: [PATCH v5 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Adrian Hunter
On 27/08/18 11:24, Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > Signed-off-by: Jisheng Zhang > --- > drivers/mmc/host/sdhci-of-dwcmshc.c | 41 +++

Re: [PATCH] cpu/hotplug: Remove skip_onerr field from cpuhp_step structure

2018-08-28 Thread Peter Zijlstra
On Tue, Aug 28, 2018 at 12:24:54PM +0530, Mukesh Ojha wrote: > When notifiers were there, we were using `skip_onerr` to avoid > calling particular step startup/teardown callback in CPU up/down > rollback path, which made the hotplug a bit asymmetric. > > As notifiers are gone now after state machi

Re: [PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-28 Thread Peter Zijlstra
On Tue, Aug 28, 2018 at 08:55:14AM +0200, Jiri Kosina wrote: > From: Jiri Kosina > > text_poke() and text_poke_bp() must be called with text_mutex held. > Let's put proper lockdep anotation in place instead of just mentioning > the requirement in comment. Thanks Jiri! > Reported-by: Peter Zijls

Re: [PATCH 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-28 Thread Andrey Smirnov
On Tue, Aug 28, 2018 at 12:28 AM Anson Huang wrote: > > > > Anson Huang > Best Regards! > > > > -Original Message- > > From: Andrey Smirnov > > Sent: Tuesday, August 28, 2018 6:51 AM > > To: Anson Huang > > Cc: Shawn Guo ; Sascha Hauer > > ; Sascha Hauer ; Fabio > > Estevam ; linux-arm-k

Re: [PATCH] mmc: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Adrian Hunter
On 28/08/18 04:52, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Adrian Hunter > Cc: Hu Ziji > Cc: Ulf Hansson > Cc: linux-...@vger.kernel.org > Signed-off-by: Rob Herring Acked-by

RE: [PATCH 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-28 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Andrey Smirnov > Sent: Tuesday, August 28, 2018 4:01 PM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; linux-arm-kernel > ; linux-kernel > ; dl-linux-imx > Subject: Re: [PATCH 2/2] soc: imx:

Re: [PATCH] HID: add support for Apple Magic Trackpad 2

2018-08-28 Thread Benjamin Tissoires
Hi Sean, On Tue, Aug 28, 2018 at 3:29 AM Sean O'Brien wrote: > > USB device > Vendor 05ac (Apple) > Device 0265 (Magic Trackpad 2) > Bluetooth device > Vendor 004c (Apple) > Device 0265 (Magic Trackpad 2) > > Add support for Apple Magic Trackpad 2 over USB and blue

Re: [PATCH v2 7/9] net: stmmac: dwmac-sun8i: fix OF child-node lookup

2018-08-28 Thread Corentin Labbe
On Mon, Aug 27, 2018 at 10:21:51AM +0200, Johan Hovold wrote: > Use the new of_get_compatible_child() helper to lookup the mdio-internal > child node instead of using of_find_compatible_node(), which searches > the entire tree from a given start node and thus can return an unrelated > (i.e. non-chi

Re: [PATCH v13 04/13] x86/sgx: Architectural structures

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 12:41:29PM -0700, Dave Hansen wrote: > > +/** > > + * enum sgx_encls_leaves - return codes for ENCLS, ENCLU and ENCLV > > + * %SGX_SUCCESS: No error. > > + * %SGX_INVALID_SIG_STRUCT:SIGSTRUCT contains an invalid value. > > + * %SGX_INVALID_ATTRIBUTE: Enclav

Re: [PATCH v13 05/13] x86/msr: Add SGX definitions to msr-index.h

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 12:42:32PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > @@ -866,10 +867,9 @@ void get_cpu_cap(struct cpuinfo_x86 *c) > > } > > } > > > > - /* Intel SGX features: level 0x0012 */ > > - if (c->cpuid_level >= 0x001

Re: [PATCH] perf/x86/intel: Export mem events only if there's PEBs support

2018-08-28 Thread Peter Zijlstra
On Mon, Aug 27, 2018 at 11:06:24AM +0200, Jiri Olsa wrote: > +static __init struct attribute **get_hsw_events_attrs(bool *alloc) > { > + if (boot_cpu_has(X86_FEATURE_RTM)) { > + *alloc = true; > + return merge_attr(hsw_events_attrs, hsw_tsx_events_attrs); > + } > +

Re: [PATCH] Revert "net: stmmac: Do not keep rearming the coalesce timer in stmmac_xmit"

2018-08-28 Thread Jose Abreu
Hi Jerome, On 24-08-2018 10:04, Jerome Brunet wrote: > This reverts commit 4ae0169fd1b3c792b66be58995b7e6b629919ecf. > > This change in the handling of the coalesce timer is causing regression on > (at least) amlogic platforms. > > Network will break down very quickly (a few seconds) after startin

Re: [PATCH] perf/x86/intel: Export mem events only if there's PEBs support

2018-08-28 Thread Jiri Olsa
On Tue, Aug 28, 2018 at 10:12:32AM +0200, Peter Zijlstra wrote: > On Mon, Aug 27, 2018 at 11:06:24AM +0200, Jiri Olsa wrote: > > +static __init struct attribute **get_hsw_events_attrs(bool *alloc) > > { > > + if (boot_cpu_has(X86_FEATURE_RTM)) { > > + *alloc = true; > > + ret

Re: [PATCH v13 06/13] x86/sgx: Detect Intel SGX

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 12:53:59PM -0700, Dave Hansen wrote: > > +config INTEL_SGX_CORE > > + prompt "Intel SGX core functionality" > > + def_bool n > > + depends on X86_64 && CPU_SUP_INTEL > > + help > > + Intel Software Guard eXtensions (SGX) is a set of CPU instructions > > + that al

Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ley Foon Tan
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct > device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by: Rob Herring Acked-by: Ley Foon

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:15:34PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > +struct sgx_epc_page_ops { > > + bool (*get)(struct sgx_epc_page *epc_page); > > + void (*put)(struct sgx_epc_page *epc_page); > > + bool (*reclaim)(struct sgx_epc_page *epc_page)

[PATCH v2 0/3] RISC-V: Add new smp features

2018-08-28 Thread Atish Patra
This patch series implements following smp related features. Some of the work has been inspired from ARM64. 1. Decouple linux logical cpu ids from hardware cpu id 2. Support cpu hotplug. Tested on QEMU & HighFive Unleashed board with/without SMP enabled. v1->v2: 1. Dropped cpu_ops patch. 2. Mov

[PATCH v2 3/3] RISC-V: Support cpu hotplug.

2018-08-28 Thread Atish Patra
This patch enable support for cpu hotplug in RISC-V. In absence of generic cpu stop functions, WFI is used to put the cpu in low power state during offline. An IPI is sent to bring it out of WFI during online operation. Tested both on QEMU and HighFive Unleashed board with 4 cpus. Test result fol

Re: [PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-28 Thread Barry Song
jun qian 于2018年8月27日周一 下午10:49写道: > > Before the program enters the uart ISR, the local interrupt has been > disabled by the system, so it's not appropriate to use spin_lock_irqsave > interface in the ISR. > > Signed-off-by: jun qian many discussions have been done with jun in wechat regarding t

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:14:24PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > +enum sgx_alloc_flags { > > + SGX_ALLOC_ATOMIC= BIT(0), > > +}; > > Doing this with enums is unprecedented IMNHO. Why are you doing it this > way for simple, one-off constan

[PATCH v2 2/3] RISC-V: Use Linux logical cpu number instead of hartid

2018-08-28 Thread Atish Patra
Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra --- arch/riscv/include/asm/tlbflush.h | 17 + arch/r

[PATCH v2 1/3] RISC-V: Add logical CPU indexing for RISC-V

2018-08-28 Thread Atish Patra
Currently, both linux cpu id and hardware cpu id are same. This is not recommended as it will lead to discontinuous cpu indexing in Linux. Moreover, kdump kernel will run from CPU0 which would be absent if we follow existing scheme. Implement a logical mapping between Linux cpu id and hardware cpu

[PATCH V2 1/2] soc: imx: gpc: use A_CORE instread of A7 for more i.MX platforms

2018-08-28 Thread Anson Huang
gpcv2 driver is NOT just used on i.MX7D which has Cortex-A7 cores, but also on i.MX8MQ/i.MX8MM platforms which use Cortex-A53 cores, so let's use A_CORE instread of A7 to avoid confusion. Signed-off-by: Anson Huang Acked-by: Andrey Smirnov --- no change since V1. drivers/soc/imx/gpcv2.c | 20 ++

[PATCH V2 2/2] soc: imx: gpcv2: make pgc driver more generic for other i.MX platforms

2018-08-28 Thread Anson Huang
i.MX8MQ and i.MX8MM share same gpc module with i.MX7D, they can reuse gpcv2 pgc driver for power domain control, this patch renames all functions and structure definitions started with "imx7" to "imx", and use .data in imx_gpcv2_dt_ids[] to pass platform specific power domain data for power domain

[PATCH] mfd: madera: Remove unused forward reference

2018-08-28 Thread Richard Fitzgerald
The madera_irqchip_pdata struct was replaced by the irq_flags member of struct madera_pdata so the forward reference is obsolete. Signed-off-by: Richard Fitzgerald --- include/linux/mfd/madera/pdata.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mfd/madera/pdata.h b/include/l

Re: [PATCH] remoteproc: qcom: adsp: Add SDM845 ADSP and CDSP support

2018-08-28 Thread Sibi Sankar
Tested-by: Sibi Sankar On 2018-08-28 12:44, Bjorn Andersson wrote: Add support for booting the Audio and Compute DSPs found in Qualcomm's SDM845 platform. As with the previous platforms the power rail handling needs to be updated once the appropriate support lands upstream. Signed-off-by: Bjo

[PATCH] pinctrl: madera: Fix possible NULL pointer with pdata config

2018-08-28 Thread Richard Fitzgerald
If we are being configured via pdata we don't necessarily have any gpio mappings being configured that way so pdata->gpio_config could be NULL. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [PATCH v2 1/2]: perf util: map data buffer for preserving collected data

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 12:02:35PM +0300, Alexey Budankov wrote: > Hi, > > On 27.08.2018 11:33, Jiri Olsa wrote: > > On Thu, Aug 23, 2018 at 07:42:09PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c > >> index fc832676a798..e71d46

Re: [PATCH 3/3] Enable high-resolution scrolling on Logitech mice

2018-08-28 Thread Benjamin Tissoires
Hi Harry, On Thu, Aug 23, 2018 at 8:31 PM Harry Cutts wrote: > > There are three features used by various Logitech mice for > high-resolution scrolling: the fast scrolling bit in HID++ 1.0, and the > x2120 and x2121 features in HID++ 2.0 and above. This patch supports > all three, and uses the mu

Re: TLB flushes on fixmap changes

2018-08-28 Thread Masami Hiramatsu
On Mon, 27 Aug 2018 16:01:32 -0700 Andy Lutomirski wrote: > On Mon, Aug 27, 2018 at 3:54 PM, Nadav Amit wrote: > > at 3:32 PM, Andy Lutomirski wrote: > > > >> On Mon, Aug 27, 2018 at 2:55 PM, Nadav Amit wrote: > >>> at 1:16 PM, Nadav Amit wrote: > >>> > at 12:58 PM, Andy Lutomirski wrot

Re: [PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 08:55:14 +0200 (CEST) Jiri Kosina wrote: > From: Jiri Kosina > > text_poke() and text_poke_bp() must be called with text_mutex held. > Let's put proper lockdep anotation in place instead of just mentioning > the requirement in comment. Thank you! Acked-by: Masami Hiramatsu

Re: [PATCH] rtc: rtc-omap: Replace mdelay() with msleep() in omap_rtc_power_off()

2018-08-28 Thread Johan Hovold
On Mon, Aug 27, 2018 at 10:55:17PM +0200, Alexandre Belloni wrote: > Hi, > > On 30/07/2018 21:53:14+0800, Jia-Ju Bai wrote: > > omap_rtc_power_off() is never called in atomic context. > > It calls mdelay() to busily wait, which is not necessary. > > mdelay() can be replaced with msleep(). > > > >

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > Trace file offset are linearly calculated by perf_mmap__push() code > for the next possible write operation, but file position is updated by > the kernel only in the second lseek() syscall after the loop. > The first lseek() s

Re: [PATCH] arm64: dts: qcom: sdm845: Add smp2p nodes

2018-08-28 Thread Sibi Sankar
Reviewed-by: Sibi Sankar On 2018-08-28 12:42, Bjorn Andersson wrote: Add the SMP2P nodes for the remoteproc states for adsp, cdsp, mpss and slpi. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 1 file changed, 88 insertions(+) diff

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > if ((md->start & md->mask) + size != (md->end & md->mask)) { > buf = &data[md->start & md->mask]; > - size = md->mask + 1 - (md->start & md->mask); > - md->start += size; > - > -

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > + int trace_fd = rec->session->data->file.fd; > + struct aiocb **mmap_aio = rec->evlist->mmap_aio; > + int mmap_aio_size = 0; > + off_t off; > > if (!evlist) > return 0; > @@ -528,14 +632

[BUG] Possible sleep-in-atomic-context bugs involving regmap_lock_mutex()

2018-08-28 Thread Jia-Ju Bai
Hello, My static tool DSAC reports many sleep-in-atomic-context bugs involving regmap_lock_mutex(), so I wonder whether this function is possible to be executed in atomic context. Here are some example bugs and their call paths in Linux-4.16 (from bottom to top, and [FUNC_PTR] means that the

Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint

2018-08-28 Thread Marc Zyngier
On Tue, 28 Aug 2018 05:53:26 +0100, Jia He wrote: > > In commit fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs"), > it removes the cap for lpi_id_bits. But it will cause more pointless > memory footprint. > > There is a WARN_ON when my QDF2400 server boots up (pagesize is 4k) > ==

Re: [PATCH v3 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 08:03:21PM +0300, Alexey Budankov wrote: > > Currently in record mode the tool implements trace writing serially. > The algorithm loops over mapped per-cpu data buffers and stores ready > data chunks into a trace file using write() system call. > > At some circumstances

Re: [PATCH] EDAC: Remove the i82443bxgx_edac driver

2018-08-28 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 08:30:23PM +0100, Tim Small wrote: > On that basis, I don't see a problem with removing it, but if there's a > preference for me to fix it, (and if I still have some old hardware > somewhere that I can test it on), I'll be happy to do that instead. Well, if you don't have t

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > +static int record__mmap_read_sync(int trace_fd, struct aiocb **cblocks, > + int cblocks_size, struct record *rec) > +{ > + size_t rem; > + ssize_t size; > + off_t rem_off; > + int i, aio_ret, aio_

[PATCH 1/2] dt-bindings: power: Add Spreadtrum SC2731 charger documentation

2018-08-28 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC2731 charger device. Signed-off-by: Baolin Wang --- .../bindings/power/supply/sc2731_charger.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/sc2731_cha

[PATCH 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-08-28 Thread Baolin Wang
This patch adds the SC2731 PMIC switch charger support. Signed-off-by: Baolin Wang --- drivers/power/supply/Kconfig |7 + drivers/power/supply/Makefile |1 + drivers/power/supply/sc2731_charger.c | 451 + 3 files changed, 459 insertions(+

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Andrey Ryabinin
On 08/25/2018 02:58 AM, Jann Horn wrote: > Reset the KASAN shadow state of the task stack when rewinding RSP. > Without this, a kernel oops will leave parts of the stack poisoned, and > code running under do_exit() can trip over such poisoned regions and cause > nonsensical false-positive KASAN rep

[PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Mikhail Zaslonko
Within show_valid_zones() the function test_pages_in_a_zone() should be called for online memory blocks only. Otherwise it might lead to the VM_BUG_ON due to uninitialized struct pages (when CONFIG_DEBUG_VM_PGFLAGS kernel option is set): page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p)) -

Re: [PATCH] rtc: rtc-omap: Replace mdelay() with msleep() in omap_rtc_power_off()

2018-08-28 Thread Jia-Ju Bai
On 2018/8/28 16:49, Johan Hovold wrote: On Mon, Aug 27, 2018 at 10:55:17PM +0200, Alexandre Belloni wrote: Hi, On 30/07/2018 21:53:14+0800, Jia-Ju Bai wrote: omap_rtc_power_off() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be rep

Re: [PATCH v4 0/2] clk: qcom: Add support for RCG to register for DFS

2018-08-28 Thread Taniya Das
On 8/28/2018 2:34 AM, Stephen Boyd wrote: Quoting Stephen Boyd (2018-08-23 11:25:41) Quoting Taniya Das (2018-08-22 03:28:31) H. Ok. That won't work then. recalc_rate() better not try to populate the frequency table then or it will not work. So I suppose it needs to fallback to readin

[PATCH] perf probe powerpc: Ignore SyS symbols irrespective of endianness

2018-08-28 Thread Sandipan Das
This makes sure that the SyS symbols are ignored for any powerpc system, not just the big endian ones. Fixes: fb6d59423115 ("perf probe ppc: Use the right prefix when ignoring SyS symbols on ppc") Reported-by: Naveen N. Rao Signed-off-by: Sandipan Das Reviewed-by: Kamalesh Babulal --- tools/p

[PATCH 3/3] nds32: fix build error because of wrong semicolon

2018-08-28 Thread Greentime Hu
It shall be removed in the define usage. We shall not put a semicolon there. /kisskb/src/arch/nds32/include/asm/elf.h:126:29: error: expected '}' before ';' token #define ELF_DATA ELFDATA2LSB; ^ /kisskb/src/fs/proc/kcore.c:318:17: note: in expansion of macro 'ELF_DAT

[PATCH 1/3] nds32: Only print one page of stack when die to prevent printing too much information.

2018-08-28 Thread Greentime Hu
It may print too much information sometimes if the stack is wrong or too big. This patch can limit the debug information in a page of stack. Signed-off-by: Greentime Hu --- arch/nds32/kernel/traps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/nds32/kernel/traps.

[PATCH 2/3] nds32: Fix a kernel panic issue because of wrong frame pointer access.

2018-08-28 Thread Greentime Hu
It can make sure that trace_hardirqs_off/trace_hardirqs_on can get a correct return address by frame pointer through __builtin_return_address() in this fix. Unable to handle kernel paging request at virtual address fffc pgd = 3c42e9cf [fffc] *pgd=02a9c000 Internal error: Oops: 1 [#1] Modu

Re: [PATCH] mtd: rawnand: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Boris Brezillon
On Mon, 27 Aug 2018 20:52:34 -0500 Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Boris Brezillon > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: David Woodhouse > Cc: Brian Nor

Re: [PATCH v2 1/2]: perf util: map data buffer for preserving collected data

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:45, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 12:02:35PM +0300, Alexey Budankov wrote: >> Hi, >> >> On 27.08.2018 11:33, Jiri Olsa wrote: >>> On Thu, Aug 23, 2018 at 07:42:09PM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> diff --git a/tools/perf/util/mmap.c b/tools/per

Re: [patch V2 7/7] scripts: Add SPDX checker script

2018-08-28 Thread Geert Uytterhoeven
On Mon, May 14, 2018 at 4:38 PM Philippe Ombredanne wrote: > On Wed, Apr 25, 2018 at 10:30 PM, Thomas Gleixner wrote: > > The SPDX-License-Identifiers are growing in the kernel and so grow > > expression failures and license IDs are used which have no corresponding > > license text file in the LI

Re: [PATCH] perf probe powerpc: Ignore SyS symbols irrespective of endianness

2018-08-28 Thread Naveen N. Rao
Sandipan Das wrote: This makes sure that the SyS symbols are ignored for any powerpc system, not just the big endian ones. Fixes: fb6d59423115 ("perf probe ppc: Use the right prefix when ignoring SyS symbols on ppc") Reported-by: Naveen N. Rao Signed-off-by: Sandipan Das Reviewed-by: Kamalesh

[PATCH v2] cpupower: remove stringop-truncation waring

2018-08-28 Thread Anders Roxell
The strncpy doesn't null terminate the string because the size is too short by one byte. parse.c: In function ‘prepare_default_config’: parse.c:148:2: warning: ‘strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strnc

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:50, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: >> >> Trace file offset are linearly calculated by perf_mmap__push() code >> for the next possible write operation, but file position is updated by >> the kernel only in the second lseek(

Re: [PATCH v5 6/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs

2018-08-28 Thread kbuild test robot
Hi Niklas, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on agross/for-next] [also build test WARNING on v4.19-rc1 next-20180828] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[PATCH v2 0/4] devres: provide and use devm_kstrdup_const()

2018-08-28 Thread Bartosz Golaszewski
This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in pmc-atom driver. v1 -> v2: - fixed the changelog in the patch implementing devm_kstrdup_const() - fixed the kernel doc - moved is_kernel_rodata() to asm-generic/sections.h - fixed constness Bartosz

[PATCH v2 3/4] devres: provide devm_kstrdup_const()

2018-08-28 Thread Bartosz Golaszewski
Provide a resource managed version of kstrdup_const(). This variant internally calls devm_kstrdup() on pointers that are outside of .rodata section and returns the string as is otherwise. Also provide a corresponding version of devm_kfree(). Signed-off-by: Bartosz Golaszewski --- drivers/base/d

[PATCH v2 1/4] devres: constify p in devm_kfree()

2018-08-28 Thread Bartosz Golaszewski
Make devm_kfree() signature uniform with that of kfree(). To avoid compiler warnings: cast p to (void *) when calling devres_destroy(). Signed-off-by: Bartosz Golaszewski --- drivers/base/devres.c | 5 +++-- include/linux/device.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff -

[PATCH v2 2/4] mm: move is_kernel_rodata() to asm-generic/sections.h

2018-08-28 Thread Bartosz Golaszewski
Export this routine so that we can use it later in devm_kstrdup_const() and devm_kfree_const(). Signed-off-by: Bartosz Golaszewski --- include/asm-generic/sections.h | 14 ++ mm/util.c | 7 --- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/

[PATCH v2 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-08-28 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as an example of how to use this new routine to shrink driver code. While we're at it: replace a call to kcalloc() with devm_kcalloc(). Signed-off-by: Bartosz Golaszewski --- drivers/clk/x86/clk-pmc-atom.c | 19

[PATCH v6 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-08-28 Thread Jisheng Zhang
When using DMA, if the DMA addr spans 128MB boundary, we have to split the DMA transfer into two so that each one doesn't exceed the boundary. patch1 adds adma_table_cnt to struct sdhci_host so that driver can control the ADMA table count. patch2 introduces adma_write_desc() hook to struct sdhci_o

[PATCH 4/5] ARM: dts: at91: nattis: move pinctrls for the lvds chip to the lvds node

2018-08-28 Thread Peter Rosin
The atmel hlcdc controller has nothing to do with these pins, so move them to where they belong. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts

[PATCH 0/5] ARM: dts: at91: nattis: some cleanup

2018-08-28 Thread Peter Rosin
Hi! Now that some other patches [1][2] have finally landed in -next, I feel that it is time for this cleanup series that I have been hoarding for a while waiting on those (weak) dependencies. Cheers, Peter [1] https://lkml.org/lkml/2018/8/24/187 [2] https://lkml.org/lkml/2018/8/25/64 Peter Rosi

[PATCH v6 1/3] mmc: sdhci: add adma_table_cnt member to struct sdhci_host

2018-08-28 Thread Jisheng Zhang
This patch adds adma_table_cnt member to struct sdhci_host to give more flexibility to drivers to control the ADMA table count. Default value of adma_table_cnt is set to (SDHCI_MAX_SEGS * 2 + 1). Signed-off-by: Jisheng Zhang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 17 +--

[PATCH 1/5] ARM: dts: at91: nattis: set the PRLUD and HIPOW signals low

2018-08-28 Thread Peter Rosin
AT91_PINCTRL_OUTPUT_VAL(0) without AT91_PINCTRL_OUTPUT is a no-op, so make sure the pins really output a zero. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 6 -- 1

[PATCH 2/5] ARM: dts: at91: nattis: make the SD-card slot work

2018-08-28 Thread Peter Rosin
The cd-gpios signal is assumed active-low by the driver, and the cd-inverted property is needed if it is, in fact, active-high. Fix this oversight. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at9

[PATCH 5/5] ARM: dts: at91: nattis: describe the lvds panel

2018-08-28 Thread Peter Rosin
Make the DT usable with the panel-lvds driver. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natt

[PATCH 3/5] ARM: dts: at91: nattis: state the actual lvds-encoder chip

2018-08-28 Thread Peter Rosin
Just to be explicit. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts index 4308a07b792e..fbc796125c56 100644 -

[PATCH v6 2/3] mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

2018-08-28 Thread Jisheng Zhang
Add this hook so that it can be overridden with driver specific implementations. We also let the original sdhci_adma_write_desc() accept &desc so that the function can set its new value. Then export the function so that it could be reused by driver's specific implementations. Signed-off-by: Jishen

[PATCH v6 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Jisheng Zhang
When using DMA, if the DMA addr spans 128MB boundary, we have to split the DMA transfer into two so that each one doesn't exceed the boundary. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 39 + 1 file changed, 39 insertions(+) diff --git a/d

Re: [PATCH v5 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Jisheng Zhang
On Tue, 28 Aug 2018 10:51:02 +0300 Adrian Hunter wrote: > On 27/08/18 11:24, Jisheng Zhang wrote: > > When using DMA, if the DMA addr spans 128MB boundary, we have to split > > the DMA transfer into two so that each one doesn't exceed the boundary. > > > > Signed-off-by: Jisheng Zhang > > --- >

Re: [RESEND] PCI: imx: Initial imx7d pm support

2018-08-28 Thread Lorenzo Pieralisi
On Mon, Aug 27, 2018 at 02:28:37PM +0300, Leonard Crestez wrote: > On imx7d the pcie-phy power domain is turned off in suspend and this can > make the system hang after resume when attempting any read from PCI. > > Fix this by adding minimal suspend/resume code from the nxp internal > tree. This w

Re: [PATCH v2] PCI: dwc: fix scheduling while atomic issues

2018-08-28 Thread Lorenzo Pieralisi
On Tue, Aug 21, 2018 at 02:15:12PM +0800, Jisheng Zhang wrote: > When programming inbound/outbound atu, we call usleep_range() after > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > can be called in atomic context: > > inbound atu programming could be called through > pci_

Re: [PATCHv2] kmemleak: Add option to print warnings to dmesg

2018-08-28 Thread Vincent Whitchurch
On Mon, Aug 27, 2018 at 03:16:41PM -0700, Andrew Morton wrote: > On Mon, 27 Aug 2018 10:38:21 +0200 Vincent Whitchurch > wrote: > > > Currently, kmemleak only prints the number of suspected leaks to dmesg > > but requires the user to read a debugfs file to get the actual stack > > traces of the

[PATCH v1] arm64: dts: ls1043a: Add configure-gfladj property to USB3 node

2018-08-28 Thread Yinbo Zhu
From: Rajesh Bhagat Add "configure-gfladj" boolean property to USB3 node. This property is used to determine whether frame length adjustent is required or not Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |3 +++ 1 files changed, 3

Re: [PATCH 0/5] ARM: dts: at91: nattis: some cleanup

2018-08-28 Thread Alexandre Belloni
On 28/08/2018 11:48:39+0200, Peter Rosin wrote: > Hi! > > Now that some other patches [1][2] have finally landed in -next, I > feel that it is time for this cleanup series that I have been hoarding > for a while waiting on those (weak) dependencies. > > Cheers, > Peter > > [1] https://lkml.org/l

Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX

2018-08-28 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 09:53:24PM +0300, Jarkko Sakkinen wrote: > diff --git a/arch/x86/include/asm/cpufeatures.h > b/arch/x86/include/asm/cpufeatures.h > index 7bb647f57d42..4af60a0fdb20 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -13,7 +13,7

Re: [PATCHv2] kmemleak: Add option to print warnings to dmesg

2018-08-28 Thread Catalin Marinas
On Tue, Aug 28, 2018 at 12:14:12PM +0200, Vincent Whitchurch wrote: > On Mon, Aug 27, 2018 at 03:16:41PM -0700, Andrew Morton wrote: > > On Mon, 27 Aug 2018 10:38:21 +0200 Vincent Whitchurch > > wrote: > > > --- a/lib/Kconfig.debug > > > +++ b/lib/Kconfig.debug > > > @@ -593,6 +593,15 @@ config D

[PATCH] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-08-28 Thread Kishon Vijay Abraham I
AM65 has two PCIe controllers and each PCIe controller has '2' address spaces one within the 4GB address space of the SoC and the other above the 4GB address space of the SoC in addition to the register space. The size of the address space above the 4GB SoC address space is 4GB. These address range

Re: [PATCH v3 2/2]: perf record: enable asynchronous trace writing

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:53, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> if ((md->start & md->mask) + size != (md->end & md->mask)) { >> buf = &data[md->start & md->mask]; >> -size = md->mask + 1 - (md->start & md->m

Re: [PATCH v1] arm64: dts: ls1043a: Add configure-gfladj property to USB3 node

2018-08-28 Thread Fabio Estevam
On Tue, Aug 28, 2018 at 7:12 AM, Yinbo Zhu wrote: > From: Rajesh Bhagat freescale.com addresses are no longer valid. The From and the first Signed-off-by lines should match, so use nxp.com here instead. > Add "configure-gfladj" boolean property to USB3 node. This property I don't find any dt-

  1   2   3   4   5   6   7   >