From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Fleming Subject: Re: [PATCH v2] fix setup_efi_pci() Date: Thu, 24 Jan 2013 18:20:21 +0000 Message-ID: <1359051621.2496.95.camel@mfleming-mobl1.ger.corp.intel.com> References: <50F94F9202000078000B74EE@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50F94F9202000078000B74EE-ce6RLXgGx+vWGUEhTRrCg1aTQe2KTcn/@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jan Beulich Cc: Matthew Garrett , Bjorn Helgaas , linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-efi@vger.kernel.org On Fri, 2013-01-18 at 12:35 +0000, Jan Beulich wrote: > This fixes two issues: > - wrong memory type used for allocation intended to persist post-boot [...] > @@ -311,7 +311,7 @@ static efi_status_t setup_efi_pci(struct > size = pci->romsize + sizeof(*rom); > > status = efi_call_phys3(sys_table->boottime->allocate_pool, > - EFI_LOADER_DATA, size, &rom); > + EFI_RUNTIME_SERVICES_DATA, size, &rom); > > if (status != EFI_SUCCESS) > continue; I'm curious why you made this change. No one should be stealing that region of memory because that's all handled in parse_e820_ext() - it's marked as off limits wrt memory for the kernel's use. And the firmware certainly shouldn't start touching it. Have you witnessed some case where things explode without your change?