writes data to the device's configuration space

I have a PCIe device which need to write back PCI common config space after software warm reset.Because PCI common config space registers changed to “0xffffffff” after software warm reset.And I need to write back PCI common config space the value that saved during the startup process.

In most PC motherboard,write back takes effect after 50ms,and then I can used our PCIe device again.But in very few motherboard,write back takes effect after 100S+.
So I must wait 100S+ and then I can use our PCIe device again.This time is too long.

I used SetBusData routine of BUS_INTERFACE_STANDARD structure to writes data to the device’s configuration space.
(I think this case does not matter with which method to take to writes data to the device’s configuration space)

Any help is appreciated.Thanks.

Best Regards
ZCJ

I missing what your question is.

Mark Roddy

On Mon, Nov 28, 2011 at 9:31 AM, wrote:
> I have a PCIe device which need to write back PCI common config space after software warm reset.Because PCI common config space registers changed to “0xffffffff” after software warm reset.And I need to write back PCI common config space the value that saved during the startup process.
>
> In most PC motherboard,write back takes effect after 50ms,and then I can used our PCIe device again.But in very few motherboard,write back takes effect after 100S+.
> So I must wait 100S+ and then I can use our PCIe device again.This time is too long.
>
> I used SetBusData routine ?of BUS_INTERFACE_STANDARD structure to writes data to the device’s configuration space.
> (I think this case does not matter with which method to take to writes data to the device’s configuration space)
>
> Any help is appreciated.Thanks.
>
> Best Regards
> ZCJ
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

Please refer to
http://msdn.microsoft.com/en-us/library/windows/hardware/ff536890(v=vs.85).aspx

Marvin Zhang

On Mon, Nov 28, 2011 at 10:31 PM, wrote:

> I have a PCIe device which need to write back PCI common config space
> after software warm reset.Because PCI common config space registers changed
> to “0xffffffff” after software warm reset.And I need to write back PCI
> common config space the value that saved during the startup process.
>
> In most PC motherboard,write back takes effect after 50ms,and then I can
> used our PCIe device again.But in very few motherboard,write back takes
> effect after 100S+.
> So I must wait 100S+ and then I can use our PCIe device again.This time is
> too long.
>
> I used SetBusData routine of BUS_INTERFACE_STANDARD structure to writes
> data to the device’s configuration space.
> (I think this case does not matter with which method to take to writes
> data to the device’s configuration space)
>
> Any help is appreciated.Thanks.
>
> Best Regards
> ZCJ
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

–> I missing what your question is.

I mean writes data to the device’s configuration space takes effect after
100S+ in very few PC motherboard.
I think this may do with Compatibility issues(PC motherboard and our PCIe device).

Best Regards
ZCJ

The device is ill-designed. Well designed PCI devices dont’ reset the interface along with the core reset.