public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: "Natalie Protasevich" <protasnb@gmail.com>
To: linux-ia64@vger.kernel.org
Subject: Re: BINIT and physical address
Date: Wed, 15 Aug 2007 19:12:18 +0000	[thread overview]
Message-ID: <32209efe0708151212m2e5b7ba3w56940dc88f2aac9e@mail.gmail.com> (raw)
In-Reply-To: <32209efe0708131042p68748b3el85d3ec4d76864244@mail.gmail.com>

On 8/14/07, Luck, Tony <tony.luck@intel.com> wrote:
> > Some help is needed with debugging of a hang.
> > A system hits BINIT once in a while and the processors are all
> > spinning on the address 0x00100002C00 and if the HT is off the address
> > becomes 0x0020000A80. This is a physical address captured on the bus
> > by analyser. How can this address be decoded to find out what are the
> > processors are spinning on?
>
> Natalie,
>
> The Linux kernel is typically loaded at physical address 0x400000 (64MB)
> in one continuous block.  If that address doesn't exist on your platform
> then elilo will get some other 64MB aligned address instead.  You may be
> able to tell what is the state on you machine by looking at the TLB 'TR'
> registers:
> $ cat /proc/pal/cpu0/tr_info
>
> Look at the mappings for ITR0 and DTR0 ... they map the kernel. I
> say 'may' because some older systems didn't report TR maps
> correctly.
>
> Kernel modules loaded after boot will be all over the place.  You
> can easily find the virtual addresses in use with:
> $ cat /proc/modules
> But there isn't a user-mode accessible way to convert them to
> physical addresses.  You could write a small loadable driver to
> do this.  It is unlikely that all the modules would end up with
> exactly the same physical addresses from one boot to the next,
> so you'll need to capture this information before the BINIT hits.
>
> You should also check whether the memory addresses in question
> were available for Linux to use.
> $ cat /proc/iomem
>
> Unless the addresses are marked as "System RAM" they wouldn't
> have been used by Linux ... so if you are spinning there, it
> is because they are part of firmware (PAL, SAL, EFI).
>
> -Tony
>
Thanks Tony and Bernhard, this was exactly what I was looking for. It
is not identity mapped and I suppose can get regions and ranges in
translation registers etc. Then after getting the modules mapping it's
a matter of running ITP...

--Natalie

      parent reply	other threads:[~2007-08-15 19:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 17:42 BINIT and physical address Natalie Protasevich
2007-08-14 21:10 ` Luck, Tony
2007-08-14 21:36 ` Bernhard Walle
2007-08-15 19:12 ` Natalie Protasevich [this message]

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=32209efe0708151212m2e5b7ba3w56940dc88f2aac9e@mail.gmail.com \
    --to=protasnb@gmail.com \
    --cc=linux-ia64@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox