Re: WARNING: kmalloc bug in xdp_umem_create

2018-06-10 Thread Dmitry Vyukov
On Sun, Jun 10, 2018 at 3:03 PM, Björn Töpel wrote: >> On 2018/06/10 20:52, Dmitry Vyukov wrote: >> > On Sun, Jun 10, 2018 at 11:31 AM, Björn Töpel >> > wrote: >> >> Den sön 10 juni 2018 kl 04:53 skrev Tetsuo Handa >> >> : >> >>> >> >>> On 2018/06/10 7:47, syzbot wrote: >> Hello, >>

arch/microblaze/kernel/heartbeat.c:17:10: fatal error: asm/prom.h: No such file or directory

2018-06-10 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f0dc7f9c6dd99891611fca5849cbc4c6965b690e commit: 96f0e6fcc9add1f063984be32073fe8b1d39b664 microblaze: remove redundant early_printk support date: 7 weeks ago config: microblaze-allyesconfig (attached as

WARNING in destroy_workqueue

2018-06-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a16afaf7928b Merge tag 'for-v4.18' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f66f9f80 kernel config: https://syzkaller.appspot.com/x/.config?x=314f2150f36c16ca

KASAN: use-after-free Read in getname_kernel

2018-06-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3ca24ce9ff76 Merge branch 'proc-cmdline' git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15ed37d780 kernel config: https://syzkaller.appspot.com/x/.config?x=314f2150f36c16ca dashboard link:

Re: [PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe

2018-06-10 Thread Kuninori Morimoto
Hi Katsuhiro > > > This patch moves headphone and microphone detection to probe() of > > > snd_soc_card from init() of snd_soc_dai_link. This is because init() > > > is called (and an input device /dev/input/eventX is created too) > > > twice or above if simple card has two or more DAI links.

Re: [PATCH] arm: Initialize hrtimer-based broadcast clockevent

2018-06-10 Thread Jan Kiszka
On 2018-04-04 17:54, Jan Kiszka wrote: > On 2018-03-01 07:04, Jan Kiszka wrote: >> On 2018-01-22 07:06, Jan Kiszka wrote: >>> Analogously to 9358d755bd5c, this registers a broadcast clockevent in >>> case no hardware broadcast timer is available and the per-CPU timers can >>> be stopped in deep

Re: [PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe

2018-06-10 Thread Katsuhiro Suzuki
Hello Morimoto-san, > -Original Message- > From: Kuninori Morimoto > Sent: Monday, June 11, 2018 2:27 PM > To: Suzuki, Katsuhiro > Cc: Mark Brown ; alsa-de...@alsa-project.org; Masami Hiramatsu > ; Jassi Brar ; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org >

Re: [PATCH v3 1/3] cpufreq: imx6q: check speed grades for i.MX6ULL

2018-06-10 Thread Shawn Guo
On Tue, May 22, 2018 at 08:28:51AM +0200, Sébastien Szymanski wrote: > Check the max speed supported from the fuses for i.MX6ULL and update the > operating points table accordingly. > > Signed-off-by: Sébastien Szymanski Acked-by: Shawn Guo

Re: [PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe

2018-06-10 Thread Kuninori Morimoto
Hi Katsuhiro-san > This patch moves headphone and microphone detection to probe() of > snd_soc_card from init() of snd_soc_dai_link. This is because init() > is called (and an input device /dev/input/eventX is created too) > twice or above if simple card has two or more DAI links. > >

[PATCH] net: dsa: add error handling for pskb_trim_rcsum

2018-06-10 Thread Zhouyang Jia
When pskb_trim_rcsum fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling pskb_trim_rcsum. Signed-off-by: Zhouyang Jia --- net/dsa/tag_trailer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 4.16 01/48] mmap: introduce sane default mmap limits

2018-06-10 Thread Greg Kroah-Hartman
On Mon, Jun 11, 2018 at 08:12:45AM +1000, David Airlie wrote: > Can you make sure you pull in > > 76ef6b28ea4f81c3d511866a9b31392caa833126 (tag: > drm-fixes-for-v4.17-rc6-urgent) > Author: Dave Airlie > Date: Tue May 15 13:38:15 2018 +1000 > > drm: set FMODE_UNSIGNED_OFFSET for drm files

Re: [PATCH] ARM: dts: imx51-zii-rdu1: add rave-sp subdevices

2018-06-10 Thread Shawn Guo
On Thu, May 17, 2018 at 10:19:23PM +0300, Nikita Yushchenko wrote: > This adds rave-sp powerbutton and backlight devices to RDU1 device tree. > > Signed-off-by: Nikita Yushchenko > --- > arch/arm/boot/dts/imx51-zii-rdu1.dts | 8 > 1 file changed, 8 insertions(+) > > diff --git

[PATCH] Input: add error handling for da9052_reg_write

2018-06-10 Thread Zhouyang Jia
When da9052_reg_write fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling da9052_reg_write. Signed-off-by: Zhouyang Jia --- drivers/input/touchscreen/da9052_tsi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave

2018-06-10 Thread Andy Lutomirski
> On Jun 9, 2018, at 10:39 PM, Andy Lutomirski wrote: > > On Fri, Jun 8, 2018 at 10:32 AM Jarkko Sakkinen > wrote: >> >> The Launch Enclave (LE) generates cryptographic launch tokens for user >> enclaves. A launch token is used by EINIT to check whether the enclave >> is authorized to launch or

[PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe

2018-06-10 Thread Katsuhiro Suzuki
This patch moves headphone and microphone detection to probe() of snd_soc_card from init() of snd_soc_dai_link. This is because init() is called (and an input device /dev/input/eventX is created too) twice or above if simple card has two or more DAI links. Signed-off-by: Katsuhiro Suzuki ---

[PATCH v2 1/3] ASoC: simple-card-utils: move hp and mic detect gpios from simple-card

2018-06-10 Thread Katsuhiro Suzuki
This patch moves headphone and microphone jack detection gpios from simple-card driver. It is preparing for using this feature from other drivers. Signed-off-by: Katsuhiro Suzuki --- Changes from v1: - Move changes of audio-graph-card to other patch --- include/sound/simple_card_utils.h

[PATCH] pcmcia: add error handling for pcmcia_enable_device

2018-06-10 Thread Zhouyang Jia
When pcmcia_enable_device fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling pcmcia_enable_device. Signed-off-by: Zhouyang Jia --- drivers/scsi/pcmcia/qlogic_stub.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH v2 3/3] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Katsuhiro Suzuki
This patch adds headphone and microphone jack detection gpios as same as simple-card driver. Signed-off-by: Katsuhiro Suzuki --- Changes from v1: - Move changes of audio-graph-card to other patch --- sound/soc/generic/audio-graph-card.c | 20 +++- 1 file changed, 19

Re: [PATCH v2] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-06-10 Thread Shawn Guo
On Sat, May 19, 2018 at 02:15:06PM +0200, Lukasz Majewski wrote: > This commit provides support for HSC and DDC boards from > Kieback GmbH vendor. > > Signed-off-by: Lukasz Majewski > --- > Changes for v2: > > - Remove not needed #address-cells and #size-cells in > the gpio_buttons node to

[PATCH] staging: gdm724x: add error handling for nlmsg_put

2018-06-10 Thread Zhouyang Jia
When nlmsg_put fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling nlmsg_put. Signed-off-by: Zhouyang Jia --- drivers/staging/gdm724x/netlink_k.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-10 Thread Randy Dunlap
Hi, On 06/10/2018 09:25 PM, Don Bollinger wrote: > diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig > index 68a1ac929917..9a08e12756ee 100644 > --- a/drivers/misc/eeprom/Kconfig > +++ b/drivers/misc/eeprom/Kconfig > @@ -111,4 +111,22 @@ config EEPROM_IDT_89HPESX >

[PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-10 Thread Don Bollinger
optoe is an i2c based driver that supports read/write access to all the pages (tables) of MSA standard SFP and similar devices (conforming to the SFF-8472 spec) and MSA standard QSFP and similar devices (conforming to the SFF-8436 spec). These devices provide identification, operational status

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Jason Gunthorpe
On Mon, Jun 11, 2018 at 07:34:25AM +0300, Leon Romanovsky wrote: > On Sun, Jun 10, 2018 at 02:30:27PM -0600, Jason Gunthorpe wrote: > > On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > > > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > > > On Sun, Jun 10,

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

2018-06-10 Thread Oleksij Rempel
Hi, On 07.06.2018 17:14, Jonas Mark (BT-FIR/ENG1) wrote: > Hi Andy, > >>> The functionality bases on an external peripheral chip named Companion. >>> It offers two CAN interfaces, each has 8 prioritized transmit FIFOs as >>> well as one receive FIFO. Besides CAN, undisclosed additional

[PATCH] media: tm6000: add error handling for dvb_register_adapter

2018-06-10 Thread Zhouyang Jia
When dvb_register_adapter fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling dvb_register_adapter. Signed-off-by: Zhouyang Jia --- drivers/media/usb/tm6000/tm6000-dvb.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Leon Romanovsky
On Sun, Jun 10, 2018 at 02:30:27PM -0600, Jason Gunthorpe wrote: > On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > > > 1. IBTA spec

Re: [PATCH 0/7] Uprobes: Support SDT markers having reference count (semaphore)

2018-06-10 Thread Ravi Bangoria
Hi Masami, >>> Hmm, it sounds simple... maybe we can increment refctr in >>> install_breakpoint/ >>> remove_breakpoint? >> >> Not really, it would be simpler if I can put it inside install_breakpoint(). >> Consider an mmap() case. Probed instruction resides in the text section >> whereas >>

Re: [RESEND v2] dmaengine: pxa: add a default requestor policy

2018-06-10 Thread Vinod Koul
On 09-06-18, 14:43, Robert Jarzmik wrote: > Robert Jarzmik writes: > > > As what former drcmr -1 value meant, add a this as a default to each > > channel, ie. that by default no requestor line is used. > > > > This is specifically used for network drivers smc91x and smc911x, and > > needed for

Re: [PATCH 0/7] Uprobes: Support SDT markers having reference count (semaphore)

2018-06-10 Thread Ravi Bangoria
Hi Oleg, On 06/08/2018 10:06 PM, Oleg Nesterov wrote: > Hello, > > I am travelling till the end of the next week, can't read this version > until I return. Just one question, > > On 06/06, Ravi Bangoria wrote: >> >> 1. One of the major reason was the deadlock between uprobe_lock and >>

Re: [PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
at 6:29 PM, h...@zytor.com wrote: > On June 10, 2018 7:19:11 AM PDT, Nadav Amit wrote: >> Use assembly macros for jump-labels and call them from inline assembly. >> This not only makes the code more readable, but also improves >> compilation decision, specifically inline decisions which GCC base

[RFC PATCH] kbuild: clean-up passing KCOV compiler flags

2018-06-10 Thread Masahiro Yamada
Now that the compiler support for KCOV is computed in the Kconfig phase, expensive $(call cc-option,...) calls no longer exist in scripts/Makefile.kcov . It shouldn't hurt to include scripts/Makefile.kcov everytime Kbuild descends into a sub-directory. Also, move ugly stuff from Makefile.lib to

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-10 Thread Xie XiuQi
Hi Michal, On 2018/6/7 20:21, Michal Hocko wrote: > On Thu 07-06-18 19:55:53, Hanjun Guo wrote: >> On 2018/6/7 18:55, Michal Hocko wrote: > [...] >>> I am not sure I have the full context but pci_acpi_scan_root calls >>> kzalloc_node(sizeof(*info), GFP_KERNEL, node) >>> and that should fall back

[PATCH] staging: clocking-wizard: prefer 'help' in Kconfig

2018-06-10 Thread Kyle Buzby
Fixes the checkpatch warning: WARNING: prefer 'help' over '---help---' for new help texts +config COMMON_CLK_XLNX_CLKWZRD Signed-off-by: Kyle Buzby --- drivers/staging/clocking-wizard/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [alsa-devel] [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Katsuhiro Suzuki
Hello Morimoto-san, Thank you for your reviewing. On 06/11/18 08:52, Kuninori Morimoto wrote: Hi Katsuhiro-san Thank you for your patch This patch adds headphone and microphone jack detection gpios as same as simple-card driver. This feature move into simple-card-utils from simple-card to

[PATCH] linux/linkage.h: replace VMLINUX_SYMBOL_STR() with __stringify()

2018-06-10 Thread Masahiro Yamada
With the special case handling for Blackfin and Metag was removed by commit 94e58e0ac312 ("export.h: remove code for prefixing symbols with underscore"), VMLINUX_SYMBOL_STR() is now equivalent to __stringify(). Replace some remaining usages in to prepare for the entire removal of

Re: [PATCH v4 1/2] power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats

2018-06-10 Thread Phil Reid
On 9/06/2018 06:36, Brian Norris wrote: This driver was originally submitted for the TI BQ20Z75 battery IC (commit a7640bfa10c5 ("power_supply: Add driver for TI BQ20Z75 gas gauge IC")) and later renamed to express generic SBS support. While it's mostly true that this driver implemented a

Re: [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Katsuhiro Suzuki
Hello Morimoto-san, Thank you for your reviewing. > -Original Message- > From: Kuninori Morimoto > Sent: Monday, June 11, 2018 8:53 AM > To: Suzuki, Katsuhiro > Cc: Mark Brown ; alsa-de...@alsa-project.org; Masami Hiramatsu > ; Jassi Brar ; > linux-arm-ker...@lists.infradead.org;

perfmon trouble

2018-06-10 Thread Al Viro
On Sat, Jun 09, 2018 at 04:51:08PM +0100, Al Viro wrote: > Stephane, could you comment on the situation in there? I realize that you > hadn't touched that thing in more than a decade, but I've no idea who else > might be familiar with that thing and it's very inconveniently special... Having

[PATCH] hid: intel_ish-hid: ipc: register more pm callbacks to support hibernation

2018-06-10 Thread Srinivas Pandruvada
From: Even Xu Current ish driver only register resume/suspend PM callbacks which don't support hibernation (suspend to disk). Now use the SIMPLE_DEV_PM_OPS() MACRO instead of struct dev_pm_ops directly. The suspend and resume functions will now be used for both suspend to RAM and hibernation.

Re: [PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread hpa
On June 10, 2018 7:19:11 AM PDT, Nadav Amit wrote: >Use assembly macros for jump-labels and call them from inline assembly. >This not only makes the code more readable, but also improves >compilation decision, specifically inline decisions which GCC base on >the number of new lines in inline

Re: what trees/branches to test on syzbot

2018-06-10 Thread Theodore Y. Ts'o
On Sun, Jun 10, 2018 at 08:11:05AM +0200, Dmitry Vyukov wrote: > > The set of trees where a crash happened is visible on dashboard, so > one can see if it's only linux-next or whole set of trees. Potentially > syzbot can act differently depending on this predicate, but I don't > see what should

include/linux/syscalls.h:211:18: error: 'sys_mmap2' alias between functions of incompatible types 'long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigne

2018-06-10 Thread kbuild test robot
Hi Al, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1aaccb5fa0eac996adde53538ca4b87a0b229ab7 commit: ee076e81fc14ca79334d02970cea66604f183a14 sparc: trivial conversions to {COMPAT_,}SYSCALL_DEFINE() date: 3

Bad MAINTAINERS patterns

2018-06-10 Thread Joe Perches
Given various renames and removals, the MAINTAINERS file patterns get out of sync with the actual files. It'd be nice if the various maintainers could fix these file patterns. $ ./scripts/get_maintainer.pl --self-test=patterns ./MAINTAINERS:1733: warning: no file matchesF:

tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h

2018-06-10 Thread kbuild test robot
Hi Alexei, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1aaccb5fa0eac996adde53538ca4b87a0b229ab7 commit: 819dd92b9c0bc7bce9097d8c1f14240f471bb386 bpfilter: switch to CC from HOSTCC date: 5 days ago config:

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Paul E. McKenney
On Sun, Jun 10, 2018 at 10:40:17AM -0700, Shakeel Butt wrote: > On Sun, Jun 10, 2018 at 9:32 AM Paul E. McKenney > wrote: > > > > On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > > > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > > > wrote: > > > > > > > > On Tue, May 29, 2018

Re: [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card

2018-06-10 Thread Kuninori Morimoto
Hi Katsuhiro-san Thank you for your patch > This patch adds headphone and microphone jack detection gpios as same > as simple-card driver. This feature move into simple-card-utils from > simple-card to avoid the duplicating code. > > Signed-off-by: Katsuhiro Suzuki > --- I think it can be 2

[PATCH 1/2] rcutorture: Disable RT throttling for boost tests

2018-06-10 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Currently rcutorture is not able to torture RCU boosting properly. This is because the rcutorture's boost threads which are doing the torturing may be throttled due to RT throttling. This patch makes rcutorture use the right torture technique (unthrottled

[PATCH 2/2] rcutorture: Make boost test more robust

2018-06-10 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Currently, with RCU_BOOST disabled, I get no failures when forcing rcutorture to test RCU boost priority inversion. The reason seems to be that we don't check for failures if the callback never ran at all for the duration of the boost-test loop. Further, the

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-10 Thread Baoquan He
On 06/08/18 at 09:13am, Dave Hansen wrote: > On 06/08/2018 08:17 AM, Baoquan He wrote: > > > > Then inside alloc_usemap_and_memmap(), For each node, we get how many > > present sections on this node, call hook alloc_func(). Then we update > > the pointer to point at a new position of usemap_map[]

[PATCH 3/5] vt: introduce unicode mode for /dev/vcs

2018-06-10 Thread Nicolas Pitre
Now that the core vt code knows how to preserve unicode values for each displayed character, it is then possible to let user space access it via /dev/vcs*. Unicode characters are presented as 32 bit values in native endianity via the /dev/vcsu* devices, mimicking the simple /dev/vcs* devices.

[PATCH 0/5] have the vt console preserve unicode characters

2018-06-10 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The

[PATCH 5/5] vt: coherence validation code for the unicode screen buffer

2018-06-10 Thread Nicolas Pitre
Make sure the unicode screen buffer matches the video screen content. This is provided for debugging convenience and disabled by default. Signed-off-by: Nicolas Pitre --- drivers/tty/vt/vt.c | 40 1 file changed, 40 insertions(+) diff --git

[PATCH 2/5] vt: preserve unicode values corresponding to screen characters

2018-06-10 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The

[PATCH 4/5] vt: unicode fallback for scrollback

2018-06-10 Thread Nicolas Pitre
There is currently no provision for scrollback content in the core code, leaving that to backend video drivers where this can be highly optimized. There is currently no common method for those drivers to tell the core what part of the scrollback is actually displayed and what size the scrollback

[PATCH 1/5] vt: perform safe console erase only once

2018-06-10 Thread Nicolas Pitre
Commit f8df13e0a9 ("tty: Clean console safely") added code to clear both the scrollback buffer and the screen with "\e[3J", then execution falls through into the code to simply clear the screen. This means scr_memsetw() and the console driver update callback is called twice on the whole screen

Re: [PATCH] staging:iio:accel: use sign extend function avoiding code duplication

2018-06-10 Thread Joe Perches
On Mon, 2018-06-11 at 00:09 +0200, Karim Eshapa wrote: > Use sign_extend32 kernel function instead of code duplication. > This function is also safe for 16 bits. Firstly: This file is not in staging anymore. Please use the -next tree for patches. > diff --git

[GIT PULL] RTC for 4.18

2018-06-10 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.18. Setting the supported range from drivers for RTCs failing soon has started. A few fixes are developed along the way. Some drivers have been switched to SPDX by their maintainers. The following changes since commit

[PATCH] staging:iio:accel: use sign extend function avoiding code duplication

2018-06-10 Thread Karim Eshapa
Use sign_extend32 kernel function instead of code duplication. This function is also safe for 16 bits. Signed-off-by: Karim Eshapa --- drivers/staging/iio/accel/adis16201.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/iio/accel/adis16201.c

Re: Grant-

2018-06-10 Thread M. M. Fridman
I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Check the link below for confirmation:

[PATCH v3 1/9] Makefile: Prepare for using macros for inline asm

2018-06-10 Thread Nadav Amit
Using macros for inline assembly improves both readability and compilation decisions that are distorted by big assembly blocks that use alternative sections. Compile macros.S and use it to assemble all C files. Currently, only x86 will use it. Cc: Masahiro Yamada Cc: Michal Marek Cc: Thomas

[PATCH v3 3/9] x86: refcount: prevent gcc distortions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v3 4/9] x86: alternatives: macrofy locks for better inlining

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v3 5/9] x86: bug: prevent gcc distortions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v3 0/9] x86: macrofying inline asm for better compilation

2018-06-10 Thread Nadav Amit
This patch-set deals with an interesting yet stupid problem: kernel code that does not get inlined despite its simplicity. There are several causes for this behavior: "cold" attribute on __init, different function optimization levels; conditional constant computations based on

[PATCH v3 2/9] x86: objtool: use asm macro for better compiler decisions

2018-06-10 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v3 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for jump-labels and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. As a result the code size is slightly increased.

[PATCH v3 7/9] x86: extable: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for exception-tables and call them from inline assembly. This not only makes the code more readable and allows to avoid the duplicate implementation, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline

[PATCH v3 8/9] x86: cpufeature: use macros instead of inline assembly

2018-06-10 Thread Nadav Amit
Use assembly macros for static_cpu_has() and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. The patch slightly increases the kernel

[GIT PULL] UBI/UBIFS updates for 4.18-rc1

2018-06-10 Thread Richard Weinberger
Linus, The following changes since commit 29dcea88779c856c7dc92040a0c01233263101d4: Linux 4.17 (2018-06-03 14:15:21 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-4.18-rc1 for you to fetch changes up to

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Jason Gunthorpe
On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > > > on that in

Re: [PATCH 4.17 00/15] 4.17.1-stable review

2018-06-10 Thread Greg Kroah-Hartman
On Sun, Jun 10, 2018 at 08:14:44AM -0700, Guenter Roeck wrote: > On Sat, Jun 09, 2018 at 05:29:35PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.17.1 release. > > There are 15 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 3.16 183/410] mm: pin address_space before dereferencing it while isolating an LRU page

2018-06-10 Thread Hugh Dickins
On Thu, 7 Jun 2018, Ben Hutchings wrote: > 3.16.57-rc1 review patch. If anyone has any objections, please let me know. Not an objection as such, but if you're including this one, please be sure to add 145e1a71e090575c74969e3daa8136d1e5b99fc8 "mm: fix the NULL mapping case in

Re: Perf record of mem event on kernel data address causing freeze

2018-06-10 Thread Probir Roy
Sorry for the extreme delay for this reply. If the expectation was to resolve the issue, the new patch failed to do so. If this information helps, the system hung when WP tried to monitor an address(0x88021f51a768) which was originally sampled by PEBS inside rcu_nmi_exit. On Fri, May 25,

[PATCH V2] EDAC, altera: Fix an error handling path in 'altr_s10_sdram_probe()'

2018-06-10 Thread Christophe JAILLET
IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET --- v1 -> v2: Fix subject line ---

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Shakeel Butt
On Sun, Jun 10, 2018 at 9:32 AM Paul E. McKenney wrote: > > On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > > wrote: > > > > > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > > > The memcg kmem cache

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Naresh Kamboju
On 10 June 2018 at 19:35, Greg Kroah-Hartman wrote: > On Sun, Jun 10, 2018 at 02:37:39PM +0530, Naresh Kamboju wrote: >> On 9 June 2018 at 20:59, Greg Kroah-Hartman >> wrote: >> > This is the start of the stable review cycle for the 4.16.15 release. >> > There are 48 patches in this series, all

Dear Talented

2018-06-10 Thread Lisa Clement
Dear Talented, I am Talent Scout For BLUE SKY FILM STUDIO, Present Blue sky Studio a Film Corporation Located in the United State, is Soliciting for the Right to use Your Photo/Face and Personality as One of the Semi -Major Role/ Character in our Upcoming ANIMATED Stereoscope 3D Movie-The Story

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Paul E. McKenney
On Sun, Jun 10, 2018 at 07:52:50AM -0700, Shakeel Butt wrote: > On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov > wrote: > > > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > > The memcg kmem cache creation and deactivation (SLUB only) is > > > asynchronous. If a root kmem

Re: [PATCH] EDAC, altera: Fix an error handling path in 'mv64x60_pci_err_probe()'

2018-06-10 Thread Christophe Jaillet
Le 10/06/2018 à 17:34, Christophe JAILLET a écrit : IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET

Re: [PATCH v5 4/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-06-10 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17 next-20180608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH] EDAC, altera: Fix an error handling path in 'mv64x60_pci_err_probe()'

2018-06-10 Thread Christophe JAILLET
IF 'regmap_write()' fails, we should release some resources as done in all the other error handling paths of the function. Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") Signed-off-by: Christophe JAILLET --- drivers/edac/altera_edac.c | 3 ++- 1 file

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Boris Brezillon
On Sun, 10 Jun 2018 18:00:06 +0300 Dmitry Osipenko wrote: > > >> That seems a lot of work for a code path I do not intend to ever use :-) > > >> > > > > > > Are you sure that resetting HW resets the timing and other registers > > > configuration? Reset implementation is HW-specific, like for

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:12PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.15 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.17 00/15] 4.17.1-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:35PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.1 release. > There are 15 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.14 00/41] 4.14.49-stable review

2018-06-10 Thread Guenter Roeck
On Sat, Jun 09, 2018 at 05:29:32PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.49 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Dmitry Osipenko
On Sunday, 10 June 2018 14:09:24 MSK Stefan Agner wrote: > On 09.06.2018 14:21, Dmitry Osipenko wrote: > > On Saturday, 9 June 2018 00:51:01 MSK Stefan Agner wrote: > >> On 01.06.2018 11:20, Dmitry Osipenko wrote: > >> > On 01.06.2018 01:16, Stefan Agner wrote: > >> >> Add support for the NAND

[PATCH] parport: sunbpp: fix error return code

2018-06-10 Thread Julia Lawall
Return an error code on failure. Change leading spaces to tab on the first if. Problem found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/parport/parport_sunbpp.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/parport/parport_sunbpp.c

[PATCH] clocksource/drivers/stm32: fix error return code

2018-06-10 Thread Julia Lawall
Return an error code on failure. Problem found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/clocksource/timer-stm32.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-10 Thread Shakeel Butt
On Sat, Jun 9, 2018 at 3:20 AM Vladimir Davydov wrote: > > On Tue, May 29, 2018 at 05:12:04PM -0700, Shakeel Butt wrote: > > The memcg kmem cache creation and deactivation (SLUB only) is > > asynchronous. If a root kmem cache is destroyed whose memcg cache is in > > the process of creation or

Re: INFO: task hung in __sb_start_write

2018-06-10 Thread Tetsuo Handa
Hello. Commits 401c636a0eeb0d51 "kernel/hung_task.c: show all hung tasks before panic" 8cc05c71ba5f7936 "locking/lockdep: Move sanity check to inside lockdep_print_held_locks()" arrived at linux.git and syzbot started giving us more hints. Quoting from

Re: [PATCH v5 27/31] kcov: test compiler capability in Kconfig and correct dependency

2018-06-10 Thread Masahiro Yamada
2018-05-28 18:22 GMT+09:00 Masahiro Yamada : > As Documentation/kbuild/kconfig-language.txt notes, 'select' should be > be used with care - it forces a lower limit of another symbol, ignoring > the dependency. Currently, KCOV can select GCC_PLUGINS even if arch > does not select HAVE_GCC_PLUGINS.

Re: [PATCH v2 1/2] iio: dac: Add AD5758 support

2018-06-10 Thread Jonathan Cameron
On Thu, 7 Jun 2018 16:09:40 +0300 Stefan Popa wrote: > The AD5758 is a single channel DAC with 16-bit precision which uses the SPI > interface that operates at clock rates up to 50MHz. > > The output can be configured as voltage or current and is available on a > single terminal. > >

[PATCH 1/1] ARM: dts: s5pv210: Add missing interrupt-controller property to gph2

2018-06-10 Thread Paweł Chmiel
This commit adds missing interrupt-controller property to gph2 block, to silence following warnings during build /soc/pinctrl@e020/gph2: Missing interrupt-controller or interrupt-map property Observed on not yet mainlined, an S5PV210 based Samsung Galaxy S (i9000) phone. Signed-off-by:

Re: [PATCH 4.16 00/48] 4.16.15-stable review

2018-06-10 Thread Greg Kroah-Hartman
On Sun, Jun 10, 2018 at 02:37:39PM +0530, Naresh Kamboju wrote: > On 9 June 2018 at 20:59, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.16.15 release. > > There are 48 patches in this series, all will be posted as a response > > to this one. If anyone

Re: [PATCH v2 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-06-10 Thread Jonathan Cameron
On Thu, 7 Jun 2018 16:11:05 +0300 Stefan Popa wrote: > Signed-off-by: Stefan Popa Hmm. The first part number I've ever googled where the top hit has been a flight number. Rio de Janeiro to Campinas is apparently on time today. > --- > Changes in v2: > - Nothing changed, just to follow

Re: [PATCH 4/9] iio: cros_ec: Switch to SPDX identifier.

2018-06-10 Thread Jonathan Cameron
On Tue, 5 Jun 2018 11:22:04 +0200 Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra This code has seen quite a few contributors, I'd like at least some of them to agree they are happy

[PATCH v2] mtd: rawnand: mxc: set spare area size register explicitly

2018-06-10 Thread Martin Kaiser
The v21 version of the NAND flash controller contains a Spare Area Size Register (SPAS) at offset 0x10. Its setting defaults to the maximum spare area size of 218 bytes. The size that is set in this register is used by the controller when it calculates the ECC bytes internally in hardware.

Re: [PATCH] iio:dac:ad5686: Add AD5311R support

2018-06-10 Thread Jonathan Cameron
On Mon, 4 Jun 2018 17:22:07 +0300 Stefan Popa wrote: > AD5311R is a single channel DAC with 10-bit precision and i2c interface. > The device includes a 2.5V internal reference which is enabled by default. > > This device is similar to AD5691R/AD5692R/AD5693/AD5693R, the only > difference is

Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-06-10 Thread Srinivas Kandagatla
On 10/06/18 12:36, Alban wrote: On Sun, 10 Jun 2018 11:32:36 +0100 Srinivas Kandagatla wrote: On 08/06/18 18:07, Alban wrote: On Fri, 8 Jun 2018 12:34:12 +0100 Srinivas Kandagatla wrote: ... I looked into this. It would work fine for the cells but not so nicely for the nvmem

Re: [PATCH] mtd: rawnand: mxc: set spare area size register explicitly

2018-06-10 Thread Martin Kaiser
Hi Miquel, Thus wrote Miquel Raynal (miquel.ray...@bootlin.com): > > Usually, this register is updated from settings in the IIM fuses when > > the system is booting from nand flash. For other boot media, however, > s/nand/NAND ok > > + /* spare area size in 16bit words */ > I thought I

  1   2   >