From: "Michael S. Tsirkin" <mst@redhat.com>
To: Grant Grundler <grantgrundler@gmail.com>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>,
Kyle McMartin <kyle@mcmartin.ca>, Helge Deller <deller@gmx.de>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
linux-parisc@vger.kernel.org
Subject: Re: [PATCH-RFC 07/10] parisc: switch to GENERIC_PCI_IOMAP
Date: Tue, 6 Dec 2011 13:06:09 +0200 [thread overview]
Message-ID: <20111206110608.GA10379@redhat.com> (raw)
In-Reply-To: <CANEJEGuHpT-SWEbRVN0WXbOSBcbP8HDhFjKjxUfShyV84pqazw@mail.gmail.com>
On Mon, Dec 05, 2011 at 10:23:17AM -0800, Grant Grundler wrote:
> On Sun, Dec 4, 2011 at 6:30 AM, Michael S. Tsirkin <mst@redhat.com> wrote:
> ...
> > AFAIK, on PCI a resource is either IO or MEM, but never both.
> > What am I missing?
>
> Yes, a particular PCI BAR (Base Address Register) is either IO or MEM
> (not both) address space resource.
>
> James is observing many older devices have the same set of registers
> mapped in both address spaces using two BARs. As you already know,
> MMIO is "lighter weight" (CPU cost to generate transactions on PCI
> bus). I think this is orthogonal to the issue you are addressing.
>
> Regarding handling of IO Port space cookies:
> > - if (flags & IORESOURCE_IO)
> > - return ioport_map(start, len);
>
> I don't know who all the consumers of pci_iomap() are. If user space
> can somehow call this, it should fail for IO port space "mappings"
> since unlike x86, parisc has no INB/OUTB instructions. Generating IO
> Port space requires frobbing PCI Bus controller registers that I don't
> think we want to expose to user space.
>
> I'm going to assume this is NOT a problem since any code that
> generates anything that tries to look like an INB/OUTB just won't
> compile on parisc. I think removing the parisc specific definition
> and using the generic one instead looks fine to me. But I'm not
> confident enough to offer a formal ACKed-by line. Sorry. :(
>
> cheers,
> grant
How about a Tested-by line? I presume you have the hardware to
try this out? You can also get the patches from my tree:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
or from linux-next.
--
MST
next prev parent reply other threads:[~2011-12-06 11:06 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1322163031.git.mst@redhat.com>
2011-11-24 20:15 ` [PATCH-RFC 01/10] lib: move GENERIC_IOMAP to lib/Kconfig Michael S. Tsirkin
2011-11-25 8:41 ` Jesper Nilsson
2011-11-28 20:12 ` Richard Kuo
2011-11-24 20:17 ` [PATCH-RFC 02/10] lib: add GENERIC_PCI_IOMAP Michael S. Tsirkin
2011-11-24 22:07 ` Arnd Bergmann
2011-11-25 0:54 ` Stephen Rothwell
2011-11-25 0:59 ` Stephen Rothwell
2011-11-27 17:12 ` Michael S. Tsirkin
2011-11-24 20:17 ` [PATCH-RFC 03/10] alpha: switch to GENERIC_PCI_IOMAP Michael S. Tsirkin
2011-11-24 20:17 ` [PATCH-RFC 04/10] arm: " Michael S. Tsirkin
2011-11-24 20:18 ` [PATCH-RFC 05/10] microblaze: " Michael S. Tsirkin
2011-11-24 20:18 ` [PATCH-RFC 06/10] mips: " Michael S. Tsirkin
2012-01-28 22:38 ` Kevin Cernekee
2012-01-29 22:45 ` Michael S. Tsirkin
2011-11-24 20:19 ` [PATCH-RFC 07/10] parisc: " Michael S. Tsirkin
2011-12-04 10:48 ` Michael S. Tsirkin
2011-12-04 14:22 ` James Bottomley
2011-12-04 14:30 ` Michael S. Tsirkin
2011-12-04 14:32 ` James Bottomley
2011-12-04 14:42 ` Michael S. Tsirkin
2011-12-05 15:33 ` James Bottomley
2011-12-05 16:24 ` Michael S. Tsirkin
2011-12-05 16:46 ` James Bottomley
2011-12-05 18:23 ` Grant Grundler
2011-12-06 11:06 ` Michael S. Tsirkin [this message]
2011-12-06 16:18 ` Grant Grundler
2011-12-06 16:24 ` Michael S. Tsirkin
2011-12-16 2:11 ` Grant Grundler
2011-11-24 20:19 ` [PATCH-RFC 08/10] powerpc: " Michael S. Tsirkin
2011-11-24 20:20 ` [PATCH-RFC 09/10] sh: " Michael S. Tsirkin
2011-11-24 20:21 ` [PATCH-RFC 10/10] sparc: " Michael S. Tsirkin
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=20111206110608.GA10379@redhat.com \
--to=mst@redhat.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=deller@gmx.de \
--cc=grantgrundler@gmail.com \
--cc=jejb@parisc-linux.org \
--cc=kyle@mcmartin.ca \
--cc=linux-parisc@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;
as well as URLs for NNTP newsgroup(s).