Messages in this thread | | | Date | Thu, 4 May 2006 13:16:37 +1000 | From | "Dave Airlie" <> | Subject | Re: i386/x86_84: disable PCI resource decode on device disable |
| |
> > When a PCI device is disabled via pci_disable_device(), it's still > left decoding its BAR resource ranges even though its driver > will have likely released those regions (and may even have > unloaded). pci_enable_device() already explicitly enables > BAR resource decode for the device being enabled. This patch > disables resource decode for the PCI device being disabled, > making it symmetric with the enable call. > > I saw this while doing something else, not because of a > problem report. Still, seems to be the correct thing to do.
I'm just wondering how this will react with VGA devices being run by fbdev or the drm, I know the DRM never calls pci_disable_device, as the card might require the bars enabled so it can do VGA, and which if it is your primary VGA card, can cause you all kinds of troubles... (like losing text mode)..
Alan Cox mentioned this somewhere before in relation to video cards..
Dave. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |