Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5968769imu; Mon, 21 Jan 2019 00:32:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OFduzOibn0zTCf0tD1AuA3JNEkENo1zXqHfrf4fK39bg3Wa9SJAz2hhhTD+AqEPZgYrdi X-Received: by 2002:a17:902:e20b:: with SMTP id ce11mr28383489plb.251.1548059528962; Mon, 21 Jan 2019 00:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548059528; cv=none; d=google.com; s=arc-20160816; b=rrZval/g8Eee1ZYSnr16aqDJ0sCpT+W5KmP+g1rsJXCPt4kot2PFegcju66Kva4rcZ tASiAFAOLoyJH3TgF5wafG1wZ2YzCnm9STIWxeCvE2hvq6dMl0Z7Dyow1M42thPsPM0w eGaM/kAi+GYBVhKqHm/hLEJ5quyLJpo55nQs6rCXqxPV0aPoNLjXhUmSHrJ8zD5+fD2x KHoyv/n49lGayrp6/To8S5hxE+XN9jOZdJILhIxrZnrl204W/ZCalyzallz92HHRyKdp gdRb+oaodwZGXRFHD5gOSDoU5VP1vB/MlwPG6y6Io7wpKlGuAv9+xA/qum6I4uhzLhbM FnpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VeI66XspbB0bkH5OMN38eTSaUuyI/lay9vuOltcymts=; b=V1Mt+LljLvQtYEga/spyFB176wumsaJaSBE0O9IHCQjiRdQnOqW0Pju7l+4s/rd+Nc 26c5gAeZ1nIhiSzykNZrJs7U61lcEYi5xOy1wWbfnl2yMaoT7AZqIyGAzlR8PBYklnEb bi3ljQEIJ09zi8qGCi/8+NgJI7cBwIMQILpXO/0aBbtvQuHYvYEsVBWRTKum8BZr5YZP CPm+GnJXuq2BvvCMa5veDQh98tUFK3kGfEPdS6GdqX3vjk2akWh5Nci9+jSXElFee8An kRy3mkAGQbxV/IPvbkWYqIWCAH9n0KIo9jj8V4pKBEeUS97X0lf0bPl0aKs5GEGUbdoi iX7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=KxgDnMSX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h85si12314497pfd.27.2019.01.21.00.31.53; Mon, 21 Jan 2019 00:32:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=KxgDnMSX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729342AbfAUI3l (ORCPT + 99 others); Mon, 21 Jan 2019 03:29:41 -0500 Received: from mail.skyhub.de ([5.9.137.197]:41414 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728239AbfAUI3l (ORCPT ); Mon, 21 Jan 2019 03:29:41 -0500 Received: from zn.tnic (p200300EC2BC625005DE3D5B66D6AB027.dip0.t-ipconnect.de [IPv6:2003:ec:2bc6:2500:5de3:d5b6:6d6a:b027]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 200681EC05A1; Mon, 21 Jan 2019 09:29:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1548059379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=VeI66XspbB0bkH5OMN38eTSaUuyI/lay9vuOltcymts=; b=KxgDnMSXDM3iV+683zOYvVmlFKDYgoXSyxkpUHgceU3EExDhjF2j8p5IPyiX76t3HgW1zw IPVKCryxl8eUcjYbPFnbwwpVfzp7zadbf6uMGENoLdi8WHr9e4Ne1CzQs6rxQO+QoF+QFi V1yXlVSkyjH8Ovw/AzwL8k7CPMWnCQ8= Date: Mon, 21 Jan 2019 09:29:32 +0100 From: Borislav Petkov To: Chao Fan Cc: Kairui Song , linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, Dave Young , Baoquan He , kexec@lists.infradead.org, akpm@linux-foundation.org, robert.moore@intel.com, erik.schmauss@intel.com, rafael.j.wysocki@intel.com, Len Brown Subject: Re: [PATCH v2 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map Message-ID: <20190121082932.GA29166@zn.tnic> References: <20190115095834.22617-1-kasong@redhat.com> <20190115095834.22617-3-kasong@redhat.com> <20190115231005.GF6596@zn.tnic> <20190116094619.GB15409@zn.tnic> <20190118102636.GB622@zn.tnic> <20190121011830.GA1554@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190121011830.GA1554@localhost.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 09:18:30AM +0800, Chao Fan wrote: > So I have changed as this method and put in my mail thread, you may not > notice, so I put here for my function if I need to fill the > boot_parameters: > > static inline acpi_physical_address get_boot_params_rsdp(void) > { > return boot_params->acpi_rsdp_addr; > } Why do you need that silly wrapper? > static acpi_physical_address get_rsdp_addr(void) > { > bool boot_params_rsdp_exist; What's that bool supposed to do? > acpi_physical_address pa; > > pa = get_acpi_rsdp(); > > if (!pa) > pa = get_boot_params_rsdp(); > > if (!pa) { > pa = efi_get_rsdp_addr(); > boot_params_rsdp_exist = false; > } > else > boot_params_rsdp_exist = true; > > if (!pa) > pa = bios_get_rsdp_addr(); > > if (pa && !boot_params_rsdp_exist) > boot_params.acpi_rsdp_addr = pa; > > return pa; > } > > At the same time, I notice kernel only parses it when > "#ifdef CONFIG_ACPI", we should keep sync with kernel, but I think > we are parsing SRAT, CONFIG_ACPI is needed sure, so I am going to > update the define of EARLY_SRAT_PARSE: > > config EARLY_SRAT_PARSE > bool "EARLY SRAT parsing" > def_bool y > depends on RANDOMIZE_BASE && MEMORY_HOTREMOVE && ACPI Actually, you don't need that anymore - make it unconditionally built-in. Because there are a bunch of users which need this and instead of complicating this config option with a bunch of dependencies, we can just as well have it always on. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.