* iomap interface issue
@ 2005-05-03 0:47 Anton Blanchard
2005-05-03 2:26 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Anton Blanchard @ 2005-05-03 0:47 UTC (permalink / raw)
To: torvalds, linux-arch
Hi,
I was looking through the iomap API and noticed that pci_iounmap only
takes a pci_dev and address:
void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
At the moment the ppc64 interface does nothing on iounmap, but for
hotplug we need to tear down MMU entries associated with MMIO regions.
This is because we need to ensure all entries are removed before the
adapter is moved to another partition (or else the old partition could
still access the device).
With the current API we could work out if an address is IO or MMIO but
it will be a bit ugly. I was wondering if it made sense to pass in the
BAR to pci_iounmap. That would make it easy to work out if its an MMIO
region.
Anton
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: iomap interface issue
2005-05-03 0:47 iomap interface issue Anton Blanchard
@ 2005-05-03 2:26 ` David S. Miller
2005-05-03 3:11 ` Anton Blanchard
0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2005-05-03 2:26 UTC (permalink / raw)
To: Anton Blanchard; +Cc: torvalds, linux-arch
On Tue, 3 May 2005 10:47:56 +1000
Anton Blanchard <anton@samba.org> wrote:
> With the current API we could work out if an address is IO or MMIO but
> it will be a bit ugly. I was wondering if it made sense to pass in the
> BAR to pci_iounmap. That would make it easy to work out if its an MMIO
> region.
If anything, a pointer to the resource would be more appropriate.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-03 3:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 0:47 iomap interface issue Anton Blanchard
2005-05-03 2:26 ` David S. Miller
2005-05-03 3:11 ` Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox