aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/memory.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-21mm/memory_hotplug: introduce MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE notifiersSumanth Korikkar1-1/+22
2024-01-18Merge tag 'driver-core-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2023-12-21driver core: mark remaining local bus_type variables as constGreg Kroah-Hartman1-1/+1
2023-12-06mm/memory_hotplug: add missing mem_hotplug_lockSumanth Korikkar1-3/+15
2023-08-29Merge tag 'mm-nonmm-stable-2023-08-28-22-48' of git://git.kernel.org/pub/scm/...Linus Torvalds1-0/+13
2023-08-24crash: memory and CPU hotplug sysfs attributesEric DeVolder1-0/+13
2023-08-21mm/memory_hotplug: embed vmem_altmap details in memory blockAneesh Kumar K.V1-10/+17
2023-01-20drivers/base/memory: Fix comments for phys_index_show()Gavin Shan1-7/+2
2022-11-08mm/hwpoison: introduce per-memory_block hwpoison counterNaoya Horiguchi1-0/+38
2022-09-11mm: kill is_memblock_offlined()Kefeng Wang1-6/+0
2022-06-16mm/memory-failure: disable unpoison once hw error happenszhenwei pi1-1/+1
2022-04-28drivers/base/memory: fix an unlikely reference counting issue in __add_memory...Christophe JAILLET1-3/+2
2022-03-22drivers/base/memory: clarify adding and removing of memory blocksDavid Hildenbrand1-18/+20
2022-03-22drivers/base/memory: determine and store zone for single-zone memory blocksDavid Hildenbrand1-5/+96
2022-03-22drivers/base/memory: add memory block to memory group after registration succ...David Hildenbrand1-3/+5
2022-03-22mm/hwpoison: avoid the impact of hwpoison_filter() return value on mce handlerluofei1-0/+2
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-21/+204
2021-09-08mm/memory_hotplug: improved dynamic memory group aware "auto-movable" online ...David Hildenbrand1-0/+30
2021-09-08mm/memory_hotplug: memory group aware "auto-movable" online policyDavid Hildenbrand1-8/+10
2021-09-08mm/memory_hotplug: track present pages in memory groupsDavid Hildenbrand1-5/+5
2021-09-08drivers/base/memory: introduce "memory groups" to logically group memory blocksDavid Hildenbrand1-4/+155
2021-09-08mm: track present early pages per zoneDavid Hildenbrand1-7/+7
2021-09-03mm: sparse: pass section_nr to find_memory_blockOhhoon Kwon1-2/+2
2021-06-14Merge tag 'v5.13-rc6' into driver-core-nextGreg Kroah-Hartman1-3/+3
2021-06-05drivers/base/memory: fix trying offlining memory blocks with memory holes on ...David Hildenbrand1-3/+3
2021-06-04drivers/base: Constify static attribute_group structsRikard Falkeborn1-2/+2
2021-05-05mm,memory_hotplug: allocate memmap from the added memory rangeOscar Salvador1-6/+66
2021-05-05drivers/base/memory: introduce memory_block_{online,offline}Oscar Salvador1-12/+21
2021-02-26drivers/base/memory: don't store phys_device in memory blocksDavid Hildenbrand1-16/+9
2021-02-26mm/memory_hotplug: rename all existing 'memhp' into 'mhp'Anshuman Khandual1-5/+5
2020-10-16mm/memory_hotplug: prepare passing flags to add_memory() and friendsDavid Hildenbrand1-1/+2
2020-10-02drivers core: Miscellaneous changes for sysfs_emitJoe Perches1-1/+4
2020-10-02drivers core: Remove strcat uses around sysfs_emit and neatenJoe Perches1-25/+22
2020-10-02drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functionsJoe Perches1-12/+12
2020-07-10drivers/base/memory: rename base_memory_block_id to memory_block_idWei Yang1-4/+4
2020-07-10drivers/base/memory: init_memory_block() first parameter is not necessaryWei Yang1-6/+3
2020-06-03drivers/base/memory.c: cache memory blocks in xarray to accelerate lookupScott Cheloha1-12/+32
2020-04-07mm/memory_hotplug: allow to specify a default online_typeDavid Hildenbrand1-6/+5
2020-04-07mm/memory_hotplug: convert memhp_auto_online to store an online_typeDavid Hildenbrand1-6/+4
2020-04-07drivers/base/memory: store mapping between MMOP_* and string in an arrayDavid Hildenbrand1-15/+23
2020-04-07drivers/base/memory: map MMOP_OFFLINE to 0David Hildenbrand1-7/+4
2020-04-07drivers/base/memory: rename MMOP_ONLINE_KEEP to MMOP_ONLINEDavid Hildenbrand1-4/+5
2020-04-07drivers/base/memory.c: drop pages_correctly_probed()David Hildenbrand1-42/+0
2020-04-07drivers/base/memory.c: drop section_countDavid Hildenbrand1-14/+3
2020-03-29drivers/base/memory.c: indicate all memory blocks as removableDavid Hildenbrand1-20/+3
2020-02-04mm/memory_hotplug: drop valid_start/valid_end from test_pages_in_a_zone()David Hildenbrand1-5/+4
2020-01-31mm/memory_hotplug: pass in nid to online_pages()David Hildenbrand1-3/+3
2020-01-31mm: remove the memory isolate notifierDavid Hildenbrand1-19/+0
2019-12-01drivers/base/memory.c: drop the mem_sysfs_mutexDavid Hildenbrand1-19/+14
2019-12-01mm, soft-offline: convert parameter to pfnNaoya Horiguchi1-6/+1
2019-11-15mm/memory_hotplug: fix try_offline_node()David Hildenbrand1-0/+36
2019-10-19drivers/base/memory.c: don't access uninitialized memmaps in soft_offline_pag...David Hildenbrand1-0/+3
2019-09-24drivers/base/memory.c: don't store end_section_nr in memory blocksDavid Hildenbrand1-1/+0
2019-09-24driver/base/memory.c: validate memory block size earlyDavid Hildenbrand1-22/+9
2019-09-24drivers/base/memory.c: fixup documentation of removable/phys_index/block_size...David Hildenbrand1-5/+6
2019-09-24drivers/base/node.c: simplify unregister_memory_block_under_nodes()David Hildenbrand1-0/+1
2019-07-18drivers/base/memory.c: get rid of find_memory_block_hinted()David Hildenbrand1-26/+14
2019-07-18mm/memory_hotplug: move and simplify walk_memory_blocks()David Hildenbrand1-0/+42
2019-07-18drivers/base/memory: use "unsigned long" for block idsDavid Hildenbrand1-11/+11
2019-07-18mm: section numbers use the type "unsigned long"David Hildenbrand1-14/+13
2019-07-18mm/memory_hotplug: remove memory block devices before arch_remove_memory()David Hildenbrand1-19/+18
2019-07-18mm/memory_hotplug: create memory block devices after arch_add_memory()David Hildenbrand1-28/+54
2019-07-18mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVEDavid Hildenbrand1-2/+0
2019-07-18drivers/base/memory: pass a block_id to init_memory_block()David Hildenbrand1-16/+11
2019-05-14mm/memory_hotplug: make unregister_memory_section() never failDavid Hildenbrand1-11/+5
2019-05-14drivers/base/memory.c: clean up relics in function parametersBaoquan He1-6/+6
2019-04-19mm/memory_hotplug: do not unlock after failing to take the device_hotplug_lockzhong jiang1-1/+1
2019-02-28device-dax: "Hotplug" persistent memory for use like normal RAMDave Hansen1-0/+1
2018-12-28Merge tag 'driver-core-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-44/+37
2018-12-28memory_hotplug: add missing newlines to debugging outputMichal Hocko1-3/+3
2018-12-28drivers/base/memory.c: remove an unnecessary check on NR_MEM_SECTIONSWei Yang1-1/+1
2018-12-20mm, memory_hotplug: update a comment in unregister_memory()Dan Carpenter1-1/+1
2018-12-06drivers/base/memory.c: Use DEVICE_ATTR_RO and friendsDavid Hildenbrand1-43/+36
2018-10-31mm/memory_hotplug: fix online/offline_pages called w.o. mem_hotplug_lockDavid Hildenbrand1-12/+1
2018-10-31mm/memory_hotplug: make add_memory() take the device_hotplug_lockDavid Hildenbrand1-2/+7
2018-09-04memory_hotplug: fix kernel_panic on offline page processingMikhail Zaslonko1-11/+9
2018-08-17mm/memory_hotplug.c: call register_mem_sect_under_node()Oscar Salvador1-2/+0
2018-05-14mm: memory_hotplug: use put_device() if device_register failArvind Yadav1-1/+7
2018-04-11mm: check __highest_present_section_nr directly in memory_dev_init()Wei Yang1-5/+2
2018-04-05mm/memory_hotplug: don't read nid from struct page during hotplugPavel Tatashin1-2/+2
2018-04-05mm/memory_hotplug: optimize probe routinePavel Tatashin1-16/+20
2018-01-23mm/memory_failure: Remove unused trapno from memory_failureEric W. Biederman1-1/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-09-06mm, memory_hotplug: remove zone restrictionsMichal Hocko1-3/+0
2017-09-06mm, memory_hotplug: display allowed zones in the preferred orderingMichal Hocko1-10/+23
2017-07-06mm, memory_hotplug: do not assume ZONE_NORMAL is default kernel zoneMichal Hocko1-1/+1
2017-07-06mm, memory_hotplug: do not associate hotadded memory to zones until onlineMichal Hocko1-24/+28
2017-07-06mm, memory_hotplug: consider offline memblocks removableMichal Hocko1-0/+4
2017-07-06mm, memory_hotplug: get rid of is_zone_device_sectionMichal Hocko1-14/+9
2017-07-06mm, sparsemem: break out of loops earlyDave Hansen1-0/+4
2017-02-24memory-hotplug: use dev_online for memhp_auto_onlineNathan Fontenot1-1/+1
2017-02-03base/memory, hotplug: fix a kernel oops in show_valid_zones()Toshi Kani1-6/+6
2017-01-24memory_hotplug: make zone_can_shift() return a boolean valueYasuaki Ishimatsu1-2/+2
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-11-29drivers/base/memory.c: Remove unused 'first_page' variableKirtika Ruchandani1-2/+0
2016-10-07memory-hotplug: fix store_mem_state() return valueReza Arbab1-1/+4
2016-07-26memory-hotplug: use zone_can_shift() for sysfs valid_zones attributeReza Arbab1-11/+17
2016-03-15memory-hotplug: add automatic onlining policy for the newly added memoryVitaly Kuznetsov1-1/+33
2016-01-15mm: skip memory block registration for ZONE_DEVICEDan Williams1-0/+13
2016-01-14drivers/base/memory.c: fix kernel warning during memory hotplug on ppc64John Allen1-10/+6
2016-01-14drivers/base/memory.c: rename remove_memory_block() to remove_memory_section()Seth Jennings1-2/+2
2016-01-14drivers/base/memory.c: clean up section countingSeth Jennings1-1/+1
2015-12-12drivers/base/memory.c: prohibit offlining of memory blocks with missing sectionsSeth Jennings1-0/+4
2015-04-14mm, hotplug: fix concurrent memory hot-add deadlockDavid Rientjes1-7/+12
2015-04-14memory hotplug: use macro to switch between section and pfnSheng Yong1-1/+1
2015-03-25drivers: base: memory: Use tabs instead of spacesIoana Ciornei1-2/+2
2015-03-25drivers: base: memory: Fix switch indentIoana Ciornei1-27/+27
2014-12-13memory-hotplug: remove redundant call of page_to_pfnZhang Zhen1-2/+2
2014-10-09memory-hotplug: add sysfs valid_zones attributeZhang Zhen1-0/+42
2014-08-06mm/mem-hotplug: replace simple_strtoull() with kstrtoull()Zhang Zhen1-1/+3
2014-08-06mem-hotplug: introduce MMOP_OFFLINE to replace the hard coding -1Tang Chen1-9/+9
2014-08-06mem-hotplug: avoid illegal state prefixed with legal state when changing stat...Tang Chen1-4/+4
2014-06-04memory-hotplug: update documentation to hide information about SECTIONS and r...Li Zhong1-12/+0
2013-10-16driver core: Release device_hotplug_lock when store_mem_state returns EINVALYasuaki Ishimatsu1-2/+5
2013-09-03Merge tag 'pm+acpi-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+3
2013-09-03Merge tag 'driver-core-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-143/+115
2013-08-29driver core / ACPI: Avoid device hot remove locking issuesRafael J. Wysocki1-1/+3
2013-08-28drivers/base/memory.c: fix show_mem_removable() to handle missing sectionsRuss Anderson1-0/+2
2013-08-28drivers/base/memory.c: introduce help macro to_memory_blockGu Zheng1-17/+12
2013-08-21drivers: base: use standard device online/offline for state changeSeth Jennings1-72/+55
2013-08-21drivers: base: refactor add_memory_section() to add_memory_block()Seth Jennings1-27/+21
2013-08-21drivers: base: remove improper get/put in add_memory_section()Seth Jennings1-4/+2
2013-08-21drivers: base: reduce add_memory_section() for boot-time onlySeth Jennings1-27/+14
2013-08-21drivers: base: unshare add_memory_section() from hotplugSeth Jennings1-3/+16
2013-08-21drivers: base: use device get/put functionsSeth Jennings1-4/+4
2013-08-21drivers: base: remove unneeded variableSeth Jennings1-4/+1
2013-08-21drivers: base: move mutex lock out of add_memory_section()Seth Jennings1-4/+9
2013-07-26driver core: replace strict_strto*() with kstrto*()Jingoo Han1-2/+2
2013-07-03Merge tag 'pm+acpi-3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-40/+74
2013-06-06drivers/base: Use attribute groups to create sysfs memory filesNathan Fontenot1-81/+62
2013-06-01Driver core / MM: Drop offline_memory_block()Rafael J. Wysocki1-21/+0
2013-06-01Driver core / memory: Simplify __memory_block_change_state()Rafael J. Wysocki1-9/+2
2013-05-12Driver core: Introduce offline/online callbacks for memory blocksRafael J. Wysocki1-25/+87
2013-04-29mm: Remove unused parameter of pages_correctly_reserved()Tang Chen1-3/+2
2013-04-29mm, hotplug: avoid compiling memory hotremove functions when disabledDavid Rientjes1-21/+23
2013-02-23memory-hotplug: check whether all memory blocks are offlined or not when remo...Yasuaki Ishimatsu1-0/+6
2013-02-18base: memory: fix soft/hard_offline_page permissionsFelipe Balbi1-2/+2
2012-12-11mm, memory-hotplug: dynamic configure movable memory and portion memoryLai Jiangshan1-11/+22
2012-12-11memory hotplug: suppress "Device memoryX does not have a release() function" ...Yasuaki Ishimatsu1-1/+8
2012-10-09memory-hotplug: update memory block's state and notify userspaceWen Congyang1-4/+27
2012-10-09memory-hotplug: preparation to notify memory block's state at memory hot removeWen Congyang1-6/+3
2012-03-14Merge tag 'v3.3-rc7' into x86/mceIngo Molnar1-5/+26
2012-02-02drivers/base/memory.c: fix memory_dev_init() long delayYinghai Lu1-5/+26
2012-01-26Merge tag 'mce-recovery-for-tip' of git://git.kernel.org/pub/scm/linux/kernel...Ingo Molnar1-1/+1
2012-01-12kdump: add udev events for memory online/offlineMichael Holzheu1-3/+14
2012-01-03HWPOISON: Clean up memory_failure() vs. __memory_failure()Tony Luck1-1/+1
2011-12-21convert 'memory' sysdev_class to a regular subsystemKay Sievers1-94/+66
2011-10-18mm: memory hotplug: Check if pages are correctly reserved on a per-section basisMel Gorman1-18/+40
2011-10-18Revert "memory hotplug: Correct page reservation checking"Greg Kroah-Hartman1-37/+23
2011-09-26memory hotplug: Correct page reservation checkingNathan Fontenot1-23/+37
2011-09-26memory hotplug: Refuse to add unaligned memory regionsAnton Blanchard1-0/+4
2011-07-26atomic: use <linux/atomic.h>Arun Sharma1-1/+1
2011-07-12mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a headerBenjamin Herrenschmidt1-1/+0
2011-05-23Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds1-5/+4
2011-05-12drivers/base/memory.c: fix warning due to "memory hotplug: Speed up add/remov...Andrew Morton1-1/+1
2011-05-11memory hotplug: Speed up add/remove when blocks are larger than PAGES_PER_SEC...Anton Blanchard1-16/+8
2011-04-25drivers:base:fix the coding format of memory.cWanlong Gao1-1/+2
2011-04-10sysfs-memory: fix uninitialized variable warning and clean-up code.Nikanth Karthikesan1-5/+4
2011-02-03memory hotplug: sysfs probe routine should add all memory sectionsNathan Fontenot1-3/+10
2011-02-03memory hotplug: Update phys_index to [start|end]_section_nrNathan Fontenot1-10/+31
2011-02-03memory hotplug: Allow memory blocks to span multiple memory sectionsNathan Fontenot1-47/+108
2010-10-22Driver core: Add section count to memory_block structNathan Fontenot1-6/+11
2010-10-22Driver core: Add mutex for adding/removing memory blocksNathan Fontenot1-0/+7
2010-10-22Driver core: Move find_memory_block routineNathan Fontenot1-33/+33
2010-10-22driver core: Introduce find_memory_block_hinted which utilizes kset_find_obj_...Robin Holt1-10/+18
2010-04-09Revert "memory-hotplug: add 0x prefix to HEX block_size_bytes"Linus Torvalds1-1/+1
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-03-17memory hotplug: allow setting of phys_deviceHeiko Carstens1-5/+10
2010-03-07kobject: Constify struct kset_uevent_opsEmese Revfy1-1/+1
2010-03-07driver-core: Add attribute argument to class_attribute show/storeAndi Kleen1-3/+8
2010-03-07sysdev: Fix type of sysdev class attribute in memory driverAndi Kleen1-3/+4
2010-01-20Revert "sysdev: fix prototype for memory_sysdev_class show/store functions"Greg Kroah-Hartman1-20/+12
2010-01-16sysdev: fix prototype for memory_sysdev_class show/store functionsWu Fengguang1-12/+20
2010-01-16memory-hotplug: add 0x prefix to HEX block_size_bytesWu Fengguang1-1/+1
2009-12-18mm: Add notifier in pageblock isolation for balloon driversRobert Jennings1-0/+19
2009-12-16HWPOISON: Add soft page offline supportAndi Kleen1-0/+61
2009-01-06mm: show node to memory section relationship with symlinks in sysfsGary Hade1-6/+13
2008-10-20memory_probe: fix wrong sysfs file attributeShaohua Li1-1/+3
2008-07-28more sysdev API change fallout - drivers/base/memory.cStephen Rothwell1-1/+2
2008-07-26Use WARN() in drivers/base/Arjan van de Ven1-2/+1
2008-07-24memory-hotplug: add sysfs removable attribute for hotplug memory removeBadari Pulavarty1-0/+19
2008-07-21sysdev: Pass the attribute to the low level sysdev show/store functionAndi Kleen1-4/+8
2008-05-13memory: Introduce exports for memory notifiersHannes Hering1-0/+2
2008-04-19driver core: replace remaining __FUNCTION__ occurrencesHarvey Harrison1-2/+2
2008-04-19driver core: register_memory/unregister_memory clean ups and bugfixBadari Pulavarty1-15/+7
2008-04-19driver core: memory: semaphore to mutexDaniel Walker1-3/+4
2008-01-24Driver core: change sysdev classes to use dynamic kobject namesKay Sievers1-1/+1
2007-10-22memory hotplug: rearrange memory hotplug notifierYasunori Goto1-8/+1
2007-10-16sparsemem: record when a section has a valid mem_mapAndy Whitcroft1-3/+3
2007-10-14more uevent fallout (drivers/base/memory.c)Al Viro1-1/+1
2007-10-12Driver core: change add_uevent_var to use a structKay Sievers1-2/+1
2006-12-07[PATCH] driver/base/memory.c: handle errors properlyAndrew Morton1-11/+23
2006-06-27[PATCH] pgdat allocation for new node add (specify node id)Yasunori Goto1-1/+3
2006-03-27[PATCH] Notifier chain update: API changesAlan Stern1-4/+4
2006-02-07[PATCH] fix __user annotations in drivers/base/memory.cAl Viro1-1/+1
2006-01-11[PATCH] move capable() to capability.hRandy.Dunlap1-1/+1
2006-01-06[PATCH] memhotplug: register_memory should be globalAndy Whitcroft1-2/+1
2006-01-06[PATCH] memhotplug: register_ and unregister_memory_notifier should be globalAndy Whitcroft1-2/+2
2006-01-04[PATCH] driver core: replace "hotplug" by "uevent"Kay Sievers1-6/+6
2005-12-15[PATCH] drivers/base/memory.c: unexport the static (sic) memory_sysdev_classAdrian Bunk1-1/+0