locked
driver crash after modifing TCB_MAX_COUNT RRS feed

  • Question

  • Hello,all,

    I have learned that the TCB_MAX_COUNT is the send queue's length. And the default value is 256.

    Now I am realizing relay function on SORA. So I want to increase the send queue's length.(eg. 512 or 1024).

    But when I modified the value and having a test. The driver is easily broken down.

    And, when I remain the default value(256) , the driver is working normally.

    After broken, the crash dump file is :

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

    Debugging Details:

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

    READ_ADDRESS:  00000010 

    CURRENT_IRQL:  2

    FAULTING_IP: 

    SDRMiniport!__SoraHwTxUnsafeNoWait+17 [d:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c @ 83]

    aa465c15 ff7310          push    dword ptr [ebx+10h]

    CUSTOMER_CRASH_COUNT:  5

    DEFAULT_BUCKET_ID:  COMMON_SYSTEM_FAULT

    BUGCHECK_STR:  0xD1

    PROCESS_NAME:  System

    LAST_CONTROL_TRANSFER:  from aa465cd7 to aa465c15

    STACK_TEXT:  

    aacf8d08 aa465cd7 8ac39210 00000000 8ac39210 SDRMiniport!__SoraHwTxUnsafeNoWait+0x17 [d:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c @ 83]

    aacf8d20 aa465d22 8ac39210 00000000 86cdbfe0 SDRMiniport!__SoraHwTxUnsafe+0x13 [d:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c @ 346]

    aacf8d3c aa469084 00c39210 86cdbfe8 00000004 SDRMiniport!SORA_HW_BEGIN_TX+0x25 [d:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c @ 381]

    aacf8d70 aa466dc6 89a79080 00000000 8713d350 SDRMiniport!SdrMacTx+0x183 [d:\sorasdk1.1\src\driver\mac\sdr_mac_tx_relay.c @ 316]

    aacf8dac 805cffa8 89a79080 00000000 00000000 SDRMiniport!__SORA_FSM_ENGINE+0x5f [d:\projects\sora1.1\sora1.1\kernel\core\src\sora.c @ 83]

    aacf8ddc 8054615e aa466d67 89a79080 00000000 nt!PspSystemThreadStartup+0x34

    00000000 00000000 00000000 00000000 00000000 nt!KiThreadStartup+0x16

    STACK_COMMAND:  kb

    FOLLOWUP_IP: 

    SDRMiniport!__SoraHwTxUnsafeNoWait+17 [d:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c @ 83]

    aa465c15 ff7310          push    dword ptr [ebx+10h]

    FAULTING_SOURCE_CODE:  

    No source found for 'd:\projects\sora1.1\sora1.1\kernel\core\src\_hw_op.c'

    SYMBOL_STACK_INDEX:  0

    SYMBOL_NAME:  SDRMiniport!__SoraHwTxUnsafeNoWait+17

    FOLLOWUP_NAME:  MachineOwner

    MODULE_NAME: SDRMiniport

    IMAGE_NAME:  SDRMiniport.sys

    DEBUG_FLR_IMAGE_TIMESTAMP:  4dfb1d54

    FAILURE_BUCKET_ID:  0xD1_SDRMiniport!__SoraHwTxUnsafeNoWait+17

    BUCKET_ID:  0xD1_SDRMiniport!__SoraHwTxUnsafeNoWait+17

    Followup: MachineOwner

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

     But I can't see the source code of __SoraHwTxUnsafeNoWait.

    So I want to ask if the current SDK1.1 support us to modify this TCB_MAX_COUNT value?

    Or how to fix this problem?

    Thanks a lot.


    Friday, June 17, 2011 9:57 AM

Answers

  • Hi Albert,

    I do not suggest you to modify this value even we export it.

    There are some complicated resource management mechanisms inside.

    Why you have to keep more than 256 packets queued?

    Maybe I can figure out other solutions to your issue.

    Paul

    Monday, June 27, 2011 7:13 AM