[PATCH 08/12] kexec: don't invoke OOM-killer for control page allocation

2016-04-28 Thread Russell King
If we are unable to find a suitable page when allocating the control page, do not invoke the OOM-killer: killing processes probably isn't going to help. Signed-off-by: Russell King --- include/linux/kexec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 04/12] ARM: provide arm_has_idmap_alias() helper

2016-04-28 Thread Russell King
Provide a helper to indicate whether we need to perform special handling for boot identity mapping aliases or not. Signed-off-by: Russell King --- arch/arm/include/asm/memory.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/memory.h

[PATCH 05/12] ARM: kdump: advertise boot aliased crash kernel resource

2016-04-28 Thread Russell King
Advertise a resource which describes where the crash kernel is located in the boot view of RAM. This allows kexec-tools to have this vital information. Signed-off-by: Russell King --- arch/arm/kernel/setup.c | 16 1 file changed, 16 insertions(+)

[PATCH 10/12] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t

2016-04-28 Thread Russell King
On PAE systems (eg, ARM LPAE) the vmcore note may be located above 4GB physical on 32-bit architectures, so we need a wider type than "unsigned long" here. Arrange for paddr_vmcoreinfo_note() to return a phys_addr_t, thereby allowing it to be located above 4GB. This makes no difference for

[PATCH 11/12] kexec: allow architectures to override boot mapping

2016-04-28 Thread Russell King
kexec physical addresses are the boot-time view of the system. For certain ARM systems (such as Keystone 2), the boot view of the system does not match the kernel's view of the system: the boot view uses a special alias in the lower 4GB of the physical address space. To cater for these kinds of

[PATCH 09/12] kexec: ensure user memory sizes do not wrap

2016-04-28 Thread Russell King
Ensure that user memory sizes do not wrap around when validating the user input, which can lead to the following input validation working incorrectly. Signed-off-by: Russell King --- kernel/kexec_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 02/12] ARM: provide improved virt_to_idmap() functionality

2016-04-28 Thread Russell King
For kexec, we need more functionality from the IDMAP system. We need to be able to convert physical addresses to their identity mappped versions as well as virtual addresses. Convert the existing arch_virt_to_idmap() to deal with physical addresses instead. Acked-by: Santosh Shilimkar

[PATCH 01/12] ARM: kexec: fix crashkernel= handling

2016-04-28 Thread Russell King
When the kernel crashkernel parameter is specified with just a size, we are supposed to allocate a region from RAM to store the crashkernel. However, ARM merely reserves physical address zero with no checking that there is even RAM there. Fix this by lifting similar code from x86, importing it to

[PATCH 07/12] ARM: keystone: dts: add psci command definition

2016-04-28 Thread Russell King
From: Vitaly Andrianov This commit adds definition for cpu_on, cpu_off and cpu_suspend commands. These definitions must match the corresponding PSCI definitions in boot monitor. Having those command and corresponding PSCI support in boot monitor allows run time CPU hot plugin.

Re: [PATCH 40/41] Documentation: x86: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:37:06 +0100 Eric Engestrom wrote: > Documentation/x86/intel_mpx.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body

Re: [PATCH] Changed the path from to the incorrect drivers/char/sysrq.c to drivers/tty/sysrq.c

2016-04-28 Thread Jonathan Corbet
On Thu, 28 Apr 2016 10:15:24 +0200 René Nyffenegger wrote: > You're right, the lines were wrapped at character 78. I have fixed that > and sent the patch to myself. The attached patch should work now. The patch applies, but the above text is not a proper commit message,

Re: [PATCH 32/41] Documentation: pps: fix spelling mistake

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:36:58 +0100 Eric Engestrom wrote: > Documentation/pps/pps.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a

Re: [PATCH 39/41] Documentation: vm: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:37:05 +0100 Eric Engestrom wrote: > Documentation/vm/transhuge.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body

Re: [PATCH 39/41] Documentation: vm: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Thu, 28 Apr 2016 07:31:43 -0600 Jonathan Corbet wrote: > On Mon, 25 Apr 2016 07:37:05 +0100 > Eric Engestrom wrote: > > > Documentation/vm/transhuge.txt | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > Applied to the docs tree,

Re: [PATCH 41/41] Documentation: xillybus: fix spelling mistake

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:37:07 +0100 Eric Engestrom wrote: > Documentation/xillybus.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a

Re: [PATCH v2] Documentation: fix common spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Tue, 26 Apr 2016 16:41:21 -0700 Kees Cook wrote: > This fixes several spelling mistakes in the Documentation/ tree, which > are caught by checkpatch.pl's spell checking. I've applied this to the docs tree, thanks. jon -- To unsubscribe from this list: send the line

Re: [PATCH] Documentation:Update Documentation/zh_CN/arm64/booting.txt

2016-04-28 Thread Fu Wei
Hi Jonathan, On 04/28/2016 09:16 PM, Jonathan Corbet wrote: On Thu, 21 Apr 2016 17:42:28 +0100 Will Deacon wrote: -C: 1926e54f115725a9248d0c4c65c22acaf94de4c4 +C: 55f058e7574c3615dea4615573a19bdb258696c6 Just curious, but what are these SHAs supposed to

Re: [PATCH 29/41] Documentation: lzo: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:36:55 +0100 Eric Engestrom wrote: > Documentation/lzo.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a

Re: [PATCH 27/41] Documentation: laptops: fix spelling mistake

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:36:53 +0100 Eric Engestrom wrote: > -laptops, being called "Toshiba HDD Protection - Shock Sensor" officialy, > +laptops, being called "Toshiba HDD Protection - Shock Sensor" officially, Applied to the docs tree, thanks. jon -- To unsubscribe from this

Re: [PATCH] Documentation:Update Documentation/zh_CN/arm64/booting.txt

2016-04-28 Thread Fu Wei
Hi Will On 04/22/2016 12:42 AM, Will Deacon wrote: On Thu, Apr 21, 2016 at 09:45:40PM +0800, w...@redhat.com wrote: From: Fu Wei This is a update of Chinese documentation: Documentation/zh_CN/arm64/booting.txt It is based on the modifications of

Re: [PATCH v2] hrtimers: doc cleanup

2016-04-28 Thread Jonathan Corbet
On Thu, 21 Apr 2016 21:39:15 +0800 Cao jin wrote: > It has: > a tense correction(led->leads); > a typo(unevitably->inevitably); I've applied this to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a

Re: [PATCH 34/41] Documentation: robust-futexes: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:37:00 +0100 Eric Engestrom wrote: > Documentation/robust-futexes.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the

Re: [PATCH 35/41] Documentation: scsi: fix spelling mistakes

2016-04-28 Thread Jonathan Corbet
On Mon, 25 Apr 2016 07:37:01 +0100 Eric Engestrom wrote: > Documentation/scsi/ChangeLog.megaraid_sas | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) Applied to the docs tree (after fixing trailing whitespace errors - the new and the old ones). jon

Re: [PATCH v7 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-28 Thread Wolfram Sang
On Wed, Apr 20, 2016 at 05:18:02PM +0200, Peter Rosin wrote: > The root i2c adapter lock is then no longer held by the i2c mux during > accesses behind the i2c gate, and such accesses need to take that lock > just like any other ordinary i2c accesses do. > > So, declare the i2c gate mux-locked,

Re: [PATCH v7 16/24] i2c: allow adapter drivers to override the adapter locking

2016-04-28 Thread Peter Rosin
On 2016-04-28 22:50, Wolfram Sang wrote: > On Wed, Apr 20, 2016 at 05:17:56PM +0200, Peter Rosin wrote: >> Add i2c_lock_bus() and i2c_unlock_bus(), which call the new lock_bus and >> unlock_bus ops in the adapter. These funcs/ops take an additional flags >> argument that indicates for what

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-28 Thread Arnd Bergmann
On Thursday 28 April 2016 22:19:14 Yury Norov wrote: > > Yes, we need. Otherwise we have circular dependency like this: > arch/arm64/kernel/sys_ilp32.c:60:0: warning: "__SC_WRAP" redefined > #define __SC_WRAP(nr, sym) [nr] = compat_##sym, > ^ > In file included from

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-28 Thread Yury Norov
On Thu, Apr 28, 2016 at 10:43:59PM +0200, Arnd Bergmann wrote: > On Thursday 28 April 2016 22:19:14 Yury Norov wrote: > > > > Yes, we need. Otherwise we have circular dependency like this: > > arch/arm64/kernel/sys_ilp32.c:60:0: warning: "__SC_WRAP" redefined > > #define __SC_WRAP(nr, sym) [nr]

Re: [PATCH 00/12] Fixing TI Keystone2 kexec

2016-04-28 Thread Simon Horman
Hi Russell, On Thu, Apr 28, 2016 at 10:26:44AM +0100, Russell King - ARM Linux wrote: > These changes are required for TI Keystone2 kexec to be functional. TI > Keystone2 has the run-time view of physical memory above 4GiB, but with > a boot time alias below 4GiB which can only be used during

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-28 Thread Arnd Bergmann
On Friday 29 April 2016 01:21:37 Yury Norov wrote: > index 1458ad7..410d817 100644 > --- a/arch/arm64/kernel/sys_ilp32.c > +++ b/arch/arm64/kernel/sys_ilp32.c > @@ -17,6 +17,8 @@ > * along with this program. If not, see > * . > */ > > +#define

Re: [PATCH v7 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-28 Thread Peter Rosin
On 2016-04-28 23:47, Wolfram Sang wrote: > On Wed, Apr 20, 2016 at 05:18:02PM +0200, Peter Rosin wrote: >> The root i2c adapter lock is then no longer held by the i2c mux during >> accesses behind the i2c gate, and such accesses need to take that lock >> just like any other ordinary i2c accesses

[PATCH nf-next] netfilter: allow logging from non-init namespaces

2016-04-28 Thread Michal Kubecek
Commit 69b34fb996b2 ("netfilter: xt_LOG: add net namespace support for xt_LOG") disabled logging packets using the LOG target from non-init namespaces. The motivation was to prevent containers from flooding kernel log of the host. The plan was to keep it that way until syslog namespace

Re: [PATCH] Changed the path from to the incorrect drivers/char/sysrq.c to drivers/tty/sysrq.c

2016-04-28 Thread René Nyffenegger
Jonathan You're right, the lines were wrapped at character 78. I have fixed that and sent the patch to myself. The attached patch should work now. René Signed-off-by: René Nyffenegger --- Documentation/sysrq.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 39/41] Documentation: vm: fix spelling mistakes

2016-04-28 Thread Andrew Morton
On Thu, 28 Apr 2016 07:46:07 -0600 Jonathan Corbet wrote: > On Thu, 28 Apr 2016 07:31:43 -0600 > Jonathan Corbet wrote: > > > On Mon, 25 Apr 2016 07:37:05 +0100 > > Eric Engestrom wrote: > > > > > Documentation/vm/transhuge.txt | 6 +++--- >

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-28 Thread Yury Norov
On Tue, Apr 26, 2016 at 05:57:01PM +0100, Catalin Marinas wrote: > On Wed, Apr 06, 2016 at 01:08:42AM +0300, Yury Norov wrote: > > +/* Using non-compat syscalls where necessary */ > > +#define compat_sys_fadvise64_64sys_fadvise64_64 > > +#define compat_sys_fallocate sys_fallocate