Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused

2018-03-15 Thread Mathieu Malaterre
On Thu, Mar 15, 2018 at 1:54 AM, Michael Ellerman wrote: > Mathieu Malaterre writes: >> Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable >> maybe_unused > > You're fixing an error on powerpc, but the patch is to the serial code, > so the subject should probably be more l

[PATCH] ARM: dts: rockchip: fix uart4 pin-num for rk3288

2018-03-15 Thread Jacob Chen
According to TRM, uart4 tx/rx should be 14/15 Signed-off-by: Jacob Chen --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index ed05f3d77358..40327c764385 100644 --- a/arch/a

Re: [PATCH v1 0/4] Fix issues with huge mapping in ioremap

2018-03-15 Thread Chintan Pandya
On 3/14/2018 8:08 PM, Kani, Toshi wrote: On Wed, 2018-03-14 at 14:18 +0530, Chintan Pandya wrote: Note: I was working on these patches for quite sometime and realized that Toshi Kani has shared some patches addressing the same isssue with subject "[PATCH 0/2] fix memory leak / panic in ioremap

Re: [PATCH v9 3/5] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-03-15 Thread Tomasz Figa
On Thu, Mar 15, 2018 at 2:46 AM, Robin Murphy wrote: > On 13/03/18 08:55, Vivek Gautam wrote: >> >> From: Sricharan R >> >> The smmu device probe/remove and add/remove master device callbacks >> gets called when the smmu is not linked to its master, that is without >> the context of the master de

Re: [PATCH v5 16/19] tracing: probeevent: Add array type support

2018-03-15 Thread Masami Hiramatsu
On Thu, 15 Mar 2018 11:18:19 +0530 Ravi Bangoria wrote: > Hi Masami, > > On 03/08/2018 02:20 PM, Masami Hiramatsu wrote: > > Add array type support for probe events. > > This allows user to get arraied types from memory address. > > The array type syntax is > > > > TYPE[N] > > > > Where TYPE

[PATCH] ARM: dts: stm32: Enable stm32mp1 clock driver on stm32mp157c

2018-03-15 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables stm32mp1 clock driver. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 24 arch/arm/boot/dts/stm32mp157c.dtsi| 48 +++ 2 files changed, 28 insertions(+), 44 deletion

[PATCH] init: no need to wait device probe

2018-03-15 Thread ning . a . zhang
From: Zhang Ning there are 2 reasons for no need to wait device probe reason 1: mount root device is very late in kernel initial stage. all initcalls are finished. that means most of probe functions are returned. and deferred probe are also finished by late_initcall. only async probe driver are

[PATCH 2/2 v2] mtd: ubi: use put_device() if device_register fail

2018-03-15 Thread Arvind Yadav
if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- change in v2: Fix use-after-free bug. move put_device() after cdev_del(). drivers/mtd/ubi/vmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drive

Re: [PATCH 0/3] Introduce module_nd_driver

2018-03-15 Thread Christoph Hellwig
On Wed, Mar 14, 2018 at 07:25:05PM +0100, Johannes Thumshirn wrote: > Provide a module_nd_driver() wrapper and move over the appliccable > drivers nd_pmem.ko and dax_pmem.ko. What is the point? It saves a hand fulk of lines, while making the code both harder to read and harder to extend.

Re: [PATCH v5 16/19] tracing: probeevent: Add array type support

2018-03-15 Thread Masami Hiramatsu
Hi Ravi, On Thu, 15 Mar 2018 16:18:40 +0900 Masami Hiramatsu wrote: > On Thu, 15 Mar 2018 11:18:19 +0530 > Ravi Bangoria wrote: > > > Hi Masami, > > > > On 03/08/2018 02:20 PM, Masami Hiramatsu wrote: > > > Add array type support for probe events. > > > This allows user to get arraied types f

Re: [PATCH v3 1/7] x86/hyper-v: move hyperv.h out of uapi

2018-03-15 Thread Christoph Hellwig
On Wed, Mar 14, 2018 at 09:42:42AM -0700, Joshua R. Poulson wrote: > >> Move the file renaming to hyperv-tlfs.h to avoid confusing it with > >> mshyperv.h. In future, all definitions from TLFS should go to it and > >> all kernel objects should go to mshyperv.h or include/linux/hyperv.h. > > > > Wha

linux-next: manual merge of the scsi-mkp tree with the efi-lock-down tree

2018-03-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/eata.c between commit: 5b76b160badb ("scsi: Lock down the eata driver") from the efi-lock-down tree and commit: 6b1745caa14a ("scsi: eata: eata-pio: Deprecate legacy EATA drivers") from the scsi-mkp t

Re: [PATCH 00/11] kexec_file: Clean up purgatory load

2018-03-15 Thread Dave Young
On 03/12/18 at 03:40pm, Dave Young wrote: > Hi Philipp, > On 03/09/18 at 03:25pm, Philipp Rudo wrote: > > Hi Dave, > > > > On Fri, 9 Mar 2018 13:19:40 +0800 > > Dave Young wrote: > > > > > Hi Philipp, > > > On 02/26/18 at 04:16pm, Philipp Rudo wrote: > > > > > > > > Hi everybody > > > > > > >

Re: [LKP] [lkp-robot] [iversion] c0cef30e4f: aim7.jobs-per-min -18.0% regression

2018-03-15 Thread kemi
Hi, Jeff Today, I deleted the previous kernel images for commit 3da90b159b146672f830bcd2489dd3a1f4e9e089 and commit c0cef30e4ff0dc025f4a1660b8f0ba43ed58426e, respectively. And, re-run the same aim7 jobs for three times for each commit. The aim7 score between two commit does not have obvious

linux-next: manual merge of the staging tree with the net-next tree

2018-03-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/irda/net/af_irda.c between commit: 9b2c45d479d0 ("net: make getname() functions return length rather than use int* parameter") from the net-next tree and commit: d64c2a76123f ("staging: irda: remove

Re: [PATCH v2] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-15 Thread Ard Biesheuvel
On 15 March 2018 at 02:23, Daniel Vacek wrote: > On Wed, Mar 14, 2018 at 8:29 PM, Ard Biesheuvel > wrote: >> This reverts commit 864b75f9d6b0100bb24fdd9a20d156e7cda9b5ae. >> >> Commit 864b75f9d6b0 ("mm/page_alloc: fix memmap_init_zone pageblock >> alignment") modified the logic in memmap_init_zon

RE: [PATCH] lan78xx: Connect phy early

2018-03-15 Thread Nisar.Sayed
Hi Alexander, Thanks for the patch. > @@ -2575,13 +2571,7 @@ static int lan78xx_stop(struct net_device *net) > if (timer_pending(&dev->stat_monitor)) > del_timer_sync(&dev->stat_monitor); > > - phy_unregister_fixup_for_uid(PHY_KSZ9031RNX, 0xfff0); > - phy_unregist

linux-next: manual merge of the rpmsg tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the rpmsg tree got a conflict in: samples/Makefile between commit: e7e57f690e38 ("arch: remove blackfin port") from the asm-generic tree and commit: 842891be96bd ("samples: Introduce Qualcomm QMI sample client") from the rpmsg tree. I fixed it up

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-03-15 Thread Chintan Pandya
On 3/14/2018 11:31 PM, Toshi Kani wrote: Implement pud_free_pmd_page() and pmd_free_pte_page() on x86, which clear a given pud/pmd entry and free up lower level page table(s). Address range associated with the pud/pmd entry must have been purged by INVLPG. fixes: e61ce6ade404e ("mm: change ior

[PATCH v7 1/3] dt-bindings: dmaengine: Add MediaTek High-Speed DMA controller bindings

2018-03-15 Thread sean.wang
From: Sean Wang Document the devicetree bindings for MediaTek High-Speed DMA controller which could be found on MT7623 SoC or other similar Mediatek SoCs. Signed-off-by: Sean Wang Reviewed-by: Rob Herring --- .../devicetree/bindings/dma/mtk-hsdma.txt | 33 ++ 1 fi

[PATCH v7 0/3] add support for Mediatek High-Speed DMA controller on MT7622 and MT7623 SoC

2018-03-15 Thread sean.wang
From: Sean Wang Changes since v6: - add Reviewed-by tag from Rob to patch 1 Changes since v5: - use C99 style comments at the first two lines - remove unused header includes - use directly KBUILD_MODNAME as a driver name - use DMA_SLAVE_BUSWIDTH_4_BYTES to reflect the real bus width - refine com

[PATCH v7 2/3] dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC

2018-03-15 Thread sean.wang
From: Sean Wang MediaTek High-Speed DMA controller (HSDMA) on MT7622 and MT7623 SoC has a single ring is dedicated to memory-to-memory transfer through ring based descriptor management. Even though there is only one physical ring available inside HSDMA, the driver can be easily extended to the s

[PATCH v7 3/3] dmaengine: mediatek: update MAINTAINERS entry with MediaTek DMA driver

2018-03-15 Thread sean.wang
From: Sean Wang I work for MediaTek and maintain SoC targeting to home gateway and also will keep extending and testing the function. Signed-off-by: Sean Wang --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3bdc260..d3c33d7 100644 --

Re: [PATCH] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-15 Thread Daniel Vacek
On Thu, Mar 15, 2018 at 7:39 AM, Ard Biesheuvel wrote: > On 15 March 2018 at 02:32, Daniel Vacek wrote: >> On Wed, Mar 14, 2018 at 6:36 PM, Ard Biesheuvel >> wrote: >>> On 14 March 2018 at 16:41, Ard Biesheuvel wrote: On 14 March 2018 at 15:54, Ard Biesheuvel wrote: > On 14 Marc

Re: + headers-untangle-kmemleakh-from-mmh-fix.patch added to -mm tree

2018-03-15 Thread Michal Hocko
On Thu 15-03-18 08:00:01, Stephen Rothwell wrote: > Hi Michal, > > On Wed, 14 Mar 2018 13:17:04 +0100 Michal Hocko wrote: > > > > My build test battery says we need also this one, m32r complains > > otherwise for allmodconfig. > > Note that the m32r architecture is being removed (the removal wil

linux-next: manual merge of the y2038 tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi Arnd, Today's linux-next merge of the y2038 tree got a conflict in: arch/tile/include/asm/compat.h between commit: 0373506fe580 ("arch: remove tile port") from the asm-generic tree and commit: f00689038f71 ("include: Move compat_timespec/ timeval to compat_time.h") from the y2038 tr

Re: [patch 3/4] genirq: Convert various GPL references to SPDX

2018-03-15 Thread Daniel Lezcano
These files contain various forms of boilerplate language and sloppy GPL references. Replace all of them with the proper SPDX identifiers. [ ... ] Acked-by: Daniel Lezcano

Re: [PATCH v2] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-15 Thread Daniel Vacek
On Thu, Mar 15, 2018 at 8:36 AM, Ard Biesheuvel wrote: > On 15 March 2018 at 02:23, Daniel Vacek wrote: >> On Wed, Mar 14, 2018 at 8:29 PM, Ard Biesheuvel >> wrote: >>> This reverts commit 864b75f9d6b0100bb24fdd9a20d156e7cda9b5ae. >>> >>> Commit 864b75f9d6b0 ("mm/page_alloc: fix memmap_init_zone

Re: [PATCH v2] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-15 Thread Ard Biesheuvel
On 15 March 2018 at 07:44, Daniel Vacek wrote: > On Thu, Mar 15, 2018 at 8:36 AM, Ard Biesheuvel > wrote: >> On 15 March 2018 at 02:23, Daniel Vacek wrote: >>> On Wed, Mar 14, 2018 at 8:29 PM, Ard Biesheuvel >>> wrote: This reverts commit 864b75f9d6b0100bb24fdd9a20d156e7cda9b5ae.

Re: linux-next: manual merge of the printk tree with the asm-generic tree

2018-03-15 Thread Sergey Senozhatsky
On (03/15/18 11:45), Stephen Rothwell wrote: > Hi Petr, > > Today's linux-next merge of the printk tree got a conflict in: > > arch/blackfin/kernel/dumpstack.c > > between commit: > > e7e57f690e38 ("arch: remove blackfin port") > > from the asm-generic tree and commit: > > 33251b634b4a

Re: [PATCH 2/2 v2] mtd: ubi: use put_device() if device_register fail

2018-03-15 Thread Richard Weinberger
Am Donnerstag, 15. März 2018, 08:20:31 CET schrieb Arvind Yadav: > if device_register() returned an error! Always use put_device() > to give up the reference initialized. Like DaveM said, there is no need to shout and use "!". > Signed-off-by: Arvind Yadav > --- > change in v2: > Fix us

Re: [PATCH v2] PCI/DPC: Fix PCI legacy interrupt acknowledgement

2018-03-15 Thread poza
On 2018-03-15 02:22, Keith Busch wrote: On Wed, Mar 14, 2018 at 09:20:48PM +0530, Oza Pawandeep wrote: Current DPC driver acknowledges the interrupt in deferred work, which works since MSI are edge triggered. But when MSI is disabled (e.g. pci=nomsi boot option) port service driver falls back

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-03-15 Thread Sergey Senozhatsky
On (03/14/18 15:09), Petr Mladek wrote: [..] > +static const char *check_pointer_access(const void *ptr) > +{ > + unsigned char byte; > + > + if (!ptr) > + return "(null)"; > + > + if (probe_kernel_read(&byte, ptr, 1)) ^ Why one by

Re: [PATCH v5 16/19] tracing: probeevent: Add array type support

2018-03-15 Thread Ravi Bangoria
On 03/15/2018 12:53 PM, Masami Hiramatsu wrote: > > Sorry, that is too complicated than enough. you should try to specify a[0] > instead of a. > > $ sudo ./perf probe -x ~/hello foo1 'a=a[0]:x32[3]' Cool.. that works fine. $ sudo ./perf script    hello  1779 [034]    76.081971: probe_

Re: [PATCH] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-15 Thread Ard Biesheuvel
On 15 March 2018 at 07:42, Daniel Vacek wrote: > On Thu, Mar 15, 2018 at 7:39 AM, Ard Biesheuvel > wrote: >> On 15 March 2018 at 02:32, Daniel Vacek wrote: >>> On Wed, Mar 14, 2018 at 6:36 PM, Ard Biesheuvel >>> wrote: On 14 March 2018 at 16:41, Ard Biesheuvel wrote: > On 14 Mar

linux-next: manual merge of the rtc tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi Alexandre, Today's linux-next merge of the rtc tree got a conflict in: drivers/rtc/rtc-tile.c between commit: 909ce75a0665 ("rtc: remove tile driver") from the asm-generic tree and commit: 1fbcb2aa1d64 ("rtc: tile: remove useless message") from the rtc tree. I fixed it up (see belo

Re: [PATCH v5] drivers/misc: vm_gen_counter: initial driver implementation

2018-03-15 Thread Gal Hammer
On Tue, Mar 13, 2018 at 7:40 PM, Michael S. Tsirkin wrote: > Thanks for the patch! Yet something to improve (see below): Thanks for the review. > On Thu, Mar 01, 2018 at 04:22:15PM +0200, Or Idgar wrote: >> From: Or Idgar > > I see addresses at gmail, virtualoco and redhat.com At this point I >

Re: [PATCH 7/7] kbuild: link vmlinux just once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
2018-03-15 4:06 GMT+09:00 Nicolas Pitre : > On Thu, 15 Mar 2018, Masahiro Yamada wrote: > >> If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from >> a pristine state, the vmlinux is linked twice. >> >> [1] A user runs "make" >> >> [2] First build with empty autoksyms.h >> >> [3] adju

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-03-15 Thread Sergey Senozhatsky
On (03/15/18 16:58), Sergey Senozhatsky wrote: > On (03/14/18 15:09), Petr Mladek wrote: > [..] > > +static const char *check_pointer_access(const void *ptr) > > +{ > > + unsigned char byte; > > + > > + if (!ptr) > > + return "(null)"; > > + > > + if (probe_kernel_read(&byte, ptr, 1

Re: [Y2038] [PATCH v4 02/10] include: Move compat_timespec/ timeval to compat_time.h

2018-03-15 Thread Arnd Bergmann
On Thu, Mar 15, 2018 at 3:51 AM, Deepa Dinamani wrote: > On Wed, Mar 14, 2018 at 1:52 PM, Arnd Bergmann wrote: >> On Wed, Mar 14, 2018 at 4:50 AM, Deepa Dinamani >> wrote: >>> The file arch/arm64/kernel/process.c needs asm/compat.h also to be >>> included directly since this is included conditi

Re: [PATCH, RFC] block: remove the paride drivers

2018-03-15 Thread Christoph Hellwig
On Thu, Mar 15, 2018 at 09:04:24AM +0100, Ondrej Zary wrote: > On Thursday 15 March 2018, Christoph Hellwig wrote: > > The paride drivers are some of the cruftiest, grottiest block drivers > > (besides drivers/ide and floppy.c) and have seen one single targeted > > commit since the dawn of git in 2

Re: [PATCH, RFC] block: remove the paride drivers

2018-03-15 Thread Ondrej Zary
On Thursday 15 March 2018, Christoph Hellwig wrote: > The paride drivers are some of the cruftiest, grottiest block drivers > (besides drivers/ide and floppy.c) and have seen one single targeted > commit since the dawn of git in 2007. Drop them to make block layer > improvements easier. This will

linux-next: manual merge of the nvdimm tree with the tip tree

2018-03-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the nvdimm tree got a conflict in: arch/x86/mm/init_64.c between commit: 91f606a8fa68 ("x86/mm: Replace compile-time checks for 5-level paging with runtime-time checks") from the tip tree and commit: a7e6c7015bf3 ("x86, memremap: fix altmap accountin

Re: [PATCH 06/47] net: smsc: remove m32r specific smc91x configuration

2018-03-15 Thread Arnd Bergmann
On Thu, Mar 15, 2018 at 5:58 AM, Finn Thain wrote: > > MN103 is a separate architecture, unrelated to M32R afaict... That is correct. They are both being removed, but I must have made a mistake when writing the changelog text here. I've fixed it now to say 8<--- net: smsc: remove m32r/mn10300 s

Re: [PATCH V2] Input: pm8941-pwrkey: add resin key capabilities

2018-03-15 Thread Tirupathi Reddy T
Hi, On 3/14/2018 10:13 PM, Dmitry Torokhov wrote: On Tue, Mar 13, 2018 at 07:40:48PM -0700, Bjorn Andersson wrote: On Tue 13 Mar 01:35 PDT 2018, Tirupathi Reddy wrote: Add resin key support to handle different types of key events defined in different platforms. Signed-off-by: Tirupathi Redd

Re: [PATCH 0/3] Introduce module_nd_driver

2018-03-15 Thread Johannes Thumshirn
On Thu, Mar 15, 2018 at 12:22:57AM -0700, Christoph Hellwig wrote: > What is the point? It saves a hand fulk of lines, while making > the code both harder to read and harder to extend. In the end it's just style alignment with most of the other "busses" in the kernel, like pci, of, acpi, platform

Re: [PATCH] mfd: pcf50633: Fix some memory leaks in the error handling path of 'pcf50633_probe()'

2018-03-15 Thread Lee Jones
On Wed, 14 Mar 2018, Christophe JAILLET wrote: > If a 'platform_device_alloc()' call fails, we still need to release the > resources that have already been allocated before returning. > > Signed-off-by: Christophe JAILLET > --- > drivers/mfd/pcf50633-core.c | 7 +-- > 1 file changed, 5 inse

Re: [PATCH v1 2/2] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-03-15 Thread Manu Gautam
Hi, On 3/14/2018 2:20 PM, Felipe Balbi wrote: > Hi, > > Manu Gautam writes: > [snip] - Support to replace pip3 clock going to DWC3 with utmi clock for hardware configuration where SSPHY is not used with DWC3. >>> Is that SW configurable? Really? In any case seems like this and SESS

Re: arc_usr_cmpxchg and preemption

2018-03-15 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 08:38:53PM +, Alexey Brodkin wrote: > > int sys_cmpxchg(u32 __user *user_ptr, u32 old, u32 new) > > { > > u32 val; > > int ret; > > > > again: > > ret = 0; > > > > preempt_disable(); > > val = get_user(user_ptr); > > if (val == old) > >

Re: [PATCH v2] backlight: otm3225a: add support for ORISE OTM3225A LCD SoC

2018-03-15 Thread Lee Jones
On Wed, 14 Mar 2018, Felix Brack wrote: > On 27.12.2017 16:20, Felix Brack wrote: > > This patch adds a LCD driver supporting the OTM3225A LCD SoC > > from ORISE Technology. This device can drive TFT LC panels having a > > resolution of 240x320 pixels. After initializing the OTM3225A using > > it's

Re: [PATCH] vhost: fix vhost ioctl signature to build with clang

2018-03-15 Thread Darren Kenny
On Wed, Mar 14, 2018 at 10:05:06AM -0700, Sonny Rao wrote: Clang is particularly anal about signed vs unsigned comparisons and doesn't like the fact that some ioctl numbers set the MSB, so we get this error when trying to build vhost on aarch64: drivers/vhost/vhost.c:1400:7: error: overflow conv

Re: [PATCH] [v3] xen: remove pre-xen3 fallback handlers

2018-03-15 Thread Jan Beulich
>>> On 14.03.18 at 23:47, wrote: > On 03/13/2018 05:06 PM, Arnd Bergmann wrote: >> The legacy hypercall handlers were originally added with >> a comment explaining that "copying the argument structures in >> HYPERVISOR_event_channel_op() and HYPERVISOR_physdev_op() into the local >> variable is su

[PATCH v2 1/2] trace_uprobe: Use %lx to display offset

2018-03-15 Thread Ravi Bangoria
tu->offset is unsigned long, not a pointer, thus %lx should be used to print it, not the %px. Fixes: 0e4d819d0893 ("trace_uprobe: Display correct offset in uprobe_events") Suggested-by: Kees Cook Signed-off-by: Ravi Bangoria --- v2 changelog: - Keep prefixed 0s as is. kernel/trace/trace_uprob

[PATCH v2 2/2] trace_uprobe: Simplify probes_seq_show()

2018-03-15 Thread Ravi Bangoria
Simplify probes_seq_show() function. No change in output before and after patch. Signed-off-by: Ravi Bangoria --- kernel/trace/trace_uprobe.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index

Re: Do we need to disable preemption in flush_tlb_range()?

2018-03-15 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 01:19:01PM -0700, Vineet Gupta wrote: > +CC Peter since we have his attention ;-) Yeah, timezone collision there, I typically sleep at 1am ;-) > On 03/01/2018 07:13 AM, Alexey Brodkin wrote: > > Hi Vineet, > > > > Just noticed that in comments for smp_call_function_many()

Re: WARNING in tracepoint_probe_register_prio (2)

2018-03-15 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 05:37:46PM -0400, Steven Rostedt wrote: > On Tue, 13 Mar 2018 11:29:51 -0400 (EDT) > Mathieu Desnoyers wrote: > > > Here is a WARN_ON() splat in tracepoint.c, which I suspect is caused > > by perf trying to register the same probe twice to the tracepoint API. > > We got an

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-15 Thread Jason Wang
On 2018年03月14日 11:37, Michael S. Tsirkin wrote: return NULL; case XDP_TX: - xdp_xmit = true; - /* fall through */ + get_page(alloc_frag->page); + alloc_frag->offset +=

Re: [PATCH 1/2] sysfs: symlink: export sysfs_create_link_nowarn()

2018-03-15 Thread Sergei Shtylyov
Hello! On 3/15/2018 1:26 AM, Grygorii Strashko wrote: The sysfs_create_link_nowarn() is going to be used in phylib framework in suseuent patch which can be built as module. Hence, export Subsequent. sysfs_create_link_nowarn() to avoid build errors. Cc: Florian Fainelli Fixes: a39954604

Re: [PATCH] [v2] y2038: introduce struct __kernel_old_timeval

2018-03-15 Thread Thomas Gleixner
On Wed, 14 Mar 2018, Arnd Bergmann wrote: > > /* > + * legacy timeval structure, only embedded in structures that > + * traditionally used 'timeval' to pass time intervals (not absolute > + * times). Do not add new users. If user space fails to compile > + * here, this is probably because it is

[PATCH] serial: stm32: fix initialization of RS485 mode

2018-03-15 Thread Bich HEMON
Configure RS485 mode during port initialization. Fixes: 1bcda09d291081a7732fcaa9d1745312404a4e36 ("serial: stm32: add support for RS485 hardware control mode") Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/tty/seri

Re: [PATCH v3 00/11] mmc: sdhci-omap: Add UHS/HS200 mode support

2018-03-15 Thread Ulf Hansson
On 7 March 2018 at 14:20, Kishon Vijay Abraham I wrote: > Add UHS/HS200 mode support in sdhci-omap. The programming sequence > for voltage switching, tuning is followed from AM572x TRM > http://www.ti.com/lit/ug/spruhz6i/spruhz6i.pdf > (Similar to all AM57x/DRA7x SoCs). The patch series also imple

Re: [PATCH 2/2 v2] mtd: ubi: use put_device() if device_register fail

2018-03-15 Thread Arvind Yadav
On Thursday 15 March 2018 01:25 PM, Richard Weinberger wrote: Am Donnerstag, 15. März 2018, 08:20:31 CET schrieb Arvind Yadav: if device_register() returned an error! Always use put_device() to give up the reference initialized. Like DaveM said, there is no need to shout and use "!". I will

Re: [PATCH] can: enable multi-queue for SocketCAN devices

2018-03-15 Thread Marc Kleine-Budde
On 03/14/2018 05:51 PM, Jonas Mark (BT-FIR/ENG1) wrote: >> That doesn't matter. It would be the first driver that makes use of the >> feature, so we can learn from it. And you might get a free review of >> your driver. > > Of course we would be happy if somebody was volunteering to review > our dr

[PATCH v2 02/11] RISC-V: Add section of GOT.PLT for kernel module

2018-03-15 Thread Zong Li
Separate the function symbol address from .plt to .got.plt section. The original plt entry has trampoline code with symbol address, there is a 32-bit padding bwtween jar instruction and symbol address. Extract the symbol address to .got.plt to reduce the module size. Signed-off-by: Zong Li ---

[PATCH v2 04/11] RISC-V: Support CALL relocation type in kernel module

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/kernel/module.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index be717bd7cea7..3f2730840c25 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -1

[PATCH v2 06/11] RISC-V: Support RVC_BRANCH/JUMP relocation type in kernel modulewq

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/kernel/module.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index f1bd6b1a4520..7ab6a9b72384 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/m

[PATCH v2 10/11] RISC-V: Enable module support in defconfig

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 92ff23586c11..07326466871b 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -74,3 +74,5 @@

[PATCH v2 11/11] RISC-V: Add definition of relocation types

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/include/uapi/asm/elf.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/include/uapi/asm/elf.h b/arch/riscv/include/uapi/asm/elf.h index a510edfa8226..5cae4c30cd8e 100644 --- a/arch/riscv/include/uapi/asm/elf.h +++ b/arch/riscv/include/u

[PATCH v2 09/11] RISC-V: Support SUB32 relocation type in kernel module

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/kernel/module.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 73ea36c73d3b..5dddba301d0a 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -256,6 +256,13 @@

[PATCH v2 08/11] RISC-V: Support ADD32 relocation type in kernel module

2018-03-15 Thread Zong Li
Signed-off-by: Zong Li --- arch/riscv/kernel/module.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 957933e669b1..73ea36c73d3b 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -249,6 +249,13 @@

Re: [PATCH v3 00/11] mmc: sdhci-omap: Add UHS/HS200 mode support

2018-03-15 Thread Adrian Hunter
On 15/03/18 10:47, Ulf Hansson wrote: > On 7 March 2018 at 14:20, Kishon Vijay Abraham I wrote: >> Add UHS/HS200 mode support in sdhci-omap. The programming sequence >> for voltage switching, tuning is followed from AM572x TRM >> http://www.ti.com/lit/ug/spruhz6i/spruhz6i.pdf >> (Similar to all AM

[tip:x86/cleanups] x86/rtc: Stop using deprecated functions

2018-03-15 Thread tip-bot for Benjamin Gaignard
Commit-ID: 13cc36d76bc4f5a9801ae32630bc8240ba0cc522 Gitweb: https://git.kernel.org/tip/13cc36d76bc4f5a9801ae32630bc8240ba0cc522 Author: Benjamin Gaignard AuthorDate: Fri, 9 Mar 2018 10:42:50 -0800 Committer: Thomas Gleixner CommitDate: Thu, 15 Mar 2018 09:47:24 +0100 x86/rtc: Stop usin

[PATCH v2 07/11] RISC-V: Support ALIGN relocation type in kernel module

2018-03-15 Thread Zong Li
Just fail on align type. Kernel modules loader didn't do relax like linker, it is difficult to remove or migrate the code, but the remnant nop instructions harm the performaace of module. We expect the building module with the no-relax option. Signed-off-by: Zong Li --- arch/riscv/kernel/module.

[PATCH v2 03/11] RISC-V: Support GOT_HI20/CALL_PLT relocation type in kernel module

2018-03-15 Thread Zong Li
For CALL_PLT, emit the plt entry only when offset is more than 32-bit. For PCREL_LO12, it uses the location of corresponding HI20 to get the address of external symbol. It should check the HI20 type is the PCREL_HI20 or GOT_HI20, because sometime the location will have two or more relocation types

[PATCH v2 05/11] RISC-V: Support HI20/LO12_I/LO12_S relocation type in kernel module

2018-03-15 Thread Zong Li
HI20 and LO12_I/LO12_S relocate the absolute address, the range of offset must in 32-bit. Signed-off-by: Zong Li --- arch/riscv/kernel/module.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c

[PATCH v2 00/11] RISC-V: Resolve the issue of loadable module on 64-bit

2018-03-15 Thread Zong Li
These patches resolve the some issues of loadable module. - symbol out of ranges - unknown relocation types The reference of external variable and function symbols cannot exceed 32-bit offset ranges in kernel module. The module only can work on the 32-bit OS or the 64-bit OS with sv32 virtual

[PATCH v2 01/11] RISC-V: Add sections of PLT and GOT for kernel module

2018-03-15 Thread Zong Li
The address of external symbols will locate more than 32-bit offset in 64-bit kernel with sv39 or sv48 virtual addressing. Module loader emits the GOT and PLT entries for data symbols and function symbols respectively. The PLT entry is a trampoline code for jumping to the 64-bit real address. The

Re: [PATCH 03/14] x86: use dma-direct

2018-03-15 Thread Thomas Gleixner
On Wed, 14 Mar 2018, Christoph Hellwig wrote: > The generic dma-direct implementation is now functionally equivalent to > the x86 nommu dma_map implementation, so switch over to using it. Can you please convert the various drivers first and then remove the unused code? > Note that the various io

Re: [PATCH v9 4/5] iommu/arm-smmu: Add the device_link between masters and smmu

2018-03-15 Thread Vivek Gautam
Hi Robin, On Wed, Mar 14, 2018 at 11:20 PM, Robin Murphy wrote: > On 13/03/18 08:55, Vivek Gautam wrote: >> >> From: Sricharan R >> >> Finally add the device link between the master device and >> smmu, so that the smmu gets runtime enabled/disabled only when the >> master needs it. This is done

Re: [PATCH] [media] ov5645: Move an error code assignment in ov5645_probe()

2018-03-15 Thread Todor Tomov
Hi, On 15.03.2018 00:17, Sakari Ailus wrote: > On Wed, Mar 14, 2018 at 10:15:43PM +0100, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Wed, 14 Mar 2018 22:02:52 +0100 >> >> Move an assignment for a specific error code so that it is stored only once >> in this function implementation.

Re: [PATCH] percpu: Allow to kill tasks doing pcpu_alloc() and waiting for pcpu_balance_workfn()

2018-03-15 Thread Kirill Tkhai
On 15.03.2018 01:22, Andrew Morton wrote: > On Wed, 14 Mar 2018 15:09:09 -0700 Tejun Heo wrote: > >> Hello, Andrew. >> >> On Wed, Mar 14, 2018 at 01:56:31PM -0700, Andrew Morton wrote: >>> It would benefit from a comment explaining why we're doing this (it's >>> for the oom-killer). >> >> Will ad

linux-next: manual merge of the akpm-current tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: mm/sparse.c between commit: 123d3239fb65 ("mm: remove obsolete alloc_remap()") from the asm-generic tree and commit: 9c6a14b65e50 ("mm/sparse.c: optimize memmap allocation during sparse_init()") from the ak

Re: [PATCH 04/14] x86: use generic swiotlb_ops

2018-03-15 Thread Thomas Gleixner
On Wed, 14 Mar 2018, Christoph Hellwig wrote: > #if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU) > void *iommu; /* hook for IOMMU specific extension */ > #endif > +#ifdef CONFIG_STA2X11 > + bool is_sta2x11 : 1; Huch? Please use either bool or an unsigned int based bitfield.

[PATCH 1/2] IB/core: Set speed string to SDR for invalid active rates

2018-03-15 Thread Honggang LI
From: Honggang Li commit f1b65df5a232 ("IB/mlx5: Add support for active_width and active_speed in RoCE"). Before this patch applied, the mlx5_ib driver set default active_width and active_speed to IB_WIDTH_4X and IB_SPEED_QDR. Now, the active_width and active_speed are zeros if the RoCE port is

[PATCH 2/2] IB/core: Set width to 1X for invalid active widths when port is down

2018-03-15 Thread Honggang LI
From: Honggang Li commit f1b65df5a232 ("IB/mlx5: Add support for active_width and active_speed in RoCE"). Before this patch applied, the mlx5_ib driver set default active_width and active_speed to IB_WIDTH_4X and IB_SPEED_QDR. When the RoCE port is down, the RoCE port did not negotiate the activ

[PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active

2018-03-15 Thread Honggang LI
From: Honggang Li Before the mlx5 RoCE port negotiate the active rate and width with remote side, the mlx5_ib driver set them to zero. The tool 'ibstat' of 'infiniband-diags' package will panic as it read invalid width from the sys file. Set the active widths to lowest valid vaule as what ib_cor

Re: [RFC v2 03/83] Add super.h.

2018-03-15 Thread Arnd Bergmann
On Thu, Mar 15, 2018 at 7:11 AM, Andiry Xu wrote: > On Wed, Mar 14, 2018 at 9:54 PM, Darrick J. Wong > wrote: >> On Sat, Mar 10, 2018 at 10:17:44AM -0800, Andiry Xu wrote: >>> + /* s_mtime and s_wtime should be together and their order should not >>> be >>> + * changed. we use an 8 byt

linux-next: manual merge of the akpm-current tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: arch/score/mm/cache.c between commit: b8c9c8f0190f ("arch: remove score port") from the asm-generic tree and commit: 32a8c02959cd ("mm: fix races between swapoff and flush dcache") from the akpm-current tre

[GIT PULL] STi DT update for v4.17 round 2

2018-03-15 Thread Patrice CHOTARD
Hi Arnd, Kevin, Olof PLease consider this second round of STi dts update for v4.17 The following changes since commit 0e04ce02e6a2ac30d21294d8bb2aeceb8489e52b: ARM: dts: STi: Remove unused clk_ext2f_a9 clock (2018-02-13 13:31:38 +0100) are available in the git repository at: git://git.k

Re: [RESEND] rsi: Remove stack VLA usage

2018-03-15 Thread Kalle Valo
"Tobin C. Harding" writes: > On Wed, Mar 14, 2018 at 11:19:53AM +0200, Kalle Valo wrote: >> "Tobin C. Harding" writes: >> >> > Added Konstantin in case he is in charge of administering >> > patchwork.kernel.org? >> > >> > On Tue, Mar 13, 2018 at 07:53:34PM -0700, Kees Cook wrote: >> >> On Tue,

Re: [PATCH] can: enable multi-queue for SocketCAN devices

2018-03-15 Thread Jonas Mark (BT-FIR/ENG1)
Hello Marc, > > The driver consists of two layers because the HW is accessed via SPI. > > Normal SPI? Yes, normal SPI (CLK, MOSI, MISO, SEL) plus two GPIOs for flow control. The CAN peripheral (SPI slave) asserts the additional signals to request a transfer and to signal that it is busy. > > I

linux-next: manual merge of the akpm-current tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/tile/kernel/pci_gx.c between commit: 0373506fe580 ("arch: remove tile port") from the asm-generic tree and commit: 4b36a05ab086 ("arch/tile/kernel/pci_gx.c: make setup_pcie_rc_delay() __init") from the ak

Re: arc_usr_cmpxchg and preemption

2018-03-15 Thread Alexey Brodkin
Hi Peter, On Thu, 2018-03-15 at 09:18 +0100, Peter Zijlstra wrote: > On Wed, Mar 14, 2018 at 08:38:53PM +, Alexey Brodkin wrote: > > > int sys_cmpxchg(u32 __user *user_ptr, u32 old, u32 new) > > > { > > > u32 val; > > > int ret; > > > > > > again: > > > ret = 0; > > > > > > preempt_d

linux-next: manual merge of the akpm-current tree with the asm-generic tree

2018-03-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/tile/mm/mmap.c between commit: 0373506fe580 ("arch: remove tile port") from the asm-generic tree and commit: 69ab63fcaa9b ("exec: pass stack rlimit into mm layout functions") from the akpm-current tree.

Re: [PATCH 2/3] x86/cpufeatures: Add WBNOINVD cpufeature

2018-03-15 Thread Thomas Gleixner
On Fri, 19 Jan 2018, Kirill A. Shutemov wrote: > CPUID.0x8008:EBX[9] indicates whether CPU supports WBNOINVD > instruction. > > The WBNOINVD instruction writes back all modified cache lines in the > processor’s internal cache to main memory and does not invalidate > (flush) the internal cache

Re: WARNING in tracepoint_probe_register_prio (2)

2018-03-15 Thread Jiri Olsa
On Thu, Mar 15, 2018 at 09:31:25AM +0100, Peter Zijlstra wrote: > On Wed, Mar 14, 2018 at 05:37:46PM -0400, Steven Rostedt wrote: > > On Tue, 13 Mar 2018 11:29:51 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > > > Here is a WARN_ON() splat in tracepoint.c, which I suspect is caused > > > by perf

Re: [PATCH 3/3] x86/asm: Add support for WBNOINVD instruction

2018-03-15 Thread Thomas Gleixner
On Fri, 19 Jan 2018, Kirill A. Shutemov wrote: > This patch implements infrastructure to call WBNOINVD instruction. grep 'This patch' Documentation/process/ > The basic idea is to match what we have for WBINVD. Is it just an idea or is it actually doing it? > The instruction is defined as WBIN

Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns

2018-03-15 Thread Shmulik Ladkani
Hi, On Tue, 13 Mar 2018 17:07:22 +0200 Liran Alon wrote: > Before this commit, dev_forward_skb() always cleared packet's > per-network-namespace info. Even if the packet doesn't cross > network namespaces. > > The comment above dev_forward_skb() describes that this is done > because the receivin

Re: [PATCH v7 1/3] irqchip/gic-v3-its: add ability to save/restore ITS state

2018-03-15 Thread Marc Zyngier
On 14/03/18 21:44, dbasehore . wrote: > On Wed, Mar 14, 2018 at 3:22 AM, Marc Zyngier wrote: >> On 02/03/18 02:08, dbasehore . wrote: >>> On Thu, Mar 1, 2018 at 4:29 AM, Marc Zyngier wrote: Hi Mark, On 01/03/18 11:41, Mark Rutland wrote: > On Wed, Feb 28, 2018 at 09:48:18PM -08

Re: [PATCH v2 1/2] trace_uprobe: Use %lx to display offset

2018-03-15 Thread Masami Hiramatsu
On Thu, 15 Mar 2018 13:57:55 +0530 Ravi Bangoria wrote: > tu->offset is unsigned long, not a pointer, thus %lx should > be used to print it, not the %px. > This looks good to me. Acked-by: Masami Hiramatsu Thanks, > Fixes: 0e4d819d0893 ("trace_uprobe: Display correct offset in uprobe_events

  1   2   3   4   5   6   7   8   9   10   >