mm/hmm: add new helper to hotplug CDM memory region
Subsystems (2)
[email protected]
maintainerPATCH 29/126 mm/hmm: add new helper to hotplug CDM memory region
From: Jérôme Glisse <[email protected]>
Subject: mm/hmm: add new helper to hotplug CDM memory region
Unlike unaddressable memory, coherent device memory has a real resource associated with it on the system (as CPU can address it). Add a new helper to hotplug such memory within the HMM framework.
Signed-off-by Jérôme Glisse <[email protected]>
Reviewed-by Balbir Singh <[email protected]>
Cc Aneesh Kumar <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Dan Williams <[email protected]>
Cc David Nellans <[email protected]>
Cc Evgeny Baskakov <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc John Hubbard <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Mark Hairgrove <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Ross Zwisler <[email protected]>
Cc Sherry Cheung <[email protected]>
Cc Subhash Gutti <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Bob Liu <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/hmm.h | 3 + mm/hmm.c | 88 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 86 insertions(+), 5 deletions(-)
include/linux/hmm.h renamed from include/linux/hmm.h~mm-hmm-add-new-helper-to-hotplug-cdm-memory-region-v3 +3 -0
@@ -443,6 +443,9 @@ struct hmm_devmem {struct hmm_devmem *hmm_devmem_add (const struct hmm_devmem_ops *ops,struct device *device,unsigned long size); +struct hmm_devmem *hmm_devmem_add_resource (const struct hmm_devmem_ops *ops, +struct device *device, +struct resource *res);void hmm_devmem_remove (struct hmm_devmem *devmem);/*
mm/hmm.c renamed from mm/hmm.c~mm-hmm-add-new-helper-to-hotplug-cdm-memory-region-v3 +83 -5
129 lines not on this page · raw message
_