PCI Driver on W2K. HELP???

Hi All,
I am working on a PCI driver and facing a very strange problem.
Environment is :
Win2k Server with SP2, SRP1.
To explain the problem i’ll have to give the scenerio.

  1. Add one PCI device on the system and boot the system.
  2. Now down the system and add another PCI device.
  3. At boot up time driver added both the device but after bootup it shows
    the New PCI device found box and start installing it again and thats it…
    Screen of death…

Any help…
Thanks in advance.

David

Dave,

So you have a bug in your driver. You need to debug it. We could all
guess at the many ways that you could have screwed up managing multiple
devices in your driver, but it would be a lot easier if you either:
a) debugged your problem or,
b) provided at least some information to us about the exact bugcheck and
system state. Stack frame? Bugcheck code and parameters?

Here is a hint: check your remove device processing path.

Here is another hint: use driver verifier.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David
Sent: Thursday, May 09, 2002 9:59 AM
To: NT Developers Interest List
Subject: [ntdev] PCI Driver on W2K. HELP???

Hi All,
I am working on a PCI driver and facing a very strange
problem. Environment is : Win2k Server with SP2, SRP1. To
explain the problem i’ll have to give the scenerio. 1. Add
one PCI device on the system and boot the system. 2. Now down
the system and add another PCI device. 3. At boot up time
driver added both the device but after bootup it shows the
New PCI device found box and start installing it again and
thats it… Screen of death…

Any help…
Thanks in advance.

David


You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%

Mard thanks for reply
here is the info you asked.

*******************************************************************************

* *

* Bugcheck Analysis *

* *

*******************************************************************************

***** Kernel symbols are WRONG. Please fix symbols to do bugcheck analysis.

*******************************************************************************

* *

* Bugcheck Analysis *

* *

*******************************************************************************

Bugcheck code 000000D1

Arguments 0000000c 00000008 00000000 f06c9926

ChildEBP RetAddr Args to Child

WARNING: Stack unwind information not available. Following frames may be wrong.

f05cf70c 8042c2bb 00000003 0000000c f06c9926 ntoskrnl!DbgBreakPointWithStatus+0x4

f05cfa98 80467e7f 00000000 0000000c 00000008 ntoskrnl!KeBugCheckEx+0x169

f05cfab4 f05cfad0 80468bca 8142eb88 80468bd1 ntoskrnl!Kei386EoiHelper+0x2ac9

00010001 53005500 52004500 50005300 4f005200 0xf05cfad0

4c004c00 00000000 00000000 00000000 00000000 0x53005500

ntoskrnl!DbgBreakPointWithStatus+4:

80455994 cc int 3

i am debugging the driver but still didn’t able to find the cause of problem
One strange behaviour i saw is:
I reinstall the win2K and then worked with the two PCI devices. Hey!!! it work fine.
Then i uninstall both the PCI devices through device manager and restart the machine first with only one PCI device, it worked, then with two PCI devices, it crashed.
Please reply if something click your mind.
Regards,
David
Mark Roddy wrote: Dave,

So you have a bug in your driver. You need to debug it. We could all
guess at the many ways that you could have screwed up managing multiple
devices in your driver, but it would be a lot easier if you either:
a) debugged your problem or,
b) provided at least some information to us about the exact bugcheck and
system state. Stack frame? Bugcheck code and parameters?

Here is a hint: check your remove device processing path.

Here is another hint: use driver verifier.

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of David
> Sent: Thursday, May 09, 2002 9:59 AM
> To: NT Developers Interest List
> Subject: [ntdev] PCI Driver on W2K. HELP???
>
>
> Hi All,
> I am working on a PCI driver and facing a very strange
> problem. Environment is : Win2k Server with SP2, SRP1. To
> explain the problem i’ll have to give the scenerio. 1. Add
> one PCI device on the system and boot the system. 2. Now down
> the system and add another PCI device. 3. At boot up time
> driver added both the device but after bootup it shows the
> New PCI device found box and start installing it again and
> thats it… Screen of death…
>
> Any help…
> Thanks in advance.
>
>
> David
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> %%email.unsub%%
>


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to %%email.unsub%%

---------------------------------
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience

“Kernel symbols are WRONG. Please fix symbols to do bugcheck analysis”

It is really hard to get a symbolic debugger to work if you don’t
configure it to use the correct symbols.

Bug Check 0xD1: DRIVER_IRQL_NOT_LESS_OR_EQUAL

The DRIVER_IRQL_NOT_LESS_OR_EQUAL bug check has value 0x000000D1. This
signifies that the system attempted to access pageable memory at a
process IRQL that was too high.

Parameters
The following parameters are displayed on the blue screen.

Parameter Description
1 Memory referenced 0000000c
2 IRQL at time of reference 00000008
3 0: Read 00000000
1: Write
4 Address that referenced memory f06c9926

In your ISR, or a function called by your ISR, a null pointer was
dereferenced at offset 0x0c with a read operation. This caused a page
fault in the ‘zero-page’ guard page. The function is near location
f06c9926.

You MUST install the correct symbols for windbg and then either point
windbg at the kernel dump, or re-run the test failure case. Then once
you are at the crash, do exactly as the instructions say to do: run
‘analyze -v’.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dev Singh
Sent: Tuesday, May 14, 2002 5:48 AM
To: NT Developers Interest List
Subject: [ntdev] RE: PCI Driver on W2K. HELP???

Mard thanks for reply
here is the info you asked.

************************************************************************
*******
* *
* Bugcheck Analysis *
* *
************************************************************************
*******
***** Kernel symbols are WRONG. Please fix symbols to do bugcheck
analysis.
************************************************************************
*******
* *
* Bugcheck Analysis *
* *
************************************************************************
*******
Bugcheck code 000000D1
Arguments 0000000c 00000008 00000000 f06c9926
ChildEBP RetAddr Args to Child
WARNING: Stack unwind information not available. Following frames may be
wrong.
f05cf70c 8042c2bb 00000003 0000000c f06c9926
ntoskrnl!DbgBreakPointWithStatus+0x4
f05cfa98 80467e7f 00000000 0000000c 00000008 ntoskrnl!KeBugCheckEx+0x169
f05cfab4 f05cfad0 80468bca 8142eb88 80468bd1
ntoskrnl!Kei386EoiHelper+0x2ac9
00010001 53005500 52004500 50005300 4f005200 0xf05cfad0
4c004c00 00000000 00000000 00000000 00000000 0x53005500
ntoskrnl!DbgBreakPointWithStatus+4:
80455994 cc int 3
i am debugging the driver but still didn’t able to find the cause of
problem
One strange behaviour i saw is:
I reinstall the win2K and then worked with the two PCI devices. Hey!!!
it work fine.
Then i uninstall both the PCI devices through device manager and restart
the machine first with only one PCI device, it worked, then with two PCI
devices, it crashed.
Please reply if something click your mind.
Regards,
David
Mark Roddy wrote:
Dave,

So you have a bug in your driver. You need to debug it. We could all
guess at the many ways that you could have screwed up managing multiple
devices in your driver, but it would be a lot easier if you either:
a) debugged your problem or,
b) provided at least some information to us about the exact bugcheck and
system state. Stack frame? Bugcheck code and parameters?

Here is a hint: check your remove device processing path.

Here is another hint: use driver verifier.

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of David
> Sent: Thursday, May 09, 2002 9:59 AM
> To: NT Developers Interest List
> Subject: [ntdev] PCI Driver on W2K. HELP???
>
>
> Hi All,
> I am working on a PCI driver and facing a very strange
> problem. Environment is : Win2k Server with SP2, SRP1. To
> explain the problem i’ll have to give the scenerio. 1. Add
> one PCI device on the system and boot the system. 2. Now down
> the system and add another PCI device. 3. At boot up time
> driver added both the device but after bootup it shows the
> New PCI device found box and start installing it again and
> thats it… Screen of death…
>
> Any help…
> Thanks in advance.
>
>
> David
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> %%email.unsub%%
>


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to %%email.unsub%%

Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience — You are currently subscribed
to ntdev as: xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%

Thanks a lot Mark

You were right, there was a bug in the remove device path, i.e. there
was no disconnection for the interrupt connected at device addition
time.

i have solved the issue and credit goes to you.

thanks again…

David


Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience