From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 30FE421D2E650 for ; Sun, 20 Aug 2017 21:55:05 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E66FB82047 for ; Mon, 21 Aug 2017 10:30:04 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DA2CA82046 for ; Mon, 21 Aug 2017 10:30:04 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS for ; Mon, 21 Aug 2017 10:30:04 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Mon, 21 Aug 2017 10:27:33 +0530 From: Ramesh R. To: "edk2-devel@lists.01.org" Thread-Topic: ReadBlock Thread-Index: AdMaOfw5qdnZq/YGT9yVcoGNtxvPeQ== Date: Mon, 21 Aug 2017 04:57:32 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.17] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23272.004 X-TM-AS-Result: No--7.682-5.0-31-10 X-imss-scan-details: No--7.682-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23272.004 X-TMASE-Result: 10--7.681900-10.000000 X-TMASE-MatchedRID: 7Js6H98jv7NNX7KC6L8DnuLdprnA5EQR0217Uu5KPqzaqqH/oHw+kRsQ njH6bzLyq2P34nOGFZguqKKqdUbdyAFgzQPsVfHeaK+MsTwM+1mFKXsoBdprwgzvg1/q1MH2A5H e1kDS+OLi8zVgXoAlttXHXG0JA5qA0C1sQRfQzEHEQdG7H66TyH4gKq42LRYkquguR2NAVz3ijC 8p3rb9qScdDjK1wnXDXpQYmEwj/G1+3BndfXUhXQ== X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 Subject: ReadBlock X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 04:55:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, SCT expects the EFI_SUCCESS in case if the BufferSize is 0. But at the sa= me time, UEFI Spec has the below statement " The function must return EFI_NO_MEDIA or EFI_MEDIA_CHANGED even if LBA, B= ufferSize, or Buffer are invalid so the caller can probe for changes in med= ia state.".=20 EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the intri= nsic block size of the device. EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, or= the buffer is not on proper alignment. Is it possible to make the statement clear ? I mean the error code can be d= efined more clearly. Please suggest. Thanks, Ramesh