Re: Accessing configuration space of PCI-express bridge




"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


.



Relevant Pages

  • Re: Accessing configuration space of PCI-express bridge
    ... Writing directly to the PCI configuration space registers using ... you don't need to WHQL certify a driver to have it run on Vista. ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: Accessing configuration space of PCI-express bridge
    ... you don't need to WHQL certify a driver to have it run on Vista. ... PCI configuration space is definitely one of those stinky things" ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: Cannot restore registry
    ... | feature, follow these steps: ... When the Windows Advanced Options menu appears, ... | Feature: Device Driver Roll Back ... | Feature: System Restore ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Boot up problem... with a difference
    ... Safe mode boot is fine. ... Looked further into the last errors and noticed PXRD Driver. ... Event Type: Error ... Windows cannot unload your classes registry file - it is still in ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Cannot restore registry
    ... | feature, follow these steps: ... When the Windows Advanced Options menu appears, ... | Feature: Device Driver Roll Back ... | Feature: System Restore ...
    (microsoft.public.windowsxp.configuration_manage)