Under what circumstances will enabling a device in "Device Manager" require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to my
bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer for
these changes to take effect”.

Under what circumstances would a device enabling require a restart of the
computer.

I looked at my inf file and that does not contain any ddinstall section.

Any idea what could be causing this issue. This happens with new KMDF-based
driver.

Thanks,
-Praveen


I assume you mean oustide the driver itself failing the
IRP_MN_START_DEVICE ?

It can happen when the driver is stuck in memory due to outstanding
references. (CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD)

There is a helpful article in the windbg documentation called “debugging
a failed driver unload”.

I found what I believe is a bug in the HCT kit which adds a reference to
a driver when setting a machine up for testing. Part of the ‘setting up’
wizard takes out a reference and doesn’t release it.
Rebooting the machine before running any actual tests worksaround this.

BR,

Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: 02 August 2006 13:46
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my
bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for
these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the
computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based
driver.

Thanks,
-Praveen




Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

IIRC this is about disable only, and occurs only if there was some veto on
disable imposed by some component.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Praveen Kumar Amritaluru”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 02, 2006 4:45 PM
Subject: [ntdev] Under what circumstances will enabling a device in “Device
Manager” require a reboot

> Hi,
>
> When I try to enable and disable one of the child-devices attached to my
> bus-driver, it asks for a reboot with the message:
>
> “Your Hardware settings have changed. You must restart your computer for
> these changes to take effect”.
>
> Under what circumstances would a device enabling require a restart of the
> computer.
>
> I looked at my inf file and that does not contain any ddinstall section.
>
> Any idea what could be causing this issue. This happens with new KMDF-based
> driver.
>
> Thanks,
> -Praveen
>
>
>
>
> -----------------------------------------------------------------------------

>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

An open handle to the device will cause such a veto.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, August 02, 2006 10:05 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

IIRC this is about disable only, and occurs only if there was some
veto on disable imposed by some component.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Praveen Kumar Amritaluru”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 02, 2006 4:45 PM
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

> Hi,
>
> When I try to enable and disable one of the child-devices attached to
my
> bus-driver, it asks for a reboot with the message:
>
> “Your Hardware settings have changed. You must restart your computer
for
> these changes to take effect”.
>
> Under what circumstances would a device enabling require a restart of
the
> computer.
>
> I looked at my inf file and that does not contain any ddinstall
section.
>
> Any idea what could be causing this issue. This happens with new
KMDF-based
> driver.
>
> Thanks,
> -Praveen
>
>
>
>
>
------------------------------------------------------------------------
-----

>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What does %windir%\setup*.log say? Turn on verbose logging for setupapi
(search the ddk, it will tell you how to) and repro if the standard
logging does not give enough info.

d

– I can spell, I just can’t type.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, August 02, 2006 5:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based driver.

Thanks,
-Praveen




Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What does %windir%\setup*.log say? Turn on verbose logging for setupapi
(search the ddk, it will tell you how to) and repro if the standard
logging does not give enough info.

D


Hi,

When I try to enable and disable one of the child-devices attached to
my bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based driver.

You know what would be really nifty and cool?

If the DDK came with a GUI utiltiy for setting the setupapi verbosity,
that would simplify an otherwise cumbersome task. And while you’re at
it, put some hooks in there for setting the DbgPrintEx flags as well.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, August 02, 2006 10:52 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

What does %windir%\setup*.log say? Turn on verbose logging for setupapi
(search the ddk, it will tell you how to) and repro if the standard
logging does not give enough info.

d

– I can spell, I just can’t type.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, August 02, 2006 5:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based driver.

Thanks,
-Praveen




Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Try LogControl for the SetupAPI logging:
http://www.osronline.com/article.cfm?article=96

-scott


Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Brown, Beverly” wrote in message news:xxxxx@ntdev…
You know what would be really nifty and cool?

If the DDK came with a GUI utiltiy for setting the setupapi verbosity,
that would simplify an otherwise cumbersome task. And while you’re at
it, put some hooks in there for setting the DbgPrintEx flags as well.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, August 02, 2006 10:52 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

What does %windir%\setup*.log say? Turn on verbose logging for setupapi
(search the ddk, it will tell you how to) and repro if the standard
logging does not give enough info.

d

– I can spell, I just can’t type.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, August 02, 2006 5:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based driver.

Thanks,
-Praveen

------------------------------------------------------------------------
--------


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks! I don’t remember seeing that utility before.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Scott Noone
Sent: Wednesday, August 02, 2006 11:24 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Try LogControl for the SetupAPI logging:
http://www.osronline.com/article.cfm?article=96

-scott


Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Brown, Beverly” wrote in message news:xxxxx@ntdev…
You know what would be really nifty and cool?

If the DDK came with a GUI utiltiy for setting the setupapi verbosity,
that would simplify an otherwise cumbersome task. And while you’re at
it, put some hooks in there for setting the DbgPrintEx flags as well.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, August 02, 2006 10:52 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

What does %windir%\setup*.log say? Turn on verbose logging for setupapi
(search the ddk, it will tell you how to) and repro if the standard
logging does not give enough info.

d

– I can spell, I just can’t type.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, August 02, 2006 5:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based driver.

Thanks,
-Praveen

------------------------------------------------------------------------
--------


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks everyone.

My disable seems to go through without any issues.
I get error only when I enable.

I looked at setupapi.dev.log and the only message I can recognize is this:
dvi: {Restarting Devices} 17:38:24.726
dvi: Restart:
{1A3E09BE-1E45-494B-9174-D7385B45BBF5}\NVNET_DEV0057\4&1F09082D&1&00
dvi: Restart complete.
! dvi: Device required reboot: Device has
problem: 0x26: CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD.
dvi: {Restarting Devices exit} 17:38:25.195
cci: [NCI BEGIN BINDINGS UPDATE for
{1A3E09BE-1E45-494B-9174-D7385B45BBF5}\NVNET_DEV0057\4&1F09082D&1&00]

dvi: CoInstaller 1: Exit (Post Processing)
dvi: {DIF_INSTALLDEVICE - exit(0x00000000)} 17:38:26.507
ndv: Needs reboot=TRUE

But I am not running any tests here.

From the error message and mails I understand that some reference is being
left out which is failing driver restart
and reason for the mesg: “CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD”.

Yet to figure out the issue.

Thanks,
-Praveen

“Rob Linegar” wrote in message news:xxxxx@ntdev…

I assume you mean oustide the driver itself failing the
IRP_MN_START_DEVICE ?

It can happen when the driver is stuck in memory due to outstanding
references. (CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD)

There is a helpful article in the windbg documentation called “debugging
a failed driver unload”.

I found what I believe is a bug in the HCT kit which adds a reference to
a driver when setting a machine up for testing. Part of the ‘setting up’
wizard takes out a reference and doesn’t release it.
Rebooting the machine before running any actual tests worksaround this.

BR,

Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: 02 August 2006 13:46
To: Windows System Software Devs Interest List
Subject: [ntdev] Under what circumstances will enabling a device in
“Device Manager” require a reboot

Hi,

When I try to enable and disable one of the child-devices attached to
my
bus-driver, it asks for a reboot with the message:

“Your Hardware settings have changed. You must restart your computer
for
these changes to take effect”.

Under what circumstances would a device enabling require a restart of
the
computer.

I looked at my inf file and that does not contain any ddinstall
section.

Any idea what could be causing this issue. This happens with new
KMDF-based
driver.

Thanks,
-Praveen

------------------------------------------------------------------------
--------


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Does this work on Vista?

Regds,
-Praveen

“Scott Noone” wrote in message news:xxxxx@ntdev…
> Try LogControl for the SetupAPI logging:
> http://www.osronline.com/article.cfm?article=96
>
> -scott
>
> –
> Scott Noone
> Software Engineer
> OSR Open Systems Resources, Inc.
> http://www.osronline.com
>
> “Brown, Beverly” wrote in message news:xxxxx@ntdev…
> You know what would be really nifty and cool?
>
> If the DDK came with a GUI utiltiy for setting the setupapi verbosity,
> that would simplify an otherwise cumbersome task. And while you’re at
> it, put some hooks in there for setting the DbgPrintEx flags as well.
>
> Beverly
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> Sent: Wednesday, August 02, 2006 10:52 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Under what circumstances will enabling a device in
> “Device Manager” require a reboot
>
> What does %windir%\setup*.log say? Turn on verbose logging for setupapi
> (search the ddk, it will tell you how to) and repro if the standard
> logging does not give enough info.
>
> d
>
> – I can spell, I just can’t type.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
> Amritaluru
> Sent: Wednesday, August 02, 2006 5:46 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Under what circumstances will enabling a device in
> “Device Manager” require a reboot
>
> Hi,
>
> When I try to enable and disable one of the child-devices attached to
> my bus-driver, it asks for a reboot with the message:
>
> “Your Hardware settings have changed. You must restart your computer
> for these changes to take effect”.
>
> Under what circumstances would a device enabling require a restart of
> the computer.
>
> I looked at my inf file and that does not contain any ddinstall
> section.
>
> Any idea what could be causing this issue. This happens with new
> KMDF-based driver.
>
> Thanks,
> -Praveen
>
>
>
>
> ------------------------------------------------------------------------
> --------
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>

Thanks to all those whole helped me with info on this problem.
Figured out the problem and fixed it.
Thanks for the useful debugging tips.

“Praveen Kumar Amritaluru” wrote in message
news:xxxxx@ntdev…
> Hi,
>
> When I try to enable and disable one of the child-devices attached to my
> bus-driver, it asks for a reboot with the message:
>
> “Your Hardware settings have changed. You must restart your computer for
> these changes to take effect”.
>
> Under what circumstances would a device enabling require a restart of the
> computer.
>
> I looked at my inf file and that does not contain any ddinstall section.
>
> Any idea what could be causing this issue. This happens with new
> KMDF-based
> driver.
>
> Thanks,
> -Praveen
>
>
>
>
> --------------------------------------------------------------------------------
>
>
>