* [folded-merged] mm-demotion-expose-memory-tier-details-via-sysfs-v4.patch removed from -mm tree
@ 2022-09-26 21:00 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-26 21:00 UTC (permalink / raw)
To: mm-commits, ying.huang, weixugc, tim.c.chen, shy828301, mhocko,
jvgediya.oss, Jonathan.Cameron, hesham.almatary, hannes, dave,
dave.hansen, dan.j.williams, bharata, apopple, aneesh.kumar,
akpm
The quilt patch titled
Subject: mm-demotion-expose-memory-tier-details-via-sysfs-v4
has been removed from the -mm tree. Its filename was
mm-demotion-expose-memory-tier-details-via-sysfs-v4.patch
This patch was dropped because it was folded into mm-demotion-expose-memory-tier-details-via-sysfs.patch
------------------------------------------------------
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Subject: mm-demotion-expose-memory-tier-details-via-sysfs-v4
Date: Thu, 22 Sep 2022 15:52:01 +0530
drop toptier_nodes from sysfs
Link: https://lkml.kernel.org/r/20220922102201.62168-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Bharata B Rao <bharata@amd.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Hesham Almatary <hesham.almatary@huawei.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Jagdish Gediya <jvgediya.oss@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Tim Chen <tim.c.chen@intel.com>
Cc: Wei Xu <weixugc@google.com>
Cc: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers | 10 --
mm/memory-tiers.c | 47 ----------
2 files changed, 1 insertion(+), 56 deletions(-)
--- a/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers~mm-demotion-expose-memory-tier-details-via-sysfs-v4
+++ a/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers
@@ -23,13 +23,3 @@ Description: Directory with details of a
nodes: NUMA nodes that are part of this memory tier.
-
-What: /sys/devices/virtual/memory_tiering/toptier_nodes
-Date: August 2022
-Contact: Linux memory management mailing list <linux-mm@kvack.org>
-Description: Toptier node mask
-
- A toptier is defined as the memory tier from which memory promotion
- is not done by the kernel.
-
- toptier_nodes: Union of NUMA nodes that are part of each toptier.
--- a/mm/memory-tiers.c~mm-demotion-expose-memory-tier-details-via-sysfs-v4
+++ a/mm/memory-tiers.c
@@ -625,57 +625,12 @@ static int __meminit memtier_hotplug_cal
return notifier_from_errno(0);
}
-#ifdef CONFIG_MIGRATION
-static ssize_t toptier_nodes_show(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- int ret;
- nodemask_t nmask, top_tier_mask = NODE_MASK_NONE;
- struct memory_tier *memtier = to_memory_tier(dev);
-
- mutex_lock(&memory_tier_lock);
- list_for_each_entry(memtier, &memory_tiers, list) {
- if (memtier->adistance_start > top_tier_adistance)
- break;
- nmask = get_memtier_nodemask(memtier);
- nodes_or(top_tier_mask, top_tier_mask, nmask);
- }
-
- ret = sysfs_emit(buf, "%*pbl\n", nodemask_pr_args(&top_tier_mask));
- mutex_unlock(&memory_tier_lock);
- return ret;
-}
-#else
-static ssize_t toptier_nodes_show(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- nodemask_t top_tier_mask = node_states[N_MEMORY];
-
- return sysfs_emit(buf, "%*pbl\n", nodemask_pr_args(&top_tier_mask));
-}
-#endif
-static DEVICE_ATTR_RO(toptier_nodes);
-
-static struct attribute *memtier_subsys_attrs[] = {
- &dev_attr_toptier_nodes.attr,
- NULL
-};
-
-static const struct attribute_group memtier_subsys_group = {
- .attrs = memtier_subsys_attrs,
-};
-
-static const struct attribute_group *memtier_subsys_groups[] = {
- &memtier_subsys_group,
- NULL
-};
-
static int __init memory_tier_init(void)
{
int ret, node;
struct memory_tier *memtier;
- ret = subsys_virtual_register(&memory_tier_subsys, memtier_subsys_groups);
+ ret = subsys_virtual_register(&memory_tier_subsys, NULL);
if (ret)
panic("%s() failed to register memory tier subsystem\n", __func__);
_
Patches currently in -mm which might be from aneesh.kumar@linux.ibm.com are
mm-demotion-add-support-for-explicit-memory-tiers.patch
mm-demotion-move-memory-demotion-related-code.patch
mm-demotion-add-hotplug-callbacks-to-handle-new-numa-node-onlined.patch
mm-demotion-dax-kmem-set-nodes-abstract-distance-to-memtier_default_dax_adistance.patch
mm-demotion-build-demotion-targets-based-on-explicit-memory-tiers.patch
mm-demotion-add-pg_data_t-member-to-track-node-memory-tier-details.patch
mm-demotion-drop-memtier-from-memtype.patch
mm-demotion-update-node_is_toptier-to-work-with-memory-tiers.patch
lib-nodemask-optimize-node_random-for-nodemask-with-single-numa-node.patch
mm-demotion-expose-memory-tier-details-via-sysfs.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-26 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 21:00 [folded-merged] mm-demotion-expose-memory-tier-details-via-sysfs-v4.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.