OSDN Git Service

arm64: Add "remove" probe driver for memory hot-remove
authorAndrea Reale <ar@linux.vnet.ibm.com>
Fri, 28 Apr 2017 08:50:16 +0000 (14:20 +0530)
committerArun KS <arunks@codeaurora.org>
Wed, 22 Nov 2017 02:44:26 +0000 (08:14 +0530)
commit8e3fc5893d999dc9ebc3c6e725917cf4cf6e74f8
tree0accea5fbbf5a7f05cc98945d259be8c1174d37a
parentefdbaef3e11a8a82f741baddad7d47f8606798aa
arm64: Add "remove" probe driver for memory hot-remove

Allows to remove sections of memory that have been previously offlined
from userspace.

This is symmetric to the "memory probe" interface, as described in
Documentation/memory-hotplug.txt. It can be used to manually notify the
OS that one memory section has been removed.

Please, remind that a memory section can only be removed after it has
been logically off-lined; trying to remove a section which has not been
previously off-lined is not supported and will have undefined (but most
likely very bad) behaviour.

To offline a section one can:

To use the remove interface to remove the section:

where 0xYYYYYY is the physical address of the memory section to remove.

Change-Id: I1ab2fafe17b2697a5c667feae25c4ac0655f394e
Signed-off-by: Andrea Reale <ar@linux.vnet.ibm.com>
Signed-off-by: Maciej Bielski <m.bielski@virtualopensystems.com>
Patch-mainline: linux-kernel @ 11 Apr 2017, 18:25
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
drivers/base/memory.c