Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

OSR Seminars


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 12  
01 Jan 18 16:28
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

Hi all, I have a storage class lower filter driver for write protection. Most of the storage devices used in our units are connected to a LSI SAS/SATA host adapter. The filter works fine with the older lsi_sas2.sys driver. But they have changed something in the new generation lsi_sas3.sys that my filter does not catch any IRPs anymore. I have not tried to debug the driver yet, but I noticed in their release notes they are stating that the new miniport is using the STORPORT rather than SCSIPORT interface. So I am wondering if that has anything to do with my filter not working now, and if there is an easy fix. Thanks for any input, Igor
  Message 2 of 12  
02 Jan 18 09:43
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

Additional info. I compiled a debug version with some debug messages, and with DebugView I see that on a new disk arrival my driver's AddDevice routine does not get called at all, when the disk is connected to the SAS controller. But for USB it works fine.
  Message 3 of 12  
02 Jan 18 10:29
Mark Roddy
xxxxxx@gmail.com
Join Date: 25 Feb 2000
Posts To This List: 4099
Disk lower filter, SCSIPORT vs STORPORT

If your add device routine is not getting called then you are not filtering the correct enumeration type. Certainly the disk class driver's add device routine is getting called, right? Mark Roddy On Tue, Jan 2, 2018 at 9:43 AM, xxxxx@gmail.com <xxxxx@lists.osr.com> wrote: > Additional info. > I compiled a debug version with some debug messages, and with DebugView I > see that on a new disk arrival my driver's AddDevice routine does not get > called at all, when the disk is connected to the SAS controller. But for > USB it works fine. > > --- > NTDEV is sponsored by OSR > > Visit the list online at: <http://www.osronline.com/ <...excess quoted lines suppressed...> --
  Message 4 of 12  
02 Jan 18 19:43
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

Hi Mark, Thank you for your reply. Please give me an idea what I should check, because as I said it works if I use the older SAS controller. My filter is installed as a lower filter on the disk drive class like below, so I don' understand why a disk on one controller should work and another not. Thanks [ClassFilter_AddReg] HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00000004 HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00010008, "filter"
  Message 5 of 12  
02 Jan 18 20:31
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11997
Disk lower filter, SCSIPORT vs STORPORT

xxxxx@gmail.com wrote: > Hi Mark, > Thank you for your reply. > Please give me an idea what I should check, because as I said it works if I use the older SAS controller. My filter is installed as a lower filter on the disk drive class like below, so I don' understand why a disk on one controller should work and another not. Do you have any evidence that those other drives actually come up in class 4D36E967-E325-11CE-BFC1-08002BE10318?  Do they show up under "Disk drives" in Device Manager?   > [ClassFilter_AddReg] > HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00000004 > HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00010008, "filter" I don't believe there are any guarantees about the order of operations in an AddReg section, so you don't know that it will do the delete first.  You should only need the second 0x00010008 line.  It's not up to you to delete any filters that might already be there. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 6 of 12  
03 Jan 18 20:06
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

Yes, they all show up under disk drives. If a disk is connected to any interface other than that new SAS controller, my AddDevice gets called. Thanks
  Message 7 of 12  
04 Jan 18 08:17
Mark Roddy
xxxxxx@gmail.com
Join Date: 25 Feb 2000
Posts To This List: 4099
Disk lower filter, SCSIPORT vs STORPORT

So how are you installing your filter? Mark Roddy On Wed, Jan 3, 2018 at 8:05 PM, xxxxx@gmail.com <xxxxx@lists.osr.com> wrote: > Yes, they all show up under disk drives. If a disk is connected to any > interface other than that new SAS controller, my AddDevice gets called. > Thanks > > --- > NTDEV is sponsored by OSR > > Visit the list online at: <http://www.osronline.com/ > showlists.cfm?list=ntdev> > <...excess quoted lines suppressed...> --
  Message 8 of 12  
04 Jan 18 10:10
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

From my installer app, like this: RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 ... And I have an inf file that copies the driver file to the system drivers folder and adds the registry entries to register it as a lower filter to the hard drive class, like this: [Filter_AddReg] HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00000004 HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00010008, "filter"
  Message 9 of 12  
04 Jan 18 10:38
Mark Roddy
xxxxxx@gmail.com
Join Date: 25 Feb 2000
Posts To This List: 4099
Disk lower filter, SCSIPORT vs STORPORT

So if you examine the class guid for the disks that you don't attach to what is their guid? (device manager device properties details Class Guid) Or alternatively look in the Enum key for these devices and see what Driver they are connecting to. You need to poke around at the configuration to see what is going on. !devnode and !devstack in the debugger might be helpful. Mark Roddy On Thu, Jan 4, 2018 at 10:09 AM, xxxxx@gmail.com <xxxxx@lists.osr.com> wrote: > From my installer app, like this: > RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 ... > > And I have an inf file that copies the driver file to the system drivers > folder and adds the registry entries to register it as a lower filter to > the hard drive class, like this: > > [Filter_AddReg] > HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, > "LowerFilters", 0x00000004 <...excess quoted lines suppressed...> --
  Message 10 of 12  
04 Jan 18 16:55
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10217
Disk lower filter, SCSIPORT vs STORPORT

You really shouldn't be deleting the LowerFilters value as you could be removing other filters from the list -----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com Sent: Tuesday, January 2, 2018 4:43 PM To: Windows System Software Devs Interest List <xxxxx@lists.osr.com> Subject: RE:[ntdev] Disk lower filter, SCSIPORT vs STORPORT Hi Mark, Thank you for your reply. Please give me an idea what I should check, because as I said it works if I use the older SAS controller. My filter is installed as a lower filter on the disk drive class like below, so I don' understand why a disk on one controller should work and another not. Thanks [ClassFilter_AddReg] HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00000004 HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, "LowerFilters", 0x00010008, "filter" --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7C841 25fb0505e4b0340fb08d55242ee99%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636505 370033568367&sdata=gxReJtWih%2BV5DnQysS4cQ2N9krWk4e2xztcnLdSgJFk%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7C84125fb0505e4b0340fb08d55242e e99%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636505370033568367&sdata=oEcGLnc vEUPsBfv6X8sHhrPOUd6QlmaPpGp2wR8EBD0%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7C841 25fb0505e4b0340fb08d55242ee99%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636505 370033568367&sdata=0ikGlmxrLwiNYl0KjpDubvXh4Biwy7cBFY2WrspTFzw%3D&reserved=0>
  Message 11 of 12  
04 Jan 18 21:45
M M
xxxxxx@hotmail.com
Join Date: 21 Oct 2010
Posts To This List: 767
Disk lower filter, SCSIPORT vs STORPORT

IIRC STOREPORT was introduced with server 2003, so I don?t know how old your old driver is. I would expect that all SAS and SATA controllers would have mini port drivers based on the storeport model as the older driver models had much inferior performance ? especially in the case of multi core machines and deep queues of pending IO. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@gmail.com <xxxxx@lists.osr.com> Sent: Wednesday, January 3, 2018 8:05:06 PM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Disk lower filter, SCSIPORT vs STORPORT Yes, they all show up under disk drives. If a disk is connected to any interface other than that new SAS controller, my AddDevice gets called. Thanks --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer> --
  Message 12 of 12  
04 Jan 18 23:50
Igor R
xxxxxx@gmail.com
Join Date: 01 Jan 2018
Posts To This List: 7
Disk lower filter, SCSIPORT vs STORPORT

Yes, correct. They said that the new driver is based on the storport model. So how does it affect the disk lower filter drivers?
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 02:49.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license