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.

Upcoming OSR Seminars:
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Upcoming OSR Seminars:
Windows Internals & Software Drivers Lab, Santa Clara, CA 16-20 September, 2013
Writing WDF Drivers for Windows Lab, Boston/Waltham, 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 3  
11 Jul 12 09:24
Jagadish Hadimani
xxxxxx@gmail.com
Join Date: 15 Jun 2007
Posts To This List: 39
NDIS miniport power management for NDIS 6.3

Hello All, I am facing a problem with power management in my NDIS 630 miniport driver. The device i am working on does not support WoL feature. Problem faced:-> If i put the system in hibernate and wake it up the call MpInitializeEx is not getting called.because of which when the system comes up i am not able to disable the driver. Implementation: when registering the Power management attributes using "NdisMSetMiniportAttributes", i set the PNDIS_PM_CAPABILITIES PowerManagementCapabilitiesEx struct to all "0"[as non of the parameters defined in the struct are valid for our device] . and initialize the header with version and length NDIS_PM_CAPABILITIES_REVISION_2 and NDIS_SIZEOF_NDIS_PM_CAPABILITIES_REVISION_2. Some points which i have observed -------------------------------------------- If i set the PowerManagementCapabilitiesEx = NULL.. my driver functionality works fine but the WHQL test PM_requirement fails saying the power management capabilities are not returned.. So Can any one tell me what i would be missing which is causing this issue. -Jagadish
  Message 2 of 3  
11 Jul 12 10:14
Pavel A
xxxxxx@fastmail.fm
Join Date: 21 Jul 2008
Posts To This List: 1906
Re: NDIS miniport power management for NDIS 6.3

Your MiniportInitializeEx is not called again after resume from hibernation because it is not supposed to. Instead, the miniport should support power management and handle PM events. Some early NDIS versions (before power management) indeed unloaded miniports and initialized them again after hibernation; this IIRC worked for compatibility with non-PM capable miniports up to Win7(?) but they could finally drop this. Just do the right thing and declare your PM capabilities properly. -- pa On 11-Jul-2012 16:25, xxxxx@gmail.com wrote: > Hello All, > > I am facing a problem with power management in my NDIS 630 miniport driver. > The device i am working on does not support WoL feature. > > Problem faced:-> If i put the system in hibernate and wake it up the call MpInitializeEx is not getting called.because of which when the system comes up i am not able to disable the driver. > > Implementation: > when registering the Power management attributes using "NdisMSetMiniportAttributes", i set the PNDIS_PM_CAPABILITIES PowerManagementCapabilitiesEx struct to all "0"[as non of the parameters defined in the struct are valid for our device] . and initialize the header with version and length NDIS_PM_CAPABILITIES_REVISION_2 and NDIS_SIZEOF_NDIS_PM_CAPABILITIES_REVISION_2. > <...excess quoted lines suppressed...>
  Message 3 of 3  
12 Jul 12 04:04
Maxim S. Shatskih
xxxxxx@storagecraft.com
Join Date: 20 Feb 2003
Posts To This List: 8678
Re: NDIS miniport power management for NDIS 6.3

> Some early NDIS versions (before power management) indeed > unloaded miniports and initialized them again after hibernation; Yes, especially with WinCE. -- Maxim S. Shatskih Windows DDK MVP xxxxx@storagecraft.com http://www.storagecraft.com
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:16.


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