Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2509069ybl; Mon, 20 Jan 2020 04:21:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyScTNFbgbITgcmzVTPCWyVDvY+iY2iKO4sM5G90+rRFiVrk6RnEGGD3VuxoVck00mQl5Om X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr16231283otc.129.1579522910896; Mon, 20 Jan 2020 04:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579522910; cv=none; d=google.com; s=arc-20160816; b=o+BzQ/oMwwaoo46iosq+Pm067B1u9PuUEki++aXJUAZKhYF5qxQ5XiTVRKgh3kEepM bNk3sx3VblWxDLNBLqSUgbsLi1i87DbAmNF5lyllztxEsrGLDlK6JusKTK0j88AM0ayy roQb0oYusyVuzGQeXaTrB4MXn+OQ0o1PK0CWNDvwZOuELfmDozQwWoeI7pm4rMWffrs9 mWvex2z4zuOYSrSLj34+vYdCBtPPpDAKnG3gbsvh4gLo9+lEyADOeEWnbElohEM7F5Yp AY393S8zaMq9ZpDiPZc0qfvx+O7yOptFNalHsBlh42+57ntywbCgN3l9hXmxOox+dZ+I IsKw== 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=iGhnD3sw9BEBfaijqIq9KVB5FNHD4SQIsu3uP8Q47r4=; b=LPzuYBWgDSbFzwzwS9+KfFbka0+0nMjqKUtYtEh99I4fg9RYMTr5VaF0P0z2LsN+Ki iQWiJ74hUf6WunRTB53oE4WOaPT5na1h1cg5mClJr7LNon7tv3dcKh6OfGwKy3mkZlay pfXdc8RxaKVWc8YIzlTBihwJ0ktv4FbJzqHqsGV6YdcZ4lSWiCQgoxrGzUMalG5MP6Pz TW8cW7Y1UdxMDn2U7+XxKoKdf2TM6NBksHcl538PqRWys7RXIeDn5+tviIzd1oNXkHQI jGeMwUu4DHE3JpbF2ytvxJuXP7g8Dz1qFUUz1i+J7kUmCTAjLJckcVapPvagvOge2txn Z1AA== 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 w9si20310890otl.138.2020.01.20.04.21.38; Mon, 20 Jan 2020 04:21:50 -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; 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 S1727121AbgATMT3 (ORCPT + 99 others); Mon, 20 Jan 2020 07:19:29 -0500 Received: from mga11.intel.com ([192.55.52.93]:5008 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbgATMT2 (ORCPT ); Mon, 20 Jan 2020 07:19:28 -0500 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; 20 Jan 2020 04:19:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,342,1574150400"; d="scan'208";a="426712609" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga006.fm.intel.com with ESMTP; 20 Jan 2020 04:19:26 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1itW1f-0001Is-44; Mon, 20 Jan 2020 14:19:27 +0200 Date: Mon, 20 Jan 2020 14:19:27 +0200 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: <20200120121927.GJ32742@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: > Ccing efi people. > > 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. Guys, it was quite a long no hear from you. As I told you the proposed work around didn't help. Today I found that Microsoft Surface 3 also affected by this. Can we apply these patches for now until you will find better solution? P.S. I may resend them rebased on recent vanilla. -- With Best Regards, Andy Shevchenko