public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* BootableImageSupportTest\StorageSecurityCommandProtocolTest
@ 2016-08-25  8:43 Ramesh R.
  2016-08-26  7:24 ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Tian, Feng
  0 siblings, 1 reply; 11+ messages in thread
From: Ramesh R. @ 2016-08-25  8:43 UTC (permalink / raw)
  To: edk2-devel

Hi,

   When the we run the "BootableImageSupportTest\StorageSecurityCommandProtocolTest" test on the NVME devices we are getting into error because of the below testing code.

    //
    // According to TCG definition, when the Security Protocol field is set to 00h, and SP
    // Specific is set to 0000h in a TRUSTED RECEIVE command, return security protocol
    // information. This Command is not associated with a security send command
    //
    Status = StorageSecurityCommand->ReceiveData (
                                       StorageSecurityCommand,
                                       BlockIo->Media->MediaId,
                                       100000000,                    // Timeout 10-sec
                                       0,                            // SecurityProtocol
                                       0,                            // SecurityProtocolSpecifcData
                                       10,                           // PayloadBufferSize,
                                       DataBuffer,                   // PayloadBuffer
                                       &RcvDataSize
                                       );
    //
    // for ATA8-ACS SecurityProtocol, 512 byte is a request
    //
    if (IsAtaDevice) {
      if((Status == EFI_DEVICE_ERROR) || (Status == EFI_WARN_BUFFER_TOO_SMALL)){
        AssertionType = EFI_TEST_ASSERTION_PASSED;
      } else {
        AssertionType = EFI_TEST_ASSERTION_FAILED;
      }
    } else {
      if((!EFI_ERROR(Status)) || (Status == EFI_WARN_BUFFER_TOO_SMALL)){
        AssertionType = EFI_TEST_ASSERTION_PASSED;
      } else {
        AssertionType = EFI_TEST_ASSERTION_FAILED;
      }
    }

For Ata devices, EFI_DEVICE_ERROR considered as valid error case and for the Nvme ( Non ATA) device it's considered as error. Could you please let us know why there is difference in this case ?.

Thanks,
Ramesh




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-09-08  5:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25  8:43 BootableImageSupportTest\StorageSecurityCommandProtocolTest Ramesh R.
2016-08-26  7:24 ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Tian, Feng
2016-08-30 17:19   ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Ramesh R.
2016-09-01  2:42     ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Tian, Feng
2016-09-01  3:47       ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Jin, Eric
2016-09-02 18:05       ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Ramesh R.
2016-09-05  3:18         ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Tian, Feng
2016-09-05  5:23           ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Jin, Eric
2016-09-08  5:14             ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Ramesh R.
2016-09-08  5:29               ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Jin, Eric
2016-09-08  5:11           ` BootableImageSupportTest\StorageSecurityCommandProtocolTest Ramesh R.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox