Re: [PATCH resend 2/2] PCI: don't allocate resource above 4G for 32-bit BAR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 18, 2009 at 10:11:06AM -0800, Jesse Barnes wrote:
> I wonder if it's worth adding better checks for bus vs CPU space mixups, maybe 
> with a sparse annotation or a new typedef...

Part of the problem is that our PCI layer kludges all this around.
First we read bus addresses into a struct resource, then we hand it
off to arch code that frobs the struct resource.  We also have struct
pci_bus_region which is supposed to represent bus addresses, but we
don't use it consistently.

I've wanted to fix this for a while, but there always seems to
be something more urgent to do.  Plus it means fixing up a lot of
architectures.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux