Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Windows Internals & Software Drivers Lab, Santa Clara, CA 5-9 August, 2013
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Upcoming OSR Seminars:
Writing WDF Drivers for Windows Lab, Boston, MA 7-11 October, 2013
Developing File Systems for Windows, Seattle, WA 5-8 November, 2013


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 10  
14 Aug 12 10:06
VF
xxxxxx@goodrich.com
Join Date: 20 Mar 2007
Posts To This List: 18
Custom PCIe Device

I am starting WDF driver development for a custom PCIe device. The device's PCIe interface is implemented in an FPGA. Using the PCItree application (recommended by the FPGA manufacturer) we can see the device. However, the Windows "Add Hardware" wizard does not appear. Also, I cannot find the device in the Device Manager. So, I am not sure how to tell Windows to load my custom driver. Can anyone tell me why the Add Hardware wizard does not appear?
  Message 2 of 10  
14 Aug 12 10:16
Don Burn
xxxxxx@windrvr.com
Join Date: 23 Feb 2011
Posts To This List: 650
Re: Custom PCIe Device

Well since PCITree can give a dump of the config space you might post that. I'm not a PCIe expert but Windows is pretty strict on bus specification compliance versus another popular operating system. I have seen devices on older PCI busses that worked fine on the other OS and were not recognized on Windows. Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr "xxxxx@goodrich.com" <xxxxx@goodrich.com> wrote in message news:180937@ntdev: > I am starting WDF driver development for a custom PCIe device. The device's PCIe interface is implemented in an FPGA. Using the PCItree application (recommended by the FPGA manufacturer) we can see the device. However, the Windows "Add Hardware" wizard does not appear. Also, I cannot find the device in the Device Manager. So, I am not sure how to tell Windows to load my custom driver. > > Can anyone tell me why the Add Hardware wizard does not appear?
  Message 3 of 10  
14 Aug 12 12:09
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 8258
Re: Custom PCIe Device

xxxxx@goodrich.com wrote: > I am starting WDF driver development for a custom PCIe device. The device's PCIe interface is implemented in an FPGA. Using the PCItree application (recommended by the FPGA manufacturer) we can see the device. However, the Windows "Add Hardware" wizard does not appear. Also, I cannot find the device in the Device Manager. So, I am not sure how to tell Windows to load my custom driver. > > Can anyone tell me why the Add Hardware wizard does not appear? Are you running Windows 7? Windows 7 no longer shows the Add Hardware wizard when it sees an unknown device, apparently because it frightens small children. Instead, the device merely appears in Device Manager with a bang status. You can load your driver by doing Update Driver from Device Manager, or using "devcon update", or by pre-installing your driver package with DPInst or Difxcmd. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 4 of 10  
15 Aug 12 01:05
Jake Oshins
xxxxxx@windows.microsoft.com
Join Date:
Posts To This List: 1047
Re: Custom PCIe Device

Don, Windows has exactly one criterion for discovering a device on a bus. The Vendor ID must not be 0xFFFF. No more, no less. (I just happened to have a need to reread that code a few weeks ago.) I suspect that the OP's device didn't respond with a non-0xFFFF Vendor ID after the spec-mandated 100ms. Jake Oshins Windows Kernel Team The message offers no warranties and confers no rights. ----------------------------------------------------------------- "Don Burn" wrote in message news:180938@ntdev... Well since PCITree can give a dump of the config space you might post that. I'm not a PCIe expert but Windows is pretty strict on bus specification compliance versus another popular operating system. I have seen devices on older PCI busses that worked fine on the other OS and were not recognized on Windows. Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr "xxxxx@goodrich.com" <xxxxx@goodrich.com> wrote in message news:180937@ntdev: > I am starting WDF driver development for a custom PCIe device. The > device's PCIe interface is implemented in an FPGA. Using the PCItree > application (recommended by the FPGA manufacturer) we can see the device. > However, the Windows "Add Hardware" wizard does not appear. Also, I > cannot find the device in the Device Manager. So, I am not sure how to > tell Windows to load my custom driver. > > Can anyone tell me why the Add Hardware wizard does not appear?
  Message 5 of 10  
17 Aug 12 11:11
VF
xxxxxx@goodrich.com
Join Date: 20 Mar 2007
Posts To This List: 18
RE: Custom PCIe Device

We booted in XP with the exact same hardware and the device shows up in the Device Manager as an unknown device with the bang status. It still does not show up in DM when booting in Win7. Are there any differences in Win7 vs. XP regarding PCI? We contacted the FPGA manufacturer and they tell us we have to load a driver (see the response below). This makes absolutely no sense to me. Doesn't the device have to show up in DM first before the custom function driver can be loaded? FPGA manufacturer response: "So in the windows xp you might be loading some default drivers for this so it is showing up in the device manager. But in windows7 there are no drivers loaded so it is not showing up in the device manager. There is nothing wrong in the PCIe controller as you are able to locate it in the PCITree. Its just the problem with the drivers not the device. We do not provide drivers. So in case of windows xp may be your PC has already drivers installed so it is picking in the drivers in the OS and loading the device in Device manager. But Win7 its not happening."
  Message 6 of 10  
17 Aug 12 11:16
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 8276
RE: Custom PCIe Device

XP only understands PCI, win7 understands PCIe, so there are some significant differences in the pci driver between the two releases d debt from my phone ________________________________ From: xxxxx@goodrich.com Sent: 8/17/2012 8:11 AM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Custom PCIe Device We booted in XP with the exact same hardware and the device shows up in the Device Manager as an unknown device with the bang status. It still does not show up in DM when booting in Win7. Are there any differences in Win7 vs. XP regarding PCI? We contacted the FPGA manufacturer and they tell us we have to load a driver (see the response below). This makes absolutely no sense to me. Doesn't the device have to show up in DM first before the custom function driver can be loaded? FPGA manufacturer response: "So in the windows xp you might be loading some default drivers for this so it is showing up in the device manager. But in windows7 there are no drivers loaded so it is not showing up in the device manager. There is nothing wrong in the PCIe controller as you are able to locate it in the PCITree. Its just the problem with the drivers not the device. We do not provide drivers. So in case of windows xp may be your PC has already drivers installed so it is picking in the drivers in the OS and loading the device in Device manager. But Win7 its not happening." --- 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 --
  Message 7 of 10  
17 Aug 12 12:36
Jake Oshins
xxxxxx@windows.microsoft.com
Join Date:
Posts To This List: 1047
Re: Custom PCIe Device

Vaughn, I think that your hardware isn't responding within the spec-mandated timings. To prove that, or to just find out what's happening, install a checked PCI driver in Windows 7 (which you can find via your MSDN subscription.) You'll also need the right symbols. Then, in the debugger, type: ed nt!kd_pci_mask ffffffff Then go into Device Manager, find the root PCI bus (probably by switching to "View Devices by Connection") and choose "scan for new hardware." You'll get a spew in the debugger that will tell you what happened internally. You may need to find the root port under which your FPGA sits. Jake Oshins Windows Kernel Team The message offers no warranties and confers no rights. ----------------------------------------------------------------- "Doron Holan" <xxxxx@microsoft.com> wrote in message news:181072@ntdev... XP only understands PCI, win7 understands PCIe, so there are some significant differences in the pci driver between the two releases d debt from my phone From: xxxxx@goodrich.com Sent: 8/17/2012 8:11 AM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Custom PCIe Device We booted in XP with the exact same hardware and the device shows up in the Device Manager as an unknown device with the bang status. It still does not show up in DM when booting in Win7. Are there any differences in Win7 vs. XP regarding PCI? We contacted the FPGA manufacturer and they tell us we have to load a driver (see the response below). This makes absolutely no sense to me. Doesn't the device have to show up in DM first before the custom function driver can be loaded? FPGA manufacturer response: "So in the windows xp you might be loading some default drivers for this so it is showing up in the device manager. But in windows7 there are no drivers loaded so it is not showing up in the device manager. There is nothing wrong in the PCIe controller as you are able to locate it in the PCITree. Its just the problem with the drivers not the device. We do not provide drivers. So in case of windows xp may be your PC has already drivers installed so it is picking in the drivers in the OS and loading the device in Device manager. But Win7 its not happening." --- 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
  Message 8 of 10  
17 Aug 12 14:57
Calvin Guan
xxxxxx@gradovec.com
Join Date: 11 Oct 2009
Posts To This List: 379
Re: Custom PCIe Device

Attach a PCIe analyzer, set a filter to watch all cfg cycles on the AUT, you should be able to see what's wrong. Calvin On Fri, Aug 17, 2012 at 8:10 AM, <xxxxx@goodrich.com> wrote: > We booted in XP with the exact same hardware and the device shows up in > the Device Manager as an unknown device with the bang status. It still > does not show up in DM when booting in Win7. Are there any differences in > Win7 vs. XP regarding PCI? > > We contacted the FPGA manufacturer and they tell us we have to load a > driver (see the response below). This makes absolutely no sense to me. > Doesn't the device have to show up in DM first before the custom function > driver can be loaded? > <...excess quoted lines suppressed...> --
  Message 9 of 10  
20 Aug 12 16:35
VF
xxxxxx@goodrich.com
Join Date: 20 Mar 2007
Posts To This List: 18
RE: Custom PCIe Device

Thanks for the suggestion about running the debugger to watch PCI enumeration. I logged into MSDN, but I have not been able to find any checked build versions of Win7. Can someone point me in the right direction? Also, I assume that I only need the checked build for pci.sys.
  Message 10 of 10  
20 Aug 12 17:58
Pavel A
xxxxxx@fastmail.fm
Join Date: 21 Jul 2008
Posts To This List: 1885
Re: Custom PCIe Device

On 20-Aug-2012 23:33, xxxxx@goodrich.com wrote: > Thanks for the suggestion about running the debugger to watch PCI enumeration. I logged into MSDN, but I have not been able to find any checked build versions of Win7. Can someone point me in the right direction? Also, I assume that I only need the checked build for pci.sys. > Go to Subscriber Downloads, then search for "windows 7 checked". It should find "Windows 7 with Service Pack 1 Debug/Checked Build (x86) - DVD (English)" and "Windows 7 Service Pack 1 Symbols Debug/Checked Build (x86) - (English)" -- pa
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 17:57.


Copyright ©2012, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license