LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "mike zheng" <mail4mz@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: PCI configuration registers(BARs)
Date: Fri, 30 Nov 2007 13:33:46 -0500	[thread overview]
Message-ID: <5c9cd53b0711301033w4b98a35coc275298d288973cb@mail.gmail.com> (raw)

Hi All,

I set PCI configuration registers(BARs) of a PCI adapter as following in Uboot:


  base address 0 =              0xf4000001
  base address 1 =              0xf4000041
  base address 2 =              0xf4000081
  base address 3 =              0xa0000000
  base address 4 =              0xa0020000
  base address 5 =              0x00000000

However when I start Linux2.4 kernel, the same adapter's PCI
configuration registers have following values:
BaseAddr[0]=0x3ffffc0
BaseAddr[1]=0x3ffffb0
BaseAddr[2]=0x3ffff00
    After ioremap BaseAddr[3]=0xa1002000
BaseAddr[3]=0xa1002000
    After ioremap BaseAddr[4]=0xa1004000
BaseAddr[4]=0xa1004000
BaseAddr[5]=0x0

This is a working system on MPC8548, everything including PCI adapter
works fine. My question is why the values are different in Uboot and
Linux? The value under Uboot is reasonable, since the PCI outbound
window is set up as 0xA0000000 and 0XF4000000. In addition, the value
seems falling into the outbound window after the ioremap() is called
on BAR3 and BAR4. The ioremap() will failed if I try to convert BAR0,
BAR1, BAR2.

Thanks in advance,

Mike

                 reply	other threads:[~2007-11-30 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5c9cd53b0711301033w4b98a35coc275298d288973cb@mail.gmail.com \
    --to=mail4mz@gmail.com \
    --cc=linuxppc-dev@ozlabs.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