Re: PCI resources above 4GB

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

 



On Thu, 12 Apr 2012, 00:59:24 BST, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:
> I don't doubt that Windows tries to put PCI resources above 4GB, but I
> suspect it does so only when it can place them inside a host bridge
> aperture reported via _CRS.   I'd be very surprised if 64-bit Windows
> assigned >4GB PCI resources on this machine.
> 
I don't know.  I'd try it if I had a copy.  As I understand Windows PCI/PnP is one of its better capablities.

> Here's the basic problem: when we hot-add a PCI device, we have to
> know what resources can possibly be assigned to it.   When we have more
> than one host bridge,   we have to know the apertures of each host
> bridge so we can allocate from the correct ones.   That's what _CRS
> tells us.
> 
> So the short answer is that by default Linux uses _CRS, and it won't
> work any better than Windows in this case.
> 
Given 32-bit Vista BSODs on me, I'd say it's already doing better! :)

> If you want to make some tweaks and just live with the fact of always
> having to use "pci=nocrs", that's fine.   I don't personally have time
> to mess with that, and I don't know whether it would make sense to
> push those tweaks upstream, but you can likely make it work somehow.

Okay, fair enough, although I feel most of this is pretty generic PCI resource management (if an extreme example), it would be nice if BIOSes were better and provided the needed information, but sadly that's not the case, certainly not on older machines, probably laptops especially.

I'm pleased to have got as far as getting it to boot with both video devices now working when docked.  I'm going to keep going and try to get hot-plug working too, but that means some more agressive tweaking as mentioned in my other email.

Hopefully something generally useful comes out of this.  At the least there must be a few people out there with similar hardware.
--
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