qemu-cr16/hw/ppc
Harsh Prateek Bora 6285eebd3a
ppc/spapr: init lrdr-capapcity phys with ram size if maxmem not provided
lrdr-capacity contains phys field which communicates the maximum address
in bytes and therefore, the most memory that can be allocated to this
partition. This is usually populated when maxmem is provided alongwith
memory size on qemu command line. However since maxmem is an optional
param, this leads to bits being set to 0 in absence of maxmem param.
Fix this by initializing the respective bits as per total mem size in
such case.

Reported-by: Gaurav Batra <gbatra@us.ibm.com>
Tested-by: David Christensen <drc@linux.ibm.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Link: https://lore.kernel.org/r/20250506042903.76250-1-harshpb@linux.ibm.com
Message-ID: <20250506042903.76250-1-harshpb@linux.ibm.com>
2025-09-28 23:45:28 +05:30
..
amigaone.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
e500-ccsr.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
e500.c hw: Fix type constant for DTB files 2025-06-17 09:54:51 +02:00
e500.h hw/ppc/e500: Move clock and TB frequency to machine class 2025-06-10 12:59:09 +02:00
e500plat.c hw/ppc/e500: Move clock and TB frequency to machine class 2025-06-10 12:59:09 +02:00
fdt.c
fw_cfg.c
Kconfig hw/ppc: Add a test machine for the IBM PPE42 CPU 2025-09-28 23:39:52 +05:30
mac_newworld.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
mac_oldworld.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
meson.build hw/ppc: Add a test machine for the IBM PPE42 CPU 2025-09-28 23:39:52 +05:30
mpc8544_guts.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
mpc8544ds.c hw/ppc/e500: Move clock and TB frequency to machine class 2025-06-10 12:59:09 +02:00
pef.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pegasos2.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv.c ppc/pnv: Add ChipTOD model for Power11 2025-09-28 23:22:06 +05:30
pnv_adu.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_bmc.c ppc/pnv: Move the PNOR LPC address into struct PnvPnor 2025-03-20 19:58:10 +10:00
pnv_chiptod.c ppc/pnv: Add ChipTOD model for Power11 2025-09-28 23:22:06 +05:30
pnv_core.c ppc/pnv: Introduce Pnv11Chip 2025-09-28 23:21:58 +05:30
pnv_homer.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pnv_i2c.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_lpc.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_n1_chiplet.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_nest_pervasive.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_occ.c hw/ppc/pnv_occ: skip automatic zero-init of large struct 2025-06-12 13:40:16 -04:00
pnv_pnor.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pnv_psi.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pnv_sbe.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pnv_xscom.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
ppc.c cpus: properly kick CPUs out of inner execution loop 2025-09-17 19:00:55 +02:00
ppc4xx_devs.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ppc4xx_sdram.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ppc440.h ppc440: Remove ppc460ex_pcie_init legacy init function 2023-07-07 04:47:49 -03:00
ppc440_bamboo.c system/datadir: Add new type constant for DTB files 2025-04-25 17:09:58 +02:00
ppc440_uc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ppc_booke.c hw/ppc: Support for an IBM PPE42 CPU decrementer 2025-09-28 23:39:19 +05:30
ppce500_spin.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ppe42_machine.c hw/ppc: Add a test machine for the IBM PPE42 CPU 2025-09-28 23:39:52 +05:30
prep.c hw/pci-host/raven: Revert "raven: Move BIOS loading from board code to PCI host" 2025-06-10 11:06:46 +02:00
prep_systemio.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
rs6000_mc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
sam460ex.c system/datadir: Add new type constant for DTB files 2025-04-25 17:09:58 +02:00
spapr.c ppc/spapr: init lrdr-capapcity phys with ram size if maxmem not provided 2025-09-28 23:45:28 +05:30
spapr_caps.c include/system: Move exec/ram_addr.h to system/ram_addr.h 2025-04-23 14:08:24 -07:00
spapr_cpu_core.c qom: Constify TypeInfo::class_data 2025-04-25 17:00:41 +02:00
spapr_drc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_events.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
spapr_hcall.c hw/ppc/spapr: Use tb_invalidate_phys_range in h_page_init 2025-09-24 10:29:43 -07:00
spapr_iommu.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_irq.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
spapr_nested.c include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
spapr_numa.c spapr: Remove support for NVIDIA V100 GPU with NVLink2 2023-09-18 07:25:28 -03:00
spapr_nvdimm.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_ovec.c exec/cpu-all: remove system/memory include 2025-04-23 15:04:57 -07:00
spapr_pci.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
spapr_pci_vfio.c include/hw/vfio/vfio-container.h: rename file to vfio-container-legacy.h 2025-09-25 17:55:19 +02:00
spapr_rng.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_rtas.c cpus: properly kick CPUs out of inner execution loop 2025-09-17 19:00:55 +02:00
spapr_rtas_ddw.c spapr/ddw: Implement 64bit query extension 2022-07-06 10:22:37 -03:00
spapr_rtc.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_tpm_proxy.c hw/ppc/spapr_tpm_proxy: skip automatic zero-init of large arrays 2025-06-12 13:40:16 -04:00
spapr_vhyp_mmu.c target/ppc: Unexport some functions from mmu-book3s-v3.h 2024-07-26 09:51:34 +10:00
spapr_vio.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
spapr_vof.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
trace-events ppc/pnv: Begin a more complete ADU LPC model for POWER9/10 2024-07-26 09:21:06 +10:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
virtex_ml507.c system/datadir: Add new type constant for DTB files 2025-04-25 17:09:58 +02:00
vof.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00