Re: [PATCH 1/2] perf tools powerpc: Fix callchain ip filtering

2018-04-17 Thread Ravi Bangoria
On 04/12/2018 10:41 PM, Sandipan Das wrote: > For powerpc64, if a probe is added for a function without specifying > a line number, the corresponding trap instruction is placed at offset > 0 (for big endian) or 8 (for little endian) from the start address of > the function. This address is in the

[PATCH 1/2] hfs: fix potential refcnt problem of nls module

2018-04-17 Thread Chengguang Xu
When specifying iocharset/codepage multiple times in a mount, current option parsing will cause inaccurate refcount of nls module. Hence, call unload_nls for previous one in this case. Signed-off-by: Chengguang Xu --- fs/hfs/super.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

[PATCH 2/2] hfsplus: fix potential refcnt problem of nls module

2018-04-17 Thread Chengguang Xu
When specifying nls option multiple times in a mount, current option parsing will cause inaccurate refcount of nls module. Hence, call unload_nls for previous one in this case. Signed-off-by: Chengguang Xu --- fs/hfsplus/options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --

Re: [PATCH 3/3] USB: musb: dsps: propagate device-tree node

2018-04-17 Thread Johan Hovold
On Mon, Apr 16, 2018 at 03:03:12PM -0500, Bin Liu wrote: > Johan, > > On Fri, Apr 13, 2018 at 05:15:05PM +0200, Johan Hovold wrote: > > To be able to use DSPS-based controllers with device-tree descriptions > > of the USB topology, we need to associate the glue device's device-tree > > node with t

Re: [PATCH 2/2] f2fs: support {d,id,did,x}node checksum

2018-04-17 Thread Chao Yu
On 2018/4/17 11:38, Jaegeuk Kim wrote: > On 04/13, Chao Yu wrote: >> Ping again.. >> >> Do you have time to discuss this? > > We may need a time to have a chat in person. Do you have any chance to visit > US? I prefer to, just count on LSF, but... I think I need to find a conference which is ope

Re: [PATCH v4 2/6] mfd: stm32-timers: add support for dmas

2018-04-17 Thread Lee Jones
On Mon, 16 Apr 2018, Fabrice Gasnier wrote: > STM32 Timers can support up to 7 DMA requests: > - 4 channels, update, compare and trigger. > Optionally request part, or all DMAs from stm32-timers MFD core. > > Also add routine to implement burst reads using DMA from timer registers. > This is expo

[PATCH] blkcg: not hold blkcg lock when deactivating policy.

2018-04-17 Thread Jiang Biao
As described in the comment of blkcg_activate_policy(), *Update of each blkg is protected by both queue and blkcg locks so that holding either lock and testing blkcg_policy_enabled() is always enough for dereferencing policy data.* with queue lock held, there is no need to hold blkcg lock in blkcg_

Re: [PATCH 11/25] staging: lustre: libcfs: invert error handling for cfs_cpt_table_print

2018-04-17 Thread Dan Carpenter
On Mon, Apr 16, 2018 at 12:09:53AM -0400, James Simmons wrote: > From: Amir Shehata > > Instead of setting rc to -EFBIG for several cases in the loop lets > initialize rc to -EFBIG and just break out of the loop in case of > failure. Just set rc to zero once we successfully finish the loop. > >

Re: [PATCH] x86/xen: Remove use of VLAs

2018-04-17 Thread Juergen Gross
On 16/04/18 15:27, Boris Ostrovsky wrote: > On 04/13/2018 06:11 PM, Laura Abbott wrote: >> There's an ongoing effort to remove VLAs[1] from the kernel to eventually >> turn on -Wvla. The few VLAs in use have an upper bound based on a size >> of 64K. This doesn't produce an excessively large stack s

Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver

2018-04-17 Thread Daniel Lezcano
On 16/04/2018 16:22, Lorenzo Pieralisi wrote: > On Mon, Apr 16, 2018 at 03:57:03PM +0200, Daniel Lezcano wrote: >> On 16/04/2018 14:30, Lorenzo Pieralisi wrote: >>> On Mon, Apr 16, 2018 at 02:10:30PM +0200, Daniel Lezcano wrote: On 16/04/2018 12:10, Viresh Kumar wrote: > On 16-04-18, 12:03

Re: KASAN: global-out-of-bounds Write in string

2018-04-17 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit a27fc14219f2e3c4a46ba9177b04d9b52c875532 (Mon Apr 16 21:07:39 2018 +) Merge branch 'parisc-4.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux syzbot dashboard link: https://syzkaller.appspot.co

Re: [PATCH][next] iwlwifi: mvm: remove division by size of sizeof(struct ieee80211_wmm_rule)

2018-04-17 Thread Luca Coelho
On Wed, 2018-04-11 at 14:05 +0100, Colin King wrote: > From: Colin Ian King > > The subtraction of two struct ieee80211_wmm_rule pointers leaves a > result > that is automatically scaled down by the size of the size of pointed- > to > type, hence the division by sizeof(struct ieee80211_wmm_rule)

Re: [PATCH 2/2] input: misc: Add Spreadtrum vibrator driver

2018-04-17 Thread Marcus Folkesson
Hi Xiaotong, On Tue, Apr 17, 2018 at 11:18:24AM +0800, Baolin Wang wrote: > From: Xiaotong Lu [snip] > +static int sc27xx_vibra_probe(struct platform_device *pdev) > +{ > + struct device_node *node = pdev->dev.of_node; > + struct vibra_info *info; > + int ret; > + > + info = dev

Re: [PATCH 1/6] cifs: smbd: Check for iov length on sending the last iov

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:13PM -0700, Long Li wrote: > From: Long Li > > When sending the last iov that breaks into smaller buffers to fit the > transfer size, it's necessary to check if this is the last iov. > > If this is the latest iov, stop and proceed to send pages. > > Signed-off-by:

Re: [PATCH 3/6] cifs: smbd: Avoid allocating iov on the stack

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:15PM -0700, Long Li wrote: > From: Long Li > > It's not necessary to allocate another iov when going through the buffers > in smbd_send() through RDMA send. > > Remove it to reduce stack size. > > Signed-off-by: Long Li > --- > fs/cifs/smbdirect.c | 36 ++

Re: [PATCH 5/6] cifs: smbd: Enable signing with smbdirect

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:17PM -0700, Long Li wrote: > From: Long Li > > Now signing is supported with RDMA transport. > > Remove the code that disabled it. > > Signed-off-by: Long Li > --- > fs/cifs/connect.c | 8 > fs/cifs/smb2pdu.c | 4 > 2 files changed, 12 deletions(-)

Re: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:14PM -0700, Long Li wrote: > From: Long Li > > The data buffer allocated on the stack can't be DMA'ed, and hence can't send > through RDMA via SMB Direct. > > Fix this by allocating the request on the heap in smb3_validate_negotiate. > > Signed-off-by: Long Li > -

Re: [PATCH 6/6] cifs: smbd: Dump SMB packet when configured

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:18PM -0700, Long Li wrote: > From: Long Li > > When sending through SMB Direct, also dump the packet in SMB send path. > > Also fixed a typo in debug message. > > Signed-off-by: Long Li > --- > fs/cifs/smbdirect.c | 6 +- > 1 file changed, 5 insertions(+), 1

Re: [PATCH 4/6] cifs: smbd: Don't use RDMA read/write when signing is used

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:16PM -0700, Long Li wrote: > From: Long Li > > SMB server will not sign data transferred through RDMA read/write. When > signing is used, it's a good idea to have all the data signed. > > In this case, use RDMA send/recv for all data transfers. This will degrade > p

v4.17-rc1 on motorola droid d4: WARN_ON from drivers/gpu/drm/omapdrm/dss/hdmi4.c

2018-04-17 Thread Pavel Machek
Hi! While playing with screensaver on droid4: [ 1047.117462] omap-mcbsp 40124000.mcbsp: CLKS: could not clk_set_parent() to prcm_fck [ 1047.130432] [ cut here ] [ 1047.135559] WARNING: CPU: 1 PID: 2942 at drivers/gpu/drm/omapdrm/dss/hdmi4.c:667 hdmi_audio_stop+0x5c/0x68 [

Re: [PATCH] xen: xenbus_dev_frontend: Really return response string

2018-04-17 Thread Juergen Gross
On 15/03/18 04:08, Simon Gaiser wrote: > xenbus_command_reply() did not actually copy the response string and > leaked stack content instead. > > Fixes: 9a6161fe73bd ("xen: return xenstore command failures via response > instead of rc") > Signed-off-by: Simon Gaiser Reviewed-by: Juergen Gross

Re: [PATCH v3 03/11] iio: Add channel for Position Relative

2018-04-17 Thread Eugen Hristev
On 15.04.2018 22:29, Jonathan Cameron wrote: On Tue, 10 Apr 2018 11:57:49 +0300 Eugen Hristev wrote: Add new channel type for relative position on a pad. These type of analog sensor offers the position of a pen on a touchpad, and is represented as a voltage, which can be converted to a posi

Re: [PATCH] MAINTAINERS: Update e-mail address for Christoffer Dall

2018-04-17 Thread Marc Zyngier
On 16/04/18 19:28, Christoffer Dall wrote: > Update my e-mail address to a working address. > > Signed-off-by: Christoffer Dall > --- > MAINTAINERS | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 0a1410d5a621..3e9c99d2620b 100644 >

Re: [PATCH 17/25] staging: lustre: libcfs: rename goto label in cfs_cpt_table_print

2018-04-17 Thread Dan Carpenter
> diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c > b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c > index ae5ff58..435ee8e 100644 > --- a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c > +++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c > @@ -161,20 +161,2

[PATCH 5/7] powerpc/lib: optimise 32 bits __clear_user()

2018-04-17 Thread Christophe Leroy
Rewrite clear_user() on the same principle as memset(0), making use of dcbz to clear complete cache lines. This code is a copy/paste of memset(), with some modifications in order to retrieve remaining number of bytes to be cleared, as it needs to be returned in case of error. On a MPC885, through

[PATCH 7/7] powerpc/lib: Remove .balign inside string functions for PPC32

2018-04-17 Thread Christophe Leroy
commit 87a156fb18fe1 ("Align hot loops of some string functions") degraded the performance of string functions by adding useless nops A simple benchmark on an 8xx calling 10x a memchr() that matches the first byte runs in 41668 TB ticks before this patch and in 35986 TB ticks after this patch.

atmel_mxt_ts on droid4: powersave seems to break the driver

2018-04-17 Thread Pavel Machek
HI! v4.17-rc1 on motorola droid 4. If I disable/reenable touschreen with xinput, it fails, with this in the logs: [ 1633.749450] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 1655.938751] atmel_mxt_ts 1-004a: __mxt_read_reg: i2c transfer failed (-121) [ 1655.945800] atmel_mxt_ts 1-004a:

Re: [PATCH v4 2/6] mfd: stm32-timers: add support for dmas

2018-04-17 Thread Fabrice Gasnier
On 04/17/2018 09:12 AM, Lee Jones wrote: > On Mon, 16 Apr 2018, Fabrice Gasnier wrote: > >> STM32 Timers can support up to 7 DMA requests: >> - 4 channels, update, compare and trigger. >> Optionally request part, or all DMAs from stm32-timers MFD core. >> >> Also add routine to implement burst rea

[PATCH 1/7] powerpc/lib: move PPC32 specific functions out of string.S

2018-04-17 Thread Christophe Leroy
In preparation of optimisation patches, move PPC32 specific memcmp() and __clear_user() into string_32.S Signed-off-by: Christophe Leroy --- arch/powerpc/lib/Makefile| 5 +-- arch/powerpc/lib/string.S| 61 - arch/powerpc/lib/string_32.S | 72 +

[PATCH 6/7] powerpc/lib: inline more NUL size verifications

2018-04-17 Thread Christophe Leroy
strncmp(), strncpy(), memchr() are often called with constant size. This patch gives GCC a chance to optimise NULL size verification out Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/string.h | 24 arch/powerpc/lib/string.S | 8 2 files

Re: [PATCH 18/25] staging: lustre: libcfs: clear up failure patch in cfs_cpt_*_print

2018-04-17 Thread Dan Carpenter
> -err: > - if (rc < 0) > - return rc; > - > return tmp - buf; > + > +err: > + return -E2BIG; We finally fixed this bug! Hooray! But it's like you guys are deliberately writing in terrible style. You can just return directly and then you would have avoided this bug al

[PATCH 4/7] powerpc/lib: inline memcmp() for small constant sizes

2018-04-17 Thread Christophe Leroy
In my 8xx configuration, I get 208 calls to memcmp() Within those 208 calls, about half of them have constant sizes, 46 have a size of 8, 17 have a size of 16, only a few have a size over 16. Other fixed sizes are mostly 4, 6 and 10. This patch inlines calls to memcmp() when size is constant and l

[PATCH 3/7] powerpc/lib: optimise PPC32 memcmp

2018-04-17 Thread Christophe Leroy
At the time being, memcmp() compares two chunks of memory byte per byte. This patch optimised the comparison by comparing word by word. A small benchmark performed on an 8xx based on the comparison of two chuncks of 512 bytes performed 10 times gives: Before : 5852274 TB ticks After: 14886

[PATCH] drm/xen-front: Remove CMA support

2018-04-17 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Even if xen-front allocates its buffers from contiguous memory those are still not contiguous in PA space, e.g. the buffer is only contiguous in IPA space. The only use-case for this mode was if xen-front is used to allocate dumb buffers which later be used by some o

[PATCH 2/7] powerpc/lib: inline memcmp() NUL size verification

2018-04-17 Thread Christophe Leroy
Many calls to memcmp() are done with constant size. This patch gives GCC a chance to optimise out the NULL size verification. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/string.h | 10 ++ arch/powerpc/lib/memcmp_64.S | 4 arch/powerpc/lib/string_32.S | 4

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-17 Thread Eugen Hristev
On 17.04.2018 02:58, Dmitry Torokhov wrote: On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: On Tue, 10 Apr 2018 11:57:52 +0300 Eugen Hristev wrote: When requesting channels for a particular consumer device, besides requesting the device (incrementing the reference counter)

[PATCH net-next v4 1/3] vmcore: add API to collect hardware dump in second kernel

2018-04-17 Thread Rahul Lakkireddy
The sequence of actions done by device drivers to append their device specific hardware/firmware logs to /proc/vmcore are as follows: 1. During probe (before hardware is initialized), device drivers register to the vmcore module (via vmcore_add_device_dump()), with callback function, along with bu

[PATCH net-next v4 0/3] kernel: add support to collect hardware logs in crash recovery kernel

2018-04-17 Thread Rahul Lakkireddy
On production servers running variety of workloads over time, kernel panic can happen sporadically after days or even months. It is important to collect as much debug logs as possible to root cause and fix the problem, that may not be easy to reproduce. Snapshot of underlying hardware/firmware stat

[PATCH net-next v4 3/3] cxgb4: collect hardware dump in second kernel

2018-04-17 Thread Rahul Lakkireddy
Register callback to collect hardware/firmware dumps in second kernel before hardware/firmware is initialized. The dumps for each device will be available as elf notes in /proc/vmcore in second kernel. Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar --- v4: - No changes. v3: - Repl

[PATCH net-next v4 2/3] vmcore: append device dumps to vmcore as elf notes

2018-04-17 Thread Rahul Lakkireddy
Update read and mmap logic to append device dumps as additional notes before the other elf notes. We add device dumps before other elf notes because the other elf notes may not fill the elf notes buffer completely and we will end up with zero-filled data between the elf notes and the device dumps.

Re: linux-next: manual merge of the efi-lock-down tree with the modules tree

2018-04-17 Thread David Howells
Stephen Rothwell wrote: > Today's linux-next merge of the efi-lock-down tree got a conflict in: Can you drop my branch for the moment? Thanks, David

Re: [PATCH 2/2] input: misc: Add Spreadtrum vibrator driver

2018-04-17 Thread Baolin Wang
Hi Marcus, On 17 April 2018 at 15:25, Marcus Folkesson wrote: > Hi Xiaotong, > > On Tue, Apr 17, 2018 at 11:18:24AM +0800, Baolin Wang wrote: >> From: Xiaotong Lu > > [snip] > >> +static int sc27xx_vibra_probe(struct platform_device *pdev) >> +{ >> + struct device_node *node = pdev->dev.of_n

Re: [PATCH v6 08/11] ARM: sun9i: smp: Add is_sun8i field

2018-04-17 Thread Maxime Ripard
Hi, On Mon, Apr 16, 2018 at 11:50:29PM +0200, Mylène Josserand wrote: > To prepare the support of sun8i-a83t, add a field in the smp_data > structure to know if we are on sun9i-a80 or sun8i-a83t. > > Add also a global variable to retrieve which architecture we are > having. > > Signed-off-by: My

Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-04-17 Thread Pali Rohár
On Tuesday 17 April 2018 04:38:29 Lukas Wunner wrote: > On Mon, Apr 16, 2018 at 04:25:12PM +0200, Pali Rohár wrote: > > On Sunday 15 April 2018 21:05:23 Lukas Wunner wrote: > > > On Sun, Apr 15, 2018 at 07:17:46PM +0200, Pali Rohár wrote: > > > > On Saturday 14 April 2018 13:17:11 Lukas Wunner wrot

RE: [PATCH v4 3/8] dt-bindings: mfd: renesas,rzn1-sysctrl: document RZ/N1 sysctrl node

2018-04-17 Thread Michel Pollet
Hi Rob, On 13 April 2018 19:06, Rob Herring: > On Tue, Apr 10, 2018 at 09:30:03AM +0100, Michel Pollet wrote: > > The Renesas RZ/N1 Family (Part #R9A06G0xx) has a multi-function system > > controller. This documents the node used to encapsulate it's sub > > drivers. > > > > Signed-off-by: Michel P

[PATCH] powerpc/misc: get rid of add_reloc_offset()

2018-04-17 Thread Christophe Leroy
add_reloc_offset() is almost redundant with reloc_offset() Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/setup.h | 3 +-- arch/powerpc/kernel/misc.S | 16 arch/powerpc/kernel/prom_init_check.sh | 2 +- 3 files changed, 2 insertions(+), 19 delet

Re: [PATCH v2 0/3] perf/buildid-cache: Add --list and --purge-all options

2018-04-17 Thread Jiri Olsa
On Tue, Apr 17, 2018 at 09:43:43AM +0530, Ravi Bangoria wrote: > First patch is a trivial error message fix. Second and third > adds new options --list and --purge-all to 'buildid-cache' > subcommand. > > v2 changes: > - [PATCH v2 2/3] Display optput of 'perf buildid-cache -l' same as >'perf

Re: [PATCH v6 08/11] ARM: sun9i: smp: Add is_sun8i field

2018-04-17 Thread Chen-Yu Tsai
On Tue, Apr 17, 2018 at 3:52 PM, Maxime Ripard wrote: > Hi, > > On Mon, Apr 16, 2018 at 11:50:29PM +0200, Mylène Josserand wrote: >> To prepare the support of sun8i-a83t, add a field in the smp_data >> structure to know if we are on sun9i-a80 or sun8i-a83t. >> >> Add also a global variable to retr

Re: [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-04-17 Thread Daniel Vetter
On Mon, Apr 16, 2018 at 12:29:05PM -0700, Dongwon Kim wrote: > Yeah, I definitely agree on the idea of expanding the use case to the > general domain where dmabuf sharing is used. However, what you are > targetting with proposed changes is identical to the core design of > hyper_dmabuf. > > On to

4.17.0-rc1 doesn't boot.

2018-04-17 Thread Jörg Otte
Hi, my notebook doesn't boot with 4.17.0-rc1. Booting stops right after displaying "loading initial ramdisk..". No further displays. Also nothing is wriiten to the logs. First known bad kernel is: 4.16.0-12564-g6b0a02e Last known good kernel is: 4.16.0-12548-g71b8ebb Maybe the problem came in wit

Re: [PATCH v3] selftests/livepatch: introduce tests

2018-04-17 Thread Miroslav Benes
On Mon, 16 Apr 2018, Petr Mladek wrote: > On Mon 2018-04-16 13:33:55, Miroslav Benes wrote: > > On Fri, 13 Apr 2018, Joe Lawrence wrote: > > > Thanks for reviewing. I'll hold off on posting v4 until Petr (and > > > others) get a chance to comment. Perhaps there are other tests that > > > would b

Re: [PATCH] doc: Add vendor prefix for Kaohsiung

2018-04-17 Thread Lukasz Majewski
Hi Rob, > On Thu, Apr 12, 2018 at 04:34:01PM +0200, Lukasz Majewski wrote: > > The 'kao' entry has been added to vendor-prefixes.txt to indicate > > products from Kaohsiung Opto-Electronics Inc. > > kao or... > > > > > Signed-off-by: Lukasz Majewski > > --- > > Documentation/devicetree/bind

Re: [PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-04-17 Thread Thierry Reding
On Mon, Apr 16, 2018 at 08:21:09PM +0200, Stefan Agner wrote: > On 16.04.2018 18:08, Stephen Warren wrote: > > On 04/16/2018 09:56 AM, Stefan Agner wrote: > >> On 27.03.2018 14:16, Dmitry Osipenko wrote: > >>> On 27.03.2018 14:54, Robin Murphy wrote: > On 26/03/18 22:20, Dmitry Osipenko wrote:

Re: 4.17.0-rc1 doesn't boot.

2018-04-17 Thread Borislav Petkov
On Tue, Apr 17, 2018 at 10:00:25AM +0200, Jörg Otte wrote: > Maybe the problem came in with: > 6b0a02e: "Merge branch 'x86-pti-for-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip" Fetch latest Linus master and try again - there might be a relevant fix there. -- Regards/Gruss,

Re: [PATCH v5 2/7] clk: meson: aoclk: refactor common code into dedicated file

2018-04-17 Thread Yixun Lan
Hi Jerome On 04/16/18 18:38, Jerome Brunet wrote: >> + */ >> +for (clkid = 0; clkid < data->num_clks; clkid++) { >> +data->clks[clkid]->map = regmap; >> + >> +ret = devm_clk_hw_register(dev, data->hw_data->hws[clkid]); >> +if (ret) >> +

Re: [PATCH v5 2/7] clk: meson: aoclk: refactor common code into dedicated file

2018-04-17 Thread Yixun Lan
Hi jerome On 04/16/18 19:34, Jerome Brunet wrote: > On Mon, 2018-04-09 at 22:37 +0800, Yixun Lan wrote: >> We try to refactor the common code into one dedicated file, >> while preparing to add new Meson-AXG aoclk driver, this would >> help us to better share the code by all aoclk drivers. >> >> Su

Re: [PATCH v5 5/7] clk: meson-axg: Add AO Clock and Reset controller driver

2018-04-17 Thread Yixun Lan
Hi Jerome: see my comments below On 04/16/18 19:45, Jerome Brunet wrote: > On Mon, 2018-04-09 at 22:37 +0800, Yixun Lan wrote: >> From: Qiufang Dai >> >> Adds a Clock and Reset controller driver for the Always-On part >> of the Amlogic Meson-AXG SoC. >> >> Signed-off-by: Qiufang Dai >> Signed-o

RE: [SIL2review] [PATCH] i2c: img-scb: fix PM device usage count

2018-04-17 Thread Tobias.Jordan
Hi, > Is it easily recognizable if the drivers check the error code because > there is a reason or if they do it "out of habit"? Probably by looking closely at the implementation of the PM callouts for the driver, but I couldn't find a pattern that would be easy to recognize. Maybe I didn't look

Re: [PATCH v2 2/3] Input: ti_am335x_tsc - Ack pending IRQs at probe and before suspend

2018-04-17 Thread Vignesh R
On Monday 16 April 2018 11:29 PM, Dmitry Torokhov wrote: > On Sat, Apr 14, 2018 at 03:21:52PM +0530, Vignesh R wrote: >> From: Grygorii Strashko >> >> It is seen that just enabling the TSC module triggers a HW_PEN IRQ >> without any interaction with touchscreen by user. This results in first >>

Re: [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-04-17 Thread Oleksandr Andrushchenko
On 04/17/2018 10:59 AM, Daniel Vetter wrote: On Mon, Apr 16, 2018 at 12:29:05PM -0700, Dongwon Kim wrote: Yeah, I definitely agree on the idea of expanding the use case to the general domain where dmabuf sharing is used. However, what you are targetting with proposed changes is identical to the

Re: [PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-17 Thread Vignesh R
On Monday 16 April 2018 11:31 PM, Dmitry Torokhov wrote: > On Sat, Apr 14, 2018 at 03:21:53PM +0530, Vignesh R wrote: >> From: Grygorii Strashko >> >> Prevent system suspend while user has finger on touch screen, >> because TSC is wakeup source and suspending device while in use will >> result

[PATCH] regulator: lp87565: Add margin while populating ramp_delay

2018-04-17 Thread Keerthy
The slew rate might need a +/- 15% margin as per the latest data manual: http://www.ti.com/lit/ds/snvsb22/snvsb22.pdf Hence take a conservative approach to program 85% of the original hardware slew rate so that the software accommodates the margin delay while voltage switching. Hence redu

Re: [PATCH v2 1/3] Input: ti_am335x_tsc - Mark IRQ as wakeup capable

2018-04-17 Thread Vignesh R
Hi, On Monday 16 April 2018 11:15 PM, Dmitry Torokhov wrote: > On Sat, Apr 14, 2018 at 03:21:51PM +0530, Vignesh R wrote: >> On AM335x, ti_am335x_tsc can wake up the system from suspend, mark the >> IRQ as wakeup capable, so that device irq is not disabled during system >> suspend. >> >> Signed-o

Re: [PATCH v6 07/11] ARM: sun9i: smp: Rename clusters's power-off

2018-04-17 Thread Sergei Shtylyov
Hello! On 4/17/2018 12:50 AM, Mylène Josserand wrote: To prepare the support for sun8i-a83t, rename the variable name s/variable/macro/ maybe? Also "rename the ... name" sounds tautological... that handles the power-off of clusters because it is different from sun9i-a80 to sun8i-a83t. T

[PATCH] modules: Fix display of wrong module .text address

2018-04-17 Thread Thomas Richter
In kernel v4.16.0 the module .text address is displayed wrong when using /sys/module/*/sections/.text file. Commit ef0010a30935 ("vsprintf: don't use 'restricted_pointer()' when not restricting") is the first bad commit. Here is the issue, using module qeth_l2 on s390 which is the ethernet device

Re: [PATCH v10 05/10] livepatch: Support separate list for replaced patches.

2018-04-17 Thread Miroslav Benes
> > > > Second, unrelated patches must never patch the same functions. > > > > Otherwise we would not be able to define which implementation > > > > should be used. This is especially important when a patch is > > > > removed and we need to fallback either to another patch or > > > > original code

Re: [PATCH 0/3] Fix an Atmel USBA UDC issue introducted in 4.17-rc1

2018-04-17 Thread Nicolas Ferre
On 16/04/2018 at 11:34, Romain Izard wrote: The use of GPIO descriptors takes care of inversion flags declared in the device tree. The conversion of the Atmel USBA UDC driver introduced in 4.17-rc1 missed it, and as a result the inversion will not work. In addition, cleanup the code to remove an

Re: [PATCH v2 1/5] ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver

2018-04-17 Thread Oleksandr Andrushchenko
On 04/16/2018 03:25 PM, Juergen Gross wrote: On 16/04/18 08:24, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Introduce skeleton of the para-virtualized Xen sound frontend driver. Initial handling for Xen bus states: implement Xen bus state machine for the frontend driver accor

Re: [PATCH] modules: Fix display of wrong module .text address

2018-04-17 Thread Christian Borntraeger
On 04/17/2018 10:20 AM, Thomas Richter wrote: > In kernel v4.16.0 the module .text address is displayed > wrong when using /sys/module/*/sections/.text file. > Commit ef0010a30935 ("vsprintf: don't use 'restricted_pointer()' when > not restricting") > is the first bad commit. > > Here is the iss

Re: EXT: Re: [PATCHv1] Input: atmel_mxt_ts - fix the firmware update

2018-04-17 Thread Nandor Han
On 23/03/18 21:47, Nick Dyer wrote: On Thu, Mar 22, 2018 at 05:43:30PM +0100, Sebastian Reichel wrote: The automatic update mechanism will trigger an update if the info block CRCs are different between maxtouch configuration file (maxtouch.cfg) and chip. The driver compared the CRCs without ret

Re: [PATCH 4/4] x86/CPU/AMD: Calculate LLC ID from number of sharing threads

2018-04-17 Thread Borislav Petkov
On Mon, Mar 26, 2018 at 01:35:16AM -0500, Suravee Suthikulpanit wrote: > diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c > index 54d04d5..67f4790 100644 > --- a/arch/x86/kernel/cpu/cacheinfo.c > +++ b/arch/x86/kernel/cpu/cacheinfo.c > @@ -637,6 +637,43 @@ static int f

Re: [PATCH v4 3/8] dt-bindings: mfd: renesas,rzn1-sysctrl: document RZ/N1 sysctrl node

2018-04-17 Thread Geert Uytterhoeven
Hi Michel, On Tue, Apr 17, 2018 at 9:56 AM, Michel Pollet wrote: > On 13 April 2018 19:06, Rob Herring: >> On Tue, Apr 10, 2018 at 09:30:03AM +0100, Michel Pollet wrote: >> > The Renesas RZ/N1 Family (Part #R9A06G0xx) has a multi-function system >> > controller. This documents the node used to en

[PATCH v2] doc: Add vendor prefix for Kaohsiung

2018-04-17 Thread Lukasz Majewski
The 'koe' entry has been added to vendor-prefixes.txt to indicate products from Kaohsiung Opto-Electronics Inc. Signed-off-by: Lukasz Majewski --- Changes for v2: - Replace 'kao' to 'koe' in commit message --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insert

Re: [PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-04-17 Thread Olivier MOYSAN
Hello, I guess the blocking patch in this patchset is the patch "add IEC958 channel status control helper". This patch has been reviewed several times, but did not get a ack so far. If you think these helpers will not be merged, I will reintegrate the corresponding code in stm driver. Please le

Re: [PATCH v2 1/4] tpm: Add explicit endianness cast

2018-04-17 Thread Thiebaud Weksteen
On Tue, Apr 17, 2018 at 5:02 AM Jason Gunthorpe wrote: > On Thu, Apr 12, 2018 at 12:13:47PM +0200, Thiebaud Weksteen wrote: > > Signed-off-by: Thiebaud Weksteen > > drivers/char/tpm/tpm_eventlog_of.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/char

Re: [PATCH v2 0/9] Input: support for latest Lenovo thinkpads (series 80)

2018-04-17 Thread Benjamin Tissoires
Hi KT, gentle ping :) Could you ACK/NACK this series? Dmitry, the first patch could go without KT's approval. Also I realized that Aaron submitted a similar patch for the X1 Carbon last October: https://patchwork.kernel.org/patch/10008513/ So I think the first one should go ASAP now that the lap

[PATCH] kexec_file: do not add extra alignment to efi memmap

2018-04-17 Thread Dave Young
Chun-Yi reported a kernel warning message below: WARNING: CPU: 0 PID: 0 at ../mm/early_ioremap.c:182 early_iounmap+0x4f/0x12c() early_iounmap(ff200180, 0118) [0] size not consistent 0120 The problem is x86 kexec_file_load adds extra alignment to the efi memmap: in bzImage64_load()

[PATCH v3 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V

2018-04-17 Thread Alan Kao
This implements the baseline PMU for RISC-V platforms. To ease future PMU portings, a guide is also written, containing perf concepts, arch porting practices and some hints. Changes in v3: - Fix typos in the document. - Change the initialization routine from statically assigning PMU to devic

Re: [PATCH 19/22] staging: lustre: llite: add support set_acl method in inode operations

2018-04-17 Thread Dan Carpenter
On Mon, Apr 16, 2018 at 12:15:08AM -0400, James Simmons wrote: > +int ll_set_acl(struct inode *inode, struct posix_acl *acl, int type) > +{ > + struct ll_sb_info *sbi = ll_i2sbi(inode); > + struct ptlrpc_request *req = NULL; > + const char *name = NULL; > + size_t value_size = 0; >

[PATCH v3 2/2] perf: riscv: Add Document for Future Porting Guide

2018-04-17 Thread Alan Kao
Reviewed-by: Alex Solomatnikov Cc: Nick Hu Cc: Greentime Hu Signed-off-by: Alan Kao --- Documentation/riscv/pmu.txt | 249 1 file changed, 249 insertions(+) create mode 100644 Documentation/riscv/pmu.txt diff --git a/Documentation/riscv/pmu.txt b/Document

Re: [PATCH v3 0/2] KVM: MSR-based features

2018-04-17 Thread Wanpeng Li
2018-02-22 3:39 GMT+08:00 Tom Lendacky : > The following series implements support within KVM for MSR-based features. > The first patch creates the MSR-based feature framework used to retrieve > the available MSR-based features. The second patch makes use of the > framework to allow a guest to det

[PATCH v3 1/2] perf: riscv: preliminary RISC-V support

2018-04-17 Thread Alan Kao
This patch provide a basic PMU, riscv_base_pmu, which supports two general hardware event, instructions and cycles. Furthermore, this PMU serves as a reference implementation to ease the portings in the future. riscv_base_pmu should be able to run on any RISC-V machine that conforms to the Priv-S

RE: [PATCH v2 0/9] Input: support for latest Lenovo thinkpads (series 80)

2018-04-17 Thread 廖崇榮
Hi Benjamin, I agree this series. Thanks KT -Original Message- From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] Sent: Tuesday, April 17, 2018 4:34 PM To: 廖崇榮 Cc: Oliver Haessler; Benjamin Berg; Rob Herring; devicet...@vger.kernel.org; open list:HID CORE LAYER; lkml; Dmit

Re: [PATCH v2 2/2] x86/CPU/AMD: Derive CPU topology from CPUID Fn0xB when available

2018-04-17 Thread Borislav Petkov
On Wed, Apr 04, 2018 at 01:45:14AM -0500, Suravee Suthikulpanit wrote: > Derive topology information from Extended Topology Enumeration > (CPUID Fn0x000B) when the information is available. > > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/kernel/cpu/amd.c | 11 ++- > 1 file

Re: [PATCH v2 2/5] ALSA: xen-front: Read sound driver configuration from Xen store

2018-04-17 Thread Oleksandr Andrushchenko
On 04/16/2018 03:55 PM, Juergen Gross wrote: On 16/04/18 08:24, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. soun

Re: [PATCH v6 08/17] media: rkisp1: add capture device driver

2018-04-17 Thread Tomasz Figa
Hi Jacob, On Thu, Mar 8, 2018 at 6:49 PM Jacob Chen wrote: > From: Jacob Chen > This is the capture device interface driver that provides the v4l2 > user interface. Frames can be received from ISP1. Thanks for the patch. Please find my comment inline. [snip] > +static int > +rkisp1_start_str

Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges

2018-04-17 Thread David Wang
> -邮件原件- > 发件人: Christoph Hellwig [mailto:h...@infradead.org] > 发送时间: 2018年4月16日 20:34 > 收件人: David Wang > 抄送: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; > gre...@linuxfoundation.org; x...@kernel.org; linux- > ker...@vger.kernel.org; brucech...@via-alliance.com; > cooper...@zh

[PATCH] doc: dev-tools: kselftest.rst: update contributing new tests

2018-04-17 Thread Anders Roxell
Add a description that the kernel headers should be used as far as it is possible and then the system headers. Signed-off-by: Anders Roxell --- Documentation/dev-tools/kselftest.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/dev-tools/kselftest.rst b/Documentation/dev-

Re: [PATCH 6/8] drm/amdgpu: use firmware_request_nowarn to load firmware

2018-04-17 Thread Christian König
Well this is a rather big NAK for this patch. Only a small fraction of the firmware files amdgpu uses are actually optional (the ones with the *_2.bin name). All other files are mandatory for correct driver operation. There is a fallback when actually no firmware files at all are found, in t

Re: [PATCH v2 2/5] ARM: timer-sp: Use of_clk_get_parent_count() instead of open coding

2018-04-17 Thread Daniel Lezcano
On Tue, Apr 10, 2018 at 02:51:38PM +0200, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- > This depends on "[PATCH v2 1/5] clk: Extract OF clock helpers in > ". > > v2: > - of_clk_get_parent_count() was moved to , > - Dropped RFC, as a dummy is now available in the !CONFI

Re: [PATCH v6] Fix modifier keys for Redragon Asura Keyboard

2018-04-17 Thread Benjamin Tissoires
On Mon, Apr 16, 2018 at 11:38 PM, Robert Munteanu wrote: > This adds a new driver for the Redragon Asura keyboard. The Asura > keyboard contains an error in the HID descriptor which causes all > modifier keys to be mapped to left shift. Additionally, we suppress > the creation of a second, not wor

Re: [PATCH v9 7/9] pinctrl: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-04-17 Thread Richard Fitzgerald
On 27/03/18 12:29, Linus Walleij wrote: On Tue, Mar 13, 2018 at 2:19 PM, Richard Fitzgerald wrote: This is the binding description of the pinctrl driver for Cirrus Logic Madera codecs. The binding uses the generic pinctrl binding so the main purpose here is to describe the device-specific nam

[PATCH] regulator: lp87565: Enable LP87565_BUCK_CTRL_1_FPWM_MP_0_2

2018-04-17 Thread Keerthy
Buck10 is a multi(dual) phase regulator. So as part of enabling it turn on the LP87565_BUCK_CTRL_1_FPWM_MP_0_2 bit which forces it to operate always in multiphase and forced-PWM operation mode. This helps improve the transient voltage response while switching OPP. Signed-off-by: Keerthy --- Boot

Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges

2018-04-17 Thread Thomas Gleixner
On Tue, 17 Apr 2018, David Wang wrote: > > On Mon, Apr 16, 2018 at 05:26:56PM +0800, David Wang wrote: > > > PCI bridges integrated in new VIA chipset/SoC have no DAC issue. > > > Enable DAC for the platforms with these chipset/SoC can improve DMA > > > performance about 20% when DRAM size > 4GB. >

Re: [PATCH v2 3/5] ALSA: xen-front: Implement Xen event channel handling

2018-04-17 Thread Oleksandr Andrushchenko
On 04/16/2018 04:12 PM, Juergen Gross wrote: On 16/04/18 08:24, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Handle Xen event channels: - create for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can con

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-17 Thread Hans de Goede
Hi, On 17-04-18 02:17, Luis R. Rodriguez wrote: On Sun, Apr 08, 2018 at 07:40:11PM +0200, Hans de Goede wrote: static void firmware_free_data(const struct firmware *fw) { @@ -576,6 +600,15 @@ _request_firmware(const struct firmware **firmware_p, const char *name, goto out;

RE: [PATCH 0/3] Receive Side Coalescing for macb driver

2018-04-17 Thread Rafal Ozieblo
From: David Miller [mailto:da...@davemloft.net] Sent: 16 kwietnia 2018 17:09 > From: Rafal Ozieblo > Date: Sat, 14 Apr 2018 21:53:07 +0100 > >> This patch series adds support for receive side coalescing for Cadence >> GEM driver. Receive segmentation coalescing is a mechanism to reduce >> CPU

[PATCH] selftests/memfd: move common code into common.c

2018-04-17 Thread Anders Roxell
Remove code duplication, in the current code, we move common code for memfd to common.c. The duplicate functions got added in commit 87b2d44026e0 ("selftests: add memfd/sealing page-pinning tests") Signed-off-by: Anders Roxell --- tools/testing/selftests/memfd/common.c | 37

RE: [RESEND PATCH 1/1] drm/i915/glk: Add MODULE_FIRMWARE for Geminilake

2018-04-17 Thread Jani Nikula
On Mon, 16 Apr 2018, "Srivatsa, Anusha" wrote: >>-Original Message- >>From: Jani Nikula [mailto:jani.nik...@linux.intel.com] >>Sent: Wednesday, April 11, 2018 5:27 AM >>To: Ian W MORRISON >>Cc: Vivi, Rodrigo ; Srivatsa, Anusha >>; Wajdeczko, Michal >>; Greg KH ; >>airl...@linux.ie; joonas

Re: [PATCH v1 3/4] drm/tegra: plane: Add custom colorkey properties for older Tegra's

2018-04-17 Thread Daniel Vetter
On Mon, Apr 16, 2018 at 03:16:27PM +0300, Dmitry Osipenko wrote: > Colorkey'ing allows to draw on top of overlapping planes, like for example > on top of a video plane. Older Tegra's have a limited colorkey'ing > capability such that blending features are reduced when colorkey'ing is > enabled. In

  1   2   3   4   5   6   7   8   9   10   >