[PATCH v9 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v9 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
v8->v9: rearrange the patch. it won't fix typo which original exists. those should be fixed in other patch, which I'll post later. v7->v8: fix "a SMP kernel" to "an SMP kernel" and replace "\" with "/" v6->v7: fix typo v5->v6: replace "we" with "you" v4->v5: move change log to

[PATCH v9 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang ---

Re: [PATCH v8 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Joe Perches
On Thu, 2016-08-18 at 10:31 +0800, Zhou Wenjian wrote: > nr_cpus can help to save memory. So we should remind user of it. trivia: > diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt [] > @@ -390,9 +390,11 @@ Notes on loading the dump-capture kernel: >  * Boot parameter

[PATCH v8 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v8 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
v7->v8: fix "a SMP kernel" to "an SMP kernel" and replace "\" with "/" v6->v7: fix typo v5->v6: replace "we" with "you" v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus

[PATCH v8 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang ---

Re: [PATCH v7 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Xunlei Pang
On 2016/08/18 at 09:50, Zhou Wenjian wrote: > multi-cpu support is useful to improve the performance of kdump in > some cases. So add the description of enable multi-cpu support in > dump-capture kernel. > > Signed-off-by: Zhou Wenjian > Acked-by: Baoquan He

[PATCH v7 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
v6->v7: fix typo v5->v6: replace "we" with "you" v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Documentation: kdump: remind user of nr_cpus

[PATCH v7 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 2 +++- 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump.txt

[PATCH v7 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 7 +++

[PATCH v3 3/3] Documentation: livepatch: add section about arch-specific code

2016-08-17 Thread Jessica Yu
Document usage of arch-specific elf sections in livepatch as well as implementation of arch-specific code. Signed-off-by: Jessica Yu --- Documentation/livepatch/module-elf-format.txt | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git

[PATCH v3 0/3] Fix issue with alternatives/paravirt patches

2016-08-17 Thread Jessica Yu
Hi, A few months ago, Chris Arges reported a bug involving alternatives/paravirt patching that was discussed here [1] and here [2]. To briefly summarize the bug, patch modules that contained .altinstructions or .parainstructions sections would break because these alternative/paravirt patches

[PATCH v3 2/3] livepatch/x86: apply alternatives and paravirt patches after relocations

2016-08-17 Thread Jessica Yu
Implement arch_klp_init_object_loaded() for x86, which applies alternatives/paravirt patches. This fixes the order in which relocations and alternatives/paravirt patches are applied. Previously, if a patch module had alternatives or paravirt patches, these were applied first by the module loader

[PATCH v3 1/3] livepatch: use arch_klp_init_object_loaded() to finish arch-specific tasks

2016-08-17 Thread Jessica Yu
Introduce arch_klp_init_object_loaded() to complete any additional arch-specific tasks during patching. Architecture code may override this function. Signed-off-by: Jessica Yu --- include/linux/livepatch.h | 3 +++ kernel/livepatch/core.c | 16 +--- 2 files

Re: [PATCH 06/10] docs: sphinxify kasan.txt and move to dev-tools

2016-08-17 Thread Andrey Ryabinin
On 08/09/2016 02:34 AM, Jonathan Corbet wrote: > No textual changes beyond formatting. > > Cc: Andrey Ryabinin > Cc: Alexander Potapenko > Cc: Dmitry Vyukov > Signed-off-by: Jonathan Corbet > --- >

[PATCH] crypto: doc - fix documentation for bulk registration functions

2016-08-17 Thread Eric Biggers
Update the documentation for crypto_register_algs() and crypto_unregister_algs() to match the actual behavior. Signed-off-by: Eric Biggers --- Documentation/DocBook/crypto-API.tmpl | 38 --- 1 file changed, 26 insertions(+), 12 deletions(-)

[PATCH v3 0/3] USB Audio Gadget refactoring

2016-08-17 Thread Ruslan Bilovol
I came to this patch series when wanted to do two things: - use UAC1 as virtual ALSA sound card on gadget side, just like UAC2 is used so it's possible to do rate resampling - have both playback/capture support in UAC1 Since I wanted to have same behavior for both UAC1/UAC2, obviously

[PATCH v3 3/3] usb: gadget: add f_uac1 variant based on new u_audio api

2016-08-17 Thread Ruslan Bilovol
This patch adds new function f_uac1_newapi that uses recently created u_audio api. This makes f_uac1_newapi implementation much simpler by reusing existing u_audio core utilities. This also drops previous f_uac1 approach (write audio samples directly to existing ALSA sound card) and moves to more

[PATCH v3 1/3] usb: gadget: f_uac2: remove platform driver/device creation

2016-08-17 Thread Ruslan Bilovol
Simplify f_uac2 by removing platform driver/device creation; use composite's usb_gadget device as parent for sound card and for debug prints. This removes extra layer of code without any functional change. Signed-off-by: Ruslan Bilovol ---

[PATCH v3 2/3] usb: gadget: f_uac2: split out audio core

2016-08-17 Thread Ruslan Bilovol
Abstract the peripheral side ALSA sound card code from the f_uac2 function into a component that can be called by various functions, so the various flavors can be split apart and selectively reused. Visible changes: - add uac_params structure to pass audio paramteres for g_audio_setup - make

Re: [PATCH 07/10] docs: sphinxify ubsan.txt and move it to dev-tools

2016-08-17 Thread Andrey Ryabinin
On 08/09/2016 02:34 AM, Jonathan Corbet wrote: > Cc: Andrey Ryabinin > Signed-off-by: Jonathan Corbet > --- Acked-by: Andrey Ryabinin -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a

[PATCH] Fix /proc/stat freezes (was [PATCH v15] "task_isolation" mode)

2016-08-17 Thread Christoph Lameter
On Tue, 16 Aug 2016, Chris Metcalf wrote: > - Dropped Christoph Lameter's patch to avoid scheduling the > clocksource watchdog on nohz cores; the recommendation is to just > boot with tsc=reliable for NOHZ in any case, if necessary. We also said that there should be a WARN_ON if tsc=reliable

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-17 Thread Sonny Rao
On Wed, Aug 17, 2016 at 6:03 AM, Michal Hocko wrote: > On Wed 17-08-16 11:31:25, Jann Horn wrote: >> On Wed, Aug 17, 2016 at 10:22:00AM +0200, Michal Hocko wrote: >> > On Tue 16-08-16 12:46:51, Robert Foss wrote: >> > [...] >> > > $ /usr/bin/time -v -p zsh -c "repeat 25 { awk

Re: [PATCH] mm, kasan: Update kasan docs to indicate arm64 support

2016-08-17 Thread Andrey Ryabinin
On 08/16/2016 07:30 PM, Laura Abbott wrote: > KASAN has been supported on arm64 since 39d114ddc682 ("arm64: add KASAN > support"). Update the docs to indicate this. > > Signed-off-by: Laura Abbott Acked-by: Andrey Ryabinin > --- >

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Dr. Philipp Tomsich
> On 17 Aug 2016, at 16:29, Catalin Marinas wrote: > > On Wed, Aug 17, 2016 at 02:54:59PM +0200, Dr. Philipp Tomsich wrote: >> On 17 Aug 2016, at 14:48, Yury Norov wrote: >>> On Wed, Aug 17, 2016 at 02:28:50PM +0200, Alexander Graf wrote:

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Catalin Marinas
On Wed, Aug 17, 2016 at 02:54:59PM +0200, Dr. Philipp Tomsich wrote: > On 17 Aug 2016, at 14:48, Yury Norov wrote: > > On Wed, Aug 17, 2016 at 02:28:50PM +0200, Alexander Graf wrote: > >> On 17 Aug 2016, at 13:46, Yury Norov wrote: > >>> This

Re: [PATCH 17/18] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-08-17 Thread Andreas Schwab
On Aug 17 2016, Yury Norov wrote: > diff --git a/arch/arm64/kernel/vdso/gettimeofday.S > b/arch/arm64/kernel/vdso/gettimeofday.S > index e00b467..143b39e 100644 > --- a/arch/arm64/kernel/vdso/gettimeofday.S > +++ b/arch/arm64/kernel/vdso/gettimeofday.S > @@ -25,6

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Dr. Philipp Tomsich
> On 17 Aug 2016, at 14:48, Yury Norov wrote: > > On Wed, Aug 17, 2016 at 02:28:50PM +0200, Alexander Graf wrote: >> >>> On 17 Aug 2016, at 13:46, Yury Norov wrote: >>> >>> This series enables aarch64 with ilp32 mode, and as supporting

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-17 Thread Michal Hocko
On Wed 17-08-16 11:31:25, Jann Horn wrote: > On Wed, Aug 17, 2016 at 10:22:00AM +0200, Michal Hocko wrote: > > On Tue 16-08-16 12:46:51, Robert Foss wrote: > > [...] > > > $ /usr/bin/time -v -p zsh -c "repeat 25 { awk '/^Rss/{rss+=\$2} > > > /^Pss/{pss+=\$2} END {printf \"rss:%d pss:%d\n\", rss,

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Yury Norov
On Wed, Aug 17, 2016 at 02:28:50PM +0200, Alexander Graf wrote: > > > On 17 Aug 2016, at 13:46, Yury Norov wrote: > > > > This series enables aarch64 with ilp32 mode, and as supporting work, > > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > >

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Alexander Graf
> On 17 Aug 2016, at 13:46, Yury Norov wrote: > > This series enables aarch64 with ilp32 mode, and as supporting work, > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > existing 32-bit architectures but disabled for new arches (so 64-bit > off_t

[PATCH 18/18] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-08-17 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner

[PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-08-17 Thread Yury Norov
Here new aarch32 ptrace syscall handler is introsuced to avoid run-time detection of the task type. Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/ptrace.c| 91 ++-

[PATCH 13/18] arm64: signal: share lp64 signal routines to ilp32

2016-08-17 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 93 +- 2 files changed, 92 insertions(+), 34

[PATCH 02/18] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-08-17 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 57 +++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git

[PATCH 17/18] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-08-17 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports next symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres; What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in

[PATCH 09/18] arm64: introduce binfmt_elf32.c

2016-08-17 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig

[PATCH 01/18] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-08-17 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for 64-bit and new 32-bit architectures. All existing 32-bit architectures enable it

[PATCH 07/18] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-08-17 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong

[PATCH 03/18] arm64: ensure the kernel is compiled for LP64

2016-08-17 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski

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

2016-08-17 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov

[PATCH 06/18] thread: move thread bits accessors to separated file

2016-08-17 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added by Al Viro in patch [edd63a27] "set_restore_sigmask() is never called without SIGPENDING (and never should be)"

[PATCH 11/18] arm64: ilp32: share aarch32 syscall handlers

2016-08-17 Thread Yury Norov
off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S| 65 --

[PATCH 04/18] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-17 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, ARM64_ILP32 -

[RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Yury Norov
This series enables aarch64 with ilp32 mode, and as supporting work, introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t is is used by new userspace). This version is based on kernel v4.8-rc2. It works

[PATCH 14/18] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-08-17 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 28 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 15/18] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-08-17 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski

[PATCH 08/18] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-08-17 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY is changed here

[PATCH 10/18] arm64: ilp32: introduce binfmt_ilp32.c

2016-08-17 Thread Yury Norov
binfmt_ilp32.c is needed to handle ILP32 binaries Signed-off-by: Yury Norov --- arch/arm64/include/asm/elf.h | 6 +++ arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 96 3 files changed, 103

[PATCH 05/18] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-08-17 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski

Re: [PATCH 0/7] doc-rst: sphinx sub-folders & parseheaders directive

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 7:44 AM, Markus Heiser wrote: - Along those lines, is parse-header the right name for this thing? "Parsing" isn't necessarily the goal of somebody who uses this directive, right? They want to extract documentation information.

[PATCH 4/4] zswap: Update document with sharing of duplicate pages feature

2016-08-17 Thread Srividya Desireddy
From: Srividya Desireddy Date: Wed, 17 Aug 2016 14:34:41 +0530 Subject: [PATCH 4/4] zswap: Update document with sharing of duplicate pages feature Updated zswap document with details on the sharing of duplicate swap pages feature. The usage of zswap.same_page_sharing

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-17 Thread Jann Horn
On Wed, Aug 17, 2016 at 10:22:00AM +0200, Michal Hocko wrote: > On Tue 16-08-16 12:46:51, Robert Foss wrote: > [...] > > $ /usr/bin/time -v -p zsh -c "repeat 25 { awk '/^Rss/{rss+=\$2} > > /^Pss/{pss+=\$2} END {printf \"rss:%d pss:%d\n\", rss, pss}\' > > /proc/5025/smaps }" > > [...] > >

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-17 Thread Michal Hocko
On Tue 16-08-16 12:46:51, Robert Foss wrote: [...] > $ /usr/bin/time -v -p zsh -c "repeat 25 { awk '/^Rss/{rss+=\$2} > /^Pss/{pss+=\$2} END {printf \"rss:%d pss:%d\n\", rss, pss}\' > /proc/5025/smaps }" > [...] > Command being timed: "zsh -c repeat 25 { awk '/^Rss/{rss+=$2} > /^Pss/{pss+=$2}

Re: [PATCH 0/7] doc-rst: sphinx sub-folders & parseheaders directive

2016-08-17 Thread Markus Heiser
Am 17.08.2016 um 07:44 schrieb Markus Heiser : > > @Daniel: I added you to this discussion. May you are interested in, > it is about the parse-headers functionality from Mauro. > > Am 16.08.2016 um 20:22 schrieb Mauro Carvalho Chehab : > >>