From: Jes Sorensen <jes@wildopensource.com>
To: James.Smart@Emulex.Com
Cc: <linux-kernel@vger.kernel.org>, <greg@kroah.com>
Subject: Re: Potential issue with some implementations of pci_resource_start()
Date: 17 Nov 2004 04:58:38 -0500 [thread overview]
Message-ID: <yq01xesajap.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <0B1E13B586976742A7599D71A6AC733C12E716@xbl3.ma.emulex.com>
>>>>> "James" == James Smart <James.Smart@Emulex.Com> writes:
James> According to Documentation/pci.txt: pci_resource_start() is to
James> return the bus start address of the bar. It should essentially
James> be a portable way to obtain the bar value without reading PCI
James> config space directly.
According to Documentation/pci.txt:
pci_resource_start() Returns bus start address for a given
PCI region
James> We have encountered at least 2 platforms (HP Integrity (IA-64)
James> Olympia rx8620 partition, and a dual-processor IBM eServer
James> pSeries p615) - where the contents of pci_resource_start() vary
James> from the contents of the BARs in config space. For example: on
James> IA64 Olympia: pci_resource_start(pcidev,0) =
James> 0x00000f0030040000; pci bar0 word 0xf0040004, bar1 word 0x0 On
James> PPC eServer: pci_resource_start(pcidev,0) = 0x000003fd80000000;
James> pci bar0 word 0xc0000004, bar1 word 0x0
James> We have demonstrated this on both the 2.4.21 and 2.6.5 kernels.
James> Are these platform bugs that need to be corrected ? or is it a
James> change in the pci_resource_start() definition ?
pci_resource_start will rather give you a cookie that you can pass to
iomap() (ioremap() in the old API) etc. You shouldn't be relying on
the physical bar content for anything in a Linux driver.
Are you unable to access the space after mapping it?
Cheers,
Jes
next prev parent reply other threads:[~2004-11-17 9:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 3:25 James.Smart
2004-11-17 9:58 ` Jes Sorensen [this message]
2004-11-17 12:51 ` linux-os
2004-11-17 14:18 James.Smart
2004-11-17 17:44 ` Greg KH
2004-11-17 17:54 James.Smart
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=yq01xesajap.fsf@jaguar.mkp.net \
--to=jes@wildopensource.com \
--cc=James.Smart@Emulex.Com \
--cc=greg@kroah.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®