linux-stable/arch/s390
David Hildenbrand 6e55421ea5 s390/sparsemem: Provide memory_add_physaddr_to_nid() with CONFIG_NUMA
virtio-mem uses memory_add_physaddr_to_nid() to determine the NID to use
for memory it adds.

We currently fallback to the dummy implementation in mm/numa.c with
CONFIG_NUMA, which will end up triggering an undesired pr_info_once():

	Unknown online node for memory at 0x100000000, assuming node 0

On s390, we map all cpus and memory to node 0, so let's add a simple
memory_add_physaddr_to_nid() implementation that does exactly that,
but without complaining.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Tested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20241025141453.1210600-8-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2024-11-07 10:26:25 +01:00
..
appldata sysctl: treewide: constify the ctl_table argument of proc_handlers 2024-07-24 20:59:29 +02:00
boot s390/physmem_info: Query diag500(STORAGE LIMIT) to support QEMU/KVM memory devices 2024-11-07 10:26:24 +01:00
configs s390/pkey: Add new pkey handler module pkey-uv 2024-10-29 11:17:18 +01:00
crypto s390/crypto: Add hardware acceleration for full AES-XTS mode 2024-10-29 11:17:19 +01:00
hypfs [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
include s390/sparsemem: Provide memory_add_physaddr_to_nid() with CONFIG_NUMA 2024-11-07 10:26:25 +01:00
kernel s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex 2024-10-31 10:50:06 +01:00
kvm s390/kvm: Mask extra bits from program interrupt code 2024-11-07 10:23:43 +01:00
lib s390/alternatives: Rework to allow for callbacks 2024-07-23 16:02:31 +02:00
mm s390/mm: Cleanup fault error handling 2024-10-29 11:49:19 +01:00
net s390/bpf: Implement exceptions 2024-07-08 16:39:35 +02:00
pci s390/pci: Expose FIDPARM attribute in sysfs 2024-10-10 15:32:44 +02:00
purgatory s390: Fix various typos 2024-10-25 16:03:23 +02:00
tools s390 updates for 6.12 merge window 2024-09-21 09:02:54 -07:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390/mm: Convert to LOCK_MM_AND_FIND_VMA 2024-10-29 11:49:19 +01:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390: use a larger stack for KMSAN 2024-07-03 19:30:24 -07:00
Makefile.postlink s390/build: Avoid relocation information in final vmlinux 2024-08-27 20:16:48 +02:00