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

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

 



On Tue, 2009-02-17 at 23:25 -0500, Pavel Roskin wrote:
> > Saw pci_bus_alloc_resource() allocated resource above 4G for a
> > non-Prefetchable Memory Space BAR on 64-bit machine. This is not correct
> > since the non-Prefetchable Memory Space and I/O Space are 32-bit width.
> > Only Prefetchable Memory Space support 64-bit address.

Sorry for follow-up.

If we are allow prefetchable memory windows for CardBus bridges to have
64-bit addresses, then we need to program the upper part of those
addresses in pci_setup_cardbus().  If it's impossible, then all CardBus
memory windows should be limited to 32-bit addresses.

We could introduce a new resource flag IORESOURCE_PCI_64BIT_ADDR that
would be set only for resources actually allowing 64-bit addressing.

-- 
Regards,
Pavel Roskin
--
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