All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "Ardelean, Andrei" <Andrei.Ardelean@idt.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Does Mips Linux rely on Yamon h/w initialization (other than DDR memory which is strictly necessary)?
Date: Wed, 18 Aug 2010 14:51:15 +0100	[thread overview]
Message-ID: <20100818135115.GC25740@linux-mips.org> (raw)
In-Reply-To: <AEA634773855ED4CAD999FBB1A66D076FC3BDF@CORPEXCH1.na.ads.idt.com>

On Wed, Aug 18, 2010 at 06:31:42AM -0700, Ardelean, Andrei wrote:

> Malta board has Yamon monitor which initializes the DDR memory and other
> h/w. Does Mips Linux rely on Yamon h/w initialization (except memory)
> like PCI, NET, UART, etc in order to boot? Does Mips Linux re-initialize
> the h/w again? 
> I am booting Linux on Malta with a small monitor which initializes only
> the memory. I pass the environment vars array, command line arguments
> and memory size as Yamon would do. The ASCII display shows "Linux on
> Malta" scrolling text so Linux kernel it seems that at least it started
> but there is no NET activity and no messages on UART.

That's a bit of an ugly topic and some black art is involved here.  We
leave the initialization of CPU, caches and memory controllers entirely
to the firmware.

For the remainder Linux tries to perform the initilization itself but
sometimes by accident not intention a register that was already
initialized by firmware will not be initialized by Linux but the
omission will not be notized because it already has a correct value.

PCI is particularl problem.  On some platforms firmware initializes the
bus and re-initializing the bus would break the firmware or be very
complex.  On such a system Linux will just scan the PCI bus and re-use
the existing configuration.  On most platforms however Linux will do a
better job than the existing firmware and fully reinitialize the entire
PCI bus hierarchy.

  Ralf

  reply	other threads:[~2010-08-18 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 13:31 Does Mips Linux rely on Yamon h/w initialization (other than DDR memory which is strictly necessary)? Ardelean, Andrei
2010-08-18 13:31 ` Ardelean, Andrei
2010-08-18 13:51 ` Ralf Baechle [this message]
2010-08-18 15:08   ` Ardelean, Andrei
2010-08-18 15:08     ` Ardelean, Andrei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100818135115.GC25740@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=Andrei.Ardelean@idt.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.