Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Upcoming OSR Seminars:

Writing WDF Drivers I: Core Concepts, Nashua, NH 15-19 May, 2017
Writing WDF Drivers II: Advanced Implementation Tech., Nashua, NH 23-26 May, 2017
Kernel Debugging and Crash Analysis, Dulles, VA 26-30 June, 2017
Windows Internals & Software Driver Development, Nashua, NH 24-28 July, 2017


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 9  
11 Apr 17 04:46
venkat narain
xxxxxx@yahoo.com
Join Date: 27 May 2011
Posts To This List: 62
Disable runtime idle and D3 in WDF

Hi, I am coming up with a driver for Windows 10 for my FPGA, and I am having trouble keeping the device in D0. While the device claims D3 capability, given that it is an FPGA it cannot handle D3hot & D3cold. Is there an easy way to disable this functionality in WDF? The driver is not the power policy owner, so not sure how we can disable the device from entering D3. thanks!
  Message 2 of 9  
11 Apr 17 12:11
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10031
Disable runtime idle and D3 in WDF

If you are not the power policy owner, there is only one thing you can do. You need to send io // or whatever it is that the power policy owner uses to keep the device powered on to the policy owner. IOW you need to convince the policy owner not to idle. Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@yahoo.com <xxxxx@yahoo.com> Sent: Monday, April 10, 2017 10:45:18 PM To: Windows System Software Devs Interest List Subject: [ntdev] Disable runtime idle and D3 in WDF Hi, I am coming up with a driver for Windows 10 for my FPGA, and I am having trouble keeping the device in D0. While the device claims D3 capability, given that it is an FPGA it cannot handle D3hot & D3cold. Is there an easy way to disable this functionality in WDF? The driver is not the power policy owner, so not sure how we can disable the device from entering D3. thanks! --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7C9c8 e38ea505147da978208d480b73b75%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636274 971840926841&sdata=DERdhxMqdyhAElOZBcSVc4HsPIu9VNn2agsYrHwLaiE%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7C9c8e38ea505147da978208d480b73 b75%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636274971840926841&sdata=XPrDviC iVHn0dVg5fx6%2FUrqIHUopHSOl4d8Awc6DK44%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7C9c8 e38ea505147da978208d480b73b75%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636274 971840926841&sdata=WK3IbJZLY49x1hdekt7G42d4NeO8EDwwI4Bzwuw6qBk%3D&reserved=0> --
  Message 3 of 9  
11 Apr 17 13:21
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11487
Disable runtime idle and D3 in WDF

xxxxx@yahoo.com wrote: > I am coming up with a driver for Windows 10 for my FPGA, and I am having trouble keeping the device in D0. While the device claims D3 capability, given that it is an FPGA it cannot handle D3hot & D3cold. I find your last sentence confusing. Why do you think an FPGA cannot handle the D3 states? Is your programming volatile? You don't have a way to load the FPGA from EEPROM? How is your FPGA connected? Is it on a PCI device? USB? > Is there an easy way to disable this functionality in WDF? The driver is not the power policy owner, so not sure how we can disable the device from entering D3. There's a more disturbing aspect to this. If you have an inbox driver that is enforcing power state transitions, it's possible that whatever bus you're connected to requires that behavior. If so, then your only real choice is to change your hardware to survive a D0->D3->D0 transition. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 4 of 9  
11 Apr 17 17:17
venkat narain
xxxxxx@yahoo.com
Join Date: 27 May 2011
Posts To This List: 62
Disable runtime idle and D3 in WDF

hi Tim, Doron, Thanks for the responses, Yes the FPGA is connected via PCI. The d3 support is expected in future revisions, but the current revision was meant for SW development of the data stacks, so we are trying to get by, by avoiding the D3 transition. Would WdfDeviceStopIdle help?
  Message 5 of 9  
11 Apr 17 18:07
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11487
Disable runtime idle and D3 in WDF

xxxxx@yahoo.com wrote: > Thanks for the responses, Yes the FPGA is connected via PCI. The d3 support is expected in future revisions, but the current revision was meant for SW development of the data stacks, so we are trying to get by, by avoiding the D3 transition. Can't you just alter your PCI configuration space to remove the "power management" capability? If you don't advertise the support, then the bus can't kill your power. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 6 of 9  
11 Apr 17 18:31
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10031
Disable runtime idle and D3 in WDF

Only the power policy owner can call WdfDeviceStopIdle Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@yahoo.com <xxxxx@yahoo.com> Sent: Tuesday, April 11, 2017 11:16:00 AM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Disable runtime idle and D3 in WDF hi Tim, Doron, Thanks for the responses, Yes the FPGA is connected via PCI. The d3 support is expected in future revisions, but the current revision was meant for SW development of the data stacks, so we are trying to get by, by avoiding the D3 transition. Would WdfDeviceStopIdle help? --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cf16 52a49b6e14be9cd1108d481201a64%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636275 422264276754&sdata=W0YRJ4dBnbT%2BAgqGz0jrOFCf5QM542SnMYh5Ky9F1zg%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cf1652a49b6e14be9cd1108d481201 a64%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636275422264276754&sdata=JVqTsTT DKkzIRa2LEP8SV%2FPGYRD2%2BYhav8r691WRIoI%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cf16 52a49b6e14be9cd1108d481201a64%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636275 422264276754&sdata=m%2BlDQIn1GkPHd%2F03T1p8mxdBLJAvIkKI5%2Fcq1O7F%2BvY%3D&reserve d=0> --
  Message 7 of 9  
13 Apr 17 13:59
Eric Wittmayer
xxxxxx@yahoo.com
Join Date: 13 Apr 2017
Posts To This List: 4
Disable runtime idle and D3 in WDF

Hi Doron, For my own edification, i thought the device driver is the power policy owner by default? "By default, for framework-based drivers, the device's function driver is the power policy owner." from https://msdn.microsoft.com/en-us/windows/hardware/drivers/wdf/power-policy-owners hip Venkat, what is causing the device transition to D3?
  Message 8 of 9  
13 Apr 17 15:10
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11487
Disable runtime idle and D3 in WDF

xxxxx@yahoo.com wrote: > For my own edification, i thought the device driver is the power policy owner by default? > "By default, for framework-based drivers, the device's function driver is the power policy owner." from https://msdn.microsoft.com/en-us/windows/hardware/drivers/wdf/power-policy-owners hip The function driver is the power policy owner. The OP told us he is not the PPO, so I assume he is a filter driver, and not the function driver. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 9 of 9  
20 Apr 17 10:33
venkat narain
xxxxxx@yahoo.com
Join Date: 27 May 2011
Posts To This List: 62
Disable runtime idle and D3 in WDF

Interesting. Mine is actually a function driver. Let me take a look to see why I thought the driver may not be the power policy owner.
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 06:33.


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