lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250227224828.306537-1-tony.luck@intel.com>
Date: Thu, 27 Feb 2025 14:48:24 -0800
From: Tony Luck <tony.luck@...el.com>
To: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
	Len Brown <lenb@...nel.org>
Cc: linux-acpi@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	patches@...ts.linux.dev,
	Tony Luck <tony.luck@...el.com>
Subject: [PATCH v2 0/4] Add interfaces for ACPI MRRM table

Memory used to be homogeneous. Then NUMA came along. Later different
types of memory (persistent memory, on-package high bandwidth memory,
CXL attached memory).

Each type of memory has its own performance characteristics, and users
will need to monitor and control access by type.

The MRRM solution is to tag physical address ranges with "region IDs"
so that platform firmware[1] can indicate the type of memory for each
range (with separate tags available for local vs. remote access to
each range). Note that these ranges can include addresses reserved
for future hotplugged memory.

The region IDs will be used to provide separate event counts for each
region for "perf" and for the "resctrl" file system to monitor and
control memory bandwidth in each region.

Users will need to know the address range(s) that are part of each
region. This patch series adds
	/sys/firmware/acpi/memory_ranges/rangeX
directories to provide user space accessible enumeration.

-Tony

[1] MRRM definition allow for future expansion for the OS to assign
these region IDs.

Changes since v1 posted at:
  https://lore.kernel.org/all/20250210211223.6139-1-tony.luck@intel.com/

1) Target /sys directory for the files moved from
  /sys/devices/system/memory to /sys/firmware/acpi/memory.

While the old target had a useful sounding name, it is really all about
hotplug memory while this enumeration is about different types of memory
with hotplug being a non-issue as memory ranges can describe addresses
that are reserved for future addition of different types of memory.

2) The ACPICA changes in patch one have been committed to the acpica
git repository and will make their way into Linux for the next ACPICA
release. Patch included here for convenience.

3) I included a "testing" patch that provides a fake MRRM table so
that anyone can compile and run this series to check things out.

Tony Luck (4):
  ACPICA: Define MRRM ACPI table
  ACPI/MRRM: Create /sys/firmware/acpi/memory_ranges/rangeX ABI
  ACPI: Add documentation for exposing MRRM data
  acpi_mrrm: fake for testing, do not apply!

 include/linux/acpi.h                          |   6 +
 include/acpi/actbl1.h                         |   7 +
 include/acpi/actbl2.h                         |  42 ++++
 drivers/acpi/acpi_mrrm.c                      | 185 ++++++++++++++++++
 Documentation/ABI/testing/sysfs-firmware-acpi |  16 ++
 arch/x86/Kconfig                              |   1 +
 drivers/acpi/Kconfig                          |   3 +
 drivers/acpi/Makefile                         |   1 +
 8 files changed, 261 insertions(+)
 create mode 100644 drivers/acpi/acpi_mrrm.c


base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
-- 
2.48.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ