[PATCH 070/109] fs: add ksys_write() helper; remove in-kernel calls to sys_write()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_write() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_write(). In the near future, the do_mounts / initramfs calle

Re: [PATCH v7 1/4] ioremap: Update pgtable free interfaces with addr

2018-03-29 Thread kbuild test robot
improve the system] url: https://github.com/0day-ci/linux/commits/Chintan-Pandya/ioremap-Update-pgtable-free-interfaces-with-addr/20180329-133736 config: x86_64-rhel (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached .config to linux build tree

Re: [PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Thomas Petazzoni
Hello Jisheng, On Thu, 29 Mar 2018 18:15:36 +0800, Jisheng Zhang wrote: > Current suspend/resume implementation reuses the mvneta_open() and > mvneta_close(), but it could be optimized to take only necessary > actions during suspend/resume. > > One obvious problem of current implementation is: af

[PATCH 071/109] fs: add ksys_chdir() helper; remove in-kernel calls to sys_chdir()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_chdir() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_chdir(). This patch is part of a series which removes in-ker

[PATCH 086/109] fs: add ksys_ioctl() helper; remove in-kernel calls to sys_ioctl()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_ioctl() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_ioctl(). After careful review, at least some of these calls

Re: [PATCH] perf: Allow suppressing AUX records

2018-03-29 Thread Peter Zijlstra
On Mon, Jan 15, 2018 at 05:00:20PM +0200, Alexander Shishkin wrote: > It has been pointed out to me many times that it is useful to be able > to switch off AUX records to save the bandwidth for records that actually > matter, for example, in AUX overwrite mode. > > The usefulness of PERF_RECORD_AU

Re: [PATCH 1/3] virt: vbox: Add vbg_req_free() helper function

2018-03-29 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 01:21:14PM +0200, Hans de Goede wrote: > --- a/include/linux/vbox_utils.h > +++ b/include/linux/vbox_utils.h > @@ -33,6 +33,13 @@ __printf(1, 2) void vbg_debug(const char *fmt, ...); > */ > void *vbg_req_alloc(size_t len, enum vmmdev_request_type req_type); > > +/** > +

[PATCH 052/109] fs: add do_epoll_*() helpers; remove internal calls to sys_epoll_*()

2018-03-29 Thread Dominik Brodowski
Using the helper functions do_epoll_create() and do_epoll_wait() allows us to remove in-kernel calls to the related syscall functions. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.ke

[PATCH 072/109] fs: add ksys_unlink() wrapper; remove in-kernel calls to sys_unlink()

2018-03-29 Thread Dominik Brodowski
Using this wrapper allows us to avoid the in-kernel calls to the sys_unlink() syscall. The ksys_ prefix denotes that this function is meant s a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_unlink(). In the near future, all callers of ksys_unlink()

Re: [PATCH 1/3] virt: vbox: Add vbg_req_free() helper function

2018-03-29 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 01:21:14PM +0200, Hans de Goede wrote: > +void vbg_req_free(void *req, size_t len) > +{ > + if (!req) > + return; > + > + kfree(req); > +} Wait, no, this isn't ok. Don't create wrapper functions that you never use except as a wrapper :( I can see someo

[PATCH 050/109] fs: add do_renameat2() helper; remove internal call to sys_renameat2()

2018-03-29 Thread Dominik Brodowski
Using this helper removes in-kernel calls to the sys_renameat2() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbrodowski.net

[PATCH 008/109] net: socket: add __sys_recvfrom() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_recvfrom() allows us to avoid the internal calls to the sys_recvfrom() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325

[PATCH 053/109] fs: add do_signalfd4() helper; remove internal calls to sys_signalfd4()

2018-03-29 Thread Dominik Brodowski
Using this helper removes in-kernel calls to the sys_signalfd4() syscall function. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbrodo

[PATCH 073/109] hostfs: rename do_rmdir() to hostfs_do_rmdir()

2018-03-29 Thread Dominik Brodowski
do_rmdir() is used in the VFS layer at fs/namei.c, so use a different name in hostfs. Cc: Jeff Dike Cc: user-mode-linux-de...@lists.sourceforge.net Acked-by: Richard Weinberger Signed-off-by: Dominik Brodowski --- fs/hostfs/hostfs.h | 2 +- fs/hostfs/hostfs_kern.c | 2 +- fs/hostfs/hostfs

Re: [PATCH 2/3] virt: vbox: Use __get_free_pages instead of kmalloc for DMA32 memory

2018-03-29 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 01:21:15PM +0200, Hans de Goede wrote: > @@ -87,7 +88,7 @@ void vbg_req_free(void *req, size_t len) > if (!req) > return; > > - kfree(req); > + free_pages((unsigned long)req, get_order(PAGE_ALIGN(len))); > } Really? This feels wrong to me, wh

[PATCH 098/109] mm: add ksys_readahead() helper; remove in-kernel calls to sys_readahead()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_readahead() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_readahead(). This patch is part of a series which remove

[PATCH 022/109] net: socket: move check for forbid_cmsg_compat to __sys_...msg()

2018-03-29 Thread Dominik Brodowski
The non-compat codepaths for sys_...msg() verify that MSG_CMSG_COMPAT is not set. By moving this check to the __sys_...msg() functions (and making it dependent on a static flag passed to this function), we can call the __sys...msg() functions instead of the syscall functions in all cases. __sys_rec

Re: [PATCH 2/3] virt: vbox: Use __get_free_pages instead of kmalloc for DMA32 memory

2018-03-29 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 01:21:15PM +0200, Hans de Goede wrote: > It is not possible to get DMA32 zone memory through kmalloc, Why can't we just fix that issue here instead? thanks, greg k-h

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-03-29 Thread Paul Kocialkowski
Hi, On Thu, 2018-03-29 at 11:23 +0200, Maxime Ripard wrote: > On Wed, Mar 28, 2018 at 11:52:13PM +0200, Paul Kocialkowski wrote: > > This allows dual-role ports to be reported as having gadget mode by > > the > > musb_has_gadget helper. This is required to enable MUSB at all with > > MUSB > > glue

[PATCH 109/109] bpf: whitelist all syscalls for error injection

2018-03-29 Thread Dominik Brodowski
From: Howard McLauchlan Error injection is a useful mechanism to fail arbitrary kernel functions. However, it is often hard to guarantee an error propagates appropriately to user space programs. By injecting into syscalls, we can return arbitrary values to user space directly; this increases flex

[PATCH 000/109] remove in-kernel calls to syscalls

2018-03-29 Thread Dominik Brodowski
[ While most parts of this patch set have been sent out already at least once, I send out *all* patches to lkml once again as this whole series touches several different subsystems in sensitive areas. ] System calls are interaction points between userspace and the kernel. Therefore, system cal

[PATCH 020/109] net: socket: add __sys_getsockopt() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_getsockopt() allows us to avoid the internal calls to the sys_getsockopt() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018

[PATCH] qed: fix spelling mistake: "checksumed" -> "checksummed"

2018-03-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in DP_INFO message text Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/

Re: [PATCH] ALSA: hda_intel: mark PM functions as __maybe_unused

2018-03-29 Thread Lukas Wunner
On Thu, Mar 29, 2018 at 12:14:03AM +0200, Arnd Bergmann wrote: > On Wed, Mar 28, 2018 at 4:31 PM, Lukas Wunner wrote: > > On Wed, Mar 28, 2018 at 04:19:29PM +0200, Arnd Bergmann wrote: > >> Two callsites of azx_suspend/azx_resume were removed, leaving these > >> functions only called from the opti

[PATCH 099/109] x86/ioport: add ksys_ioperm() helper; remove in-kernel calls to sys_ioperm()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_ioperm() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_ioperm(). This patch is part of a series which removes in-k

[PATCH 084/109] fs: add ksys_open() wrapper; remove in-kernel calls to sys_open()

2018-03-29 Thread Dominik Brodowski
Using this wrapper allows us to avoid the in-kernel calls to the sys_open() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_open(). This patch is part of a series which removes in-kern

[PATCH 107/109] kernel/sys_ni: sort cond_syscall() entries

2018-03-29 Thread Dominik Brodowski
Shuffle the cond_syscall() entries in kernel/sys_ni.c around so that they are kept in the same order as in include/uapi/asm-generic/unistd.h. For better structuring, add the same comments as in that file, but keep a few additional comments and extend the commentary where it seems useful. Signed-of

[PATCH 017/109] net: socket: add __sys_socketpair() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_socketpair() allows us to avoid the internal calls to the sys_socketpair() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018

[PATCH 105/109] syscalls: sort syscall prototypes in include/linux/compat.h

2018-03-29 Thread Dominik Brodowski
Shuffle the syscall prototypes in include/linux/compat.h around so that they are kept in the same order as in include/uapi/asm-generic/unistd.h. The individual entries are kept the same, and neither modified to bring them in line with kernel coding style nor wrapped in proper ifdefs -- as an except

[PATCH 074/109] fs: add ksys_rmdir() wrapper; remove in-kernel calls to sys_rmdir()

2018-03-29 Thread Dominik Brodowski
Using this wrapper allows us to avoid the in-kernel calls to the sys_rmdir() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_rmdir(). This patch is part of a series which removes in-ke

[PATCH 092/109] fs: add ksys_sync_file_range helper(); remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_sync_file_range() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_sync_file_range(). This patch is part of a series

[PATCH 101/109] x86/sigreturn: use SYSCALL_DEFINE0

2018-03-29 Thread Dominik Brodowski
From: "Tautschnig, Michael" All definitions of syscalls in x86 except for those patched here have already been using the appropriate SYSCALL_DEFINE*. Signed-off-by: Michael Tautschnig Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Jaswinder Singh Cc: Andi Kleen Cc: x...@kernel.

Re: [PATCH v2] lockdep: Show address of "struct lockdep_map" at print_lock().

2018-03-29 Thread Peter Zijlstra
On Thu, Mar 29, 2018 at 07:26:52PM +0900, Tetsuo Handa wrote: > >From 91c081c4c5f6a99402542951e7de661c38f928ab Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 27 Mar 2018 19:38:33 +0900 > Subject: [PATCH v2] lockdep: Show address of "struct lockdep_map" at > print_lock(). > > Since "s

NAK: [PATCH] qed: fix spelling mistake: "checksumed" -> "checksummed"

2018-03-29 Thread Colin Ian King
On 29/03/18 12:59, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in DP_INFO message text > > Signed-off-by: Colin Ian King > --- > drivers/net/ethernet/qlogic/qed/qed_ll2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethe

[PATCH v2 2/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Andreas Gruenbacher
Function rhashtable_walk_peek is problematic because there is no guarantee that the glock previously returned still exists; when that key is deleted, rhashtable_walk_peek can end up returning a different key, which will cause an inconsistent glock dump. Fix this by keeping track of the current glo

[PATCH v2 1/2] lockref: Add lockref_put_not_zero

2018-03-29 Thread Andreas Gruenbacher
Put a lockref unless the lockref is dead or its count would become zero. This is the same as lockref_put_or_lock except that the lock is never left held. Signed-off-by: Andreas Gruenbacher --- include/linux/lockref.h | 1 + lib/lockref.c | 28 2 files chan

[PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Andreas Gruenbacher
Here's a second version of the patch (now a patch set) to eliminate rhashtable_walk_peek in gfs2. The first patch introduces lockref_put_not_zero, the inverse of lockref_get_not_zero. The second patch eliminates rhashtable_walk_peek in gfs2. In gfs2_glock_iter_next, the new lockref function from

[PATCH v2] perf, pt, coresight: Clean up address filter structure

2018-03-29 Thread Alexander Shishkin
This is a cosmetic patch that deals with the address filter structure's ambiguous fields 'filter' and 'range'. The former stands to mean that the filter's *action* should be to filter the traces to its address range if it's set or stop tracing if it's unset. This is confusing and hard on the eyes,

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-29 Thread Daniel Lezcano
On 29/03/2018 13:42, Alexandre Belloni wrote: > On 29/03/2018 at 13:31:18 +0200, Alexander Dahl wrote: >> Pretty sure. I rebuilt the whole BSP and added another line to the kernel >> source to see if the tree I applied the patches to, was actually built: >> >> >> diff --git a/drivers/clocksource/t

Re: [PATCH 0/1] cover-letter/lz4: Implement lz4 with dynamic offset length.

2018-03-29 Thread Maninder Singh
Hello Nick/Sergey,   Any suggestion or comments, so that we can change code and resend the patch?   > Hi Nick / Sergey, >  >  > We have compared LZ4 Dyn with Original LZ4 using some samples of realtime  >application data(4Kb) > compressed/decompressed by ZRAM. For comparison we have used lzbench 

Re: [PATCH v2] perf, pt, coresight: Clean up address filter structure

2018-03-29 Thread Peter Zijlstra
On Thu, Mar 29, 2018 at 03:06:48PM +0300, Alexander Shishkin wrote: > This is a cosmetic patch that deals with the address filter structure's > ambiguous fields 'filter' and 'range'. The former stands to mean that the > filter's *action* should be to filter the traces to its address range if > it's

[PATCH] qedr: ix spelling mistake: "hanlde" -> "handle"

2018-03-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in DP_ERR message text Signed-off-by: Colin Ian King --- drivers/infiniband/hw/qedr/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index 1

[PATCH] regmap: debugfs: check pointer before access

2018-03-29 Thread Peng Fan
When access the /sys/kernel/debug/regmap/5-0033/name, kernel reports NULL pointer access, it is because the driver point is null when accessing map->dev->driver->name. root@imx8qmmek:~# cat /sys/kernel/debug/regmap/5-0033/name [ 26.553924] Unable to handle kernel NULL pointer dereference at virt

Re: [PATCH V4 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-03-29 Thread Adrian Hunter
On 09/03/18 16:04, ernest.zhang wrote: > Add hardware tuning function instead of software tuning because O2/Bayhub > SD host controller support hardware tuning. > > Changes: Add many functions to execute hardware tuning for eMMC 1.8V HS200 > mode, the hardware tuning command and procedure is based

[PATCH v8 00/10] sched/cpuidle: Idle loop rework

2018-03-29 Thread Rafael J. Wysocki
Hi All, Thanks a lot for the feedback so far! Special thanks for the testing results from Doug, Thomas and Len, much appreciated! After the recent Thomas' report on the v7.3 I found a bug in the new implementation of tick_nohz_get_sleep_length() which generally didn't take highres timers into ac

[PATCH v8 03/10] sched: idle: Do not stop the tick before cpuidle_idle_call()

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make cpuidle_idle_call() decide whether or not to stop the tick. First, the cpuidle_enter_s2idle() path deals with the tick (and with the entire timekeeping for that matter) by itself and it doesn't need the tick to be stopped beforehand. Second, to address the issue wit

[PATCH v8 04/10] jiffies: Introduce USER_TICK_USEC and redefine TICK_USEC

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: [PATCH] Since the subsequent changes will need a TICK_USEC definition analogous to TICK_NSEC, rename the existing TICK_USEC as USER_TICK_USEC, update its users and redefine TICK_USEC accordingly. Suggested-by: Peter Zijlstra Signed-off-by: Rafael J. Wysocki --

[PATCH v8 01/10] time: tick-sched: Reorganize idle tick management code

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Prepare the scheduler tick code for reworking the idle loop to avoid stopping the tick in some cases. The idea is to split the nohz idle entry call to decouple the idle time stats accounting and preparatory work from the actual tick stop code, in order to later be able to

[PATCH 0/2] MIPS: memset.S: Fix 2 issues with __clear_user

2018-03-29 Thread Matt Redfearn
This series addresses 2 issues that have been present in memset.S since the initial git import(!). The first patch addresses an issue when memset is called with a size less than the size of a long (4 bytes on 32bit, 8 bytes on 64bit). There is no fixup handler provided for the byte store loop, mean

[PATCH 1/2] MIPS: memset.S: EVA & fault support for small_memset

2018-03-29 Thread Matt Redfearn
The MIPS kernel memset / bzero implementation includes a small_memset branch which is used when the region to be set is smaller than a long (4 bytes on 32bit, 8 bytes on 64bit). The current small_memset implementation uses a simple store byte loop to write the destination. There are 2 issues with t

[PATCH v8 07/10] time: hrtimer: Timer exclusion support for hrtimer_get_next_event()

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The next set of changes will need to compute the time to the next hrtimer event over all hrtimers except for the scheduler tick one. To prepare for that, modify hrtimer_get_next_event() so that it can take a pointer to the timer to exclude from the next event check and ch

Re: [Cluster-devel] [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Steven Whitehouse
Hi, Can we solve the problem another way, by not taking refs on the glocks when we are iterating over them for the debugfs files? I assume that is the main issue here. We didn't used to take refs since the rcu locking was enough during the walk itself. We used to only keep track of the hash

[PATCH v8 02/10] sched: idle: Do not stop the tick upfront in the idle loop

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Push the decision whether or not to stop the tick somewhat deeper into the idle loop. Stopping the tick upfront leads to unpleasant outcomes in case the idle governor doesn't agree with the nohz code on the duration of the upcoming idle period. Specifically, if the tick

[PATCH v8 09/10] cpuidle: menu: Refine idle state selection for running tick

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the tick isn't stopped, the target residency of the state selected by the menu governor may be greater than the actual time to the next tick and that means lost energy. To avoid that, make tick_nohz_get_sleep_length() return the current time to the next event (before s

[PATCH v8 05/10] cpuidle: Return nohz hint from cpuidle_select()

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add a new pointer argument to cpuidle_select() and to the ->select cpuidle governor callback to allow a boolean value indicating whether or not the tick should be stopped before entering the selected state to be returned from there. Make the ladder governor ignore that po

[PATCH v8 06/10] time: tick-sched: Split tick_nohz_stop_sched_tick()

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In order to address the issue with short idle duration predictions by the idle governor after the scheduler tick has been stopped, split tick_nohz_stop_sched_tick() into two separate routines, one computing the time to the next timer event and the other simply stopping the

[PATCH v8 10/10] cpuidle: menu: Avoid selecting shallow states with stopped tick

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the scheduler tick has been stopped already and the governor selects a shallow idle state, the CPU can spend a long time in that state if the selection is based on an inaccurate prediction of idle time. That effect turns out to be relevant, so it needs to be mitigated.

[PATCH v8 08/10] sched: idle: Select idle state before stopping the tick

2018-03-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In order to address the issue with short idle duration predictions by the idle governor after the scheduler tick has been stopped, reorder the code in cpuidle_idle_call() so that the governor idle state selection runs before tick_nohz_idle_go_idle() and use the "nohz" hint

Re: [PATCH V4 1/3] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-03-29 Thread Adrian Hunter
On 09/03/18 16:04, ernest.zhang wrote: > When use eMMC as boot device, the eMMC signaling voltage is tied to 1.8v > fixed output voltage, bios can set o2 sd host controller PCI configuration > register 0x308 bit4 to 1 to let driver skip 3.3v signaling voltage and > direct use 1.8v singling voltage

Re: [PATCH 4/4] vfio: ccw: add traceponits for interesting error paths

2018-03-29 Thread Cornelia Huck
On Tue, 27 Mar 2018 17:27:54 +0200 Halil Pasic wrote: > On 03/27/2018 12:07 PM, Cornelia Huck wrote: > > On Tue, 27 Mar 2018 15:51:14 +0800 > > Dong Jia Shi wrote: > > > >> * Cornelia Huck [2018-03-26 15:59:02 +0200]: > >> > >> [...] > >> > @@ -131,6 +138,8 @@ static void fsm_io_reque

[PATCH v2] clocksource/drivers/mips-gic-timer: Add pr_fmt and reword pr_* messages

2018-03-29 Thread Matt Redfearn
Several messages from the MIPS GIC driver include the text "GIC", "GIC timer", etc, but the format is not standard. Add a pr_fmt of "mips-gic-timer: " and reword the messages now that they will be prefixed with the driver name. Signed-off-by: Matt Redfearn --- Changes in v2: Rebase on v4.16-rc7

Re: [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Herbert Xu
On Thu, Mar 29, 2018 at 02:06:10PM +0200, Andreas Gruenbacher wrote: > Here's a second version of the patch (now a patch set) to eliminate > rhashtable_walk_peek in gfs2. > > The first patch introduces lockref_put_not_zero, the inverse of > lockref_get_not_zero. > > The second patch eliminates rh

Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-29 Thread Kirill A. Shutemov
On Thu, Mar 29, 2018 at 01:20:34PM +0200, Michal Hocko wrote: > On Wed 28-03-18 19:55:32, Kirill A. Shutemov wrote: > > Modify several page allocation routines to pass down encryption KeyID to > > be used for the allocated page. > > > > There are two basic use cases: > > > > - alloc_page_vma() u

Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-29 Thread Kirill A. Shutemov
On Wed, Mar 28, 2018 at 10:15:02AM -0700, Dave Hansen wrote: > On 03/28/2018 09:55 AM, Kirill A. Shutemov wrote: > > @@ -51,7 +51,7 @@ static inline struct page *new_page_nodemask(struct page > > *page, > > if (PageHighMem(page) || (zone_idx(page_zone(page)) == ZONE_MOVABLE)) > > g

[PATCH] qed: fix a bunch of spelling mistakes/typos

2018-03-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes/typos in various DP_* messages. Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_init_ops.c | 2 +- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 4 ++-- drivers/net/ethernet/qlogic/qed/qed_main.c | 4 ++-- drive

Re: [PATCHv2 12/14] x86/mm: Implement page_keyid() using page_ext

2018-03-29 Thread Kirill A. Shutemov
On Wed, Mar 28, 2018 at 09:59:23AM -0700, Dave Hansen wrote: > On 03/28/2018 09:55 AM, Kirill A. Shutemov wrote: > > +static inline int page_keyid(struct page *page) > > +{ > > + if (!mktme_nr_keyids) > > + return 0; > > + > > + return lookup_page_ext(page)->keyid; > > +} > > This do

Re: [PATCH V4 3/3] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-03-29 Thread Adrian Hunter
On 09/03/18 16:04, ernest.zhang wrote: > Add MSI interrupt support if the SD host device can support MSI interrupt. > > Changes: Enable MSI interrupt if the MSI capability bit is set in > capability register. > > Signed-off-by: ernest.zhang > --- > drivers/mmc/host/sdhci-pci-o2micro.c | 17 +++

[tip:locking/core] lockdep: Make the lock debug output more useful

2018-03-29 Thread tip-bot for Tetsuo Handa
Commit-ID: b3c39758c8a6972f02b43f83dba7fe7a352371b9 Gitweb: https://git.kernel.org/tip/b3c39758c8a6972f02b43f83dba7fe7a352371b9 Author: Tetsuo Handa AuthorDate: Tue, 27 Mar 2018 19:41:41 +0900 Committer: Thomas Gleixner CommitDate: Thu, 29 Mar 2018 14:41:40 +0200 lockdep: Make the lock

Re: [PATCH net] vhost: validate log when IOTLB is enabled

2018-03-29 Thread Michael S. Tsirkin
On Thu, Mar 29, 2018 at 04:00:04PM +0800, Jason Wang wrote: > Vq log_base is the userspace address of bitmap which has nothing to do > with IOTLB. So it needs to be validated unconditionally otherwise we > may try use 0 as log_base which may lead to pin pages that will lead > unexpected result (e.g

[PATCH v2] staging: mt7621-eth: Fix sparse warning in ethtool.c

2018-03-29 Thread Chris Coffey
This fixes the following sparse warning: drivers/staging/mt7621-eth/ethtool.c:213:6: warning: symbol 'mtk_set_ethtool_ops' was not declared. Should it be static? Signed-off-by: Chris Coffey --- Changes in v2: - Per GregKH's feedback (thanks!), don't add unnecessary new .h file dependencies. Th

Re: [PATCH v2] mmc: sdhci-of-arasan: Add quirk to avoid unexpected interrupt msgs

2018-03-29 Thread Adrian Hunter
On 13/03/18 16:26, Phil Edworthy wrote: > On SD 2.00 cards we get lots of these messages: > "mmc0: Got data interrupt 0x0002 even though no data operation was in > progress" > By applying the SDHCI_QUIRK2_STOP_WITH_TC quirk, the messages no longer > happen. > > A single card claiming to be S

Re: [PATCH v9 00/24] Speculative page faults

2018-03-29 Thread Laurent Dufour
On 22/03/2018 02:21, Ganesh Mahendran wrote: > Hi, Laurent > > 2018-03-14 1:59 GMT+08:00 Laurent Dufour : >> This is a port on kernel 4.16 of the work done by Peter Zijlstra to >> handle page fault without holding the mm semaphore [1]. >> >> The idea is to try to handle user space page faults with

Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-29 Thread Michal Hocko
On Thu 29-03-18 15:37:12, Kirill A. Shutemov wrote: > On Thu, Mar 29, 2018 at 01:20:34PM +0200, Michal Hocko wrote: > > On Wed 28-03-18 19:55:32, Kirill A. Shutemov wrote: > > > Modify several page allocation routines to pass down encryption KeyID to > > > be used for the allocated page. > > > > >

Re: [PATCH] sched: support dynamiQ cluster

2018-03-29 Thread Morten Rasmussen
On Wed, Mar 28, 2018 at 09:46:55AM +0200, Vincent Guittot wrote: > Arm DynamiQ system can integrate cores with different micro architecture > or max OPP under the same DSU so we can have cores with different compute > capacity at the LLC (which was not the case with legacy big/LITTLE > architecture

Re: [EXT] [PATCH net-next v2 1/2] net: phy: phylink: Provide PHY interface to mac_link_{up,down}

2018-03-29 Thread Andrew Lunn
On Thu, Mar 29, 2018 at 05:59:02AM +, Yan Markman wrote: > Hi Florian > Please keep CCYelena Krivosheev > for changes with drivers/net/ethernet/marvell/mvneta.c > Thanks > Yan Markman > Tel. 05-44732819 Hi Yan Since you have obviously seen the patches, how about a Review

Re: [RESEND PATCH v2 4/8] mfd: stm32-timers: add support for dmas

2018-03-29 Thread Lee Jones
On Wed, 28 Mar 2018, Fabrice Gasnier wrote: > On 03/28/2018 05:22 PM, Lee Jones wrote: > > On Wed, 14 Feb 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-timer

Re: [PATCH] qed: fix a bunch of spelling mistakes/typos

2018-03-29 Thread Joe Perches
On Thu, 2018-03-29 at 13:41 +0100, Colin King wrote: > Trivial fix to spelling mistakes/typos in various DP_* messages. [] > diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.c > b/drivers/net/ethernet/qlogic/qed/qed_vf.c [] > @@ -231,7 +231,7 @@ static void qed_vf_pf_acquire_reduce_resc(struct

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-29 Thread Alexandre Belloni
On 29/03/2018 at 14:07:34 +0200, Daniel Lezcano wrote: > On 29/03/2018 13:42, Alexandre Belloni wrote: > > On 29/03/2018 at 13:31:18 +0200, Alexander Dahl wrote: > >> Pretty sure. I rebuilt the whole BSP and added another line to the kernel > >> source to see if the tree I applied the patches to,

Re: [PATCH v6 0/6] Add MediaTek PMIC keys support

2018-03-29 Thread Lee Jones
On Thu, 29 Mar 2018, Chen Zhong wrote: > On Wed, 2018-03-28 at 11:26 +0100, Lee Jones wrote: > > On Tue, 27 Mar 2018, Matthias Brugger wrote: > > > > > > > > > > > On 03/27/2018 10:05 AM, Lee Jones wrote: > > > > On Fri, 23 Mar 2018, Dmitry Torokhov wrote: > > > >> On Thu, Mar 22, 2018 at 10:17

Re: [RFC PATCH ghak32 V2 01/13] audit: add container id

2018-03-29 Thread Jonathan Corbet
On Thu, 29 Mar 2018 05:01:32 -0400 Richard Guy Briggs wrote: > > A little detail, but still... > > I am understanding that you would prefer more context (as opposed to > operational detail) in the description, laying out the use case for this > patch(set)? No, sorry, "a little detail" was ref

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-03-29 Thread Andrew Lunn
On Thu, Mar 29, 2018 at 04:42:40PM +0800, Jisheng Zhang wrote: > > Change the entry name and move it to its alphabetical location. > We move to ARM/Synaptics instead of ARM/Marvell. Hi Jisheng Please could you add some comments about this Marvell->Synaptics change. Has Marvell sold the Berlin c

[PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-03-29 Thread Peter Rosin
On a sama5d31 with a Full-HD dual LVDS panel (132MHz pixel clock) NAND flash accesses have a tendency to cause display disturbances. Add a module param to disable DMA from the NAND controller, since that fixes the display problem for me. Signed-off-by: Peter Rosin --- drivers/mtd/nand/raw/atmel/

Re: [Cluster-devel] [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Andreas Gruenbacher
On 29 March 2018 at 14:24, Steven Whitehouse wrote: > Hi, > > Can we solve the problem another way, by not taking refs on the glocks when > we are iterating over them for the debugfs files? I assume that is the main > issue here. > > We didn't used to take refs since the rcu locking was enough dur

Re: [PATCH 1/3] virt: vbox: Add vbg_req_free() helper function

2018-03-29 Thread Hans de Goede
Hi, On 29-03-18 13:55, Greg Kroah-Hartman wrote: On Thu, Mar 29, 2018 at 01:21:14PM +0200, Hans de Goede wrote: --- a/include/linux/vbox_utils.h +++ b/include/linux/vbox_utils.h @@ -33,6 +33,13 @@ __printf(1, 2) void vbg_debug(const char *fmt, ...); */ void *vbg_req_alloc(size_t len, enum

Re: [PATCH] qed: fix a bunch of spelling mistakes/typos

2018-03-29 Thread Colin Ian King
On 29/03/18 14:01, Joe Perches wrote: > On Thu, 2018-03-29 at 13:41 +0100, Colin King wrote: >> Trivial fix to spelling mistakes/typos in various DP_* messages. > [] >> diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.c >> b/drivers/net/ethernet/qlogic/qed/qed_vf.c > [] >> @@ -231,7 +231,7 @@ s

Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-29 Thread Kirill A. Shutemov
On Thu, Mar 29, 2018 at 02:52:27PM +0200, Michal Hocko wrote: > On Thu 29-03-18 15:37:12, Kirill A. Shutemov wrote: > > On Thu, Mar 29, 2018 at 01:20:34PM +0200, Michal Hocko wrote: > > > On Wed 28-03-18 19:55:32, Kirill A. Shutemov wrote: > > > > Modify several page allocation routines to pass dow

Re: [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

2018-03-29 Thread Andreas Gruenbacher
On 29 March 2018 at 14:35, Herbert Xu wrote: > On Thu, Mar 29, 2018 at 02:06:10PM +0200, Andreas Gruenbacher wrote: >> Here's a second version of the patch (now a patch set) to eliminate >> rhashtable_walk_peek in gfs2. >> >> The first patch introduces lockref_put_not_zero, the inverse of >> lockr

Re: [PATCH v3] x86,sched: allow topologies where NUMA nodes share an LLC

2018-03-29 Thread Thomas Gleixner
On Wed, 28 Mar 2018, Alison Schofield wrote: > From: Alison Schofield > > Intel's Skylake Server CPUs have a different LLC topology than previous > generations. When in Sub-NUMA-Clustering (SNC) mode, the package is > divided into two "slices", each containing half the cores, half the LLC, > and

Re: [PATCH 1/3] virt: vbox: Add vbg_req_free() helper function

2018-03-29 Thread Hans de Goede
Hi, On 29-03-18 13:56, Greg Kroah-Hartman wrote: On Thu, Mar 29, 2018 at 01:21:14PM +0200, Hans de Goede wrote: +void vbg_req_free(void *req, size_t len) +{ + if (!req) + return; + + kfree(req); +} Wait, no, this isn't ok. Don't create wrapper functions that you nev

Re: [PATCH] qed: fix a bunch of spelling mistakes/typos

2018-03-29 Thread Joe Perches
On Thu, 2018-03-29 at 14:13 +0100, Colin Ian King wrote: > On 29/03/18 14:01, Joe Perches wrote: > > On Thu, 2018-03-29 at 13:41 +0100, Colin King wrote: > > > Trivial fix to spelling mistakes/typos in various DP_* messages. > > > > [] > > > diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.c >

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

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! When using Xen PV DRM frontend driver then on backend side one will need to do copying of display buffers' contents (filled by the frontend's user-space) into buffers allocated at the backend side. Taking into account the size of display buffers and frames pe

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

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Xen zero-copy helper DRM driver, add user-space API of the driver: 1. DRM_IOCTL_XEN_ZCOPY_DUMB_FROM_REFS This will create a DRM dumb buffer from grant references provided by the frontend. The intended usage is: - Frontend - creates a dumb/display buff

Re: [PATCH v4 14/16] powerpc: Use generic free_initrd_mem.

2018-03-29 Thread Michael Ellerman
Shea Levy writes: > Joe Perches writes: > >> On Wed, 2018-03-28 at 16:36 -0400, Shea Levy wrote: >>> Signed-off-by: Shea Levy >> >> Most people seem to want some form of commit message >> and not just your sign-off. >> > > Ah, if the subject is insufficient I can add some more detail. Yeah ple

pull-request: wireless-drivers-next 2018-03-29

2018-03-29 Thread Kalle Valo
Hi Dave, here's a pull request to net-next for 4.17. If the merge window starts on Sunday this will be the last pull request. Do note that I pulled wireless-drivers into wireless-drivers-next as iwlwifi needed some patches. Please let me know if you have any problems. Kalle The following change

[tip:timers/core] alarmtimer: Init nanosleep alarm timer on stack

2018-03-29 Thread tip-bot for Thomas Gleixner
Commit-ID: 5110c037daf437dbc163be5e9be18c8412a798e6 Gitweb: https://git.kernel.org/tip/5110c037daf437dbc163be5e9be18c8412a798e6 Author: Thomas Gleixner AuthorDate: Mon, 26 Mar 2018 15:29:57 +0200 Committer: Thomas Gleixner CommitDate: Thu, 29 Mar 2018 15:17:38 +0200 alarmtimer: Init na

[PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-03-29 Thread Matt Redfearn
From: Palmer Dabbelt As part of the MIPS conversion to use the generic GCC library routines, Matt Redfearn discovered that I'd missed a notrace on __ucmpdi2(). This patch rectifies the problem. CC: Matt Redfearn CC: Antony Pavlov Signed-off-by: Palmer Dabbelt Reviewed-by: Matt Redfearn Sign

[PATCH v4 3/3] MIPS: use generic GCC library routines from lib/

2018-03-29 Thread Matt Redfearn
From: Antony Pavlov The commit b35cd9884fa5 ("lib: Add shared copies of some GCC library routines") makes it possible to share generic GCC library routines by several architectures. This commit removes several generic GCC library routines from arch/mips/lib/ in favour of similar routines from li

[PATCH v4 2/3] lib: Rename compiler intrinsic selects to GENERIC_LIB_*

2018-03-29 Thread Matt Redfearn
When these are included into arch Kconfig files, maintaining alphabetical ordering of the selects means these get split up. To allow for keeping things tidier and alphabetical, rename the selects to GENERIC_LIB_* Signed-off-by: Matt Redfearn Reviewed-by: Palmer Dabbelt --- Changes in v4: Renam

[tip:timers/core 2/2] kernel/time/alarmtimer.c:738:33: error: 'alarm' is a pointer; did you mean to use '->'?

2018-03-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core head: 5110c037daf437dbc163be5e9be18c8412a798e6 commit: 5110c037daf437dbc163be5e9be18c8412a798e6 [2/2] alarmtimer: Init nanosleep alarm timer on stack config: i386-randconfig-x013-201812 (attached as .config) compiler

Re: [PATCH v3 1/3] perf/core: store context switch out type into Perf trace

2018-03-29 Thread Alexander Shishkin
On Mon, Mar 26, 2018 at 12:20:32PM +0300, Alexey Budankov wrote: > > Store thread context-switch-out event type into Perf trace as a part of > PERF_RECORD_SWITCH[_CPU_WIDE] records. > > Introduced types of switch-out events assumed to be > a) preempt: task->state == TASK_RUNNING and b) !preempt

<    1   2   3   4   5   6   7   8   9   10   >