Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2173519ybe; Sat, 7 Sep 2019 10:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBY6342iuAcxqlei+C79Mn+WMdyHs//C1xviPsYKfMPwXhmgCpVwypOpayWZEQeDSbRVgp X-Received: by 2002:a65:5144:: with SMTP id g4mr13516443pgq.202.1567876274822; Sat, 07 Sep 2019 10:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567876274; cv=none; d=google.com; s=arc-20160816; b=OG2NUFNT13VbVkAkTc3zaNUbZJ63xq3+xwrseT1MXgx6bL1GqMp7p9A2RyugUjl9RN nssnoFcjxLon/WHSoHvuHLRUfFuTaj85R4e6uVA2Tlt6sPGVM4GlDHOtsSqmUaIaf7d0 Qf7qeW5Wv/Uiothj/IyE9TpM+XyvqDgsMWSzt6yjOzMXD4O8fYu+VB1I37fKqNJaq4ng dSo8nYT7bwzr/mjLgi/GdIFT1UcBAb4UDCD7ia9P22+pPrD5W3kXJspGNrQf/SPwT9VK D2f83dy9NBhTWKyyEga0lxa+GrMe1jyLk0AyWYXoXMbbDRSSoO6SUK6z3r84+i8LEbQH 3Y/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SH7eQOVnHEQ0f7L6SheiLsTBMW7zg7MC/51hAwrtJ4o=; b=FXxtMqjiMlqwoLvt9Ellv4EhMDaHCbUotXnTkMIMNI6DJvAfie6AXiMQ81n3Msf1xj KXyyZethJD/DK1N5RrCqZFHfqyvOk0BH2cwNXgMxkrCfBaBYCG3Wl5KZVoExzb2xM7MA nITE0EqbKrcXj18tecCegD4BxIBqDL6hml0dvIHq/ty+bJ7wpJQ1avs9vJlumm4MkOs1 1/+xMYGCWPX2JIfhJ0Z5T8YeHEAsZlJqs3mWW8+d+gKdU5tE/mpqlwaHEDc61WlCItuf D4+ueJ2zXRGKl4UtHdzmaiWAGGYXW9FGd7/hTKRP16mK5IqUF+5SJl2ssI5+muJwPGqw 6v5A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si9154585pfo.273.2019.09.07.10.10.59; Sat, 07 Sep 2019 10:11:14 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405209AbfIFTAo (ORCPT + 99 others); Fri, 6 Sep 2019 15:00:44 -0400 Received: from mga11.intel.com ([192.55.52.93]:19366 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405197AbfIFTAo (ORCPT ); Fri, 6 Sep 2019 15:00:44 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Sep 2019 12:00:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,474,1559545200"; d="scan'208";a="384313381" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga006.fm.intel.com with ESMTP; 06 Sep 2019 12:00:41 -0700 Received: from andy by smile with local (Exim 4.92.1) (envelope-from ) id 1i6JTM-0004KJ-BX; Fri, 06 Sep 2019 22:00:40 +0300 Date: Fri, 6 Sep 2019 22:00:40 +0300 From: Andy Shevchenko To: Dave Young Cc: Jean Delvare , kexec@lists.infradead.org, Mika Westerberg , Eric Biederman , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, matt@codeblueprint.co.uk, ard.biesheuvel@linaro.org Subject: Re: [PATCH v1 2/2] firmware: dmi_scan: Pass dmi_entry_point to kexec'ed kernel Message-ID: <20190906190040.GA16211@smile.fi.intel.com> References: <20161202195416.58953-1-andriy.shevchenko@linux.intel.com> <20161202195416.58953-3-andriy.shevchenko@linux.intel.com> <20161215122856.7d24b7a8@endymion> <20161216023213.GA4505@dhcp-128-65.nay.redhat.com> <1481890738.9552.70.camel@linux.intel.com> <20161216143330.69e9c8ee@endymion> <20161217105721.GB6922@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161217105721.GB6922@dhcp-128-65.nay.redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 Sat, Dec 17, 2016 at 06:57:21PM +0800, Dave Young wrote: > On 12/16/16 at 02:33pm, Jean Delvare wrote: > > On Fri, 16 Dec 2016 14:18:58 +0200, Andy Shevchenko wrote: > > > On Fri, 2016-12-16 at 10:32 +0800, Dave Young wrote: > > > > On 12/15/16 at 12:28pm, Jean Delvare wrote: > > > > > I am no kexec expert but this confuses me. Shouldn't the second > > > > > kernel have access to the EFI systab as the first kernel does? It > > > > > includes many more pointers than just ACPI and DMI tables, and it > > > > > would seem inconvenient to have to pass all these addresses > > > > > individually explicitly. > > > > > > > > Yes, in modern linux kernel, kexec has the support for EFI, I think it > > > > should work naturally at least in x86_64. > > > > > > Thanks for this good news! > > > > > > Unfortunately Intel Galileo is 32-bit platform. > > > > If it was done for X86_64 then maybe it can be generalized to X86? > > For X86_64, we have a new way for efi runtime memmory mapping, in i386 > code it still use old ioremap way. It is impossible to use same way as > the X86_64 since the virtual address space is limited. > > But maybe for 32bit, kexec kernel can run in physical mode, but I'm not > sure, I would suggest Andy to do a test first with efi=noruntime for > kexec 2nd kernel. Sorry for a delay. Eventually I found time to check this. Unfortunately the efi=noruntime didn't help: # uname -a Linux buildroot 5.3.0-rc7+ #17 Thu Sep 5 16:08:22 EEST 2019 i586 GNU/Linux # dmidecode # dmidecode 4.2 Scanning /dev/mem for entry point. # No SMBIOS nor DMI entry point found, sorry. # # cat /proc/cmdline ... ignore_loglevel efi=noruntime earlycon=efifb acpi_rsdp=0xf01e014 So, I am all ears to anything else to try. -- With Best Regards, Andy Shevchenko