* More than 4G of memory on Sparc32?
@ 2007-09-26 19:21 Blue Swirl
2007-09-26 19:57 ` Chris Newport
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Blue Swirl @ 2007-09-26 19:21 UTC (permalink / raw)
To: sparclinux
Hi,
I've tried to add support to Qemu (and OpenBIOS) for more than 4G of
memory for the Sparc32 target. But now it seems that Linux can't use
this memory after all. The first show stopper is this code in
arch/sparc/prom/memory.c:
111 /* Grrr, have to traverse the prom device tree ;( */
112 node = prom_getchild(prom_root_node);
113 node = prom_searchsiblings(node, "memory");
114 num_regs = prom_getproperty(node, "available",
115 (char *) prom_reg_memlist,
116 sizeof(prom_reg_memlist));
117 num_regs = (num_regs/sizeof(struct linux_prom_registers));
118 for(iter=0; iter<num_regs; iter++) {
119 prom_phys_avail[iter].start_adr 120 (char *) prom_reg_memlist[iter].phys_addr;
121 prom_phys_avail[iter].num_bytes 122 (unsigned long)
prom_reg_memlist[iter].reg_size;
123 prom_phys_avail[iter].theres_more 124 &prom_phys_avail[iter+1];
125 }
Here prom_reg_memlist[iter].which_io is not used at all. It would be
needed to access the memory above the first 4G.
Some real Sparc32 machines could have >4G RAM (SC2000), maybe nobody
tried to run Linux on those. The BSDs aren't any better.
Will this ever be fixed? Anybody out there with a real machine and
lots of memory?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: More than 4G of memory on Sparc32?
2007-09-26 19:21 More than 4G of memory on Sparc32? Blue Swirl
@ 2007-09-26 19:57 ` Chris Newport
2007-09-26 20:52 ` David Miller
2007-09-28 14:53 ` Blue Swirl
2 siblings, 0 replies; 4+ messages in thread
From: Chris Newport @ 2007-09-26 19:57 UTC (permalink / raw)
To: sparclinux
Blue Swirl wrote:
>Some real Sparc32 machines could have >4G RAM (SC2000), maybe nobody
>tried to run Linux on those. The BSDs aren't any better.
>
>Will this ever be fixed? Anybody out there with a real machine and
>lots of memory?
>
>
AFAIK the only Sparc32 machines which could support more than
4G was the SS2000 and a Cray box which were both sun4d and therefore not
currently supported.
These machines are rather scarce and there seems to be little
prospect of the sun4d issues being resolved, even for the smaller
SS1000.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: More than 4G of memory on Sparc32?
2007-09-26 19:21 More than 4G of memory on Sparc32? Blue Swirl
2007-09-26 19:57 ` Chris Newport
@ 2007-09-26 20:52 ` David Miller
2007-09-28 14:53 ` Blue Swirl
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-09-26 20:52 UTC (permalink / raw)
To: sparclinux
From: "Blue Swirl" <blauwirbel@gmail.com>
Date: Wed, 26 Sep 2007 22:21:42 +0300
> Will this ever be fixed? Anybody out there with a real machine and
> lots of memory?
Since you have a qemu with >4GB support you are in the best
position the fix this :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: More than 4G of memory on Sparc32?
2007-09-26 19:21 More than 4G of memory on Sparc32? Blue Swirl
2007-09-26 19:57 ` Chris Newport
2007-09-26 20:52 ` David Miller
@ 2007-09-28 14:53 ` Blue Swirl
2 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2007-09-28 14:53 UTC (permalink / raw)
To: sparclinux
On 9/26/07, David Miller <davem@davemloft.net> wrote:
> From: "Blue Swirl" <blauwirbel@gmail.com>
> Date: Wed, 26 Sep 2007 22:21:42 +0300
>
> > Will this ever be fixed? Anybody out there with a real machine and
> > lots of memory?
>
> Since you have a qemu with >4GB support you are in the best
> position the fix this :-)
Maybe. There are other similar limits that could be explored and
fixed, for example Qemu supports 16 CPUs on a plain Sun4m and there
are patches allowing lots of disks. But I don't see what's the point
fixing the issues if there are no real machines where removing these
limits would matter.
If I implemented in Qemu a completely new system (Sun4q?) with a
Sparc-like CPU of my own design, would you accept any patches to
support that in Linux?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-28 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 19:21 More than 4G of memory on Sparc32? Blue Swirl
2007-09-26 19:57 ` Chris Newport
2007-09-26 20:52 ` David Miller
2007-09-28 14:53 ` Blue Swirl
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.