You need evaluate EDKII ScsiBus and ScsiDisk driver to see if they meet your
requirement. For example, which device type does your SAS driver return? EDKII
ScsiDisk only manages EFI_SCSI_TYPE_DISK and EFI_SCSI_TYPE_CDROM.
If they meet your requirement and do same thing of what you would like to do,
then you can leverage them. You just need produce EXT_SCSI_PASS_THRU and
EFI_DEVICE_PATH_PROTOCOL at SAS controller handle.
If you don’t like them (quality or functionality), you can implement those
logic at your SAS driver.
From: Murali Selvaraj [mailto:murali.selva...@lntinfotech.com]
Sent: Friday, November 15, 2013 13:16
To: Tian, Feng; edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] SAS/SCSI controller: End Device Details
Hi Feng,
Thanks for your inputs.
<Feng > It depends on your usage model. Where do you want to get such info? Is
in SAS driver or a UEFI driver or Platform BDS or Shell?
<Murali> I am planning to get those information from SAS driver.
<Feng> For example, your SAS driver could consume PCI_IO to produce
EXT_SCSI_PASS_THRU protocol. Then EDKII ScsiBus and ScsiDisk driver could run
on it to produce BLOCK_IO and DISK_INFO protocol.
<Murali> Do I need to integrate ScsiBus and ScsiDisk driver implementation into
my SAS driver ? or Shall I install the driver as follows.
<shell> load <my_sas_driver.efi>
<shell> load <scsibus.efi>
<shell> load <scsidisk.efi>
Consider the above assumption, Do we need to install
EXT_SCSI_PASS_THRU protocol from my SAS driver ? Also any other protocol to be
installed in my SAS driver.
Thanks,
Murali.S
Hi, Murali.S
It depends on your usage model. Where do you want to get such info? Is in SAS
driver or a UEFI driver or Platform BDS or Shell?
For example, your SAS driver could consume PCI_IO to produce EXT_SCSI_PASS_THRU
protocol. Then EDKII ScsiBus and ScsiDisk driver could run on it to produce
BLOCK_IO and DISK_INFO protocol. Here UEFI driver, Platform BDS or Application
could locate DISK_INFO instance to use DISK_INFO.Inquiry() API to get
attributes you care.
If you would to get such info at the internal of your SAS driver, then it?s
yourself implementation.
Thanks
Feng
From: Murali Selvaraj [mailto:murali.selva...@lntinfotech.com]
Sent: Thursday, November 14, 2013 22:31
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] SAS/SCSI controller: End Device Details
Hi ,
I am working on PCIe based SCSI/SAS controller card. I have written a EFI
driver to bring up my SAS controller. It?s confirmed that SAS card is up and
running properly.
Next, I would like to obtain end device details Vendor, Model and rev
attributes from scsi device structure. AS of my understanding, the following
steps to be done.
? Send an INQUIRY (0x12) scsi cmd to the target device.
? If command request succeeds, we could dump Vendor, Model and rev
fields from response data buffer.
To implement the above mentioned requirement, can we start an UEFI application
instead of other new EFI driver to send scsi command to my SAS/SCSI controller?
My Query:
>From our EDK2 source, we have MdeModulePkg/Bus/Scsi/ScsiDiskDxe
>packages. Shall we use this driver for my requirement (to send scsi
>command)
Does it work ? If yes, Do I need to install any specific scsi protocol?
Please suggests me your valuable inputs.
Thanks
Murali.S
________________________________
The contents of this e-mail and any attachment(s) may contain confidential or
privileged information for the intended recipient(s). Unintended recipients are
prohibited from taking action on the basis of information in this e-mail and
using or disseminating the information, and must notify the sender and delete
it from their system. L&T Infotech will not accept responsibility or liability
for the accuracy or completeness of, or the presence of any virus or disabling
code in this e-mail"
*************************************************************************
This email and attachments have been scanned for
potential proprietary or sensitive information leakage.
Websense Data Security, Protecting Your Information from the Inside Out.
www.websense.com<http://www.websense.com>
*************************************************************************
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel