Re: [RFC v5 00/38] powerpc: Memory Protection Keys

2017-07-12 Thread Michal Hocko
On Tue 11-07-17 12:32:57, Ram Pai wrote: > On Tue, Jul 11, 2017 at 04:52:46PM +0200, Michal Hocko wrote: > > On Wed 05-07-17 14:21:37, Ram Pai wrote: > > > Memory protection keys enable applications to protect its > > > address space from inadvertent access or corruption from > > > itself. > > > >

Re: [RFC v5 00/38] powerpc: Memory Protection Keys

2017-07-12 Thread Michal Hocko
On Wed 12-07-17 09:23:37, Michal Hocko wrote: > On Tue 11-07-17 12:32:57, Ram Pai wrote: [...] > > Ideally the MMU looks at the PTE for keys, in order to enforce > > protection. This is the case with x86 and is the case with power9 Radix > > page table. Hence the keys have to be programmed into the

[PATCH 1/2] README: revise the top level readme texts

2017-07-12 Thread Martin Kepplinger
This improves the top level README situation a little: Instead of starting with historical information like "This file was moved to..." we add a short introductory description and point the reader to the documention in a direct way, avoiding phrases like "Please notice that there are...". Signed-o

[PATCH 2/2] Documentation: admin-guide: remove redundant first paragraph of README.rst

2017-07-12 Thread Martin Kepplinger
"These are the release notes for Linux version 4." is what the header above says. There's no real need to say that again. "Read them carefully," Why would we advise people to read one file carefully but other file not? "they tell you what this is all about, explain how to install the kernel, and

[PATCH] batman-adv: Convert batman-adv.txt to reStructuredText

2017-07-12 Thread Sven Eckelmann
Converting the freeform text to parsable reStructuredText, allows the integration in the sphinx based documentation system of the kernel. It will therefore be accessible as hypertext under https://www.kernel.org/doc/html/latest/ Signed-off-by: Sven Eckelmann --- Documentation/networking/00-INDEX

Re: [v3 2/6] mm, oom: cgroup-aware OOM killer

2017-07-12 Thread Roman Gushchin
On Tue, Jul 11, 2017 at 01:56:30PM -0700, David Rientjes wrote: > On Tue, 11 Jul 2017, Roman Gushchin wrote: > > > > Yes, the original motivation was to limit killing to a single process, if > > > possible. To do that, we kill the process with the largest rss to free > > > the most memory and r

[PATCH 2/2] kernel-doc-nano-HOWTO.txt: standardize document format

2017-07-12 Thread Mauro Carvalho Chehab
Each text file under Documentation follows a different format. Some doesn't even have titles! Change its representation to follow the adopted standard, using ReST markups for it to be parseable by Sphinx: - adjust titles; - use :Author: for authorship; - mark literal blocks and adjust identation;

[PATCH 1/2] tee.txt: standardize document format

2017-07-12 Thread Mauro Carvalho Chehab
Each text file under Documentation follows a different format. Some doesn't even have titles! Change its representation to follow the adopted standard, using ReST markups for it to be parseable by Sphinx: - adjust identation of titles; - mark ascii artwork as a literal block; - adjust references.

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-12 Thread Steven Rostedt
On Tue, 11 Jul 2017 22:39:24 +0800 Alex Shi wrote: > Any comments for this little change? It's passed on 0day testing. I think the problem was that this was a third patch after two documentation patches. Where, people put documentation review at the bottom of their priority list. This should ha

[PATCH net 0/2] minor net kernel-doc fixes

2017-07-12 Thread Stephen Hemminger
Fix a couple of small errors in kernel-doc for networking Stephen Hemminger (2): socket: add documentation for missing elements datagram: fix kernel-doc comments include/net/sock.h | 3 +++ net/core/datagram.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) -- 2.11.0 -- To u

[PATCH net 2/2] datagram: fix kernel-doc comments

2017-07-12 Thread Stephen Hemminger
An underscore in the kernel-doc comment section has special meaning and mis-use generates an errors. ./net/core/datagram.c:207: ERROR: Unknown target name: "msg". ./net/core/datagram.c:379: ERROR: Unknown target name: "msg". ./net/core/datagram.c:816: ERROR: Unknown target name: "t". Signed-off-b

[PATCH net 1/2] socket: add documentation for missing elements

2017-07-12 Thread Stephen Hemminger
Fill in missing kernel-doc for missing elements in struct sock. Signed-off-by: Stephen Hemminger --- include/net/sock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/net/sock.h b/include/net/sock.h index 8c85791fc196..f69c8c2782df 100644 --- a/include/net/sock.h +++ b/include/ne

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-12 Thread Peter Zijlstra
On Wed, Jul 12, 2017 at 10:14:49AM -0400, Steven Rostedt wrote: > On Tue, 11 Jul 2017 22:39:24 +0800 > Alex Shi wrote: > > > Any comments for this little change? It's passed on 0day testing. > > I think the problem was that this was a third patch after two > documentation patches. Where, people

Re: [v3 2/6] mm, oom: cgroup-aware OOM killer

2017-07-12 Thread David Rientjes
On Wed, 12 Jul 2017, Roman Gushchin wrote: > > It's a no-op if nobody sets up priorities or the system-wide sysctl is > > disabled. Presumably, as in our model, the Activity Manager sets the > > sysctl and is responsible for configuring the priorities if present. All > > memcgs at the sibling

Re: [PATCH net 0/2] minor net kernel-doc fixes

2017-07-12 Thread David Miller
From: Stephen Hemminger Date: Wed, 12 Jul 2017 09:29:05 -0700 > Fix a couple of small errors in kernel-doc for networking Series applied, thanks Stephen. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo i

Re: [RFC v5 36/38] selftest: PowerPC specific test updates to memory protection keys

2017-07-12 Thread Ram Pai
On Tue, Jul 11, 2017 at 10:33:09AM -0700, Dave Hansen wrote: > On 07/05/2017 02:22 PM, Ram Pai wrote: > > Abstracted out the arch specific code into the header file, and > > added powerpc specific changes. > > > > a) added 4k-backed hpte, memory allocator, powerpc specific. > > b) added three test

Re: [RFC v5 11/38] mm: introduce an additional vma bit for powerpc pkey

2017-07-12 Thread Ram Pai
On Tue, Jul 11, 2017 at 11:10:46AM -0700, Dave Hansen wrote: > On 07/05/2017 02:21 PM, Ram Pai wrote: > > Currently there are only 4bits in the vma flags to support 16 keys > > on x86. powerpc supports 32 keys, which needs 5bits. This patch > > introduces an addition bit in the vma flags. > > > >

Re: [RFC v5 11/38] mm: introduce an additional vma bit for powerpc pkey

2017-07-12 Thread Benjamin Herrenschmidt
On Wed, 2017-07-12 at 15:23 -0700, Ram Pai wrote: > Just copying over makes checkpatch.pl unhappy. It exceeds 80 columns. Which is fine to ignore in a case like that where you remain consistent with the existing code. Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" i

Re: [RFC v5 00/38] powerpc: Memory Protection Keys

2017-07-12 Thread Benjamin Herrenschmidt
On Wed, 2017-07-12 at 09:23 +0200, Michal Hocko wrote: > > > > > Ideally the MMU looks at the PTE for keys, in order to enforce > > protection. This is the case with x86 and is the case with power9 Radix > > page table. Hence the keys have to be programmed into the PTE. > > But x86 doesn't updat

Re: [PATCH 1/2] memory-barriers.txt: Fix broken link to atomic_ops.txt

2017-07-12 Thread Jonathan Corbet
On Fri, 7 Jul 2017 03:21:17 +0900 SeongJae Park wrote: > Few obsolete links to atomic_ops.txt exist in memory-barriers.txt though > the file has moved to core-api/atomic_ops.rst. This commit fixes the > obsolete links. Both have been applied, thanks. jon -- To unsubscribe from this list: send

[RFC V2 3/6] cpufreq: governor: Drop min_sampling_rate

2017-07-12 Thread Viresh Kumar
The cpufreq core and governors aren't supposed to set a limit on how fast we want to try changing the frequency. This is currently done for the legacy governors with help of min_sampling_rate. At worst, we may end up setting the sampling rate to a value lower than the rate at which frequency can b

[RFC V2 0/6] cpufreq: transition-latency cleanups

2017-07-12 Thread Viresh Kumar
Hi Rafael, Here is the V2 and sending it as RFC this time. This series tries to cleanup the code around transition-latency and its users. Some of the old legacy code, which may not make much sense now, is dropped as well. Some code consolidation also done across governors. Based of: pm/linux-n

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-12 Thread Alex Shi
On 07/12/2017 10:14 PM, Steven Rostedt wrote: > On Tue, 11 Jul 2017 22:39:24 +0800 > Alex Shi wrote: > >> Any comments for this little change? It's passed on 0day testing. > > I think the problem was that this was a third patch after two > documentation patches. Where, people put documentation

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-12 Thread Alex Shi
On 07/13/2017 12:35 AM, Peter Zijlstra wrote: > On Wed, Jul 12, 2017 at 10:14:49AM -0400, Steven Rostedt wrote: >> On Tue, 11 Jul 2017 22:39:24 +0800 >> Alex Shi wrote: >> >>> Any comments for this little change? It's passed on 0day testing. >> >> I think the problem was that this was a third pa

Re: [RFC v5 00/38] powerpc: Memory Protection Keys

2017-07-12 Thread Michal Hocko
On Thu 13-07-17 08:53:52, Benjamin Herrenschmidt wrote: > On Wed, 2017-07-12 at 09:23 +0200, Michal Hocko wrote: > > > > > > > > Ideally the MMU looks at the PTE for keys, in order to enforce > > > protection. This is the case with x86 and is the case with power9 Radix > > > page table. Hence the

Re: [PATCH v2 2/2] docs: disable KASLR when debugging kernel

2017-07-12 Thread Jan Kiszka
On 2017-07-07 10:51, Zhouyi Zhou wrote: > commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR > by default on x86. While KASLR will confuse gdb which resolve kernel > symbol address from symbol table of vmlinux. We should turn off KASLR for > kernel debugging. > > Signed-off-by: Z