Supporting Selective Suspend for NDIS 6.2 driver in Win 7

Hi Everyone,
This was regarding the support for Selective Suspend in the NDIS 6.2 in Win 7.

The Selective Suspend support in NDIS 6.2 is not supported to be implemented in the NDIS Miniport driver as the WDFDEVICE *Device parameter returned by the API WdfDeviceMiniportCreate in the driver is not a valid device object to be passed to the WdfDeviceAssignS0IdleSettings
API required for configuring drivers for WDF Selective Suspend.

Moreover, the documentation for WdfDeviceMiniportCreate (http://msdn.microsoft.com/en-us/library/ff546802(VS.85).aspx) states that:

"The following restrictions apply to framework device objects that a miniport driver obtains by calling WdfDeviceMiniportCreate:

The
device object does not support any of the device object’s event
callback functions. Therefore, the port driver must handle all Plug and
Play (PnP) and power management operations.
The device object handle cannot be passed to WdfWmiProviderCreate, so the port driver must provide any required support for Windows Management Instrumentation (WMI). "

  1. The mention of: " the port driver must handle all Plug and
    Play (PnP) and power management operations" in the documentation made us to think that the handlers in the port driver will handle the Selective Suspend functionality for the NDIS Miniport driver.

But the fact is that, while trying to test the Selective Suspend feature through the PowerCfg utility(PowerCfg -energy), it was found that the NDIS Miniport driver does not seem to be going to Selective Suspend mode. Is there anything that needs to be implemented/modified at the port driver level for the Selective Suspend feature to work in NDIS?

  1. Moreover, the mention of “the port driver must provide any required support for Windows Management Instrumentation (WMI)” made us to think that the port driver would also take care of supporting for the display of the Power Management tab in Device Manager for NDIS. But, we do not see the Power Management tab in the Device Manager corresponding to the NDIS driver.

As the previous query for Selective Suspend, is there any implementation/modification needed to be done at the port driver level in NDIS for the Power Management tab to be displayed in Device Manager?

Thanks in advance.
Best regards,
M


The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

NDIS does not support selective suspend. You can contact msft support and they can give you a workaround.

d

dent from a phpne with no keynoard


From: M B
Sent: June 24, 2010 12:24 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7

Hi Everyone,
This was regarding the support for Selective Suspend in the NDIS 6.2 in Win 7.

The Selective Suspend support in NDIS 6.2 is not supported to be implemented in the NDIS Miniport driver as the WDFDEVICE Device parameter returned by the API WdfDeviceMiniportCreate in the driver is not a valid device object to be passed to the WdfDeviceAssignS0IdleSettings API required for configuring drivers for WDF Selective Suspend.

Moreover, the documentation for WdfDeviceMiniportCreate (http://msdn.microsoft.com/en-us/library/ff546802(VS.85).aspx) states that:

"The following restrictions apply to framework device objects that a miniport driver obtains by calling WdfDeviceMiniportCreate:

The device object does not support any of the device object’s event callback functions. Therefore, the port driver must handle all Plug and Play (PnP) and power management operations.
* The device object handle cannot be passed to WdfWmiProviderCreatehttp:, so the port driver must provide any required support for Windows Management Instrumentation (WMI). “

1. The mention of: " the port driver must handle all Plug and Play (PnP) and power management operations” in the documentation made us to think that the handlers in the port driver will handle the Selective Suspend functionality for the NDIS Miniport driver.

But the fact is that, while trying to test the Selective Suspend feature through the PowerCfg utility(PowerCfg -energy), it was found that the NDIS Miniport driver does not seem to be going to Selective Suspend mode. Is there anything that needs to be implemented/modified at the port driver level for the Selective Suspend feature to work in NDIS?

2. Moreover, the mention of “the port driver must provide any required support for Windows Management Instrumentation (WMI)” made us to think that the port driver would also take care of supporting for the display of the Power Management tab in Device Manager for NDIS. But, we do not see the Power Management tab in the Device Manager corresponding to the NDIS driver.

As the previous query for Selective Suspend, is there any implementation/modification needed to be done at the port driver level in NDIS for the Power Management tab to be displayed in Device Manager?

Thanks in advance.
Best regards,
M

________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.http:

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</http:></http:>

Hi Doron,
Thanks for the info. Is it that USB Selective Suspend is not supported in NDIS 6.2 alone? or is not supported in NDIS 5.1 as well?

Does SS work in Win XP platforms if we implement the WDM Selective Suspend feature in a NDIS-WDM driver? Any idea? We have implemented it that way in our driver but having a though time validating it as the perfmon and Intel3Resmon utility does not seem to be showing up the desired results even when all drivers of the devices attached to USB HC support SS. Any idea about SS in NDIS 5.1?

Thanks in advance.
Best Regards
Monisha

From: xxxxx@microsoft.com
To: xxxxx@lists.osr.com
Subject: RE: [ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7
Date: Thu, 24 Jun 2010 19:35:49 +0000

NDIS does not support selective suspend. You can contact msft support and they can give you a workaround.

d

dent from a phpne with no keynoard

From: M B

Sent: June 24, 2010 12:24 PM

To: Windows System Software Devs Interest List

Subject:
[ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7

Hi Everyone,

This was regarding the support for Selective Suspend in the NDIS 6.2 in Win 7.

The Selective Suspend support in NDIS 6.2 is not supported to be implemented in the NDIS Miniport driver as the
WDFDEVICE *Device parameter
returned by the API WdfDeviceMiniportCreate
in the driver is not a valid device object to be passed to the WdfDeviceAssignS0IdleSettings
API required for configuring drivers for WDF Selective Suspend.

Moreover, the documentation for WdfDeviceMiniportCreate
(http://msdn.microsoft.com/en-us/library/ff546802(VS.85).aspx) states that:

"The following restrictions apply to framework device objects that a miniport driver obtains by calling
WdfDeviceMiniportCreate:

The device object does not support any of the device object’s event callback functions. Therefore, the port driver must handle all Plug and Play (PnP) and power management operations.

The device object handle cannot be passed to
WdfWmiProviderCreate, so the port driver must provide any required support for Windows Management Instrumentation (WMI). “

1. The mention of: " the port driver must handle all Plug and Play (PnP) and power management operations” in the documentation made us to think that the handlers in the port driver will handle the Selective Suspend functionality for the NDIS Miniport
driver.

But the fact is that, while trying to test the Selective Suspend feature through the PowerCfg utility(PowerCfg -energy), it was found that the NDIS Miniport driver does not seem to be going to Selective Suspend mode.
Is there anything that needs to be implemented/modified at the port driver level for the Selective Suspend feature to work in NDIS?

2. Moreover, the mention of “the port driver must provide any required support for Windows Management Instrumentation (WMI)”
made us to think that the port driver would also take care of supporting for the display of the
Power Management tab in Device Manager for NDIS. But, we do not see the Power Management tab in the Device Manager corresponding to the NDIS driver.

As the previous query for Selective Suspend, is there any implementation/modification needed to be done at the port driver level in NDIS for the Power Management tab to be displayed in Device Manager?

Thanks in advance.

Best regards,

M

The New Busy is not the old busy. Search, chat and e-mail from your inbox.
Get started.



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



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
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

No version of NDIS supports USB SS. Nothing. You cannot implement USB SS in the miniport because NDIS is the power policy owner. Contact Microsoft support, they can give you a potential solution.

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of M B
Sent: Friday, June 25, 2010 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7

Hi Doron,
Thanks for the info. Is it that USB Selective Suspend is not supported in NDIS 6.2 alone? or is not supported in NDIS 5.1 as well?

Does SS work in Win XP platforms if we implement the WDM Selective Suspend feature in a NDIS-WDM driver? Any idea? We have implemented it that way in our driver but having a though time validating it as the perfmon and Intel3Resmon utility does not seem to be showing up the desired results even when all drivers of the devices attached to USB HC support SS. Any idea about SS in NDIS 5.1?

Thanks in advance.
Best Regards
Monisha


From: xxxxx@microsoft.com
To: xxxxx@lists.osr.com
Subject: RE: [ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7
Date: Thu, 24 Jun 2010 19:35:49 +0000

NDIS does not support selective suspend. You can contact msft support and they can give you a workaround.

d

dent from a phpne with no keynoard


From: M B
Sent: June 24, 2010 12:24 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7

Hi Everyone,
This was regarding the support for Selective Suspend in the NDIS 6.2 in Win 7.

The Selective Suspend support in NDIS 6.2 is not supported to be implemented in the NDIS Miniport driver as the WDFDEVICE Device parameter returned by the API WdfDeviceMiniportCreate in the driver is not a valid device object to be passed to the WdfDeviceAssignS0IdleSettings API required for configuring drivers for WDF Selective Suspend.

Moreover, the documentation for WdfDeviceMiniportCreate (http://msdn.microsoft.com/en-us/library/ff546802(VS.85).aspx) states that:

"The following restrictions apply to framework device objects that a miniport driver obtains by calling WdfDeviceMiniportCreate:

The device object does not support any of the device object’s event callback functions. Therefore, the port driver must handle all Plug and Play (PnP) and power management operations.
* The device object handle cannot be passed to WdfWmiProviderCreate, so the port driver must provide any required support for Windows Management Instrumentation (WMI). “

1. The mention of: " the port driver must handle all Plug and Play (PnP) and power management operations” in the documentation made us to think that the handlers in the port driver will handle the Selective Suspend functionality for the NDIS Miniport driver.

But the fact is that, while trying to test the Selective Suspend feature through the PowerCfg utility(PowerCfg -energy), it was found that the NDIS Miniport driver does not seem to be going to Selective Suspend mode. Is there anything that needs to be implemented/modified at the port driver level for the Selective Suspend feature to work in NDIS?

2. Moreover, the mention of “the port driver must provide any required support for Windows Management Instrumentation (WMI)” made us to think that the port driver would also take care of supporting for the display of the Power Management tab in Device Manager for NDIS. But, we do not see the Power Management tab in the Device Manager corresponding to the NDIS driver.

As the previous query for Selective Suspend, is there any implementation/modification needed to be done at the port driver level in NDIS for the Power Management tab to be displayed in Device Manager?

Thanks in advance.
Best regards,
M

The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.

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


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

The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.http:

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</http:>

“Doron Holan” wrote in message
news:xxxxx@ntdev…
> No version of NDIS supports USB SS. Nothing. You cannot implement USB SS
> in the miniport because NDIS is the power policy owner. Contact Microsoft
> support, they can give you a potential solution.
>
> d

Doron, which support do you mean here: Product Support or WDK support?

Regards,
PavelA

WDK support

d

dent from a phpne with no keynoard

-----Original Message-----
From: Pavel A.
Sent: June 26, 2010 1:00 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Supporting Selective Suspend for NDIS 6.2 driver in Win 7

“Doron Holan” wrote in message
news:xxxxx@ntdev…
> No version of NDIS supports USB SS. Nothing. You cannot implement USB SS
> in the miniport because NDIS is the power policy owner. Contact Microsoft
> support, they can give you a potential solution.
>
> d

Doron, which support do you mean here: Product Support or WDK support?

Regards,
PavelA


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