public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "Tan, Ming" <ming.tan@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Shang, Qingyu" <qingyu.shang@intel.com>,
	"Gao, Liming" <gaoliming@byosoft.com.cn>,
	"Liu, Zhiguang" <zhiguang.liu@intel.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [PATCH] MdePkg: Update ReceiveData and SendData function description
Date: Tue, 23 Jan 2024 23:15:14 +0000	[thread overview]
Message-ID: <CO1PR11MB492950FD56475A2ABACB87C3D2742@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <f5e51dc53df522e43fc335cf2d545300651d37bc.1704448153.git.qingyu.shang@intel.com>

Hi Ming,

Please update the function headers for the following drivers that 
provide implementations of the Storage Security Command Protocol.

MdeModulePkg\Bus\Ata\AtaBusDxe\AtaBus.c:
  1485    @param  This                         Indicates a pointer to the calling context.
  1486:   @param  MediaId                      ID of the medium to receive data from.
  1487    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  1602    @param  This                         Indicates a pointer to the calling context.
  1603:   @param  MediaId                      ID of the medium to receive data from.
  1604    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Ata\AtaBusDxe\AtaBus.h:
   929    @param  This                         Indicates a pointer to the calling context.
   930:   @param  MediaId                      ID of the medium to receive data from.
   931    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  1009    @param  This                         Indicates a pointer to the calling context.
  1010:   @param  MediaId                      ID of the medium to receive data from.
  1011    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Pci\NvmExpressDxe\NvmExpressBlockIo.c:
  1701    @param  This                         Indicates a pointer to the calling context.
  1702:   @param  MediaId                      ID of the medium to receive data from.
  1703    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  1814    @param  This                         Indicates a pointer to the calling context.
  1815:   @param  MediaId                      ID of the medium to receive data from.
  1816    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Pci\NvmExpressDxe\NvmExpressBlockIo.h:
  291    @param  This                         Indicates a pointer to the calling context.
  292:   @param  MediaId                      ID of the medium to receive data from.
  293    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  371    @param  This                         Indicates a pointer to the calling context.
  372:   @param  MediaId                      ID of the medium to receive data from.
  373    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Scsi\ScsiDiskDxe\ScsiDisk.c:
  1899    @param  This                         Indicates a pointer to the calling context.
  1900:   @param  MediaId                      ID of the medium to receive data from.
  1901    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  2121    @param  This                         Indicates a pointer to the calling context.
  2122:   @param  MediaId                      ID of the medium to receive data from.
  2123    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Scsi\ScsiDiskDxe\ScsiDisk.h:
  679    @param  This                         Indicates a pointer to the calling context.
  680:   @param  MediaId                      ID of the medium to receive data from.
  681    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  753    @param  This                         Indicates a pointer to the calling context.
  754:   @param  MediaId                      ID of the medium to receive data from.
  755    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Sd\EmmcDxe\EmmcBlockIo.c:
  1269    @param[in]  This                         Indicates a pointer to the calling context.
  1270:   @param[in]  MediaId                      ID of the medium to receive data from.
  1271    @param[in]  Timeout                      The timeout, in 100ns units, to use for the execution

  1456    @param  This                         Indicates a pointer to the calling context.
  1457:   @param  MediaId                      ID of the medium to receive data from.
  1458    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  1557    @param  This                         Indicates a pointer to the calling context.
  1558:   @param  MediaId                      ID of the medium to receive data from.
  1559    @param  Timeout                      The timeout, in 100ns units, to use for the execution

MdeModulePkg\Bus\Sd\EmmcDxe\EmmcBlockIo.h:
  252    @param[in]  This                         Indicates a pointer to the calling context.
  253:   @param[in]  MediaId                      ID of the medium to receive data from.
  254    @param[in]  Timeout                      The timeout, in 100ns units, to use for the execution

  339    @param  This                         Indicates a pointer to the calling context.
  340:   @param  MediaId                      ID of the medium to receive data from.
  341    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  419    @param  This                         Indicates a pointer to the calling context.
  420:   @param  MediaId                      ID of the medium to receive data from.
  421    @param  Timeout                      The timeout, in 100ns units, to use for the execution

SecurityPkg\Tcg\Opal\OpalPassword\OpalPasswordPei.c:
   51    @param  This                         Indicates a pointer to the calling context.
   52:   @param  MediaId                      ID of the medium to receive data from.
   53    @param  Timeout                      The timeout, in 100ns units, to use for the execution

  150    @param  This                         Indicates a pointer to the calling context.
  151:   @param  MediaId                      ID of the medium to receive data from.
  152    @param  Timeout                      The timeout, in 100ns units, to use for the execution

Thanks,

Mike


> -----Original Message-----
> From: Tan, Ming <ming.tan@intel.com>
> Sent: Wednesday, January 10, 2024 11:26 PM
> To: devel@edk2.groups.io
> Cc: Shang, Qingyu <qingyu.shang@intel.com>; Kinney, Michael D
> <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>;
> Liu, Zhiguang <zhiguang.liu@intel.com>
> Subject: [PATCH] MdePkg: Update ReceiveData and SendData function
> description
> 
> From: Qingyu Shang <qingyu.shang@intel.com>
> 
> Refer to Uefi spec 2.10 section 13.14, update the parameter 'MediaId'
> description for EFI_STORAGE_SECURITY_COMMAND_PROTOCOL function
> ReceiveData
> and SendData.
> 
> Signed-off-by: Qingyu Shang <qingyu.shang@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> ---
>  MdePkg/Include/Protocol/StorageSecurityCommand.h | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/MdePkg/Include/Protocol/StorageSecurityCommand.h
> b/MdePkg/Include/Protocol/StorageSecurityCommand.h
> index 810af59b85..206ae79aff 100644
> --- a/MdePkg/Include/Protocol/StorageSecurityCommand.h
> +++ b/MdePkg/Include/Protocol/StorageSecurityCommand.h
> @@ -59,7 +59,9 @@ typedef struct _EFI_STORAGE_SECURITY_COMMAND_PROTOCOL
> EFI_STORAGE_SECURITY_COMMA
>    function shall return EFI_DEVICE_ERROR.
> 
> 
> 
>    @param  This                         Indicates a pointer to the
> calling context.
> 
> -  @param  MediaId                      ID of the medium to receive data
> from.
> 
> +  @param  MediaId                      ID of the medium to receive data
> from. If there is no
> 
> +                                       block IO protocol supported by
> the physical device, the
> 
> +                                       value of MediaId is undefined.
> 
>    @param  Timeout                      The timeout, in 100ns units, to
> use for the execution
> 
>                                         of the security protocol
> command. A Timeout value of 0
> 
>                                         means that this function will
> wait indefinitely for the
> 
> @@ -138,7 +140,9 @@ EFI_STATUS
>    shall return EFI_DEVICE_ERROR.
> 
> 
> 
>    @param  This                         Indicates a pointer to the
> calling context.
> 
> -  @param  MediaId                      ID of the medium to receive data
> from.
> 
> +  @param  MediaId                      ID of the medium to receive data
> from. If there is no
> 
> +                                       block IO protocol supported by
> the physical device, the
> 
> +                                       value of MediaId is undefined.
> 
>    @param  Timeout                      The timeout, in 100ns units, to
> use for the execution
> 
>                                         of the security protocol
> command. A Timeout value of 0
> 
>                                         means that this function will
> wait indefinitely for the
> 
> --
> 2.39.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114239): https://edk2.groups.io/g/devel/message/114239
Mute This Topic: https://groups.io/mt/103658104/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-01-23 23:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11  7:26 [edk2-devel] [PATCH] MdePkg: Update ReceiveData and SendData function description Tan, Ming
2024-01-23 23:15 ` Michael D Kinney [this message]
2024-01-30  4:58   ` [edk2-devel] [PATCH v2 1/1] " Qingyu
2024-01-30 17:43     ` Michael D Kinney
2024-01-30  8:53   ` [edk2-devel] [PATCH v3 " Qingyu
2024-01-30 17:58     ` Michael D Kinney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CO1PR11MB492950FD56475A2ABACB87C3D2742@CO1PR11MB4929.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox