From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758555AbcISMb5 (ORCPT ); Mon, 19 Sep 2016 08:31:57 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:50782 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915AbcISMbt (ORCPT ); Mon, 19 Sep 2016 08:31:49 -0400 Subject: Re: [PATCH] arm64/efi: efi_init error handling fix To: Matt Fleming References: <1472811519-4897-1-git-send-email-xieyisheng1@huawei.com> <20160902102618.GC17482@arm.com> <20160905135723.GK32579@codeblueprint.co.uk> <20160913111804.GG3872@codeblueprint.co.uk> CC: Will Deacon , , , , , , , , From: Yisheng Xie Message-ID: <59201151-2fb3-2dd2-503e-d8e30fa0a77c@huawei.com> Date: Mon, 19 Sep 2016 20:29:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160913111804.GG3872@codeblueprint.co.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.57DFDA65.0247,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6b5d785d07d000d0701eb2b6bbe60812 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/9/13 19:18, Matt Fleming wrote: > On Wed, 07 Sep, at 07:15:48PM, Yisheng Xie wrote: >> >> >> On 2016/9/5 21:57, Matt Fleming wrote: >>> On Fri, 02 Sep, at 11:26:18AM, Will Deacon wrote: >>>> On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: >>>>> From: Yisheng Xie >>>>> >>> >>> This should be a call to efi_memmap_unmap() because the EFI_MEMMAP >>> flag also needs clearing. >>> >> Hi Matt, >> Thanks for your reply. >> You mean call the function efi_unmap_memmap() like x86? >> >> however, it seems no need to clear EFI_MEMMAP here. For arm*, the flag >> EFI_MEMMAP is set in function reserve_regions(), which is called >> only when uefi_init() return 0: >> >> efi_init() >> -> reserve_regions() >> -> set_bit(EFI_MEMMAP, &efi.flags); > > This patch should be against the 'next' branch here, > > https://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/log/?h=next > > My comments were made with that branch in mind. > Hi Matt, Sorry for my misunderstanding, I will try to rebase to next branch. Thanks. Yisheng Xie. > . >