qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VersatilePB bug (or undefined behaviour)
@ 2015-01-27 20:04 Marc Marí
  2015-01-27 20:58 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Marí @ 2015-01-27 20:04 UTC (permalink / raw)
  To: qemu-devel

Hi

I was investigating a bit with a versatilepb machine, and I was trying
to boot a Linux system with a root file system through NFS. It worked
with Linux 3.2, but it didn't work with any later Linux version. This
was the error:

[    0.594471] smc91x: not found (-16).
[    0.595555] smc91x: probe of smc91x.0 failed with error -16

(Error -16 is EBUSY).

I debugged the error, and I found that the region was being marked as
"System RAM".

The problem was mine, I specified (because I did not change if from
previous boots) 1G as memory for the Versatile machine, which only has
256 MB of RAM

Should this be a bug, or is undefined behaviour? I think it is not very
difficult to check for the memory the user requests so it can be
limited to 256 MB and issue a warning if it is exceeded.

Thanks
Marc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] VersatilePB bug (or undefined behaviour)
  2015-01-27 20:04 [Qemu-devel] VersatilePB bug (or undefined behaviour) Marc Marí
@ 2015-01-27 20:58 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2015-01-27 20:58 UTC (permalink / raw)
  To: Marc Marí; +Cc: qemu-devel

On 27 January 2015 at 20:04, Marc Marí <marc.mari.barcelo@gmail.com> wrote:
> The problem was mine, I specified (because I did not change if from
> previous boots) 1G as memory for the Versatile machine, which only has
> 256 MB of RAM
>
> Should this be a bug, or is undefined behaviour? I think it is not very
> difficult to check for the memory the user requests so it can be
> limited to 256 MB and issue a warning if it is exceeded.

It's user error to specify more RAM than the board can handle.
I tried some years ago to get a patch added which allowed boards
to say how much RAM they could deal with so we could report this
more helpfully, but it got shot down as insufficiently generic
(not dealing with NUMA, weird boards with memory holes, boards
that only want you to add RAM in 512K chunks, etc, etc) and I
gave up.

-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-27 20:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-27 20:04 [Qemu-devel] VersatilePB bug (or undefined behaviour) Marc Marí
2015-01-27 20:58 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).