From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in24.apple.com (mail-out24.apple.com [17.171.2.34]) (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 A8D9121DFA7B5 for ; Tue, 28 Mar 2017 08:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1490713738; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cbUxdsFJWNM/AMUTZdto/HGfHgT1ufFPB2iX+4qzUVI=; b=d4z9jTHRgIzyvXRfCgYH6IRCzRYh5dokyv/OZYSw/Do9ZgCJgKlsRc5qDJ78RGSq XFEofHdxblL9Ied274hVHB/ivYsFkn97+4AikNQjac+dhpkrmqIu5QnLD2xCzF2y 6Yh4ctOnjsl8Nzi13iwUrGMPvpmxPSwL/Qf1ubt4Duv3ddjDUdMVVeLcSX/OtaJ2 FW+C/xFfm4LHF6fU6rd/sw5iLSdu62FRG7SogKXpwZaPD/69lYmZXG8XPON0EYGd Riet45AIbHZBy5nldFDsfuBiN+FUThCzwcS53GVWQlfBeyvgqRvScbbbcXMKSQtn rOsOiraZGx+0Y5KzEY2Gwg==; Received: from relay7.apple.com (relay7.apple.com [17.128.113.101]) by mail-in24.apple.com (Apple Secure Mail Relay) with SMTP id BD.65.01216.88C7AD85; Tue, 28 Mar 2017 08:08:58 -0700 (PDT) X-AuditID: 11ab0218-d55ff700000004c0-fa-58da7c888835 Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by relay7.apple.com (Apple SCV relay) with SMTP id C6.12.19944.88C7AD85; Tue, 28 Mar 2017 08:08:56 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.93.220] (unknown [17.153.93.220]) by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0ONJ0057362V5I60@nwk-mmpp-sz10.apple.com>; Tue, 28 Mar 2017 08:08:56 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Tue, 28 Mar 2017 08:08:54 -0700 Cc: "edk2-devel@lists.01.org" Message-id: <09C2E1D5-6C2B-40BB-BE64-4F3C8FF89E71@apple.com> References: To: Amit kumar X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsUi2FCYqttVcyvCYOJrI4t9r3cyWew5dJTZ gcnjcc8ZNo/u2f9YApiiuGxSUnMyy1KL9O0SuDIeLzArmMVXcWLGKdYGxhPcXYycHBICJhKr Nz9gBbGFBPYzSjSuFYOJ/116l72LkQsofohR4uHTmUwgCV4BQYkfk++xdDFycDALyEscPC8L EmYW0JL4/qiVBaJ+IpPEjxWz2EESwgLiEu/ObGIGqRcWsJK4uzcfJMwmoCyxYv4HsBJOgXiJ ZY+WgdksAqoSB+8sY4KYaS4x48IXqLU2EjOW32CCuDNOYknPDjYQWwSovr99CjvEzbISt2Zf Yga5QUJgCZvEovYdzBMYhWchOXsWwtmzkJy9gJF5FaNwbmJmjm5mnpGJXmJBQU6qXnJ+7iZG UFivZpLYwfjlteEhRgEORiUe3h15tyKEWBPLiitzDzFKc7AoifP+zrkZISSQnliSmp2aWpBa FF9UmpNafIiRiYNTqoExqqY6gnVm6V/hsPQ6t/g5S77v+aOo8FXFnF/PRuNl5AKTXzwqe7dv +jPDTfLl6voVDgzKvx+oPVbdm3jYrerGfStV9sdF70tMUpUUk+a4rnvx/abiypOv5hvuZ91S pJH994b+JW1+O90frs1ndHxcd4VflxT8e6fAWf+WieqkM2Wxf2/uFqtRYinOSDTUYi4qTgQA momepUwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42IRbCiu0u2ouRVhsPiIusW+1zuZLPYcOsrs wOTxuOcMm0f37H8sAUxRXDYpqTmZZalF+nYJXBmPF5gVzOKrODHjFGsD4wnuLkZODgkBE4m/ S++ydzFycQgJHGKUePh0JhNIgldAUOLH5HssXYwcHMwC8hIHz8uChJkFtCS+P2plgaifyCTx Y8UsdpCEsIC4xLszm5hB6oUFrCTu7s0HCbMJKEusmP8BrIRTIF5i2aNlYDaLgKrEwTvLmCBm mkvMuPAFaq2NxIzlN8BsIYE4iSU9O9hAbBGg+v72KewQN8tK3Jp9iXkCo8AsJJfOQrh0FpJL FzAyr2IUKErNSaw010ssKMhJ1UvOz93ECA7DwtQdjI3LrQ4xCnAwKvHw7si7FSHEmlhWXJkL DAoOZiUR3m1FQCHelMTKqtSi/Pii0pzU4kOMVUD3T2SWEk3OB8ZIXkm8oYmJgYmxsZmxsbmJ OVWElcR5O75cihASSE8sSc1OTS1ILYJZzsTBKdXAeJjbhi1GpqJ70ZPMVU9u5XrsUM+atHGD arCRwp9enyaGpE3bNBvMpKeFChh5qL7/5/Pwa3yW8bvwugl3N1W8s45rL3by7y/srOi7cTfr cbPtjdDlWz4tF8utVNeakdwxV7l7RtuW5glvjueyzWeuOdj0VCq757bJAUPPayaNURNOm+eo ir1TYinOSDTUYi4qTgQAYzU0pJ4CAAA= Subject: Re: Reset from post BDS pahse to PEI phase 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: Tue, 28 Mar 2017 15:08:59 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On Mar 28, 2017, at 5:23 AM, Amit kumar wrote: > > > Hi , > I have been facing some problem with blockIO reads even after reconnect and update map. when i try to do dblk on some of my blocks it returns with EFI_INVALID_PARAMETER. > Is there a way to reinitialize the EFI platform from post bds phase or post dxe phase without putting the board in power-off mode( like in the case of shell reset command or system restart). > Amit, If you look in the UEFI Spec you will see there is a Runtime Service called ResetSystem(). It supports different reset types, but it is up the platform to define what they are. For example a EfiWarmReset could end up being the same as EfiResetCold in a given implementation. I would assume the shell reset command maps directly into this call, so you can get background from reading the spec. on options to the shell reset command. I'd recommend looking in the UEFI Spec for the Block IO Protocol function definitions as the define a standardized set of return codes. For example ReadBlocks() EFI_INVALID_PARAMETER implies: The read request contains LBAs that are not valid, or the buffer is not on proper alignment. The information used by these checks comes from the Block IO protocol Media data (EFI_BLOCK_IO_MEDIA). EFI_BLOCK_IO_MEDIA.IoAlign would define buffer alignment requirements for the call, and EFI_BLOCK_IO_MEDIA.LastBlock should define the valid LBA range. Maybe there is a strange alignment requirement and there is a bug in the Shell? Maybe the driver is not reporting a proper LastBlock? Thanks, Andrew Fish > Thanks and Regards > Amit > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel