Re: [PATCH] cpuidle: Add 'high' and 'low' idle state metrics

2018-12-06 Thread Rafael J. Wysocki
On Thu, Dec 6, 2018 at 12:08 AM Doug Smythies wrote: > > Hi Rafael, > > On 2018.12.03 04:32 Rafael J. Wysocki wrote: > > > Add two new metrics for CPU idle states, "high" and "low", to count > > the number of times the given state had been asked for (or entered > > from the kernel's perspective),

Re: [PATCH v9 2/2] ThunderX2, perf : Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-12-06 Thread Suzuki K Poulose
Hi Ganpat, On 05/12/2018 10:59, Kulkarni, Ganapatrao wrote: This patch adds a perf driver for the PMU UNCORE devices DDR4 Memory Controller(DMC) and Level 3 Cache(L3C). Each PMU supports up to 4 counters. All counters lack overflow interrupt and are sampled periodically. Signed-off-by: Ganapatr

Re: [PATCH v12 05/25] kasan: add CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS

2018-12-06 Thread Andrey Konovalov
On Tue, Dec 4, 2018 at 11:24 PM Max Filippov wrote: > > Hello, > > On Tue, Nov 27, 2018 at 9:00 AM Andrey Konovalov > wrote: > > > > This commit splits the current CONFIG_KASAN config option into two: > > 1. CONFIG_KASAN_GENERIC, that enables the generic KASAN mode (the one > >that exists no

Re: [PATCH v12 23/25] kasan, arm64: select HAVE_ARCH_KASAN_SW_TAGS

2018-12-06 Thread Andrey Konovalov
On Thu, Nov 29, 2018 at 7:01 PM Will Deacon wrote: > > On Tue, Nov 27, 2018 at 05:55:41PM +0100, Andrey Konovalov wrote: > > Now, that all the necessary infrastructure code has been introduced, > > select HAVE_ARCH_KASAN_SW_TAGS for arm64 to enable software tag-based > > KASAN mode. > > > > Signed

Re: [PATCH v12 20/25] kasan, arm64: add brk handler for inline instrumentation

2018-12-06 Thread Andrey Konovalov
On Thu, Nov 29, 2018 at 7:01 PM Will Deacon wrote: > > On Tue, Nov 27, 2018 at 05:55:38PM +0100, Andrey Konovalov wrote: > > Tag-based KASAN inline instrumentation mode (which embeds checks of shadow > > memory into the generated code, instead of inserting a callback) generates > > a brk instructi

Re: [PATCH v4 1/2] Documentation/admin-guide: introduce perf-security.rst file

2018-12-06 Thread Alexey Budankov
On 06.12.2018 4:10, Kees Cook wrote: > On Tue, Nov 27, 2018 at 12:15 AM Alexey Budankov > wrote: >> >> >> Implement initial version of perf-security.rst documentation file >> covering security concerns of perf_event_paranoid settings. >> >> Suggested-by: Thomas Gleixner >> Signed-off-by: Alexey B

Re: [PATCH v12 20/25] kasan, arm64: add brk handler for inline instrumentation

2018-12-06 Thread Will Deacon
On Thu, Dec 06, 2018 at 11:31:43AM +0100, Andrey Konovalov wrote: > On Thu, Nov 29, 2018 at 7:01 PM Will Deacon wrote: > > > > On Tue, Nov 27, 2018 at 05:55:38PM +0100, Andrey Konovalov wrote: > > > Tag-based KASAN inline instrumentation mode (which embeds checks of shadow > > > memory into the ge

[PATCH v11 0/2] Add ThunderX2 SoC Performance Monitoring Unit driver

2018-12-06 Thread Kulkarni, Ganapatrao
This patchset adds PMU driver for Cavium's ThunderX2 SoC UNCORE devices. The SoC has PMU support in L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). v11: Updated Patch 2 with minor comments. v10: Updated Documentation patch with comments [6]. [6] https://lkml.o

[PATCH v11 2/2] ThunderX2, perf : Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-12-06 Thread Kulkarni, Ganapatrao
This patch adds a perf driver for the PMU UNCORE devices DDR4 Memory Controller(DMC) and Level 3 Cache(L3C). Each PMU supports up to 4 counters. All counters lack overflow interrupt and are sampled periodically. Reviewed-by: Suzuki K Poulose Signed-off-by: Ganapatrao Kulkarni --- drivers/perf/K

[PATCH v11 1/2] perf, uncore: Adding documentation for ThunderX2 pmu uncore driver

2018-12-06 Thread Kulkarni, Ganapatrao
The SoC has PMU support in its L3 cache controller (L3C) and in the DDR4 Memory Controller (DMC). Signed-off-by: Ganapatrao Kulkarni --- Documentation/perf/thunderx2-pmu.txt | 93 1 file changed, 93 insertions(+) create mode 100644 Documentation/perf/thunderx2-pmu.t

Re: [PATCH v9 2/2] ThunderX2, perf : Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-12-06 Thread Ganapatrao Kulkarni
On Thu, Dec 6, 2018 at 2:55 PM Suzuki K Poulose wrote: > > Hi Ganpat, > > On 05/12/2018 10:59, Kulkarni, Ganapatrao wrote: > > This patch adds a perf driver for the PMU UNCORE devices DDR4 Memory > > Controller(DMC) and Level 3 Cache(L3C). Each PMU supports up to 4 > > counters. All counters lack

[PATCH v13 01/25] kasan, mm: change hooks signatures

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN changes the value of the top byte of pointers returned from the kernel allocation functions (such as kmalloc). This patch updates KASAN hooks signatures and their usage in SLAB and SLUB code to reflect that. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: A

[PATCH v13 02/25] kasan, slub: handle pointer tags in early_kmem_cache_node_alloc

2018-12-06 Thread Andrey Konovalov
The previous patch updated KASAN hooks signatures and their usage in SLAB and SLUB code, except for the early_kmem_cache_node_alloc function. This patch handles that function separately, as it requires to reorder some of the initialization code to correctly propagate a tagged pointer in case a tag

[PATCH v13 04/25] kasan: rename source files to reflect the new naming scheme

2018-12-06 Thread Andrey Konovalov
We now have two KASAN modes: generic KASAN and tag-based KASAN. Rename kasan.c to generic.c to reflect that. Also rename kasan_init.c to init.c as it contains initialization code for both KASAN modes. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- m

[PATCH v13 22/25] kasan: add __must_check annotations to kasan hooks

2018-12-06 Thread Andrey Konovalov
This patch adds __must_check annotations to kasan hooks that return a pointer to make sure that a tagged pointer always gets propagated. Suggested-by: Andrey Ryabinin Signed-off-by: Andrey Konovalov --- include/linux/kasan.h | 16 ++-- mm/kasan/common.c | 15 +-- 2 f

[PATCH v13 21/25] kasan, mm, arm64: tag non slab memory allocated via pagealloc

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN doesn't check memory accesses through pointers tagged with 0xff. When page_address is used to get pointer to memory that corresponds to some page, the tag of the resulting pointer gets set to 0xff, even though the allocated memory might have been tagged differently. For slab pages

[PATCH v13 07/25] kasan: rename kasan_zero_page to kasan_early_shadow_page

2018-12-06 Thread Andrey Konovalov
With tag based KASAN mode the early shadow value is 0xff and not 0x00, so this patch renames kasan_zero_(page|pte|pmd|pud|p4d) to kasan_early_shadow_(page|pte|pmd|pud|p4d) to avoid confusion. Suggested-by: Mark Rutland Signed-off-by: Andrey Konovalov --- arch/arm64/mm/kasan_init.c | 43

[PATCH v13 16/25] kasan: split out generic_report.c from report.c

2018-12-06 Thread Andrey Konovalov
This patch moves generic KASAN specific error reporting routines to generic_report.c without any functional changes, leaving common error reporting code in report.c to be later reused by tag-based KASAN. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov ---

[PATCH v13 14/25] kasan, arm64: enable top byte ignore for the kernel

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN uses the Top Byte Ignore feature of arm64 CPUs to store a pointer tag in the top byte of each pointer. This commit enables the TCR_TBI1 bit, which enables Top Byte Ignore for the kernel, when tag-based KASAN is used. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-

[PATCH v13 25/25] kasan: add SPDX-License-Identifier mark to source files

2018-12-06 Thread Andrey Konovalov
This patch adds a "SPDX-License-Identifier: GPL-2.0" mark to all source files under mm/kasan. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- mm/kasan/common.c | 1 + mm/kasan/generic.c| 1 + mm/kasan/generic_report.c | 1 + mm/kasan/

Re: [PATCH v12 20/25] kasan, arm64: add brk handler for inline instrumentation

2018-12-06 Thread Andrey Konovalov
On Thu, Dec 6, 2018 at 12:10 PM Will Deacon wrote: > > On Thu, Dec 06, 2018 at 11:31:43AM +0100, Andrey Konovalov wrote: > > On Thu, Nov 29, 2018 at 7:01 PM Will Deacon wrote: > > > > > > On Tue, Nov 27, 2018 at 05:55:38PM +0100, Andrey Konovalov wrote: > > > > Tag-based KASAN inline instrumentat

[PATCH v13 24/25] kasan: update documentation

2018-12-06 Thread Andrey Konovalov
This patch updates KASAN documentation to reflect the addition of the new tag-based mode. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- Documentation/dev-tools/kasan.rst | 232 ++ 1 file changed, 138 insertions(+), 94 de

[PATCH v13 20/25] kasan, arm64: add brk handler for inline instrumentation

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN inline instrumentation mode (which embeds checks of shadow memory into the generated code, instead of inserting a callback) generates a brk instruction when a tag mismatch is detected. This commit adds a tag-based KASAN specific brk handler, that decodes the immediate value passed

[PATCH v13 23/25] kasan, arm64: select HAVE_ARCH_KASAN_SW_TAGS

2018-12-06 Thread Andrey Konovalov
Now, that all the necessary infrastructure code has been introduced, select HAVE_ARCH_KASAN_SW_TAGS for arm64 to enable software tag-based KASAN mode. Signed-off-by: Andrey Konovalov --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfi

[PATCH v13 19/25] kasan: add hooks implementation for tag-based mode

2018-12-06 Thread Andrey Konovalov
This commit adds tag-based KASAN specific hooks implementation and adjusts common generic and tag-based KASAN ones. 1. When a new slab cache is created, tag-based KASAN rounds up the size of the objects in this cache to KASAN_SHADOW_SCALE_SIZE (== 16). 2. On each kmalloc tag-based KASAN genera

[PATCH v13 12/25] kasan: preassign tags to objects with ctors or SLAB_TYPESAFE_BY_RCU

2018-12-06 Thread Andrey Konovalov
An object constructor can initialize pointers within this objects based on the address of the object. Since the object address might be tagged, we need to assign a tag before calling constructor. The implemented approach is to assign tags to objects with constructors when a slab is allocated and c

[PATCH v13 17/25] kasan: add bug reporting routines for tag-based mode

2018-12-06 Thread Andrey Konovalov
This commit adds rountines, that print tag-based KASAN error reports. Those are quite similar to generic KASAN, the difference is: 1. The way tag-based KASAN finds the first bad shadow cell (with a mismatching tag). Tag-based KASAN compares memory tags from the shadow memory to the pointer t

[PATCH v13 15/25] kasan, mm: perform untagged pointers comparison in krealloc

2018-12-06 Thread Andrey Konovalov
The krealloc function checks where the same buffer was reused or a new one allocated by comparing kernel pointers. Tag-based KASAN changes memory tag on the krealloc'ed chunk of memory and therefore also changes the pointer tag of the returned pointer. Therefore we need to perform comparison on unt

[PATCH v13 18/25] mm: move obj_to_index to include/linux/slab_def.h

2018-12-06 Thread Andrey Konovalov
While with SLUB we can actually preassign tags for caches with contructors and store them in pointers in the freelist, SLAB doesn't allow that since the freelist is stored as an array of indexes, so there are no pointers to store the tags. Instead we compute the tag twice, once when a slab is crea

[PATCH v13 13/25] kasan, arm64: fix up fault handling logic

2018-12-06 Thread Andrey Konovalov
Right now arm64 fault handling code removes pointer tags from addresses covered by TTBR0 in faults taken from both EL0 and EL1, but doesn't do that for pointers covered by TTBR1. This patch adds two helper functions is_ttbr0_addr() and is_ttbr1_addr(), where the latter one accounts for the fact th

[PATCH v13 11/25] kasan, arm64: untag address in _virt_addr_is_linear

2018-12-06 Thread Andrey Konovalov
virt_addr_is_linear (which is used by virt_addr_valid) assumes that the top byte of the address is 0xff, which isn't always the case with tag-based KASAN. This patch resets the tag in this macro. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- arch/

[PATCH v13 10/25] kasan: add tag related helper functions

2018-12-06 Thread Andrey Konovalov
This commit adds a few helper functions, that are meant to be used to work with tags embedded in the top byte of kernel pointers: to set, to get or to reset the top byte. Signed-off-by: Andrey Konovalov --- arch/arm64/include/asm/kasan.h | 8 +-- arch/arm64/include/asm/memory.h | 12 ++

[PATCH v13 08/25] kasan: initialize shadow to 0xff for tag-based mode

2018-12-06 Thread Andrey Konovalov
A tag-based KASAN shadow memory cell contains a memory tag, that corresponds to the tag in the top byte of the pointer, that points to that memory. The native top byte value of kernel pointers is 0xff, so with tag-based KASAN we need to initialize shadow memory to 0xff. Reviewed-by: Andrey Ryabini

[PATCH v13 09/25] arm64: move untagged_addr macro from uaccess.h to memory.h

2018-12-06 Thread Andrey Konovalov
Move the untagged_addr() macro from arch/arm64/include/asm/uaccess.h to arch/arm64/include/asm/memory.h to be later reused by KASAN. Also make the untagged_addr() macro accept all kinds of address types (void *, unsigned long, etc.). This allows not to specify type casts in each place where the ma

[PATCH v13 06/25] kasan, arm64: adjust shadow size for tag-based mode

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN uses 1 shadow byte for 16 bytes of kernel memory, so it requires 1/16th of the kernel virtual address space for the shadow memory. This commit sets KASAN_SHADOW_SCALE_SHIFT to 4 when the tag-based KASAN mode is enabled. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Sig

[PATCH v13 00/25] kasan: add software tag-based mode for arm64

2018-12-06 Thread Andrey Konovalov
This patchset adds a new software tag-based mode to KASAN [1]. (Initially this mode was called KHWASAN, but it got renamed, see the naming rationale at the end of this section). The plan is to implement HWASan [2] for the kernel with the incentive, that it's going to have comparable to KASAN perf

[PATCH v13 03/25] kasan: move common generic and tag-based code to common.c

2018-12-06 Thread Andrey Konovalov
Tag-based KASAN reuses a significant part of the generic KASAN code, so move the common parts to common.c without any functional changes. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- mm/kasan/Makefile | 5 +- mm/kasan/common.c | 603

[PATCH v13 05/25] kasan: add CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS

2018-12-06 Thread Andrey Konovalov
This commit splits the current CONFIG_KASAN config option into two: 1. CONFIG_KASAN_GENERIC, that enables the generic KASAN mode (the one that exists now); 2. CONFIG_KASAN_SW_TAGS, that enables the software tag-based KASAN mode. The name CONFIG_KASAN_SW_TAGS is chosen as in the future we will h

Re: [PATCH v11 0/2] Add ThunderX2 SoC Performance Monitoring Unit driver

2018-12-06 Thread Will Deacon
Hi Ganapat, On Thu, Dec 06, 2018 at 11:51:24AM +, Kulkarni, Ganapatrao wrote: > This patchset adds PMU driver for Cavium's ThunderX2 SoC UNCORE devices. > The SoC has PMU support in L3 cache controller (L3C) and in the > DDR4 Memory Controller (DMC). > > > v11: > Updated Patch 2 with m

Re: [PATCH v8 1/8] arm64: add type casts to untagged_addr macro

2018-12-06 Thread Andrey Konovalov
On Thu, Nov 29, 2018 at 7:22 PM Catalin Marinas wrote: > > On Thu, Nov 08, 2018 at 03:36:08PM +0100, Andrey Konovalov wrote: > > This patch makes the untagged_addr macro accept all kinds of address types > > (void *, unsigned long, etc.) and allows not to specify type casts in each > > place where

Re: [PATCH v8 2/8] uaccess: add untagged_addr definition for other arches

2018-12-06 Thread Andrey Konovalov
On Thu, Nov 29, 2018 at 7:23 PM Catalin Marinas wrote: > > On Thu, Nov 08, 2018 at 03:36:09PM +0100, Andrey Konovalov wrote: > > diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h > > index efe79c1cdd47..c045b4eff95e 100644 > > --- a/include/linux/uaccess.h > > +++ b/include/linux/uacc

Re: [PATCH v8 0/8] arm64: untag user pointers passed to the kernel

2018-12-06 Thread Andrey Konovalov
On Thu, Nov 29, 2018 at 7:16 PM Catalin Marinas wrote: > > Hi Andrey, > > On Thu, Nov 08, 2018 at 03:48:10PM +0100, Andrey Konovalov wrote: > > On Thu, Nov 8, 2018 at 3:36 PM, Andrey Konovalov > > wrote: > > > Changes in v8: > > > - Rebased onto 65102238 (4.20-rc1). > > > - Added a note to the c

Re: [PATCH v8 0/8] arm64: untag user pointers passed to the kernel

2018-12-06 Thread Catalin Marinas
On Thu, Dec 06, 2018 at 01:44:24PM +0100, Andrey Konovalov wrote: > On Thu, Nov 29, 2018 at 7:16 PM Catalin Marinas > wrote: > > On Thu, Nov 08, 2018 at 03:48:10PM +0100, Andrey Konovalov wrote: > > > On Thu, Nov 8, 2018 at 3:36 PM, Andrey Konovalov > > > wrote: > > > > Changes in v8: > > > > -

Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing

2018-12-06 Thread Christoph Hellwig
On Wed, Dec 05, 2018 at 08:28:05PM +0900, Masahiro Yamada wrote: > Some time ago, Sam pointed out a certain degree of overwrap between > generic-y and mandatory-y. (https://lkml.org/lkml/2017/7/10/121) > > I a bit tweaked the meaning of mandatory-y; now it defines the minimum > set of ASM headers

Re: [PATCH v11 0/2] Add ThunderX2 SoC Performance Monitoring Unit driver

2018-12-06 Thread Ganapatrao Kulkarni
On Thu, Dec 6, 2018 at 6:04 PM Will Deacon wrote: > > Hi Ganapat, > > On Thu, Dec 06, 2018 at 11:51:24AM +, Kulkarni, Ganapatrao wrote: > > This patchset adds PMU driver for Cavium's ThunderX2 SoC UNCORE devices. > > The SoC has PMU support in L3 cache controller (L3C) and in the > > DDR4 Memo

Re: [PATCH v4 1/2] Documentation/admin-guide: introduce perf-security.rst file

2018-12-06 Thread Jonathan Corbet
On Wed, 5 Dec 2018 17:10:48 -0800 Kees Cook wrote: > On Tue, Nov 27, 2018 at 12:15 AM Alexey Budankov > wrote: > > > > > > Implement initial version of perf-security.rst documentation file > > covering security concerns of perf_event_paranoid settings. > > > > Suggested-by: Thomas Gleixner > >

Re: [PATCH 1/2] Documentation: convert path-lookup from markdown to resturctured text

2018-12-06 Thread Jonathan Corbet
On Thu, 06 Dec 2018 08:00:58 +1100 NeilBrown wrote: > > Is there a reason you used "include" rather than just adding it to the > > TOC tree with the rest? > > Simple. I didn't know what I was doing, and so randomly made changes until > the result seemed acceptable - then I stopped. If there

Re: [PATCH] doc:it: fixes in process/1.Intro

2018-12-06 Thread Jonathan Corbet
On Sun, 2 Dec 2018 18:40:09 +0100 Federico Vaga wrote: > - fix broken links and some > - fix some grammar errors > > Signed-off-by: Federico Vaga Applied thanks (and the new translations as well). jon

Re: [PATCH] Documentation: devres: note checking needs when converting

2018-12-06 Thread Jonathan Corbet
On Sat, 1 Dec 2018 13:44:29 +0100 Nicholas Mc Guire wrote: > There are a number of cases where conversions to devm_* API have been > done but developers forgot that this conversion may imply that return > values need to be checked for failure of internal resource handling > like allocation. Whil

Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing

2018-12-06 Thread Sam Ravnborg
On Wed, Dec 05, 2018 at 08:28:05PM +0900, Masahiro Yamada wrote: > Some time ago, Sam pointed out a certain degree of overwrap between > generic-y and mandatory-y. (https://lkml.org/lkml/2017/7/10/121) > > I a bit tweaked the meaning of mandatory-y; now it defines the minimum > set of ASM headers

Re: [PATCH v2 02/11] thermal: add irq-mode configuration for trip point

2018-12-06 Thread Lukasz Luba
Hi Rui, On 12/5/18 4:09 PM, Zhang Rui wrote: > On 三, 2018-11-07 at 18:09 +0100, Lukasz Luba wrote: >> This patch adds support irq mode in trip point. >> When that flag is set in DT, there is no need for polling >> in thermal framework. Crossing the trip point will rise an IRQ. >> The naming conven

Re: [PATCH v2 02/11] thermal: add irq-mode configuration for trip point

2018-12-06 Thread Lukasz Luba
On 12/6/18 8:18 PM, Lukasz Luba wrote: > Hi Rui, > > On 12/5/18 4:09 PM, Zhang Rui wrote: >> On 三, 2018-11-07 at 18:09 +0100, Lukasz Luba wrote: >>> This patch adds support irq mode in trip point. >>> When that flag is set in DT, there is no need for polling >>> in thermal framework. Crossing t

[PATCH 0/2] docs/mm-api: link kernel-doc comments from slab_common.c

2018-12-06 Thread Mike Rapoport
Hi, These patches update formatting of function descriptions in mm/slab_common.c and link the comments from this file to "The Slab Cache" section of the MM API reference. As the changes to mm/slab_common.c only touch the comments, I think these patches can go via the docs tree. Mike Rapoport (2)

[PATCH 1/2] slab: make kmem_cache_create{_usercopy} description proper kernel-doc

2018-12-06 Thread Mike Rapoport
Add the description for kmem_cache_create, fixup the return value paragraph and make both kmem_cache_create and add the second '*' to the comment opening. Signed-off-by: Mike Rapoport --- mm/slab_common.c | 35 +++ 1 file changed, 31 insertions(+), 4 deletions(-)

[PATCH 2/2] docs/mm-api: link slab_common.c to "The Slab Cache" section

2018-12-06 Thread Mike Rapoport
Several functions in mm/slab_common.c have kernel-doc comments, it makes perfect sense to link them to the MM API reference. Signed-off-by: Mike Rapoport --- Documentation/core-api/mm-api.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/core-api/mm-api.rst b/Documentatio

Re: [PATCH v2 2/2] core-api/memory-hotplug.rst: divide Locking Internal section by different locks

2018-12-06 Thread David Hildenbrand
On 06.12.18 01:26, Wei Yang wrote: > Currently locking for memory hotplug is a little complicated. > > Generally speaking, we leverage the two global lock: > > * device_hotplug_lock > * mem_hotplug_lock > > to serialise the process. > > While for the long term, we are willing to have more f

Re: [PATCH] docs/core-api: make mm-api.rst more structured

2018-12-06 Thread Jonathan Corbet
On Wed, 28 Nov 2018 16:45:44 +0200 Mike Rapoport wrote: > The mm-api.rst covers variety of memory management APIs under "More Memory > Management Functions" section. The descriptions included there are in a > random order there are quite a few of them which makes the section too > long. > > Regr