RE: Enquiry on unbalanced memory throughput for dual-Cortex A9 core.

2018-07-26 Thread Ooi, Tzy Way
> -Original Message- > From: Ooi, Tzy Way > Sent: Tuesday, July 24, 2018 10:23 AM > To: Russell King - ARM Linux > Cc: linux-kernel@vger.kernel.org; See, Chin Liang > ; Tan, Ley Foon ; > Nguyen, Dinh ; Aw, Khai Liang > > Subject: RE: Enquiry on unbalanced memory throughput for dual-Cortex

RE: [PATCH V7 2/5] mmc: sdhci: Change O2 Host HS200 mode clock frequency to 200MHz

2018-07-26 Thread Ernest Zhang(WH)
Hi Adrian, Do I need re-submit all 5 patches after fix that and change the version to v8? BR -Original Message- From: Adrian Hunter [mailto:adrian.hun...@intel.com] Sent: 2018年7月25日 15:45 To: Ernest Zhang(WH); Ulf Hansson; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org

[PATCH v2] perf build: Fix installation directory for bpf

2018-07-26 Thread Thomas Richter
Perf tool build and install is controlled via makefile. Make install creates directories and copies files. Among them are header files installed in /usr/lib/include/perf/bpf/. However all listed examples are installing its header files in /usr/lib//...[/include]/header.h and not in /usr/lib/in

Re: [PATCH] iio: ad_sigma_delta: use unsigned long for timeout

2018-07-26 Thread Ardelean, Alexandru
On Thu, 2018-07-26 at 11:44 +, Ardelean, Alexandru wrote: > On Mon, 2018-07-23 at 11:18 +0200, Nicholas Mc Guire wrote: > > wait_for_completion_timeout returns unsigned long not int so an > > appropriate > > variable is declared and the assignment and check fixed up. > > > > Patch looks good.

Re: BPF relocation 'perf test' entries failing was: Re: [GIT PULL 00/27] perf/core improvements and fixes

2018-07-26 Thread Thomas-Mich Richter
On 07/26/2018 09:14 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 26, 2018 at 03:58:05PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Thu, Jul 26, 2018 at 11:04:08PM +0530, Sandipan Das escreveu: >>> I came across the same problem. Does the following patch fix it? > >>> https://lkml.org/lkm

[PATCH v4 1/2] fpga: fpga-mgr: Add readback support

2018-07-26 Thread Appana Durga Kedareswara rao
Inorder to debug issues with fpga's users would like to read the fpga configuration information. This patch adds readback support for fpga configuration data in the framework through debugfs interface. Usage: cat /sys/kernel/debug/fpga/fpga0/image Signed-off-by: Appana Durga Kedareswara r

[PATCH v4 2/2] fpga: zynq-fpga: Add support for readback of FPGA configuration data and registers

2018-07-26 Thread Appana Durga Kedareswara rao
This patch adds support for readback of FPGA configuration data and registers. Usage: Readback of PL configuration data cat /sys/kernel/debug/fpga/fpga0/image Readback of PL configuration registers cat /sys/kernel/debug/fpga/f8007000.devcfg/cfg_reg Signed-off-by: Appana Durga Keda

Re: [PATCH] mmc: host: iproc: Add ACPI support to IPROC SDHCI

2018-07-26 Thread Adrian Hunter
On 17/07/18 19:45, Srinath Mannam wrote: > Add ACPI support to all IPROC SDHCI varients > > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > Reviewed-by: Vladimir Olovyannikov > --- > drivers/mmc/host/Kconfig | 1 + > drivers/mmc/host/sdhci-iproc.c |

[PATCH] x86/apic: fix two slight indenting

2018-07-26 Thread Yi Wang
There are two inconsistent indenting in calibrate_APIC_clock() and activate_managed(). Remove the surplus TAB. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --

Re: [PATCH 1/1] lib: use sunday algorithm to do strstr() and strnstr()

2018-07-26 Thread Zhaoxiu Zeng
在 2018/7/27 1:17, Zhaoxiu Zeng 写道: > 在 2018/7/23 2:37, Greg Kroah-Hartman 写道: >> On Mon, Jul 23, 2018 at 01:37:15AM +0800, Zhaoxiu Zeng wrote: >>> From: Zhaoxiu Zeng >>> >>> The Sunday algorithm is a variation of Boyer-Moore algorithm, it is easy >>> and fast. >>> For the Sunday algorithm, to see

Re: [PATCH] arm64: dts: meson: Switch simple-mfd and syscon order

2018-07-26 Thread Lee Jones
On Thu, 26 Jul 2018, Neil Armstrong wrote: > The order between "syscon" and "simple-mfd" is important because in these > particular cases, the node needs to be first a "simple-mfd" to expose > it's sub-nodes, and later on a "syscon" to permit other nodes to access > this register space through the

Re: BUG: soft lockup in snd_virmidi_output_trigger

2018-07-26 Thread Dae R. Jeong
On Fri, Jul 27, 2018 at 07:20:30AM +0200, Takashi Iwai wrote: I think there is a mistake on the reported-by tag. The reported-by tag (e4c8abb920ef...) is for WARNING in port_delete. I guess the tag below is correct. Reported-by: syzbot+619d9f40141d826b0...@syzkaller.appspotmail.com Could you pleas

Re: [PATCH v23 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-07-26 Thread CK Hu
Hi, Jassi: In this patch, mediatek mailbox controller implement its own data queue rather than using mailbox framework's queue. I've an idea that could let mediatek mailbox controller use framework's queue but the framework should provide abort function. You could take a look on the sample in [1].

[PATCH 1/2] fs/epoll: loosen irq safety in ep_poll()

2018-07-26 Thread Davidlohr Bueso
Similar to other calls, ep_poll() is not called with interrupts disabled, and we can therefore avoid the irq save/restore dance and just disable local irqs. In fact, the call should never be called in irq context at all, considering that the only path is epoll_wait(2) -> do_epoll_wait() -> ep_poll

[PATCH 2/2] fs/eventpoll: simplify ep_is_linked callers

2018-07-26 Thread Davidlohr Bueso
Instead of having each caller pass the rdllink explicitly, just have ep_is_linked() pass it while the callers just need the epi pointer. This helper is all about the rdllink, and this change, furthermore, improves the function's self documentation. Signed-off-by: Davidlohr Bueso --- fs/eventpoll

[PATCH -next 0/2] epoll: loosen irq safety in ep_poll()

2018-07-26 Thread Davidlohr Bueso
Hi, Along the same lines than the previous work. Details are in patch 1. Patch 2 is an add on while eyeballing the code. Similar to the previous patches, this has survived ltp testcases and various workloads. Thanks, Davidlohr Davidlohr Bueso (2): fs/epoll: loosen irq safety in ep_poll() fs/

[PATCH] timers: fix offset calculation when the expires align with LVL_GRAN

2018-07-26 Thread Xu YiPing
when the expires of timer is align with LVL_GRAN(n), it will be trigged in 'expires + LVL_GRAN(n)'. Some drivers like power runtime use the timer to start a power down of device, it could saves power if the timer is triggerd in time, especially when LEVEL=0 with low expires. Signed-off-by: Xu YiP

Re: [PATCH] mtd: spi-nor: cadence-quadspi: make return type fit wait_for_completion_timeout

2018-07-26 Thread Nicholas Mc Guire
On Thu, Jul 26, 2018 at 10:09:28PM +0200, Boris Brezillon wrote: > On Wed, 25 Jul 2018 06:31:37 + > Nicholas Mc Guire wrote: > > > On Tue, Jul 24, 2018 at 10:46:26PM +0200, Boris Brezillon wrote: > > > On Sat, 21 Jul 2018 18:08:13 +0200 > > > Nicholas Mc Guire wrote: > > > > > > > wait_fo

Re: [PATCH v12 04/16] powerpc, kexec_file: factor out memblock-based arch_kexec_walk_mem()

2018-07-26 Thread AKASHI Takahiro
On Wed, Jul 25, 2018 at 08:31:29PM +0800, Dave Young wrote: > On 07/24/18 at 03:57pm, AKASHI Takahiro wrote: > > Memblock list is another source for usable system memory layout. > > So move powerpc's arch_kexec_walk_mem() to common code so that other > > memblock-based architectures, particularly a

Re: BUG: soft lockup in snd_virmidi_output_trigger

2018-07-26 Thread Takashi Iwai
On Fri, 27 Jul 2018 06:13:22 +0200, Dae R. Jeong wrote: > > I tested it and it worked. > Thanks a lot! Good to hear. Below is the final patch with a proper comment (and with syzbot reported-by, too) I'm going to queue to sound.git tree. thanks, Takashi -- 8< -- From: Takashi Iwai Subject:

Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface

2018-07-26 Thread Baolin Wang
Hi Pavel, On 24 July 2018 at 19:41, Pavel Machek wrote: > Hi! > >> >> > >Please keep in mind that this is ABI documentation for the pattern file >> >> > >to be exposed by LED core, and not by the pattern trigger, that, as we >> >> > >agreed, will be implemented later. In this case, I'd go for >>

Re: [PATCH 01/14] thermal: ti-soc-thermal: fix TALERT IRQ handling for DRA752

2018-07-26 Thread Keerthy
On Wednesday 25 July 2018 07:57 PM, Bartlomiej Zolnierkiewicz wrote: > On Wednesday, July 11, 2018 07:49:41 AM J, KEERTHY wrote: >> >> On 5/14/2018 5:12 PM, Bartlomiej Zolnierkiewicz wrote: >>> .report_temperature is not set in dra752_data which >>> results in temperature updates not being propa

Re: m68k allmodconfig build errors

2018-07-26 Thread Finn Thain
On Thu, 26 Jul 2018, Randy Dunlap wrote: > > > > The untested patch below may work. It seems that it may be relevant to > > both arc and m68k: > > > I got back to looking at the build errors. I agree with Andreas that > all of the fields in question are null-terminated, so Finn's patch looks

Re: [PATCH v6 5/6] Uprobes/sdt: Prevent multiple reference counter for same uprobe

2018-07-26 Thread Ravi Bangoria
Hi Oleg, On 07/25/2018 04:38 PM, Oleg Nesterov wrote: > No, I can't understand this patch... > > On 07/16, Ravi Bangoria wrote: >> >> --- a/kernel/events/uprobes.c >> +++ b/kernel/events/uprobes.c >> @@ -63,6 +63,8 @@ static struct percpu_rw_semaphore dup_mmap_sem; >> >> /* Have a copy of origin

Re: BUG: soft lockup in snd_virmidi_output_trigger

2018-07-26 Thread Dae R. Jeong
On Thu, Jul 26, 2018 at 02:50:25PM +0200, Takashi Iwai wrote: > On Thu, 26 Jul 2018 07:53:26 +0200, > Dae R. Jeong wrote: > > > > Reporting the crash: BUG: soft lockup in snd_virmidi_output_trigger > > > > This crash has been found in v4.18-rc3 using RaceFuzzer (a modified > > version of Syzkal

[PATCH] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-07-26 Thread Srinath Mannam
Add ACPI identifier HID for UART DW 8250 on Broadcom SoCs to match the HID passed through ACPI tables to enable UART controller. Signed-off-by: Srinath Mannam Reviewed-by: Vladimir Olovyannikov Tested-by: Vladimir Olovyannikov Reviewed-by: Ray Jui --- drivers/tty/serial/8250/8250_dw.c | 1 +

Request for Partnership!

2018-07-26 Thread Richard
Sir/Madam, I have access to very vital information that can be used to move huge amount of money. I have done my homework very well and i have the machineries in place to get it done since I am still in active service. If it was possible for me to do it alone I would not have bothered contacti

Re: [PATCH RT v3] arm64: fpsimd: use preemp_disable in addition to local_bh_disable()

2018-07-26 Thread Mike Galbraith
On Thu, 2018-07-26 at 17:06 +0200, Sebastian Andrzej Siewior wrote: > > @@ -1115,6 +1139,7 @@ void kernel_neon_begin(void) > > BUG_ON(!may_use_simd()); > > + preempt_disable(); > local_bh_disable(); > > __this_cpu_write(kernel_neon_busy, true); > @@ -1131,6 +1156,7 @@ v

Re: [LKP] [rcutorture] 3b745c8969: WARNING:at_mm/slab_common.c:#kmalloc_slab

2018-07-26 Thread Paul E. McKenney
On Thu, Jul 26, 2018 at 04:34:36PM -0700, Joel Fernandes wrote: > On Thu, Jul 26, 2018 at 04:53:25AM -0700, Paul E. McKenney wrote: > > On Thu, Jul 26, 2018 at 04:50:15PM +0800, kernel test robot wrote: > > > > > > FYI, we noticed the following commit (built with gcc-5): > > > > > > commit: 3b745

[PATCH 00/10] staging: gasket: logging cleanups

2018-07-26 Thread Todd Poynor
From: Todd Poynor Kill off gasket logging functions, convert to standard. Fixup a few formatting/style problems in the process. Todd Poynor (10): staging: gasket: save struct device for a gasket device staging: gasket: core: convert to standard logging staging: gasket: interrupt: convert

[PATCH 05/10] staging: gasket: page table: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Replace gasket logging calls with standard logging calls. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 131 + 1 file changed, 54 insertions(+), 77 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drive

[PATCH 10/10] staging: gasket: don't print device addresses as kernel pointers

2018-07-26 Thread Todd Poynor
From: Todd Poynor Print device addresses as unsigned long, not as kernel pointers. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging

[PATCH 03/10] staging: gasket: interrupt: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Convert gasket logging calls to standard functions. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_interrupt.c | 67 +++ 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/drivers/staging/gasket/gasket_interrupt.c b/drivers/stag

[PATCH 04/10] staging: gasket: ioctl: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Replace gasket logging calls with standard logging calls. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/staging/gasket/gasket_ioctl.c b/drivers/staging

[PATCH 07/10] staging: gasket: apex: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Drop gasket logging calls in favor of standard logging. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 61 1 file changed, 26 insertions(+), 35 deletions(-) diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/stagi

[PATCH 08/10] staging: gasket: remove gasket logging header

2018-07-26 Thread Todd Poynor
From: Todd Poynor Gasket logging functions no longer used. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_logging.h | 64 - 1 file changed, 64 deletions(-) delete mode 100644 drivers/staging/gasket/gasket_logging.h diff --git a/drivers/staging/gasket/gas

[PATCH 06/10] staging: gasket: sysfs: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Drop gasket logging calls in favor of standard logging. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_sysfs.c | 73 +-- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/drivers/staging/gasket/gasket_sysfs.c b/drivers/stag

[PATCH 09/10] staging: gasket: TODO: remove entry for convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Gasket/apex drivers now use standard logging, remove TODO entry for this. Signed-off-by: Todd Poynor --- drivers/staging/gasket/TODO | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/gasket/TODO b/drivers/staging/gasket/TODO index d3c44ca4fda25..fb71997fb5612

[PATCH 02/10] staging: gasket: core: convert to standard logging

2018-07-26 Thread Todd Poynor
From: Todd Poynor Use standard logging functions, drop use of gasket log functions. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 295 --- 1 file changed, 134 insertions(+), 161 deletions(-) diff --git a/drivers/staging/gasket/gasket_core.c b/d

[PATCH 01/10] staging: gasket: save struct device for a gasket device

2018-07-26 Thread Todd Poynor
From: Todd Poynor Save the struct device pointer to a gasket device in gasket's metadata, to facilitate use of standard logging calls and in anticipation of non-PCI gasket devices in the future. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 5 +++-- drivers/staging/gask

[PATCH] ASoC: uniphier: change functions to static

2018-07-26 Thread Katsuhiro Suzuki
This patch changes some functions that are not used by other objects to static. Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/aio-core.c | 6 +++--- sound/soc/uniphier/aio.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/sound/soc/uniphier/aio-core.c b/soun

[PATCH] ASoC: uniphier: add support for multichannel output

2018-07-26 Thread Katsuhiro Suzuki
This patch adds multichannel PCM output support for LD11/LD20. Currently driver tested and supported only 2ch, 6ch, and 8ch. Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/aio-core.c | 78 --- sound/soc/uniphier/aio-ld11.c | 2 +- sound/soc/uniphier/aio-r

[PATCH] input: touchscreen: wdt87xx_i2c: Replace mdelay() with msleep() in wdt87xx_resume()

2018-07-26 Thread Jia-Ju Bai
wdt87xx_resume() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- drivers/input/touchscreen/wdt87xx_i2c.c | 2 +

[PATCH] input: tablet: aiptek: Replace GFP_ATOMIC with GFP_KERNEL in aiptek_probe()

2018-07-26 Thread Jia-Ju Bai
aiptek_probe() is never called in atomic context. It calls usb_alloc_coherent() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replaced with GFP_KERNEL. This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- drivers/input/tablet/aiptek.c

[PATCH] input: mouse: appletouch: Replace GFP_ATOMIC with GFP_KERNEL

2018-07-26 Thread Jia-Ju Bai
atp_open(), atp_recover() and atp_resume() are never called in atomic context. They call usb_submit_urb() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replaced with GFP_KERNEL. This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- dri

[PATCH] input: misc: yealink: Replace GFP_ATOMIC with GFP_KERNEL in usb_probe()

2018-07-26 Thread Jia-Ju Bai
usb_probe() is never called in atomic context. It calls usb_alloc_coherent() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replaced with GFP_KERNEL. This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- drivers/input/misc/yealink.c | 4

[PATCH] input: misc: powermate: Replace GFP_ATOMIC with GFP_KERNEL in powermate_alloc_buffers()

2018-07-26 Thread Jia-Ju Bai
powermate_alloc_buffers() is never called in atomic context. It calls usb_alloc_coherent() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replaced with GFP_KERNEL. This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- drivers/input/misc/

[PATCH] input: misc: keyspan_remote: Replace GFP_ATOMIC with GFP_KERNEL in keyspan_probe()

2018-07-26 Thread Jia-Ju Bai
keyspan_probe() is never called in atomic context. It calls usb_alloc_coherent() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replace with GFP_KERNEL. This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai --- drivers/input/misc/keyspan_rem

Re: [PATCH] linux/bitmap.h: fix BITMAP_LAST_WORD_MASK

2018-07-26 Thread Wei Wang
On 07/26/2018 08:10 PM, Yury Norov wrote: On Thu, Jul 26, 2018 at 06:15:59PM +0800, Wei Wang wrote: External Email On 07/26/2018 05:37 PM, Yury Norov wrote: On Thu, Jul 26, 2018 at 04:07:51PM +0800, Wei Wang wrote: The existing BITMAP_LAST_WORD_MASK macro returns 0x if nbits is 0. Thi

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

2018-07-26 Thread Robin Gong
> -Original Message- > From: Oleksij Rempel [mailto:o.rem...@pengutronix.de] > Sent: 2018年7月26日 19:38 > To: Robin Gong ; Shawn Guo ; > Mark Brown ; Rafael J. Wysocki > > Cc: ker...@pengutronix.de; devicet...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-...@vger.kernel.o

linux-next: build failure after merge of the v4l-dvb tree

2018-07-26 Thread Stephen Rothwell
Hi Mauro, After merging the v4l-dvb tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/compat_ioctl.c: In function 'do_video_set_spu_palette': fs/compat_ioctl.c:218:45: error: invalid application of 'sizeof' to incomplete type 'struct video_spu_palette' up_native = c

Re: include architecture Kconfig files from top-level Kconfig v3

2018-07-26 Thread Masahiro Yamada
2018-07-27 2:21 GMT+09:00 Christoph Hellwig : > On Wed, Jul 25, 2018 at 01:30:24PM +0900, Masahiro Yamada wrote: >> Could you check the difference of CONFIG_PREEMPT_COUNT, please? >> >> >> For alpha, hexagon, um, >> CONFIG_PREEMPT_COUNT was previously never enabled >> because kernel/Kconfig.preempt

Re: [PATCH] checkpatch: Warn when a patch doesn't have a description

2018-07-26 Thread Joe Perches
On Thu, 2018-07-26 at 15:08 -0700, Andrew Morton wrote: > On Wed, 25 Jul 2018 19:22:47 -0700 Joe Perches wrote: > > > Potential patches should have a commit description. > > Emit a warning when there isn't one. [] > I did this: > > --- > a/scripts/checkpatch.pl~checkpatch-warn-when-a-patch-does

Re: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-26 Thread Suman Anna
On 07/26/2018 06:51 PM, Suman Anna wrote: > Hi Loic, > > On 07/26/2018 02:48 AM, Loic PALLARDY wrote: >> Hi Suman, >>> >>> Hi Loic, >>> >>> On 07/06/2018 02:46 AM, Loic Pallardy wrote: If rproc_start() failed, rproc_resource_cleanup() is called to clean debugfs entries, then associated i

[PATCH] remoteproc: Reset table_ptr in rproc_start() failure paths

2018-07-26 Thread Suman Anna
Unwind the modified table_ptr and restore it to the local copy upon any subsequent failures in the rproc_start() function. This keeps the function to remain balanced on failures without the need to balance any modified variables elsewhere. While at this, do some minor cleanup of the extra lines be

Re: [NOMERGE] [RFC PATCH 00/12] erofs: introduce erofs file system

2018-07-26 Thread Joey Pabalinas
On Thu, Jul 26, 2018 at 02:55:11PM -1000, Joey Pabalinas wrote: > I thought the exact same thing; opened the thread and was a bit confused > at first. In my opinion the name feels slightly misleading. Oooh, reading more of the thread I see there is some fun wordplay going on which I didn't catch a

Re: [PATCH] get_maintainer: Allow usage outside of kernel tree

2018-07-26 Thread Joe Perches
On Thu, 2018-07-26 at 15:39 -0700, Andrew Morton wrote: > On Tue, 26 Jun 2018 11:07:03 +0100 Antonio Nino Diaz > wrote: > > > Add option '--no-tree' to get_maintainer.pl script to allow using this > > script in projects that aren't the Linux kernel if they use the same > > format for their MAINT

Re: [NOMERGE] [RFC PATCH 00/12] erofs: introduce erofs file system

2018-07-26 Thread Joey Pabalinas
On Fri, Jun 01, 2018 at 11:28:07AM +0200, Richard Weinberger wrote: > > We also think of other candidate full names, such as > > Enhanced / Extented Read-only File System, all the names short for "erofs" > > are okay. > > TBH, I read "erofs" as "error fs". ;-) I thought the exact same thing; ope

Re: [PATCH v2 08/12] sched/core: uclamp: extend cpu's cgroup controller

2018-07-26 Thread Joel Fernandes
On Tue, Jul 24, 2018 at 06:29:02AM -0700, Tejun Heo wrote: > Hello, Patrick. > > On Mon, Jul 23, 2018 at 06:22:15PM +0100, Patrick Bellasi wrote: > > However, the "best effort" bandwidth control we have for CFS and RT > > can be further improved if, instead of just looking at time spent on > > CPU

Re: [PATCH 00/25] staging: erofs: introduce erofs file system

2018-07-26 Thread Christian Kujau
On Thu, 26 Jul 2018, Gao Xiang wrote: > EROFS file system is a read-only file system with compression > support designed for certain devices (especially embeded > devices) with very limited physical memory and lots of memory Out of curiousity, and as Richard already asked[0] - what about existing

[PATCH 0/2] android: binder: debug message improvements

2018-07-26 Thread Sherry Yang
This patch set includes extra_buffers_size in trace so that the total transaction size can be inferred. It also ratelimits debug messages to avoid excessive log spams reported by sysbot. android: binder: Show extra_buffers_size in trace android: binder: Rate-limit debug and userspace trigg

[PATCH 2/2] android: binder: Rate-limit debug and userspace triggered err msgs

2018-07-26 Thread Sherry Yang
Use rate-limited debug messages where userspace can trigger excessive log spams. Acked-by: Arve Hjønnevåg Signed-off-by: Sherry Yang --- drivers/android/binder.c | 5 +++-- drivers/android/binder_alloc.c | 41 +- 2 files changed, 29 insertions(+), 17 delet

[PATCH 1/2] android: binder: Show extra_buffers_size in trace

2018-07-26 Thread Sherry Yang
Add extra_buffers_size to the binder_transaction_alloc_buf tracepoint. Acked-by: Arve Hjønnevåg Signed-off-by: Sherry Yang --- drivers/android/binder_trace.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/android/binder_trace.h b/drivers/android/binder_trace.

[GIT PULL] FSI updates round 4 (last) for 4.19

2018-07-26 Thread Benjamin Herrenschmidt
Hi Greg ! This adds a few fixes for things reported since the last merge, and the latch batch of changes pending for FSI for 4.19. That batch is a rather mechanical conversion of the misc devices into proper char devices. The misc devices were ill suited, the minor space for them is limited and

[git pull] Input updates for v4.18-rc6

2018-07-26 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem: - a couple of new device IDs added to Elan i2c touchpad controller driver - another entry in i8042 reset quirk list. Changelog: - C

Re: [PATCH v2] RFC: clear 1G pages with streaming stores on x86

2018-07-26 Thread Huang, Ying
Hi, Cannon, Cannon Matthews writes: > On Wed, Jul 25, 2018 at 5:57 AM Michal Hocko wrote: >> >> [Cc Huang] >> On Tue 24-07-18 19:37:28, Cannon Matthews wrote: >> > Reimplement clear_gigantic_page() to clear gigabytes pages using the >> > non-temporal streaming store instructions that bypass the

Re: [PATCH v3] locking/rwsem: Exit read lock slowpath if queue empty & no writer

2018-07-26 Thread Davidlohr Bueso
On Tue, 24 Jul 2018, Waiman Long wrote: It was discovered that a constant stream of readers with occassional writers pounding on a rwsem may cause many of the readers to enter the slowpath unnecessarily thus increasing latency and lowering performance. In the current code, a reader entering the

Re: [PATCH] perf c2c report: Fix crash for empty browser

2018-07-26 Thread rodia
On 2018-07-26 19:30, Arnaldo Carvalho de Melo wrote: Em Tue, Jul 24, 2018 at 08:20:08AM +0200, Jiri Olsa escreveu: Do not try to display entry details if there's not any. Currently this ends up in crash: $ perf c2c report perf: Segmentation fault How to replicate this? I tried: $ perf re

Re: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-26 Thread Suman Anna
Hi Loic, On 07/26/2018 02:48 AM, Loic PALLARDY wrote: > Hi Suman, >> >> Hi Loic, >> >> On 07/06/2018 02:46 AM, Loic Pallardy wrote: >>> If rproc_start() failed, rproc_resource_cleanup() is called to clean >>> debugfs entries, then associated iommu mappings, carveouts and vdev. >>> Issue occurs whe

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

2018-07-26 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In recent tests with IRQ on/off tracepoints, a large performance overhead ~10% is noticed when running hackbench. This is root caused to calls to rcu_irq_enter_irqson and rcu_irq_exit_irqson from the tracepoint code. Following a long discussion on the list [1] abou

[PATCH v11 1/3] lockdep: use this_cpu_ptr instead of get_cpu_var stats

2018-07-26 Thread Joel Fernandes
From: "Joel Fernandes (Google)" get_cpu_var disables preemption which has the potential to call into the preemption disable trace points causing some complications. There's also no need to disable preemption in uses of get_lock_stats anyway since preempt is already disabled. So lets simplify the

[PATCH v11 0/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-26 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This series contains the last 2 patches with minor changes suggested by Peter and Steven, and an additional clean up patch for get_lock_stats as suggested by Peter. The preempt/irq tracepoints exist but not everything in the kernel is using it whenever they need t

[PATCH v11 3/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-26 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This patch detaches the preemptirq tracepoints from the tracers and keeps it separate. Advantages: * Lockdep and irqsoff event can now run in parallel since they no longer have their own calls. * This unifies the usecase of adding hooks to an irqsoff and irqson e

Re: RFC: simplified RISC-V interrupt and clocksource handling

2018-07-26 Thread Atish Patra
On 7/26/18 7:37 AM, Christoph Hellwig wrote: This series tries adds support for interrupt handling and timers for the RISC-V architecture. The basic per-hart interrupt handling implemented by the scause and sie CSRs is extremely simple and implemented directly in arch/riscv/kernel/irq.c. In add

Re: [PATCH] MAINTAINERS: drop Wenyou Yang from Atmel NAND driver support

2018-07-26 Thread Miquel Raynal
Hi Alexandre, Alexandre Belloni wrote on Wed, 25 Jul 2018 21:28:05 +0200: > On 25/07/2018 20:38:23+0200, Boris Brezillon wrote: > > On Wed, 25 Jul 2018 16:56:28 +0200 > > Miquel Raynal wrote: > > > > > Mails to wenyou.y...@microchip.com are not deliverable. > > > Drop him as Microchip/Atmel

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

2018-07-26 Thread Joel Fernandes
On Thu, Jul 26, 2018 at 07:18:00PM -0400, Steven Rostedt wrote: > On Tue, 17 Jul 2018 17:16:25 -0700 > Joel Fernandes wrote: > > > Is it Ok with you to take the below patch ontop of this series? I avoided > > resending the 3-patch series since this is the only change, but let me know > > what you

Re: [LKP] [rcutorture] 3b745c8969: WARNING:at_mm/slab_common.c:#kmalloc_slab

2018-07-26 Thread Joel Fernandes
On Thu, Jul 26, 2018 at 04:53:25AM -0700, Paul E. McKenney wrote: > On Thu, Jul 26, 2018 at 04:50:15PM +0800, kernel test robot wrote: > > > > FYI, we noticed the following commit (built with gcc-5): > > > > commit: 3b745c8969c752601cb68c82a06735363563ab42 ("rcutorture: Make boost > > test more

Re: [PATCH v4 00/35] Allow dynamic allocations during NAND chip identification phase

2018-07-26 Thread Miquel Raynal
Miquel Raynal wrote on Fri, 20 Jul 2018 17:14:52 +0200: > Hello, > > This series make a quite deep change in the NAND framework. Until now, > the NAND chip identification phase could be done in two manners from the > controller driver perspective: > > 1/ Call nand_scan() > > or > > 1/ Cal

mmotm 2018-07-26-16-31 uploaded

2018-07-26 Thread akpm
The mm-of-the-moment snapshot 2018-07-26-16-31 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH v2 2/3] selftest/ftrace: Move kprobe selftest function to separate compile unit

2018-07-26 Thread Steven Rostedt
On Thu, 26 Jul 2018 14:53:55 +0900 Masami Hiramatsu wrote: > From: Francis Deslauriers > > Move selftest function to its own compile unit so it can be compiled > with the ftrace cflags (CC_FLAGS_FTRACE) allowing it to be probed > during the ftrace startup tests. > > Signed-off-by: Francis Desl

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-26 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Mon, 23 Jul 2018 11:41:07 +0200: > On Mon, 23 Jul 2018 11:34:43 +0200 > Arnd Bergmann wrote: > > > On Sun, Jul 22, 2018 at 8:29 AM, Boris Brezillon > > wrote: > > > +Arnd, Rob and the DT ML. > > > > > > On Sat, 21 Jul 2018 14:53:47 -0700 > > > Randy Dunlap

Re: [PATCH] memcg: Remove memcg_cgroup::id from IDR on mem_cgroup_css_alloc() failure

2018-07-26 Thread Andrew Morton
On Fri, 13 Apr 2018 14:51:01 +0200 Michal Hocko wrote: > On Fri 13-04-18 14:14:33, Michal Hocko wrote: > [...] > > Well, this is probably a matter of taste. I will not argue. I will not > > object if Johannes is OK with your patch. But the whole thing confused > > hell out of me so I would rather

[PATCH v3 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-26 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 13 + drivers/pinctrl/nuvoton/Makefile

[PATCH v3 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-26 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH v3 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-07-26 Thread Tomer Maimon
This patch set adds pinmux and GPIO controller for the Nuvoton NPCM750/730/715/705 Baseboard Management Controller (BMC). The Nuvoton BMC NPCM750/730/715/705 Pinmux functions accessible only for pin groups and pinconf parameters available only for individual pins. The Nuvoton BMC NPCM750/730/715

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

2018-07-26 Thread Steven Rostedt
On Tue, 17 Jul 2018 17:16:25 -0700 Joel Fernandes wrote: > Is it Ok with you to take the below patch ontop of this series? I avoided > resending the 3-patch series since this is the only change, but let me know > what you prefer or makes it easy for you. Can you send a v11, even though this is t

Re: [PATCH 1/7] tracing: Fix double free of event_trigger_data

2018-07-26 Thread Steven Rostedt
On Thu, 26 Jul 2018 19:06:08 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > > Cc: sta...@vger.kerne.org Ug, I had a typo here. :-/ -- Steve

Re: [PATCH v4 27/35] mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()

2018-07-26 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 26 Jul 2018 21:06:55 +0200: > On Sun, 22 Jul 2018 08:44:32 +0200 > Boris Brezillon wrote: > > > On Fri, 20 Jul 2018 17:15:19 +0200 > > Miquel Raynal wrote: > > > > > Two helpers have been added to the core to make ECC-related > > > configuration betw

[PATCH 2/7] ring_buffer: tracing: Inherit the tracing setting to next ring buffer

2018-07-26 Thread Steven Rostedt
From: Masami Hiramatsu Maintain the tracing on/off setting of the ring_buffer when switching to the trace buffer snapshot. Taking a snapshot is done by swapping the backup ring buffer (max_tr_buffer). But since the tracing on/off setting is defined by the ring buffer, when swapping it, the traci

[PATCH 7/7] kthread, tracing: Dont expose half-written comm when creating kthreads

2018-07-26 Thread Steven Rostedt
From: Snild Dolkow There is a window for racing when printing directly to task->comm, allowing other threads to see a non-terminated string. The vsnprintf function fills the buffer, counts the truncated chars, then finally writes the \0 at the end. creator other

[PATCH 0/7] [GIT PULL] tracing: Various fixes for v4.18-rc6

2018-07-26 Thread Steven Rostedt
Linus, Various fixes to the tracing infrastructure: - Fix double free when the reg() call fails in event_trigger_callback() - Fix anomoly of snapshot causing tracing_on flag to change - Add selftest to test snapshot and tracing_on affecting each other - Fix setting of tracepoint flag on

[PATCH 1/7] tracing: Fix double free of event_trigger_data

2018-07-26 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Running the following: # cd /sys/kernel/debug/tracing # echo 50 > buffer_size_kb [ Or some other number that takes up most of memory ] # echo snapshot > events/sched/sched_switch/trigger Triggers the following bug: [ cut here ] k

[PATCH 3/7] selftests/ftrace: Add snapshot and tracing_on test case

2018-07-26 Thread Steven Rostedt
From: Masami Hiramatsu Add a testcase for checking snapshot and tracing_on relationship. This ensures that the snapshotting doesn't affect current tracing on/off settings. Link: http://lkml.kernel.org/r/153149932412.11274.15289227592627901488.stgit@devbox Cc: Tom Zanussi Cc: Hiraku Toyooka S

[PATCH 5/7] tracing: Fix possible double free in event_enable_trigger_func()

2018-07-26 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" There was a case that triggered a double free in event_trigger_callback() due to the called reg() function freeing the trigger_data and then it getting freed again by the error return by the caller. The solution there was to up the trigger_data ref count. Code ins

[PATCH 6/7] tracing: Quiet gcc warning about maybe unused link variable

2018-07-26 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Commit 57ea2a34adf4 ("tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure") added an if statement that depends on another if statement that gcc doesn't see will initialize the "link" variable and gives the warning: "warning: 'link' may be used

[PATCH 4/7] tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure

2018-07-26 Thread Steven Rostedt
From: Artem Savkov If enable_trace_kprobe fails to enable the probe in enable_k(ret)probe it returns an error, but does not unset the tp flags it set previously. This results in a probe being considered enabled and failures like being unable to remove the probe through kprobe_events file since pr

[PATCH] i2c: enable async suspend/resume on i2c devices

2018-07-26 Thread Derek Basehore
This enables the async suspend property for i2c devices. This reduces the suspend/resume time considerably on platforms with multiple i2c devices (such as a trackpad or touchscreen). Signed-off-by: Derek Basehore --- drivers/i2c/i2c-core-base.c | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [PATCH] get_maintainer: Allow usage outside of kernel tree

2018-07-26 Thread Andrew Morton
On Tue, 26 Jun 2018 11:07:03 +0100 Antonio Nino Diaz wrote: > Add option '--no-tree' to get_maintainer.pl script to allow using this > script in projects that aren't the Linux kernel if they use the same > format for their MAINTAINERS file. This command is also available in > checkpatch.pl, for

[PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents

2018-07-26 Thread Anders Roxell
When building armada-37xx-periph, num_parents isn't used in function clk_pm_cpu_get_parent: drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’: drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable] int num_parents = clk_

Re: linux-next: build failure after merge of the block tree

2018-07-26 Thread Stephen Rothwell
Hi Steve, On Thu, 26 Jul 2018 07:32:16 -0500 "Steve Wise" wrote: > > > diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c > > index 86121a7a19b2..8c30ac7d8078 100644 > > --- a/drivers/nvme/target/rdma.c > > +++ b/drivers/nvme/target/rdma.c > > @@ -891,7 +891,7 @@ nvmet_rdma_fin

  1   2   3   4   5   6   >