Re: pci_enable_msi() for everyone?

From: Greg KH
Date: Tue Jun 07 2005 - 00:25:07 EST


On Mon, Jun 06, 2005 at 05:26:32PM -0700, Roland Dreier wrote:
>
> davej> What if MSI support has been disabled in the bridge due to
> davej> some quirk (like the recent AMD 8111 quirk) ? Maybe the
> davej> above function should check pci_msi_enable as well ?
>
> Greg> Yes, you are correct. I said it wasn't tested :)
>
> Huh? If a host bridge doesn't support MSI, and a device below it has
> its MSI capability enabled, we're in big trouble. Because that device
> is going to send interrupt messages whether the bridge likes it or
> not.

No, that device would never get MSI enabled on it. See the patch I
posted to make sure I didn't get it wrong...

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/