On Fri, 20 Dec 2002, David Mosberger wrote:
>
> Linus> One solution in the long term may be to not even probe the
> Linus> BAR's at all in generic code, and only do it in the
> Linus> pci_enable_dev() stuff. That way it would literally only be
> Linus> done by the driver, who can hopefully make sure that the
> Linus> device is ok with it.
>
> Yes, I see now that the method in the PCI spec isn't really safe
> either, so BAR-sizing probably shouldn't be done in generic code at
> all.
Note that by "long-term" I definitely mean "past 2.6", and thus if there
are some specific cases where you have trouble, those will need to just
have work-arounds for now. Maybe a PCI quirks entry or something like
that.
Linus
-
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/
This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:27 EST