The SS-10, SS-20 and SPARCserver 600MP accept -m up to 60 GiB, and the
LX, SS-4, SPARCclassic, SPARCbook and Voyager 256 MiB, more than their
memory controllers decode. Above 4 GiB the sparc32 OpenBIOS reads only
the low 32 bits of the fw_cfg RAM size, so -m 5120 boots as -m 1024.
Patch 1 ends the empty slot for missing RAM at iommu_base instead of at
max_mem, which does not change the layout today. Patch 2 lowers max_mem
on each machine to the memory its controller decodes.
Changes in v2:
- Split the empty slot change out of the limits patch, as requested by
Mark Cave-Ayland.
- Kept Philippe Mathieu-Daudé's Reviewed-by on both patches.
- No code change.
v1: https://lore.kernel.org/r/20260928112935.19447-1-kaloz@kernel.org
Imre Kaloz (2):
hw/sparc/sun4m: End the empty slot at iommu_base
hw/sparc/sun4m: Limit max_mem to what the memory controllers decode
docs/system/target-sparc.rst | 6 ++++--
hw/sparc/sun4m.c | 24 ++++++++++++++----------
2 files changed, 18 insertions(+), 12 deletions(-)
base-commit: 1c1f512972b25229d4b69ae7a3a7e5d7df30a6a6
--
2.47.3