[PATCH v14 10/14] arm, tile: turn off timer tick for oneshot_stopped state

2016-08-09 Thread Chris Metcalf
When the schedule tick is disabled in tick_nohz_stop_sched_tick(), we call hrtimer_cancel(), which eventually calls down into __remove_hrtimer() and thus into hrtimer_force_reprogram(). That function's call to tick_program_event() detects that we are trying to set the expiration to KTIME_MAX and ca

[PATCH v14 13/14] task_isolation: add user-settable notification signal

2016-08-09 Thread Chris Metcalf
By default, if a task in task isolation mode re-enters the kernel, it is terminated with SIGKILL. With this commit, the application can choose what signal to receive on a task isolation violation by invoking prctl() with PR_TASK_ISOLATION_ENABLE, or'ing in the PR_TASK_ISOLATION_USERSIG bit, and se

[PATCH v14 01/14] vmstat: add quiet_vmstat_sync function

2016-08-09 Thread Chris Metcalf
In commit f01f17d3705b ("mm, vmstat: make quiet_vmstat lighter") the quiet_vmstat() function became asynchronous, in the sense that the vmstat work was still scheduled to run on the core when the function returned. For task isolation, we need a synchronous version of the function that guarantees t

[PATCH v14 06/14] arch/x86: enable task isolation functionality

2016-08-09 Thread Chris Metcalf
In exit_to_usermode_loop(), call task_isolation_ready() for TIF_TASK_ISOLATION tasks when we are checking the thread-info flags, and after we've handled the other work, call task_isolation_enter() for such tasks. In syscall_trace_enter_phase1(), we add the necessary support for reporting syscalls

[PATCH v14 08/14] arch/arm64: enable task isolation functionality

2016-08-09 Thread Chris Metcalf
In do_notify_resume(), call task_isolation_ready() for TIF_TASK_ISOLATION tasks when we are checking the thread-info flags; and after we've handled the other work, call task_isolation_enter() for such tasks. To ensure we always call task_isolation_enter() when returning to userspace, add _TIF_TASK

[PATCH v14 09/14] arch/tile: enable task isolation functionality

2016-08-09 Thread Chris Metcalf
We add the necessary call to task_isolation_enter() in the prepare_exit_to_usermode() routine. We already unconditionally call into this routine if TIF_NOHZ is set, since that's where we do the user_enter() call. We add calls to task_isolation_quiet_exception() in places where exceptions may not

[PATCH v14 07/14] arm64: factor work_pending state machine to C

2016-08-09 Thread Chris Metcalf
Currently ret_fast_syscall, work_pending, and ret_to_user form an ad-hoc state machine that can be difficult to reason about due to duplicated code and a large number of branch targets. This patch factors the common logic out into the existing do_notify_resume function, converting the code to C in

[PATCH v14 11/14] clocksource: Do not schedule watchdog on isolated or NOHZ cpus

2016-08-09 Thread Chris Metcalf
From: Christoph Lameter watchdog checks can only run on housekeeping capable cpus. Otherwise we will be generating noise that we would like to avoid on the isolated processors. Signed-off-by: Christoph Lameter Signed-off-by: Chris Metcalf [line-wrapped and added equivalent fix in clocksource

[PATCH v14 05/14] task_isolation: track asynchronous interrupts

2016-08-09 Thread Chris Metcalf
This commit adds support for tracking asynchronous interrupts delivered to task-isolation tasks, e.g. IPIs or IRQs. Just as for exceptions and syscalls, when this occurs we arrange to deliver a signal to the task so that it knows it has been interrupted. If the task is interrupted by an NMI, we c

[PATCH v14 00/14] support "task_isolation" mode

2016-08-09 Thread Chris Metcalf
Here is a respin of the task-isolation patch set. This primarily reflects some testing on x86, and a rebase to 4.8. I have been getting email asking me when and where this patch will be upstreamed so folks can start using it. I had been thinking the obvious path was via Frederic Weisbecker to In

[PATCH v14 12/14] task_isolation: support CONFIG_TASK_ISOLATION_ALL

2016-08-09 Thread Chris Metcalf
This option, similar to NO_HZ_FULL_ALL, simplifies configuring a system to boot by default with all cores except the boot core running in task isolation mode. Signed-off-by: Chris Metcalf --- init/Kconfig | 10 ++ kernel/isolation.c | 6 ++ 2 files changed, 16 insertions(+) d

[PATCH v14 03/14] lru_add_drain_all: factor out lru_add_drain_needed

2016-08-09 Thread Chris Metcalf
This per-cpu check was being done in the loop in lru_add_drain_all(), but having it be callable for a particular cpu is helpful for the task-isolation patches. Signed-off-by: Chris Metcalf --- include/linux/swap.h | 1 + mm/swap.c| 15 ++- 2 files changed, 11 insertions(

[PATCH v14 04/14] task_isolation: add initial support

2016-08-09 Thread Chris Metcalf
The existing nohz_full mode is designed as a "soft" isolation mode that makes tradeoffs to minimize userspace interruptions while still attempting to avoid overheads in the kernel entry/exit path, to provide 100% kernel semantics, etc. However, some applications require a "hard" commitment from th

[PATCH v14 14/14] task_isolation self test

2016-08-09 Thread Chris Metcalf
This code tests various aspects of task_isolation. Signed-off-by: Chris Metcalf --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/task_isolation/Makefile| 11 + tools/testing/selftests/task_isolation/config | 2 + tools/testing/selftests/task_iso

[PATCH v14 02/14] vmstat: add vmstat_idle function

2016-08-09 Thread Chris Metcalf
This function checks to see if a vmstat worker is not running, and the vmstat diffs don't require an update. The function is called from the task-isolation code to see if we need to actually do some work to quiet vmstat. Acked-by: Christoph Lameter Signed-off-by: Chris Metcalf --- include/linu

Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices

2016-08-09 Thread Henrique de Moraes Holschuh
On Tue, 09 Aug 2016, Jason Cooper wrote: > Perhaps a /dev/hwrng[0-9] per rng? That would lend itself nicely to a > sysfs interface for per device quality, rate, and enabled attributes. > e.g. /sys/class/hw_random/hwrng0/{device/,quality,rate,enabled} IMHO, this is mightly annoying to use from ins

[PATCH] i2c: uniphier{-f}: don't print error when adding adapter fails

2016-08-09 Thread Wolfram Sang
The core will do this for us now. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-uniphier-f.c | 5 - drivers/i2c/busses/i2c-uniphier.c | 5 - 2 files changed, 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-uniphier-f.c b/drivers/i2c/busses/i2c-uniphier-f.c index aeead0d2

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Robert Foss
On 2016-08-09 12:29 PM, Mateusz Guzik wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: From: Sonny Rao This is based on earlier work by Thiago Goncales. It implements a new per process proc file which summarizes the contents of the smaps file but doesn't disp

Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2016-08-09 Thread Luis R. Rodriguez
On Tue, Aug 09, 2016 at 09:04:35PM +0100, Alan Cox wrote: > > > (Going back to pick up the specific licence thread) > > > > > > > I'd like to see Richard do so as well. > > With Richard that's 3 attorneys now. > > None of whom I believe represent the Linux project or foundation ? > > Linus has

Re: [PATCH 2/4] kernfs: make kernfs_path*() behave in the style of strlcpy()

2016-08-09 Thread Serge E. Hallyn
Quoting Tejun Heo (t...@kernel.org): > Hello, Serge. > > On Tue, Aug 09, 2016 at 10:33:05AM -0500, Serge E. Hallyn wrote: > > > + for (i = depth_to - 1; i >= 0; i--) { > > > + for (kn = kn_to, j = 0; j < i; j++) > > > + kn = kn->parent; > > > > This is O(n^2) where n is th

Re: 4.8-rc1: resume from hibernation doesn't work

2016-08-09 Thread Jiri Kosina
On Mon, 8 Aug 2016, Pavel Machek wrote: > 64-bit kernel, I assume? > > I believe that is known: > > From: "Rafael J. Wysocki" > To: Thomas Garnier > Cc: "Rafael J. Wysocki" , Borislav Petkov , > "Rafael J. Wysocki" > , Linux PM list , > the arch/x86 maintainers > , Linu

Re: [PATCH resend v3 3/5] libata-scsi: use u8 array to store mode page copy

2016-08-09 Thread Tejun Heo
On Sat, Jul 23, 2016 at 02:34:08AM +0800, tom.t...@gmail.com wrote: > From: Tom Yan > > ata_mselect_*() would initialize a char array for storing a copy of > the current mode page. However, char could be signed char. In that > case, bytes larger than 127 would be converted to negative number. >

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-09 Thread Mathieu Desnoyers
- On Aug 3, 2016, at 9:19 AM, Peter Zijlstra pet...@infradead.org wrote: > On Thu, Jul 21, 2016 at 05:14:16PM -0400, Mathieu Desnoyers wrote: [...] > >> diff --git a/include/linux/sched.h b/include/linux/sched.h >> index 253538f..5c4b900 100644 >> --- a/include/linux/sched.h >> +++ b/include/

Re: 4.8-rc1: resume from hibernation doesn't work

2016-08-09 Thread Pavel Machek
On Tue 2016-08-09 10:54:15, Jiri Kosina wrote: > On Tue, 9 Aug 2016, Jiri Kosina wrote: > > > current Linus' tree (HEAD 65ea11ec6, so basically 4.8-rc1+) has broken > > resume from hibernation on my x200s. > > > > Suspend works correctly, resuming proceeds up to the point where it > > reports 1

Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2016-08-09 Thread Alan Cox
> > (Going back to pick up the specific licence thread) > > > > I'd like to see Richard do so as well. > With Richard that's 3 attorneys now. None of whom I believe represent the Linux project or foundation ? Linus has to make this call, nobody else and he is probablygoing to go ape if you try

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-09 Thread Jiri Kosina
On Tue, 9 Aug 2016, Rafael J. Wysocki wrote: > I have a murky suspicion, but it is really weird. Namely, what if > restore_jump_address in set_up_temporary_text_mapping() happens to be > covered by the restore kernel's identity mapping? Then, the image > kernel's entry point may get overwritten

Re: [PATCH 2/4] kernfs: make kernfs_path*() behave in the style of strlcpy()

2016-08-09 Thread Tejun Heo
Hello, Serge. On Tue, Aug 09, 2016 at 10:33:05AM -0500, Serge E. Hallyn wrote: > > + for (i = depth_to - 1; i >= 0; i--) { > > + for (kn = kn_to, j = 0; j < i; j++) > > + kn = kn->parent; > > This is O(n^2) where n is the path depth. It's not a hot path, though, do

[PATCH] x86/hpet: fix typo from rtc cleanup

2016-08-09 Thread Arnd Bergmann
Ville Syrjälä reports "The first time I run hwclock after rebooting I get this: open("/dev/rtc", O_RDONLY) = 3 ioctl(3, PHN_SET_REGS or RTC_UIE_ON, 0) = 0 select(4, [3], NULL, NULL, {10, 0}) = 0 (Timeout) ioctl(3, PHN_NOT_OH or RTC_UIE_OFF, 0) = 0 close(3)

Re: [PATCH net 0/6] rxrpc: Miscellaneous fixes

2016-08-09 Thread David Miller
/log/?h=rxrpc-fixes > > Tagged thusly: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-fixes-20160809 Pulled, thanks David.

Re: [PATCH v5 5/5] lib/dlock-list: Make sibling CPUs share the same linked list

2016-08-09 Thread Waiman Long
On 08/09/2016 02:23 PM, kbuild test robot wrote: Hi Waiman, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc1 next-20160809] [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

[RESEND PATCH v5 5/5] lib/dlock-list: Make sibling CPUs share the same linked list

2016-08-09 Thread Waiman Long
The dlock list needs one list for each of the CPUs available. However, for sibling CPUs, they are sharing the L2 and probably L1 caches too. As a result, there is not much to gain in term of avoiding cacheline contention while increasing the cacheline footprint of the L1/L2 caches as separate lists

Re: [PATCH v2 1/3] spi-nor: Add support for Intel SPI serial flash controller

2016-08-09 Thread Jagan Teki
On 22 June 2016 at 21:02, Mika Westerberg wrote: > Add support for the SPI serial flash host controller found on many Intel > CPUs including Baytrail and Braswell. The SPI serial flash controller is > used to access BIOS and other platform specific information. By default the > driver exposes a si

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Jann Horn
On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: > From: Sonny Rao > > This is based on earlier work by Thiago Goncales. It implements a new > per process proc file which summarizes the contents of the smaps file > but doesn't display any addresses. It gives more detail

[tip:perf/urgent] perf probe ppc64le: Fix probe location when using DWARF

2016-08-09 Thread tip-bot for Ravi Bangoria
Commit-ID: 99e608b5954c9e1ebadbf9660b74697d9dfd9f20 Gitweb: http://git.kernel.org/tip/99e608b5954c9e1ebadbf9660b74697d9dfd9f20 Author: Ravi Bangoria AuthorDate: Tue, 9 Aug 2016 01:23:25 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 12:14:29 -0300 perf probe ppc6

[tip:perf/urgent] perf probe: Add function to post process kernel trace events

2016-08-09 Thread tip-bot for Ravi Bangoria
Commit-ID: d820456dc70b231d62171ba46b43db0045e9bd57 Gitweb: http://git.kernel.org/tip/d820456dc70b231d62171ba46b43db0045e9bd57 Author: Ravi Bangoria AuthorDate: Tue, 9 Aug 2016 01:23:24 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 12:09:59 -0300 perf probe: Add

[tip:perf/urgent] tools: Sync cpufeatures headers with the kernel

2016-08-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 840b49ba554b40fa8301ad2716abd2fe3d9e382a Gitweb: http://git.kernel.org/tip/840b49ba554b40fa8301ad2716abd2fe3d9e382a Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 9 Aug 2016 11:56:33 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 11:56:33 -0300 tool

[tip:perf/urgent] toops: Sync tools/include/uapi/linux/bpf.h with the kernel

2016-08-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 791cceb89f7987c0375ff2e8971928a47f62ccae Gitweb: http://git.kernel.org/tip/791cceb89f7987c0375ff2e8971928a47f62ccae Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 9 Aug 2016 11:48:07 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 11:48:07 -0300 toop

[tip:perf/urgent] perf probe: Support signedness casting

2016-08-09 Thread tip-bot for Naohiro Aota
Commit-ID: 19f00b011729417f69e4df53cc3fe5ecc25134a4 Gitweb: http://git.kernel.org/tip/19f00b011729417f69e4df53cc3fe5ecc25134a4 Author: Naohiro Aota AuthorDate: Tue, 9 Aug 2016 11:40:08 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:52:22 -0300 perf probe: Supp

[tip:perf/urgent] tools: Sync cpufeatures.h and vmx.h with the kernel

2016-08-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: bebfb730125863aac74607dff24f1bdb9fb02a90 Gitweb: http://git.kernel.org/tip/bebfb730125863aac74607dff24f1bdb9fb02a90 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 9 Aug 2016 11:21:57 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 11:21:57 -0300 tool

[tip:perf/urgent] perf script: Add 'bpf-output' field to usage message

2016-08-09 Thread tip-bot for Brendan Gregg
Commit-ID: bcdc09af3ef30ef071677544ce23a1c8873a2dda Gitweb: http://git.kernel.org/tip/bcdc09af3ef30ef071677544ce23a1c8873a2dda Author: Brendan Gregg AuthorDate: Wed, 3 Aug 2016 02:47:49 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:46:43 -0300 perf script: Ad

[tip:perf/urgent] perf stat: Avoid skew when reading events

2016-08-09 Thread tip-bot for Mark Rutland
Commit-ID: 3df33eff2ba96be4f1535db4f672013d756dc9b1 Gitweb: http://git.kernel.org/tip/3df33eff2ba96be4f1535db4f672013d756dc9b1 Author: Mark Rutland AuthorDate: Tue, 9 Aug 2016 14:04:29 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:48:32 -0300 perf stat: Avoid

[tip:perf/urgent] perf probe: Fix module name matching

2016-08-09 Thread tip-bot for Konstantin Khlebnikov
Commit-ID: cb3f3378cd09aa3fe975b4ad5ee0229dc76315bb Gitweb: http://git.kernel.org/tip/cb3f3378cd09aa3fe975b4ad5ee0229dc76315bb Author: Konstantin Khlebnikov AuthorDate: Fri, 5 Aug 2016 15:22:36 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:48:09 -0300 perf pr

[tip:perf/urgent] perf probe: Adjust map->reloc offset when finding kernel symbol from map

2016-08-09 Thread tip-bot for Masami Hiramatsu
Commit-ID: 8e34189b347d76acf48ce05831176582201b664d Gitweb: http://git.kernel.org/tip/8e34189b347d76acf48ce05831176582201b664d Author: Masami Hiramatsu AuthorDate: Sat, 6 Aug 2016 19:29:48 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:47:43 -0300 perf probe:

[tip:perf/urgent] perf hists: Trim libtraceevent trace_seq buffers

2016-08-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 887fa86d6fd7a45cee2d0f9d5f75026786d61df2 Gitweb: http://git.kernel.org/tip/887fa86d6fd7a45cee2d0f9d5f75026786d61df2 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 5 Aug 2016 12:37:21 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Aug 2016 10:46:56 -0300 perf

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Konstantin Khlebnikov
On Tue, Aug 9, 2016 at 7:05 PM, wrote: > From: Sonny Rao > > This is based on earlier work by Thiago Goncales. It implements a new > per process proc file which summarizes the contents of the smaps file > but doesn't display any addresses. It gives more detailed information > than statm like th

Re: [GIT PULL 00/11] perf/urgent fixes

2016-08-09 Thread Ingo Molnar
:02:38 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-urgent-for-mingo-20160809 > > for you to fetch changes up to 99e608b5954c9e1ebadbf9660b74697d9dfd9f20: > > perf probe ppc64le: F

[PATCH v3] powerpc: Do not make the entire heap executable

2016-08-09 Thread Denys Vlasenko
On 32-bit powerps the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18] .plt NOBITS 0002b00c 01aff8 84 00 WAX 0 0 4 [1

Re: [PATCH v2] powerpc: Do not make the entire heap executable

2016-08-09 Thread Denys Vlasenko
On 08/08/2016 09:07 PM, Kees Cook wrote: On Mon, Aug 8, 2016 at 7:55 AM, Denys Vlasenko wrote: On 32-bit powerps the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 0

Re: [PATCH v5 5/5] lib/dlock-list: Make sibling CPUs share the same linked list

2016-08-09 Thread kbuild test robot
Hi Waiman, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc1 next-20160809] [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/commits/Waiman-Long/vfs-Use-dlock-list-for-SB-s

Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices

2016-08-09 Thread Keith Packard
Jason Cooper writes: > On another thread, regarding the ath9k-rng (actually just the adc > registers), Henrique asked about per-source knobs. My suggestion > follows from that. I'd do that with the source-specific driver instead of attempting to route controls through hwrng. Anything else seems

RE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

2016-08-09 Thread Brown, Aaron F
> -Original Message- > From: Avargil, Raanan > Sent: Tuesday, August 9, 2016 8:11 AM > To: Denis Turischev ; intel-wired- > l...@lists.osuosl.org; Brown, Aaron F ; Kirsher, > Jeffrey T > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [Intel-wired-lan] e1000e: PHY

Re: [PATCH] max17042_battery: fix model download bug.

2016-08-09 Thread Sebastian Reichel
Hi, [adding some people to CC] On Wed, Aug 03, 2016 at 10:03:46AM -0400, Sven Van Asbroeck wrote: > The device's model download function returns the model data as > an array of u32s, which is later compared to the reference > model data. However, since the latter is an array of u16s, > the compar

Re: [PATCH v4] ARM: pxa: fix GPIO double shifts

2016-08-09 Thread Robert Jarzmik
Robert Jarzmik writes: > The commit 9bf448c66d4b ("ARM: pxa: use generic gpio operation instead of > gpio register") from Oct 17, 2011, leads to the following static checker > warning: > arch/arm/mach-pxa/spitz_pm.c:172 spitz_charger_wakeup() > warn: double left shift '!gpio_get_value(SPITZ_G

spin_lock implicit/explicit memory barrier

2016-08-09 Thread Manfred Spraul
Hi Benjamin, Hi Michael, regarding commit 51d7d5205d33 ("powerpc: Add smp_mb() to arch_spin_is_locked()"): For the ipc/sem code, I would like to replace the spin_is_locked() with a smp_load_acquire(), see: http://git.cmpxchg.org/cgit.cgi/linux-mmots.git/tree/ipc/sem.c#n367 http://www.ozlab

Re: [PATCH 5/5] arm64: Add uprobe support

2016-08-09 Thread Oleg Nesterov
On 08/02, Pratyush Anand wrote: > > This patch adds support for uprobe on ARM64 architecture. I know nothing about ARM, so I can't actually review this change. But it looks good to me ;) Just one note, > +int arch_uprobe_pre_xol(struct arch_uprobe *auprobe, struct pt_regs *regs) > +{ > + str

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-09 Thread Bart Van Assche
On 08/09/2016 10:15 AM, Oleg Nesterov wrote: > On 08/08, Bart Van Assche wrote: >> >> No external modules were loaded when I triggered the lockup > > Heh. Could you test the patch below? > > Oleg. > > --- x/kernel/sched/wait.c > +++ x/kernel/sched/wait.c > @@ -283,7 +283,7 @@ void abort_exclusiv

Re: [PATCH v2 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler

2016-08-09 Thread Andrey Smirnov
On Sun, Jul 31, 2016 at 9:03 PM, Nicholas Piggin wrote: > On Thu, 28 Jul 2016 16:07:18 -0700 > Andrey Smirnov wrote: > >> Convert fsl_rstcr_restart into a function to be registered with >> register_reset_handler(). >> >> Signed-off-by: Andrey Smirnov >> --- >> >> Changes since v1: >> >> -

Re: c6x linker issue on linux-next-20160808 + some linker table work

2016-08-09 Thread Mark Salter
On Tue, 2016-08-09 at 20:40 +0200, Luis R. Rodriguez wrote: > On Tue, Aug 09, 2016 at 01:04:00PM -0400, Mark Salter wrote: > > > > On Tue, 2016-08-09 at 06:37 -0700, Guenter Roeck wrote: > > > > > > On 08/09/2016 01:11 AM, Luis R. Rodriguez wrote: > > > > > > > > > > > > Mark, Aurelien, > > > >

Re: [PATCH v5 5/5] lib/dlock-list: Make sibling CPUs share the same linked list

2016-08-09 Thread kbuild test robot
Hi Waiman, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc1 next-20160809] [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/commits/Waiman-Long/vfs-Use-dlock-list-for-SB-s

Re: mwifiex: PCIe8997 chip specific handling

2016-08-09 Thread Brian Norris
Hi, On Fri, Jul 29, 2016 at 04:08:51PM +0530, Amitkumar Karwar wrote: > The patch corrects the revision id register and uses it along with > magic value and chip version registers to download appropriate firmware > image. > > PCIe8997 Z chipset variant code has been removed, as it won't be used i

Re: [PATCH] x86/mm: minor warning message cleanup

2016-08-09 Thread Borislav Petkov
On Tue, Aug 09, 2016 at 01:56:31PM -0400, Prarit Bhargava wrote: > Capitalize R in RIP. > > Signed-off-by: Prarit Bhargava > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x...@kernel.org > Cc: Andy Lutomirski > Cc: Borislav Petkov > Cc: Andrew Morton > Cc: Ard Biesheuve

Re: c6x linker issue on linux-next-20160808 + some linker table work

2016-08-09 Thread Luis R. Rodriguez
On Tue, Aug 09, 2016 at 01:04:00PM -0400, Mark Salter wrote: > On Tue, 2016-08-09 at 06:37 -0700, Guenter Roeck wrote: > > On 08/09/2016 01:11 AM, Luis R. Rodriguez wrote: > > > > > > Mark, Aurelien, > > > > > > I've run into a linker (ld) issue caused by the linker table work I've > > > been wor

Re: [RFC][PATCH 5/3] tracing: Add smi counting to HWLAT

2016-08-09 Thread Steven Rostedt
On Tue, 9 Aug 2016 15:28:57 -0300 Daniel Bristot de Oliveira wrote: > On 08/09/2016 03:05 PM, Steven Rostedt wrote: > > If an arch supports counting of SMIs (like newer intel chips do), then it > > can implement arch_smi_count() to return the number of SMIs that were > > triggered. The hwlat dete

Re: [PATCH v4 3/3] locking/mutex: Ensure forward progress of waiter-spinner

2016-08-09 Thread Waiman Long
On 08/08/2016 01:37 PM, Peter Zijlstra wrote: On Mon, Jul 18, 2016 at 04:39:26PM -0400, Waiman Long wrote: As both an optimistic spinner and a waiter-spinner (a woken task from the wait queue spinning) can be spinning on the lock at the same time, we cannot ensure forward progress for the waiter

Re: [PATCH 0/5] ipc/msg: Sender/receiver optimizations

2016-08-09 Thread Andrew Morton
On Tue, 9 Aug 2016 14:44:26 +0200 Peter Zijlstra wrote: > On Thu, Aug 04, 2016 at 06:44:09PM +0200, Peter Zijlstra wrote: > > On Thu, Jul 28, 2016 at 04:33:34PM -0700, Davidlohr Bueso wrote: > > > Hi, > > > > > > I'm resending Sebastian's sysv msg queue use of wake_qs but updated > > > to the la

drivers/gpu/drm/udl/udl_fb.c:214: error: dereferencing pointer to incomplete type

2016-08-09 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 81abf2525827b29839a78fd55ab0699f033c41a5 commit: 0b6320dfdfea4c68602fa3b8a8d944bf9e442079 drm/virtio: make fbdev support really optional date: 3 weeks ago config: x86_64-randconfig-a0-08100141 (attached as

Re: [RFC][PATCH 0/3] tracing: Add Hardware Latency detector tracer

2016-08-09 Thread Steven Rostedt
On Tue, 9 Aug 2016 13:15:16 -0500 Clark Williams wrote: > On Thu, 4 Aug 2016 11:30:33 -0400 > Steven Rostedt wrote: > > > Note, I'm currently working on adding code to detect NMIs to this as > > well. And perhaps even tracing SMI counters. Just to show what caused > > the latency, as latency is

Re: [RFC][PATCH 5/3] tracing: Add smi counting to HWLAT

2016-08-09 Thread Daniel Bristot de Oliveira
On 08/09/2016 03:05 PM, Steven Rostedt wrote: > If an arch supports counting of SMIs (like newer intel chips do), then it > can implement arch_smi_count() to return the number of SMIs that were > triggered. The hwlat detector will call this function to get the current > number of SMIs, and then aft

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Sonny Rao
On Tue, Aug 9, 2016 at 9:58 AM, Alexey Dobriyan wrote: > > On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: > > From: Sonny Rao > > > > This is based on earlier work by Thiago Goncales. It implements a new > > per process proc file which summarizes the contents of the sm

Re: [PATCH v2 2/3] powerpc: Call chained reset handlers during reset

2016-08-09 Thread Andrey Smirnov
On Sun, Jul 31, 2016 at 8:47 PM, Nicholas Piggin wrote: > On Thu, 28 Jul 2016 16:07:17 -0700 > Andrey Smirnov wrote: > >> Call out to all restart handlers that were added via >> register_restart_handler() API when restarting the machine. >> >> Signed-off-by: Andrey Smirnov >> --- >> >> No change

Re: [PATCH v2] exynos-drm: Fix unsupported GEM memory type error message to be clear

2016-08-09 Thread Krzysztof Kozlowski
On Mon, Aug 08, 2016 at 05:48:20PM -0600, Shuah Khan wrote: > Fix unsupported GEM memory type error message to include the memory type > information. > > Signed-off-by: Shuah Khan > --- > Changes since v1: > -- Comment changed to read clearly > > drivers/gpu/drm/exynos/exynos_drm_fb.c | 6 +++--

Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices

2016-08-09 Thread Jason Cooper
Hi Keith, On Tue, Aug 09, 2016 at 10:58:05AM -0700, Keith Packard wrote: > Jason Cooper writes: > > Perhaps a /dev/hwrng[0-9] per rng? That would lend itself nicely to a > > sysfs interface for per device quality, rate, and enabled attributes. > > e.g. /sys/class/hw_random/hwrng0/{device/,qualit

Re: [PATCH v5 5/5] lib/dlock-list: Make sibling CPUs share the same linked list

2016-08-09 Thread kbuild test robot
Hi Waiman, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc1 next-20160809] [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/commits/Waiman-Long/vfs-Use-dlock-list-for-SB-s

Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-08-09 Thread Chris Metcalf
On 8/9/2016 8:43 AM, Petr Mladek wrote: On Mon 2016-08-08 12:03:38, Chris Metcalf wrote: When doing an nmi backtrace of many cores, most of which are idle, the output is a little overwhelming and very uninformative. Suppress messages for cpus that are idling when they are interrupted and just e

Re: [RFC][PATCH 0/3] tracing: Add Hardware Latency detector tracer

2016-08-09 Thread Clark Williams
On Thu, 4 Aug 2016 11:30:33 -0400 Steven Rostedt wrote: > Note, I'm currently working on adding code to detect NMIs to this as > well. And perhaps even tracing SMI counters. Just to show what caused > the latency, as latency isn't measured by the counters (that I know of). > I like the trace re

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-09 Thread Alexander Duyck
On Tue, Aug 9, 2016 at 5:54 AM, Alexey Kardashevskiy wrote: > On 10/02/16 08:04, Bjorn Helgaas wrote: >> On Wed, Jan 13, 2016 at 12:25:34PM +0100, Hannes Reinecke wrote: >>> PCI-2.2 VPD entries have a maximum size of 32k, but might actually >>> be smaller than that. To figure out the actual size o

Re: [PATCH v9 0/9] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-09 Thread Fu Wei
Hi Tomasz On 9 August 2016 at 19:03, Tomasz Nowicki wrote: > Hi Fu, > > Are you planing to respin the series based on v4.8-rc1 ? My IORT patches > depend on this series since they will end up in the same drivers/acpi/arm64/ > > I think patches are in good shape so we need to enquire who is going

Re: [PATCH 1/9] remoteproc: core: Ensure error message is clear

2016-08-09 Thread Lee Jones
On Tue, 09 Aug 2016, Bjorn Andersson wrote: > On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > > > Before this patch, the dma_alloc_coherent() failure path printed out: > > > > "dma_alloc_coherent err: 16760832" > > > > ... alluding to the Linux error code being 16760832, but seeing as > > Li

Re: [PATCH 2/9] remoteproc: core: Trivial: Improve error checking, spelling and debug prints

2016-08-09 Thread Lee Jones
On Tue, 09 Aug 2016, Bjorn Andersson wrote: > On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > > > Trivial patch to clean up a couple of minor misgivings. > > > > Signed-off-by: Lee Jones > > Acked-by: Bjorn Andersson You can just take it. > Although as I hope to stack this series ontop of

Re: [PATCH 3/9] remoteproc: core: Remove pointless OOM print

2016-08-09 Thread Lee Jones
On Tue, 09 Aug 2016, Bjorn Andersson wrote: > On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > > > These types of error prints are superfluous. The system will > > pick up on OOM issues and let the user know. > > > > Signed-off-by: Lee Jones > > Acked-by: Bjorn Andersson This doesn't rely o

[RFC][PATCH 5/3] tracing: Add smi counting to HWLAT

2016-08-09 Thread Steven Rostedt
If an arch supports counting of SMIs (like newer intel chips do), then it can implement arch_smi_count() to return the number of SMIs that were triggered. The hwlat detector will call this function to get the current number of SMIs, and then after a period, it will read that function again, and if

[v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-09 Thread Chris Zhong
Fix incorrect rk3399 aclk_vio gating bit, it should be 0, not 10. With this modification, the aclk_vio_noc should be put into critical list, since it is required by VOP. And the Type-C DP need these clocks: aclk_hdcp_noc, hclk_hdcp_noc, pclk_hdcp_noc. Mark them as critical to avoid someone close th

Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-08-09 Thread Chris Metcalf
On 8/9/2016 6:37 AM, Lorenzo Pieralisi wrote: On Mon, Aug 08, 2016 at 05:48:28PM +0100, Mark Rutland wrote: Hi, [adding Lorenzo] On Mon, Aug 08, 2016 at 12:03:38PM -0400, Chris Metcalf wrote: When doing an nmi backtrace of many cores, most of which are idle, the output is a little overwhelmin

Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices

2016-08-09 Thread Keith Packard
Jason Cooper writes: > Perhaps a /dev/hwrng[0-9] per rng? That would lend itself nicely to a > sysfs interface for per device quality, rate, and enabled attributes. > e.g. /sys/class/hw_random/hwrng0/{device/,quality,rate,enabled} I was interested in the data being provided for /dev/random; tha

[PATCH] x86/mm: minor warning message cleanup

2016-08-09 Thread Prarit Bhargava
Capitalize R in RIP. Signed-off-by: Prarit Bhargava Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Andrew Morton Cc: Ard Biesheuvel Cc: Tony Luck --- arch/x86/mm/extable.c |2 +- 1 file changed, 1 insertion(+),

RE: [PATCH] megaraid_sas: Fix probing cards without io port

2016-08-09 Thread Kashyap Desai
> > that does not io port resource allocated from BIOS, and kernel can not > > assign one as io port shortage. > > > > The driver is only looking for MEM, and should not fail. > > > It turns out megasas_init_fw() etc are using bar index as mask. > > index 1 is used as mask 1, so that pci_request_s

Re: [PATCH v4 2/3] locking/mutex: Enable optimistic spinning of woken task in wait queue

2016-08-09 Thread Waiman Long
On 08/08/2016 01:29 PM, Peter Zijlstra wrote: On Mon, Jul 18, 2016 at 04:39:25PM -0400, Waiman Long wrote: Ding Tianhong reported a live-lock situation where a constant stream of incoming optimistic spinners blocked a task in the wait list from getting the mutex. This patch attempts to fix this

Re: [PATCH v2] net: dsa: b53: constify b53_io_ops structures

2016-08-09 Thread Florian Fainelli
On 08/09/2016 10:09 AM, Julia Lawall wrote: > The b53_io_ops structures are never modified, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Acked-by: Florian Fainelli -- Florian

Re: [PATCH 8/9] remoteproc: core: Skip resource table integrity checks if there are amendments

2016-08-09 Thread Bjorn Andersson
On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > There is little point wasting CPU cycles completing integrity checking > (i.e. ensuring nothing has changed) on the resource table if we *know* > that it will be changed (by us). In this patch we skip resource table > integrity checks if a platform

Re: [PATCH V3] printk: Create pr_ functions

2016-08-09 Thread Joe Perches
On Tue, 2016-08-09 at 19:01 +0200, Geert Uytterhoeven wrote: > On Fri, Jun 24, 2016 at 5:46 AM, Joe Perches wrote: > > Using functions instead of macros can reduce overall code size > > by eliminating unnecessary "KERN_SOH" prefixes from > > format strings. > This change, commit 874f9c7da9a4acbc1

Re: [PATCH v4 1/3] locking/mutex: Add waiter parameter to mutex_optimistic_spin()

2016-08-09 Thread Waiman Long
On 08/08/2016 01:26 PM, Peter Zijlstra wrote: On Mon, Jul 18, 2016 at 04:39:24PM -0400, Waiman Long wrote: @@ -302,22 +306,42 @@ static inline bool mutex_try_to_acquire(struct mutex *lock) * * Returns true when the lock was taken, otherwise false, indicating * that we need to jump to t

Re: [PATCH 3/9] remoteproc: core: Remove pointless OOM print

2016-08-09 Thread Bjorn Andersson
On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > These types of error prints are superfluous. The system will > pick up on OOM issues and let the user know. > > Signed-off-by: Lee Jones Acked-by: Bjorn Andersson Although, I think we should drop the "mapping" object. We have all the informati

Re: [PATCH 2/2] ARM: imx6: mark GPC node as not populated after irq init to probe pm domain driver

2016-08-09 Thread Rob Herring
On Tue, Aug 09, 2016 at 04:18:52PM +0200, Philipp Zabel wrote: > Since IRQCHIP_DECLARE now flags the GPC node as already populated, the > GPC power domain driver is never probed unless we clear the flag again. > > Fixes: 15cc2ed6dcf9 ("of/irq: Mark initialised interrupt controllers as > populated

Re: [PATCH] of: Delete an unnecessary check before the function call "of_node_put"

2016-08-09 Thread Rob Herring
On Tue, Jul 19, 2016 at 10:52:12PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 19 Jul 2016 22:42:22 +0200 > > The of_node_put() function tests whether its argument is NULL > and then returns immediately. > Thus the test around the call is not needed. > > This issue was de

4.7.0: RCU stall in nf_conntrack

2016-08-09 Thread Johannes Stezenbach
Hi, I just experienced network hangup with 4.7.0, it happened shortly after resume from hibernate: [201988.443552] INFO: rcu_preempt detected stalls on CPUs/tasks: [201988.443556] Tasks blocked on level-0 rcu_node (CPUs 0-3): P14563 [201988.443557] (detected by 3, t=18002 jiffies,

Re: [PATCH 2/9] remoteproc: core: Trivial: Improve error checking, spelling and debug prints

2016-08-09 Thread Bjorn Andersson
On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > Trivial patch to clean up a couple of minor misgivings. > > Signed-off-by: Lee Jones Acked-by: Bjorn Andersson Although as I hope to stack this series ontop of the auto-boot there will be some minor conflicts here. Regards, Bjorn > --- > dri

Re: [Patch v3 03/11] driver/edac/mpc85xx_edac: Drop setting/clearing RFXE bit in HID1

2016-08-09 Thread york sun
On 08/08/2016 11:56 PM, Borislav Petkov wrote: > On Tue, Aug 09, 2016 at 05:06:39AM +, york sun wrote: >> It is uncorrectable. DDR controller can only report the error. I don't >> believe EDAC driver can do more. For the same reason I said we can leave >> RXFE as is, even for e500v1 case (with

[RFC] dm-crypt: add ability to use keys from the kernel key retention service

2016-08-09 Thread Andrey Ryabinin
The kernel key service is a generic way to store keys for the use of other subsystems. Currently there is no way to use kernel keys in dm-crypt. This patch aims to fix that. Instead of key userspace may pass a key description with preceding ':'. So message that constructs encryption mapping now loo

Re: [PATCH] net: dsa: b53: constify xfrm_replay structures

2016-08-09 Thread Julia Lawall
On Tue, 9 Aug 2016, Florian Fainelli wrote: > On 08/09/2016 09:58 AM, Julia Lawall wrote: > > The xfrm_replay structures are never modified, so declare them as const. > > You mean b53_io_ops here, right? Oops. I sent a v2. julia > Other than that LTGM, but this will > have to wait for "net"n

Re: [PATCH 1/9] remoteproc: core: Ensure error message is clear

2016-08-09 Thread Bjorn Andersson
On Thu 04 Aug 02:21 PDT 2016, Lee Jones wrote: > Before this patch, the dma_alloc_coherent() failure path printed out: > > "dma_alloc_coherent err: 16760832" > > ... alluding to the Linux error code being 16760832, but seeing as > Linux error codes are all negative, this looks like a signed/un

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