Using more than 1 GB in qemu-m68k-system
Hi!
When installing Debian/m68k inside qemu-m68k-system [1], we are currently limited to 1 GB of physical memory which is due to a limit in the Linux kernel as far as I know.
However, I also know that it is possible to run the m68k kernel on Aranym with up to 3.5 GB of RAM. Thus, I was wondering whether there would be chance we could get the kernel patched to support more than 1 GB of memory also on qemu-m68k-system which currently emulates an Apple Macintosh Quadra 800 system.
Adrian
Quoted 1 line
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 6 lines · John Paul Adrian Glaubitz
Hi!
When installing Debian/m68k inside qemu-m68k-system [1], we are currently limited to 1 GB of physical memory which is due to a limit in the Linux kernel as far as I know.
Quoted 10 lines
However, I also know that it is possible to run the m68k kernel on Aranym with up to 3.5 GB of RAM. Thus, I was wondering whether there would be chance we could get the kernel patched to support more than 1 GB of memory also on qemu-m68k-system which currently emulates an Apple Macintosh Quadra 800 system.
Adrian
Quoted 1 line
I believe that the reason for the limitation is the Mac memory map, as Laurent pointed out in the issue tracker,
https://github.com/vivier/qemu-m68k/issues/42
It's theoretically possible to use NuBus slot space for additional RAM.
The super slot space ($6000 0000 thru $EFFF FFFF) is 2304 MB in size and the standard slot space ($F100 0000 thru $FFFF FFFF) is another 239 MB.
I'm not sure about any hardware designs that took advantage of this possibility (Radius Rocket perhaps?).
Quoted 11 lines · Finn Thain
I believe that the reason for the limitation is the Mac memory map, as Laurent pointed out in the issue tracker,
https://github.com/vivier/qemu-m68k/issues/42It's theoretically possible to use NuBus slot space for additional RAM.
The super slot space ($6000 0000 thru $EFFF FFFF) is 2304 MB in size and the standard slot space ($F100 0000 thru $FFFF FFFF) is another 239 MB.
I'm not sure about any hardware designs that took advantage of this possibility (Radius Rocket perhaps?).
On the fundamental issue, yes the Mac uses $0000 0000 to $3FFF FFFF for RAM, with $4000 0000 the start of ROM and $5000 0000 the start of the internal devices.
The Radius Rocket does have RAM, but I never checked if it was visible from the host. It seems like it should be to do a few of the things it does. I've never tried to poke at mine while in Linux. I'll add it to the list of things to try. Even then, it would be slower than the RAM directly on the processor bus.
We could probably emulate a fake NuBus card in qemu that is just memory in the super slot space for that card. Can a regular driver add RAM, or would we have to detect that in the core code somewhere?
Brad Boyer
[email protected]
Hi Brad,
Quoted 3 lines · Brad Boyer
We could probably emulate a fake NuBus card in qemu that is just memory in the super slot space for that card. Can a regular driver add RAM, or would we have to detect that in the core code somewhere?
I think a regular driver can do that, if CONFIG_MEMORY_HOTPLUG=y. However, the latter depends on CONFIG_SPARSEMEM.
The early core code can just call memblock_add(), though.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 12 lines · Geert Uytterhoeven
Hi Brad,
Quoted 3 lines · Brad Boyer
We could probably emulate a fake NuBus card in qemu that is just memory in the super slot space for that card. Can a regular driver add RAM, or would we have to detect that in the core code somewhere?
I think a regular driver can do that, if
CONFIG_MEMORY_HOTPLUG=y. However, the latter depends onCONFIG_SPARSEMEM.The early core code can just call
memblock_add(), though.
The nubus subsystem isn't available during early boot. The regular driver option might be the best option.
BTW, the Nubus memory mapping done in arch/m68k/kernel/head.S (0xf8000000 through 0xffffffff) covers the standard slot space but not the super slot space.
Quoted 5 lines
Gr{oetje,eeting}s,
Geert