From: Senthil on
Hi All,
I have written an intermediate driver based on passthru sample. My
driver works fine with WLAN card and Gigabit LAN card of intel . But it
crashes, when i use it on BroadCom Nextreme Gigabit ethernet card. The
operating system is windows xp with SP2 and version of the driver is 7.80.0.0
date:06/19/04. Is there anything i need to put it in .inf or in intermediate
driver to make it work with Broadcom's hardware?

Could anyone let me know how can i fix this bug?

Thanks,
Senthil
From: Thomas F. Divine [DDK MVP] on

"Senthil" <Senthil(a)discussions.microsoft.com> wrote in message
news:B65ABA14-CAAC-4547-9C15-20476C495A81(a)microsoft.com...
> Hi All,
> I have written an intermediate driver based on passthru sample. My
> driver works fine with WLAN card and Gigabit LAN card of intel . But it
> crashes, when i use it on BroadCom Nextreme Gigabit ethernet card. The
> operating system is windows xp with SP2 and version of the driver is
> 7.80.0.0
> date:06/19/04. Is there anything i need to put it in .inf or in
> intermediate
> driver to make it work with Broadcom's hardware?
>
> Could anyone let me know how can i fix this bug?
>

There is nothing that you need to put in your INF file to support this
adapter.

Most likely you need to use your debugger to identify and fix a problem in
your NDIS IM driver.

Sometimes different adapters behave a little differently and expose protions
of your code or timing/synchronization issues that are different.

You should also take a close look at the NDIS task offload features. Compare
the features that are supported for the two Ethernet NICs. If there are
differences, then that is one area to look at carefully.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.rawether.net

From: Calvin Guan on
Please attach the output of "!analyze -v".

--
Calvin Guan (Windows DDK MVP)
NetXtreme Longhorn Miniport Prime
Broadcom Corp. www.broadcom.com

"Senthil" <Senthil(a)discussions.microsoft.com> wrote in message
news:B65ABA14-CAAC-4547-9C15-20476C495A81(a)microsoft.com...
> Hi All,
> I have written an intermediate driver based on passthru sample. My
> driver works fine with WLAN card and Gigabit LAN card of intel . But it
> crashes, when i use it on BroadCom Nextreme Gigabit ethernet card. The
> operating system is windows xp with SP2 and version of the driver is
> 7.80.0.0
> date:06/19/04. Is there anything i need to put it in .inf or in
> intermediate
> driver to make it work with Broadcom's hardware?
>
> Could anyone let me know how can i fix this bug?
>
> Thanks,
> Senthil


From: Senthil on
Hi Calvin,
I installed the intermediate driver using netcfg.

Here is the output of -analyze -v

************************************************************
*
* Bugcheck Analysis
*
*
*
***********************************************************

BAD_POOL_CALLER (c2)
The current thread is making a bad pool request. Typically this is at a bad
IRQL level or double freeing the same allocation, etc.
Arguments:
Arg1: 00000007, Attempt to free pool which was already freed
Arg2: 00000cd4, (reserved)
Arg3: 00000040, Memory contents of the pool block
Arg4: 81606040, Pointer to pool header

Debugging Details:
------------------

GetUlongFromAddress: unable to read from 80563070
81606000 is not a valid small pool allocation, checking large pool...
unable to get pool big page table - either wrong symbols or pool tagging is
disabled
81606000 is freed (or corrupt) pool
Bad previous allocation size @81606000, last size was 0

***
*** An error (or corruption) in the pool was detected;
*** Pool Region unknown (0xFFFFFFFF81606000)
***
*** Use !poolval 81606000 for more details.
***


BUGCHECK_STR: 0xc2_7

DEFAULT_BUCKET_ID: DRIVER_FAULT

LAST_CONTROL_TRANSFER: from 80543c86 to 804f8925

STACK_TEXT:
80548ca8 80543c86 000000c2 00000007 00000cd4
nt!FsRtlRemoveMcbEntryPrivate+0x68
80548cf8 f81a160f 81606040 00000000 80548d30 nt!`string'+0x22
80548d08 f852590f 81606040 00000000 00000000 NDIS!NdisFreeMemory+0x3b
80548d30 f8524289 814f2eb8 81606040 00000000 THandoff!MyPtSendComplete+0x45
[c:\senthil\works\mobileip\switchadapt\mnswitch.c @ 587]
80548d50 f81b5c1c 814f2eb8 81621df0 00000000 THandoff!PtSendComplete+0x2b
[c:\senthil\works\mobileip\switchadapt\protocol.c @ 987]
80548d74 f7a4cba3 82280740 81621df0 00000000 NDIS!ndisMSendCompleteX+0x8d
WARNING: Stack unwind information not available. Following frames may be
wrong.
80548d94 f7a4df71 81776ec8 00000000 f81b5c1c odysseyIM4+0x1ba3
80548dc4 a9c89b8e 816daad0 81776ec8 00000000 odysseyIM4+0x2f71
80548dfc a9c88d88 81486000 80548e2c 00000000 b57xp32!LM_RegWrInd+0x1e
8148ae54 00000000 00000000 00000000 00000000 b57xp32!MM_IndicateStatus+0x5d8


FOLLOWUP_IP:
THandoff!MyPtSendComplete+45
f852590f ff75fc push dword ptr [ebp-0x4]

FOLLOWUP_NAME: MachineOwner

SYMBOL_NAME: THandoff!MyPtSendComplete+45

MODULE_NAME: THandoff

IMAGE_NAME: THandoff.sys

DEBUG_FLR_IMAGE_TIMESTAMP: 42eef70a

STACK_COMMAND: kb

BUCKET_ID: 0xc2_7_THandoff!MyPtSendComplete+45

Followup: MachineOwner
************************************************************



I uninstalled the driver and installed it manullay it is working fine now.

Does it mean that the problem is with netcfg? I had some issue with netcfg
then i copied netsf_m.inf to inf directory before calling netcfg. After which
netcfg installed the driver sucessfully.That is the only change i did.
I am using the same installation kit with the above change to install the
driver.It is working fine with intel's LAN and wireless LAN. when i
installed it on BroadCom's LAN card,it was crashing. But the same driver is
working fine if i install it manually.
Kindly advice me how to proceed in this matter.

Thanks,
Senthil




"Calvin Guan" wrote:

> Please attach the output of "!analyze -v".
>
> --
> Calvin Guan (Windows DDK MVP)
> NetXtreme Longhorn Miniport Prime
> Broadcom Corp. www.broadcom.com
>
> "Senthil" <Senthil(a)discussions.microsoft.com> wrote in message
> news:B65ABA14-CAAC-4547-9C15-20476C495A81(a)microsoft.com...
> > Hi All,
> > I have written an intermediate driver based on passthru sample. My
> > driver works fine with WLAN card and Gigabit LAN card of intel . But it
> > crashes, when i use it on BroadCom Nextreme Gigabit ethernet card. The
> > operating system is windows xp with SP2 and version of the driver is
> > 7.80.0.0
> > date:06/19/04. Is there anything i need to put it in .inf or in
> > intermediate
> > driver to make it work with Broadcom's hardware?
> >
> > Could anyone let me know how can i fix this bug?
> >
> > Thanks,
> > Senthil
>
>
>