[RFC PATCH] iio: adc: at91-sama5d2_adc: add support for oversampling resolution

2018-06-10 Thread Eugen Hristev
This is implements oversampling support for the SAMA5D2 ADC device. Enabling oversampling : OSR can improve resolution from 12 bits to 13 or 14 bits. To not modify the scan element of the buffer , from 12 bits to 13 or 14, I have added the extra bit(s) as MICRO values to the INT value from the conv

Re: [PATCH v1] aio: mark __aio_sigset::sigmask const

2018-06-10 Thread Christoph Hellwig
On Fri, Jun 08, 2018 at 05:55:05PM +0300, Avi Kivity wrote: > io_pgetevents() will not change the signal mask. Mark it const > to make it clear and to reduce the need for casts in user code. > > Signed-off-by: Avi Kivity Looks good, Reviewed-by: Christoph Hellwig

RE: [RFC v1 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks

2018-06-10 Thread Gonglei (Arei)
> -Original Message- > From: Farhan Ali [mailto:al...@linux.ibm.com] > Sent: Saturday, June 09, 2018 3:09 AM > To: linux-kernel@vger.kernel.org; k...@vger.kernel.org > Cc: m...@redhat.com; qemu-de...@nongnu.org; Gonglei (Arei) > ; longpeng ; > pa...@linux.ibm.com; fran...@linux.ibm.com; b

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-06-10 Thread Faiz Abbas
Hi, On Monday 11 June 2018 11:59 AM, Tony Lindgren wrote: > * Faiz Abbas [180611 06:28]: >> Great. I thought I completely misunderstood you. But I don't see what >> adding another function will accomplish. A QUIRK flag used in the same >> function would work well enough> > Fine with me as long as

Re: [PATCH v2 1/2] media: v4l2-ctrl: Add control for VP9 profile

2018-06-10 Thread Keiichi Watanabe
Hi, Hans. Thank you for the review. Your idea sounds good. However, I think that changing V4L2_CID_MPEG_VIDEO_VPX_PROFILE to an enum breaks both of s5p-mfc and venus drivers. This is because they call 'v4l2_ctrl_new_std' for it. For menu controls, 'v4l2_ctrl_new_std_menu' must be used. https://

[PATCH v3] clk: qcom: Enable clocks which needs to be always on for SDM845

2018-06-10 Thread Amit Nischal
There are certain clocks which needs to be always enabled for system operation. Add support for the same by adding 'CLK_IS_CRITICAL' flag for such clocks. Signed-off-by: Amit Nischal --- Changes in v3: * Addressed review comments by Stephen to associate 'CLK_IS_CRITICAL' flag for the clocks wh

Re: [PATCH v5 08/14] mfd: da9063: Replace model with type

2018-06-10 Thread kbuild test robot
Hi Marek, I love your patch! Yet something to improve: [auto build test ERROR on ljones-mfd/for-mfd-next] [also build test ERROR 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: https://github.com/0day-ci/linux/c

RE: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-10 Thread Yogesh Narayan Gaur
Hi Boris, -Original Message- From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] Sent: Friday, June 8, 2018 6:22 PM To: Yogesh Narayan Gaur Cc: Frieder Schrempf ; linux-...@lists.infradead.org; linux-...@vger.kernel.org; dw...@infradead.org; computersforpe...@gmail.com; marek.v

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-06-10 Thread Tony Lindgren
* Faiz Abbas [180611 06:28]: > Great. I thought I completely misunderstood you. But I don't see what > adding another function will accomplish. A QUIRK flag used in the same > function would work well enough. Fine with me as long as the function stays simple for both syss and sysc reset. Regards

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-06-10 Thread Faiz Abbas
On Monday 11 June 2018 11:39 AM, Tony Lindgren wrote: > * Faiz Abbas [180611 06:09]: >> Hi Tony, >> >> On Friday 08 June 2018 11:51 AM, Tony Lindgren wrote: >>> * Faiz Abbas [180607 10:24]: Hi, On Thursday 07 June 2018 01:05 PM, Tony Lindgren wrote: > * Faiz Abbas [180606 0

Possible regression caused by commit a192aa923b66a

2018-06-10 Thread Kai-Heng Feng
Hi Rafael, There's a regression report [1] that says commit a192aa923b66a ("ACPI / LPSS: Consolidate runtime PM and system sleep handling") is the first bad commit. From the looks of it, it didn't introduce any behavioral change. So your help is appreciated. [1] https://bugs.launchpad.n

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

2018-06-10 Thread jackm
On Sun, 10 Jun 2018 22:42:03 -0600 Jason Gunthorpe wrote: > Er, the spec has nothing to do with this. In Linux the TID is made > unique because the core code provides 32 bits that are unique and the > user provides another 32 bits that are unique. The driver cannot > change any of those bits with

Re: [PATCH] proc: add proc_seq_release

2018-06-10 Thread Christoph Hellwig
On Sun, Jun 10, 2018 at 03:51:24AM +0800, Chunyu Hu wrote: > kmemleak reported some memory leak on reading proc files. After adding > some debug lines, find that proc_seq_fops is using seq_release as > release handler, which won't handle the free of 'private' field of > seq_file, while in fact the

Re: [PATCH v2] clk: qcom: Enable clocks which needs to be always on for SDM845

2018-06-10 Thread Amit Nischal
On 2018-06-01 22:06, Stephen Boyd wrote: Quoting Amit Nischal (2018-05-28 23:07:46) There are certain clocks which needs to be always enabled for system operation. Remove support for such clocks from the clock driver and enable them explicitly gcc driver probe. Also fix the target name in kernel

[git pull] drm next (msm) + fixes

2018-06-10 Thread Dave Airlie
Hi Linus, I looked at Rob's msm tree, he kept it small due to being late, and it was in -next for a while before he was ill, so I think it should be fine. Otherwise this contains a set of i915 fixes and a v3d build fix, and vc4 leak fix. Thanks, Dave. drm-next-2018-06-11: msm next, i915, vc4, v3

Re: [GIT PULL] overlayfs update for 4.18

2018-06-10 Thread Christoph Hellwig
On Sun, Jun 10, 2018 at 06:54:38AM +0100, Al Viro wrote: > Umm... The worst of yours had been ->pre_mmap(), right? He *did* drop > that... Oh, hadn't notied that. Still odd to change a huge pull request after the end merge window.

[PATCH] microblaze: Remove architecture heart beat code

2018-06-10 Thread Michal Simek
There is no reason to keep this gpio based code in architecture. Use ledtrig-heartbeat.c instead which is much more flexible then this ancient code. Signed-off-by: Michal Simek --- arch/microblaze/Kconfig.debug | 7 arch/microblaze/include/asm/setup.h | 3 -- arch/microblaze/kernel

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-06-10 Thread Tony Lindgren
* Faiz Abbas [180611 06:09]: > Hi Tony, > > On Friday 08 June 2018 11:51 AM, Tony Lindgren wrote: > > * Faiz Abbas [180607 10:24]: > >> Hi, > >> > >> On Thursday 07 June 2018 01:05 PM, Tony Lindgren wrote: > >>> * Faiz Abbas [180606 06:14]: > +static int sysc_reset(struct sysc *ddata) > >>

Re: [GIT PULL] overlayfs update for 4.18

2018-06-10 Thread Christoph Hellwig
On Sat, Jun 09, 2018 at 02:42:20PM -0700, Linus Torvalds wrote: > And Christoph's copmmentary isn't really helping the situation. > Christoph, I haven't seen the NAK history, can you elaborate? Most of the bits just need a bit of refinement I think, instead of being forced through the overlayfs tr

[PATCH 1/2] pwm: pwm-tiehrpwm: Don't use emulation mode bits to control PWM output

2018-06-10 Thread Vignesh R
As per AM335x TRM SPRUH73P "15.2.2.11 ePWM Behavior During Emulation", TBCTL[15:14] only have effect during emulation suspend events (IOW, to stop PWM when debugging using a debugger). These bits have no effect on PWM output during normal running of system. Hence, remove code accessing these bits a

[PATCH 0/2] pwm-tiehrpwm: fixes for disabling PWMs

2018-06-10 Thread Vignesh R
EHRPWM has two PWM outputs. Currently with pwm-tiehrpwm driver, if PWMA is enabled and then disabled, and then PWMB is enabled, it is seen that PWMA turns on automatically. This series fixes the bug. Vignesh R (2): pwm: pwm-tiehrpwm: Don't use emulation mode bits to control PWM output pwm: pwm

[PATCH 2/2] pwm: pwm-tiehrpwm: Fix disabling of output of PWMs

2018-06-10 Thread Vignesh R
pwm-tiehrpwm driver disables PWM output by putting it in low output state via active AQCSFRC register in ehrpwm_pwm_disable(). But, the AQCSFRC shadow register is not updated. Therefore, when shadow AQCSFRC register is re-enabled in ehrpwm_pwm_enable() (say to enable second PWM output), previous se

Re: [PATCH] mfd: cros_ec: remove unused __remove function

2018-06-10 Thread Lee Jones
On Fri, 08 Jun 2018, Benson Leung wrote: > > On Fri, Jun 08, 2018 at 04:48:06PM +0200, Arnd Bergmann wrote: > > This function is no longer called, so we get a harmless > > warning until it is removed as well: > > > > drivers/mfd/cros_ec_dev.c:265:13: error: '__remove' defined but not used > > [

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-06-10 Thread Faiz Abbas
Hi Tony, On Friday 08 June 2018 11:51 AM, Tony Lindgren wrote: > * Faiz Abbas [180607 10:24]: >> Hi, >> >> On Thursday 07 June 2018 01:05 PM, Tony Lindgren wrote: >>> * Faiz Abbas [180606 06:14]: +static int sysc_reset(struct sysc *ddata) +{ + int offset = ddata->offsets[SYSC_SYS

Re: [PATCH v7 0/6] Add ChromeOS EC CEC Support

2018-06-10 Thread Lee Jones
On Fri, 08 Jun 2018, Hans Verkuil wrote: > On 08/06/18 10:17, Neil Armstrong wrote: > > On 08/06/2018 09:53, Hans Verkuil wrote: > >> On 06/01/2018 10:19 AM, Neil Armstrong wrote: > >>> Hi All, > >>> > >>> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support > >>> through it's E

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 .c

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 da

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: https:

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. (s

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 pow

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 > Subjec

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. > > Signed-of

[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 a/net/dsa/tag_tr

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 a/arch/a

[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 n

[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 --- Ch

[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 insertion

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&Peter GmbH vendor. > > Signed-off-by: Lukasz Majewski > --- > Changes for v2: > > - Remove not needed #address-cells and #size-cells in > the gpio_buttons node

[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 a/drivers/staging/gdm724x/net

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 > Thi

[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 and

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, 2018

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 functions

[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 a/d

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 doesn't

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 >> refe

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 th

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 >> mm->mma

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 M

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 t

[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 a/drivers/staging/clocking-wizard/Kco

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 a

[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 VMLINUX_SYMBOL_S

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 standar

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; linux-

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 loo

[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. If

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 assem

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 be

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 mon

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: include/dt-bi

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: alph

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 rcutortu

[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 'rtb'

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. Unic

[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 original

[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 a/drivers/tty

[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 original

[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 bu

[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 buff

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 a/drivers/staging/iio/accel/adis1620

[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 60cc43fc888428b

[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 b/drivers/sta

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: http://www.ibtimes.co.uk/russias-second-wealthiest-man-mikhail-fridman-plans-leaving-1

[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 Glei

[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 inc

[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 inc

[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 inc

[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 __builtin_constant_p(

[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 inc

[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 assemb

[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 size

[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 f5a926dd529870de4bd19199ce7b36985

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 secti

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. I

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 __isolate_lru_page()

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, 20

[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 --- drivers/edac/alter

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 creation

  1   2   >