OpenCloudOS-Kernel/drivers/dax
Dan Williams da32a36455 device-dax: Add a driver for "hmem" devices
commit a6c7f4c6ae upstream.

Platform firmware like EFI/ACPI may publish "hmem" platform devices.
Such a device is a performance differentiated memory range likely
reserved for an application specific use case. The driver gives access
to 100% of the capacity via a device-dax mmap instance by default.

However, if over-subscription and other kernel memory management is
desired the resulting dax device can be assigned to the core-mm via the
kmem driver.

This consumes "hmem" devices the producer of "hmem" devices is saved for
a follow-on patch so that it can reference the new CONFIG_DEV_DAX_HMEM
symbol to gate performing the enumeration work.

Intel-SIG: commit a6c7f4c6ae device-dax: Add a driver for "hmem"
devices.
Backport for "EFI Specific Purpose Memory Support".

Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[ Huaisheng Ye amend commit log ]
Signed-off-by: Huaisheng Ye <huaisheng.ye@intel.com>
2024-06-11 21:18:38 +08:00
..
pmem memremap: move dev_pagemap callbacks into a separate structure 2019-07-02 14:32:44 -03:00
Kconfig device-dax: Add a driver for "hmem" devices 2024-06-11 21:18:38 +08:00
Makefile device-dax: Add a driver for "hmem" devices 2024-06-11 21:18:38 +08:00
bus.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bus.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dax-private.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
device.c device-dax: use the dev_pagemap internal refcount 2019-07-02 14:32:44 -03:00
hmem.c device-dax: Add a driver for "hmem" devices 2024-06-11 21:18:38 +08:00
kmem.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
super.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00