OpenCloudOS-Kernel/drivers
Dan Williams a894358930 ACPI: NUMA: Up-level "map to online node" functionality
commit b2ca916ce3 upstream.

The acpi_map_pxm_to_online_node() helper is used to find the closest
online node to a given proximity domain. This is used to map devices in
a proximity domain with no online memory or cpus to the closest online
node and populate a device's 'numa_node' property. The numa_node
property allows applications to be migrated "close" to a resource.

In preparation for providing a generic facility to optionally map an
address range to its closest online node, or the node the range would
represent were it to be onlined (target_node), up-level the core of
acpi_map_pxm_to_online_node() to a generic mm/numa helper.

Intel-SIG: commit b2ca916ce3 ACPI: NUMA: Up-level "map to online node"
functionality
Backport for SGX virtualization support on Intel Xeon platform.

Cc: Michal Hocko <mhocko@suse.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/158188324802.894464.13128795207831894206.stgit@dwillia2-desk3.amr.corp.intel.com
[ Zhiquan Li: amend commit log ]
Signed-off-by: Zhiquan Li <zhiquan1.li@intel.com>
2024-06-11 21:23:37 +08:00
..
accessibility
acpi ACPI: NUMA: Up-level "map to online node" functionality 2024-06-11 21:23:37 +08:00
amba ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
android ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ata PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2024-06-11 21:14:44 +08:00
atm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
auxdisplay ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
base msi: dynamic dev_msi 2024-06-11 21:16:19 +08:00
bcma bcma: make arrays pwr_info_offset and sprom_sizes static const, shrinks object size 2019-09-13 16:44:49 +03:00
block nbd: Fix NULL pointer in flush_workqueue 2024-06-11 21:18:44 +08:00
bluetooth ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cdrom tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
char Add support for Phytium SoC RNG 2024-06-11 21:23:33 +08:00
clk ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
clocksource ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
connector
counter ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cpufreq cpufreq: Fix Kconfig indentation 2024-06-11 21:12:04 +08:00
cpuidle cpuidle: haltpoll: Call cpuidle_poll_state_init() later 2024-06-11 21:12:28 +08:00
crypto anolis: crypto: iax: Fix deflate crash caused by global shared tfm 2024-06-11 21:18:16 +08:00
dax device-dax: Add a driver for "hmem" devices 2024-06-11 21:18:38 +08:00
dca
devfreq ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dio
dma dmaengine: idxd: Fix max batch size for Intel IAA 2024-06-11 21:18:44 +08:00
dma-buf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
edac EDAC/i10nm: Add driver decoder for Sapphire Rapids server 2024-06-11 21:18:28 +08:00
eisa
extcon ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
firewire compat_ioctl: move drivers to compat_ptr_ioctl 2024-06-11 21:14:45 +08:00
firmware x86/efi: Add efi_fake_mem support for EFI_MEMORY_SP 2024-06-11 21:18:37 +08:00
fpga ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
fsi tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
gnss ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
gpio GPIO driver support for Phytium desktop and embedded CPUs 2024-06-11 21:18:50 +08:00
gpu DRM phytium Add Phytium Display Engine support 2024-06-11 21:23:28 +08:00
greybus
hid compat_ioctl: move drivers to compat_ptr_ioctl 2024-06-11 21:14:45 +08:00
hsi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hv ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hwmon Add support for Phytium fan tacho driver support 2024-06-11 21:23:27 +08:00
hwspinlock Add driver for Phytium Hardware semaphore device found in E-series SoCs 2024-06-11 21:23:30 +08:00
hwtracing compat_ioctl: move drivers to compat_ptr_ioctl 2024-06-11 21:14:45 +08:00
i2c I2C driver support for Phytium Desktop CPUs 2024-06-11 21:18:47 +08:00
i3c I3C driver support for Phytium desktop and embedded CPUs 2024-06-11 21:23:32 +08:00
ide ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
idle cpuidle,intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE 2024-06-11 21:17:54 +08:00
iio Add Phytium ADC support 2024-06-11 21:23:31 +08:00
infiniband ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
input Input: Add a new serio driver for Phytium PCI PS/2 controller 2024-06-11 21:23:33 +08:00
interconnect ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
iommu iommu/vt-d: Retain PASID entry if guest switched remapping mode 2024-06-11 21:18:02 +08:00
ipack ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
irqchip Add support for Phytium INTx controller 2024-06-11 21:23:25 +08:00
isdn ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
leds ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lightnvm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
macintosh ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mailbox mailbox driver support for Phytium desktop and embedded CPUs 2024-06-11 21:18:48 +08:00
mcb
md ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
media Phytium JPEG Encoder driver 2024-06-11 21:23:30 +08:00
memory ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
memstick PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2024-06-11 21:14:44 +08:00
message ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mfd I2S driver support for Phytium CPUs 2024-06-11 21:23:34 +08:00
misc lkdtm: Remove references to CONFIG_REFCOUNT_FULL 2024-06-11 21:18:08 +08:00
mmc sdci: fix Phytium sdci driver probe failed 2024-06-11 21:23:34 +08:00
mtd Add support for GD25Q128E, a 16MiB SPI Nor flash from GigaDevice 2024-06-11 21:23:30 +08:00
mux
net This patch makes stmmac driver support SBSA compatible Phytium 2024-06-11 21:18:50 +08:00
nfc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ntb PCI/AER: Rationalize error status register clearing 2024-06-11 21:10:54 +08:00
nubus
nvdimm lib: Uplevel the pmem "region" ida to a global allocator 2024-06-11 21:18:38 +08:00
nvme nvme-pci: set min_align_mask 2024-06-11 21:14:07 +08:00
nvmem ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
of of/irq: make of_msi_map_get_device_domain() bus agnostic 2024-06-11 21:11:41 +08:00
opp ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
oprofile
parisc dma-mapping: add a new dma_alloc_pages API 2024-06-11 21:11:34 +08:00
parport tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pci Add support for PCIe endpoint controller support 2024-06-11 21:23:27 +08:00
pcmcia Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2019-09-28 08:14:15 -07:00
perf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
phy ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pinctrl ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
platform platform/x86: ISST: use semi-colons instead of commas 2024-06-11 21:17:53 +08:00
pnp
power power: avs: Fix Kconfig indentation 2024-06-11 21:12:04 +08:00
powercap powercap: intel_rapl: support new layout of Psys PowerLimit Register on SPR 2024-06-11 21:17:53 +08:00
pps
ps3 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ptp tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pwm Add PWM supprt on Phytium SoCs 2024-06-11 21:23:34 +08:00
rapidio Revert "dmaengine: Remove the last, used parameters in dma_async_is_tx_complete" 2024-06-11 21:17:59 +08:00
ras ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
regulator ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
remoteproc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
reset tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
rpmsg ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
rtc RTC driver support for Phytium desktop and embedded CPUs 2024-06-11 21:18:49 +08:00
s390 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
sbus
scsi PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2024-06-11 21:14:44 +08:00
sfi
sh
siox
slimbus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soundwire ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
spi SPI platform driver support for Phytium desktop CPUS 2024-06-11 21:18:51 +08:00
spmi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ssb ssb: make array pwr_info_offset static const, makes object smaller 2019-09-13 17:23:18 +03:00
staging compat_ioctl: move drivers to compat_ptr_ioctl 2024-06-11 21:14:45 +08:00
target ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tc
tee OPTEE driver support for Phytium CPUs 2024-06-11 21:18:51 +08:00
thermal ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
thunderbolt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tty serial driver support for Phytium desktop and embedded CPUs 2024-06-11 21:18:49 +08:00
uio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
usb xHCI-Add-XHCI_SLOWDOWN_QUIRK-quirk-for-phytium-xHCI 2024-06-11 21:23:28 +08:00
vfio drivers/idxd: Fixup errors reported during DSA device migration 2024-06-11 21:18:02 +08:00
vhost compat_ioctl: move drivers to compat_ptr_ioctl 2024-06-11 21:14:45 +08:00
video fbmem: Do not delete the mode that is still in use 2024-06-11 21:18:45 +08:00
virt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
virtio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
visorbus tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
vlynq
vme tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
w1 add Phytium w1 bus master driver 2024-06-11 21:23:31 +08:00
watchdog ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
xen dma-direct: improve swiotlb error reporting 2024-06-11 21:11:20 +08:00
zorro
Kconfig Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
Makefile tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00