none
Filter driver for SD Storage Class Controller throws error on SdBusSubmitRequest. RRS feed

  • Question

  • Long question short: Can upper filter driver for SD Storage Class Controller directly call SdBus Library APIs ?

    Detailed Description: I have written upper class filter driver for SD Storage Class Controller. Opening and Initialization of SD card is successful. But when I issue SdBusSubmitRequest it gives an BugCheck3B. 

    The bugcheck is hit in SdStor Function SdStorScsi. Given below is the stack trace when the BugCheck is hit. SdFilter is my upper filter driver. The filter code for calling SdBus APIs is taken from SdioMars code given in WDK sample code. 

    STACK_TEXT:  
    ffffd002`006ca450 fffff800`918a1df9 : 00001ffe`480ce901 ffffe001`b7f366e0 ffffe001`b7ef44d0 ffffd002`006ca560 : sdstor!SdStorScsi+0x204
    ffffd002`006ca4c0 fffff800`918a1149 : ffffe001`b8ec8ae0 00000000`00049e0c 00000000`00000001 fffff800`91e3a238 : SdFilter!SdBusSubmitRequest+0x99 [d:\th\base\busdrv\sd\lib\sdbus.c @ 132]
    ffffd002`006ca530 fffff800`918a66ab : 00001ffe`480cb338 00000000`00000003 ffffe001`b7f34ffa 00000000`00000001 : SdFilter!SdFilterGetProperty+0xa9 [c:\users\test1\documents\visual studio 2015\projects\sdfilter\sdfilter\sdfilter.c @ 531]

    My Question is:

    - Since my SdFilter is upper filter driver to sdstor, is it a correct method to call SdBus APIs directly from the filter driver. 

    - If No, how can I utilize services of SdBus APIs from the filter driver. 

    - If Yes, why SdBusSubmitRequest is failing ? What things I should bear in mind while issuing SdBusSubmitRequest. 

    PS: Please lemme know, if further bugcheck analysis report is required or snippet of the code. 

    Thanks and Regards,
    Rakendra Thapa


    Tuesday, February 2, 2016 8:53 AM