Re: Accessing configuration space of PCI-express bridge
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 Apr 2007 11:47:07 -0400
"Gianluca Varenni" <gianluca.varenni@xxxxxxxxxxxxxxxx> wrote in message
news:OJ%23gNDefHHA.4636@xxxxxxxxxxxxxxxxxxxxxxx
"Koen" <user1964@xxxxxxxxx> wrote in message
news:1176452906.594653.147370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
1. Writing directly to the PCI configuration space registers using
WRITE_PORT_UCHAR(). This is the method suggested by the vendor of the
bridge. This however is considered to be unsafe and, as far as I know,
will not allow our driver to get thru the WHQL tests to get signed
(the latter being an requirement as we are targetting 64-bit Vista).
Having a driver that doesn't pass the WHQL tests is a *bad* idea, *but*
you don't need to WHQL certify a driver to have it run on Vista. The
requirement is that the driver is signed (e.g. using a certificate
obtained by one of the certification authorities blessed by MS).
I don't have a problem with it not being WHQL certified, but doing your own
writes to the PCI configuration space is a great way to cause spurious
crashes that are very hard to find. I know of a case where a firm did this
crap, and it took forever to find the problem. Fortunately when it was
found, they were trying to sell their part to a company that had been stuck
trying to chase down some of the crashes they caused, the company not only
did not buy the part, they let a lot of other people know the firm was
selling crap.
Doing this is a great way for a developer and his firm to be cursed forever
by the Windows driver community.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
.
- Follow-Ups:
- Re: Accessing configuration space of PCI-express bridge
- From: Gianluca Varenni
- Re: Accessing configuration space of PCI-express bridge
- References:
- Accessing configuration space of PCI-express bridge
- From: Koen
- Re: Accessing configuration space of PCI-express bridge
- From: Gianluca Varenni
- Accessing configuration space of PCI-express bridge
- Prev by Date: Debugging Vista?
- Next by Date: Re: Debugging Vista?
- Previous by thread: Re: Accessing configuration space of PCI-express bridge
- Next by thread: Re: Accessing configuration space of PCI-express bridge
- Index(es):
Relevant Pages
|