The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: linux-pci@atrey.karlin.mff.cuni.cz
Cc: benh@kernel.crashing.org,
	Linux Kernel list <linux-kernel@vger.kernel.org>,
	Matthew Wilcox <matthew@wil.cx>
Subject: Re: Weirdness in pci_read_bases()
Date: Mon, 3 Mar 2008 13:02:14 -0800	[thread overview]
Message-ID: <200803031302.14234.jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <200803031257.33249.jbarnes@virtuousgeek.org>

On Monday, March 03, 2008 12:57 pm Jesse Barnes wrote:
> > Not only iommu's. On lots of platforms, we have the PCI MMIO space
> > mapped 1:N, that is, an access at MMIO location N turns into a PCI cycle
> > with address 0. So outbound PCI is effectively remapped, thus allowing
> > access to things like 0 etc... without punching holes in RAM and without
> > other dirty x86-like tricks.
>
> Right, bus address space is really a separate entity; I was just using
> IOMMUs as an example of that...

Err, wasn't really clear here.  CPU->PCI space and PCI->host space are really 
separate entities... IOMMUs will definitely affect the PCI->host mapping, and 
CPU->PCI mappings can be arbitrarily complex as well, though as you say on 
PCs it's typically just flatly mapped into CPU physical space somewhere.

Jesse

  reply	other threads:[~2008-03-03 21:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29  2:37 Weirdness in pci_read_bases() Benjamin Herrenschmidt
2008-02-29  7:15 ` Grant Grundler
2008-03-03 19:12 ` Jesse Barnes
2008-03-03 20:42   ` Benjamin Herrenschmidt
2008-03-03 20:57     ` Jesse Barnes
2008-03-03 21:02       ` Jesse Barnes [this message]
2008-03-03 21:29     ` Alan Cox

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=200803031302.14234.jbarnes@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    --cc=matthew@wil.cx \
    /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