How to setup "per target-mode-SCSI-operation DMA" for "targe
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
How to setup "per target-mode-SCSI-operation DMA" for "targe

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System
Author Message
Shailesh Chaudhari
Guest





Posted: Tue Aug 23, 2005 4:17 pm    Post subject: How to setup "per target-mode-SCSI-operation DMA" for "targe Reply with quote

Hi All,

I know that there is no "target mode" support in ScsiPort Miniport driver
framework of Windows.

Here is my question - though in context of "SCSI target mode operations" it
is more related to "being able to setup DMA" -

How to setup "per target-mode-SCSI-operation DMA" for "target mode" data
transfer with **ScsiPort Miniport** driver model?
At-least there should be a "clean documented" way to address such
requirements, until the right support comes in the next versions of this
driver framework.

ScsiPort Miniport framework does not allow setting up DMA separately.

The required objects like "device object" (PDO) to start with to issue
IoGetDmaAdapter are unavailable.
Writing filter drivers to get hold of such hidden information is kind of
overkill.
ScsiPortGetUncachedExtension is the only DMA (common buffer only - with
restrictions on the allocation size) related support which can be done once
for each HwFindAdapter call in the Miniport driver.
This one is only useful for things like HBA mailboxes and IOCBs etc.

One would need to setup DMA for - per SCSI "target mode" operation data
transfers.
Scsiport Miniport driver framework has no support for this.
This will be specifically required when one is attempting this for "target
mode SCSI" operations for say an FC HBA.
Also driver developers are discouraged from using
- MmXXX functions to setup DMA memory for compatibility reasons
- and HalXXX DMA functions as these are being obsoleted with some (like
HalGetAdapter) not being available in Windows IA64.

This is/will be a pretty common case for any ISV trying to write a SCSI
"target mode" driver for FC HBAs say.
And I will be surprised if Microsoft does not support such needs - as this
will just cause people to code in non-standard way causing more support
pressure in absence of right recommendations.

Please provide some guidance or redirect me to appropriate person.

Thanks in advance.

Thanks with best regards
ddkuser
Back to top
Jeff Goldner [MS]
Guest





Posted: Tue Aug 30, 2005 8:16 am    Post subject: Re: How to setup "per target-mode-SCSI-operation DMA" for "t Reply with quote

Sadly, this is correct. MS does not provide any target mode support, so yes,
people do code in non-standard ways.

"Shailesh Chaudhari" <ddkuser@newsgroup.nospam> wrote in message
news:O8guOm9pFHA.3980@TK2MSFTNGP15.phx.gbl...
Quote:

Hi All,

I know that there is no "target mode" support in ScsiPort Miniport driver
framework of Windows.

Here is my question - though in context of "SCSI target mode operations"
it is more related to "being able to setup DMA" -

How to setup "per target-mode-SCSI-operation DMA" for "target mode" data
transfer with **ScsiPort Miniport** driver model?
At-least there should be a "clean documented" way to address such
requirements, until the right support comes in the next versions of this
driver framework.

ScsiPort Miniport framework does not allow setting up DMA separately.

The required objects like "device object" (PDO) to start with to issue
IoGetDmaAdapter are unavailable.
Writing filter drivers to get hold of such hidden information is kind of
overkill.
ScsiPortGetUncachedExtension is the only DMA (common buffer only - with
restrictions on the allocation size) related support which can be done
once for each HwFindAdapter call in the Miniport driver.
This one is only useful for things like HBA mailboxes and IOCBs etc.

One would need to setup DMA for - per SCSI "target mode" operation data
transfers.
Scsiport Miniport driver framework has no support for this.
This will be specifically required when one is attempting this for "target
mode SCSI" operations for say an FC HBA.
Also driver developers are discouraged from using
- MmXXX functions to setup DMA memory for compatibility reasons
- and HalXXX DMA functions as these are being obsoleted with some (like
HalGetAdapter) not being available in Windows IA64.

This is/will be a pretty common case for any ISV trying to write a SCSI
"target mode" driver for FC HBAs say.
And I will be surprised if Microsoft does not support such needs - as this
will just cause people to code in non-standard way causing more support
pressure in absence of right recommendations.

Please provide some guidance or redirect me to appropriate person.

Thanks in advance.

Thanks with best regards
ddkuser

Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB