ScsiPortNotification With Notification Type Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My Driver
Recieves a Particular kind Of IOCTL from My application and after the Driver
is Completed with Required Processing it Calls ScsiPortNotification with
notification type as
BusChangeDetected this notification type initiates the Re-Scan of bus for
the Devices Added or Removed.
My Question :------ is this call Synchronous or Asynchronous i.e. When will
the IOCTL return to the application??? After the Re-Scan is Done ?? Or The
IOCTL will return to the application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh

The IOCTL will complete when you call
ScsiPortNotification(RequestComplete, …) on the request block. The
request for re-enumeration will essentially be asynchronous to this, as
it requires a PnP bus invalidation to do its thing.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saxena,
Ajitabh Prakash
Sent: Monday, August 05, 2002 6:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type
Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My
Driver Recieves a Particular kind Of IOCTL from My
application and after the Driver is Completed with Required
Processing it Calls ScsiPortNotification with notification
type as BusChangeDetected this notification type initiates
the Re-Scan of bus for the Devices Added or Removed. My
Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After
the Re-Scan is Done ?? Or The IOCTL will return to the
application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh


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

the rescan will happen at some arbitrary point of time in the future.
The IOCTL is in no way synchronized with it.

-p

-----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Monday, August 05, 2002 3:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type Bus Change
Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My Driver
Recieves a Particular kind Of IOCTL from My application and after the
Driver is Completed with Required Processing it Calls
ScsiPortNotification with notification type as BusChangeDetected this
notification type initiates the Re-Scan of bus for the Devices Added or
Removed. My Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After the Re-Scan
is Done ?? Or The IOCTL will return to the application and Re-Scan will
be done in parallel.

Any help is Appriciated
ajitabh


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

Correct. I am issuing two notifications

This means that Bus Change Notification will be processed before the Request
Complete Notification.

I am seeing that for that particular Ioctl in which i issue a bus rescan my
Driver is taking longer time to return control to application as compared
when the ReScan was not there.
Should i complete the IOCTL first and then issue the Re-Scan, I mean the
notification for sequence will be :

ScsiPortNotification(RequestComplete, …) - For completion of my Ioctl.
ScsiPortNotification(BusChangeDetected, …) - For Bus ReScan

Will this make any difference??

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Monday, August 05, 2002 6:38 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

The IOCTL will complete when you call
ScsiPortNotification(RequestComplete, …) on the request block. The
request for re-enumeration will essentially be asynchronous to this, as
it requires a PnP bus invalidation to do its thing.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saxena,
Ajitabh Prakash
Sent: Monday, August 05, 2002 6:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type
Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My
Driver Recieves a Particular kind Of IOCTL from My
application and after the Driver is Completed with Required
Processing it Calls ScsiPortNotification with notification
type as BusChangeDetected this notification type initiates
the Re-Scan of bus for the Devices Added or Removed. My
Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After
the Re-Scan is Done ?? Or The IOCTL will return to the
application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh


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@lsil.com
To unsubscribe send a blank email to %%email.unsub%%

It should make none at all - the processing for almost everything in
scsiport is done after the miniport routine has finished.
ScsiPortNotification mostly just sets flags & queues things for later
processing.

-p

-----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Monday, August 05, 2002 4:04 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

Correct. I am issuing two notifications

This means that Bus Change Notification will be processed before the
Request Complete Notification.

I am seeing that for that particular Ioctl in which i issue a bus rescan
my Driver is taking longer time to return control to application as
compared when the ReScan was not there. Should i complete the IOCTL
first and then issue the Re-Scan, I mean the notification for sequence
will be :

ScsiPortNotification(RequestComplete, …) - For completion of my Ioctl.
ScsiPortNotification(BusChangeDetected, …) - For Bus ReScan

Will this make any difference??

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Monday, August 05, 2002 6:38 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

The IOCTL will complete when you call
ScsiPortNotification(RequestComplete, …) on the request block. The
request for re-enumeration will essentially be asynchronous to this, as
it requires a PnP bus invalidation to do its thing.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saxena,
Ajitabh Prakash
Sent: Monday, August 05, 2002 6:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type
Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My
Driver Recieves a Particular kind Of IOCTL from My
application and after the Driver is Completed with Required
Processing it Calls ScsiPortNotification with notification
type as BusChangeDetected this notification type initiates
the Re-Scan of bus for the Devices Added or Removed. My
Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After
the Re-Scan is Done ?? Or The IOCTL will return to the
application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh


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@lsil.com
To unsubscribe send a blank email to %%email.unsub%%


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

Can you please elaborate some more on this.Even if the Scsi miniport is
Queuing the things
Then my BusChangeDetected will be Queued first and processed first.The
ReScan will be initiated and then On completion of this the Request Complete
Notification will be processed.

is this Correct???

-----Original Message-----
From: Peter Wieland [mailto:xxxxx@windows.microsoft.com]
Sent: Tuesday, August 06, 2002 12:09 AM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

It should make none at all - the processing for almost everything in
scsiport is done after the miniport routine has finished.
ScsiPortNotification mostly just sets flags & queues things for later
processing.

-p

-----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Monday, August 05, 2002 4:04 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

Correct. I am issuing two notifications

This means that Bus Change Notification will be processed before the
Request Complete Notification.

I am seeing that for that particular Ioctl in which i issue a bus rescan
my Driver is taking longer time to return control to application as
compared when the ReScan was not there. Should i complete the IOCTL
first and then issue the Re-Scan, I mean the notification for sequence
will be :

ScsiPortNotification(RequestComplete, …) - For completion of my Ioctl.
ScsiPortNotification(BusChangeDetected, …) - For Bus ReScan

Will this make any difference??

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Monday, August 05, 2002 6:38 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

The IOCTL will complete when you call
ScsiPortNotification(RequestComplete, …) on the request block. The
request for re-enumeration will essentially be asynchronous to this, as
it requires a PnP bus invalidation to do its thing.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saxena,
Ajitabh Prakash
Sent: Monday, August 05, 2002 6:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type
Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My
Driver Recieves a Particular kind Of IOCTL from My
application and after the Driver is Completed with Required
Processing it Calls ScsiPortNotification with notification
type as BusChangeDetected this notification type initiates
the Re-Scan of bus for the Devices Added or Removed. My
Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After
the Re-Scan is Done ?? Or The IOCTL will return to the
application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh


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@lsil.com
To unsubscribe send a blank email to %%email.unsub%%


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


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

The bus change detected notification that you send back to the port
driver notifies it that the bus needs to be re-enumerated, but it does
not synchronously re-enumerate the bus.

Matt Hendel
Windows Base OS/Drivers

This posting is provided “AS IS” with no warranties, and confers no
rights.

----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Monday, August 05, 2002 3:23 PM
Subject: ScsiPortNotification With Notification Type Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My Driver
Recieves a Particular kind Of IOCTL from My application and after the
Driver
is Completed with Required Processing it Calls ScsiPortNotification with
notification type as
BusChangeDetected this notification type initiates the Re-Scan of bus
for
the Devices Added or Removed.
My Question :------ is this call Synchronous or Asynchronous i.e. When
will
the IOCTL return to the application??? After the Re-Scan is Done ?? Or
The
IOCTL will return to the application and Re-Scan will be done in
parallel.

Any help is Appriciated
ajitabh

still no.

ScsiPortNotification sets flags for the things the DPC needs to do (in
this case request a bus scan, complete a request, ask for the next
request for LUN x, as for the next adapter request).

in the complete a request case the request being completed is added to a
list.
in the next lun request case the internal LUN object is added to a list.

the completion DPC checks the flags which are set and does the necessary
processing of those flags. The order in which this is done will be the
same each time.

additionally the cost of initiating a rescan is incredibly minimal - I
doubt you can see it in your tests. What you would notice is the bus
scan which occurs at an arbitrary time in the future (according to the
whims of PNP) and is very expensive.

so, to make a long story short, it makes NO difference whether you
request the bus scan before or after you call complete request, as long
as it’s done in the same miniport call.

-p

-----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Tuesday, August 06, 2002 7:17 AM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

Can you please elaborate some more on this.Even if the Scsi miniport is
Queuing the things
Then my BusChangeDetected will be Queued first and processed first.The
ReScan will be initiated and then On completion of this the Request
Complete Notification will be processed.

is this Correct???

-----Original Message-----
From: Peter Wieland [mailto:xxxxx@windows.microsoft.com]
Sent: Tuesday, August 06, 2002 12:09 AM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

It should make none at all - the processing for almost everything in
scsiport is done after the miniport routine has finished.
ScsiPortNotification mostly just sets flags & queues things for later
processing.

-p

-----Original Message-----
From: Saxena, Ajitabh Prakash [mailto:xxxxx@lsil.com]
Sent: Monday, August 05, 2002 4:04 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

Correct. I am issuing two notifications

This means that Bus Change Notification will be processed before the
Request Complete Notification.

I am seeing that for that particular Ioctl in which i issue a bus rescan
my Driver is taking longer time to return control to application as
compared when the ReScan was not there. Should i complete the IOCTL
first and then issue the Re-Scan, I mean the notification for sequence
will be :

ScsiPortNotification(RequestComplete, …) - For completion of my Ioctl.
ScsiPortNotification(BusChangeDetected, …) - For Bus ReScan

Will this make any difference??

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Monday, August 05, 2002 6:38 PM
To: NT Developers Interest List
Subject: [ntdev] RE: ScsiPortNotification With Notification Type Bus
Change Detected

The IOCTL will complete when you call
ScsiPortNotification(RequestComplete, …) on the request block. The
request for re-enumeration will essentially be asynchronous to this, as
it requires a PnP bus invalidation to do its thing.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saxena, Ajitabh
Prakash
Sent: Monday, August 05, 2002 6:23 PM
To: NT Developers Interest List
Subject: [ntdev] ScsiPortNotification With Notification Type
Bus Change Detected

hi all,
I am working on Windows 2000 Scsi Minoport Driver. My
Driver Recieves a Particular kind Of IOCTL from My
application and after the Driver is Completed with Required
Processing it Calls ScsiPortNotification with notification
type as BusChangeDetected this notification type initiates
the Re-Scan of bus for the Devices Added or Removed. My
Question :------ is this call Synchronous or Asynchronous
i.e. When will the IOCTL return to the application??? After
the Re-Scan is Done ?? Or The IOCTL will return to the
application and Re-Scan will be done in parallel.

Any help is Appriciated
ajitabh


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@lsil.com
To unsubscribe send a blank email to %%email.unsub%%


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


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


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

> the IOCTL return to the application??? After the Re-Scan is Done ??
Or The

IOCTL will return to the application and Re-Scan will be done in
parallel.

The second.

Max