Re: /proc/bus/pci odd behavior

Stephen Williams (steve@icarus.com)
Sat, 17 Oct 1998 13:21:49 -0700


groudier@club-internet.fr said:
> Martin Mares stated that chips that get problems when reading their
> entire config space are not PCI compliants and promised to tell us
> where the PCI specifications state so.

I checked. As far as I can tell, PCI 2.1 does not say that configuration
reads must not have side-effects. The standard configuration registers
are defined to not have read side-effects, and not-implemented registers
are defined to not have side-effects. As far as I can tell, if a device
provides a meaning for a specific register in the device-dependent part
of the configuration space, it *may* define it to have side-effects.

(This is a profoundly ugly thing to do, but that is another issue.)

However, the device must support in a sensible way any combination of
byte-enables is a DWORD configuration access, and must also support
linear bursting. Therefore, controlling those side effects may be
impossible.

I can't find any place where configuration space must be prefetchable.

So, I started out trying to prove Martin right, I find myself agreeing
that devices that have read side-effects in configuration space are
certainly very broken, but may still be PCI 2.1 compliant. Prove me wrong.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/