Skip to content

hw/sparc/sun4m: Limit max_mem to what the memory controllers decode

Imre Kaloz qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/sparc/sun4m: End the empty slot at iommu_basehw/sparc/sun4m.c+5 -20 replies
2/2hw/sparc/sun4m: Limit max_mem to what the memory controllers decodedocs/system/target-sparc.rst hw/sparc/sun4m.c+13 -100 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] hw/sparc/sun4m: Limit max_mem to what the memory controllers decode

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/[email protected]

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

Signature · 1 line
2.47.3