Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4061610pxj; Tue, 8 Jun 2021 05:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydFlPkRyQNE3y3tn1Uc/d89FrIzRKnI26jX+kTsRYY/t9JN0V9dszIpyHiHsjQ88tyXmKj X-Received: by 2002:a17:906:f849:: with SMTP id ks9mr22397678ejb.402.1623156130053; Tue, 08 Jun 2021 05:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623156130; cv=none; d=google.com; s=arc-20160816; b=hKiCDfV7iZ3rf9Bg9u2+e8ug4tlCtW3EeJhXJrIsZok7lzP8Wx7ajUBsaveF0cHmDX pXJRbWG3I2XRY3cNaGB52ew4/ZSgNNhjEP/6QrpMZDjBX27wj4YO974O4ykiTGbJyS1O zeW/4K4P4rj9dDng0vsm4YHyZKogxr7oLIgwlHvAkmGV3cg2ubaKnKNAAQQQgrrM6EG3 GH9cEF9iZy6unflGSf3C2baabT635OXb20gsDK/TgQcxz1g6y1y/zMHI/4m4IS8hMinu xyd0qBpwkz/h8GH3wBJEtFVoPikiJclQ9PbSpcl0mgHSBdN71VchyGT2/S3BL2uIKVAB e1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IUd1RibEbr1RO189mP0vlG8rvokpv2jTYP6Mg5w05yE=; b=AUAJioYUajLv6gTrJdrSPl8uSEyXDf0vb1eTF6EMKvwpJZsJ7lEntjy1TPUZjE1sfw z57SX61zP9IwD3RwTJyMS9Iytz9YIFuUoUmig0X4WWG16CAiHhqrWBB48O7CgaLnupUh p2bf6SWkLHAK5Mtr7OT/DiVEfU3C9aisVIl+6HWCBdRIMt3EBNBxEnOaN+Z5gN7QfbOe Btpoj2WtfDd9x9X9sr3NWuwilBI16ehISoaPylLD7BMFqu7eeda8BQKjY+ot7G883/CG F0rQPhuOlndDqtuIURccSHQoRzZiZ9hKeO/UmDTNGHn75CVzjHnpL5w17p/WvWUr2naI 1ngQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CNj30Dcf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si2927937eds.467.2021.06.08.05.41.46; Tue, 08 Jun 2021 05:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CNj30Dcf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232648AbhFHMlZ (ORCPT + 99 others); Tue, 8 Jun 2021 08:41:25 -0400 Received: from mail-pj1-f53.google.com ([209.85.216.53]:50979 "EHLO mail-pj1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbhFHMlY (ORCPT ); Tue, 8 Jun 2021 08:41:24 -0400 Received: by mail-pj1-f53.google.com with SMTP id g4so2367383pjk.0; Tue, 08 Jun 2021 05:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IUd1RibEbr1RO189mP0vlG8rvokpv2jTYP6Mg5w05yE=; b=CNj30DcfMTzBEBr4KJSDOjX/d56RDil/08XD+UwSnd2sBDrZiLghYvMjKEf6RuN4J4 UsPz5WUoxwLV3VtQMA8qLpIm2Y72zlmlwMnoHyT+3C+svNZ+aamDrrxvwjiFGt+Tm4B0 TSyhiyGnV/I6VSXj1kbjYqQmJByc1WN9grqCK9RrWTWrtbC/VXublTJwNqcOZl6YZEoZ tysfh7ROWoc5pmHIC/czHYJzHCt/KR2J1iEoSGx5D2KchRm8pbZ4kXpgXMJ5vupWlA02 3FzuyqXkQwQ/LoUjaWVvXDR5Li4N/fQ/dO6XDU7k+qEs1uvXdOX4BaZW3UmySjYcEMdK SkPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IUd1RibEbr1RO189mP0vlG8rvokpv2jTYP6Mg5w05yE=; b=QTYjWCgvvAPiqta5/GxPjri4OSvWfvHltBVAOzB4lXylmcurxKSI6Jqd8tp2BWKXwu CT3+dUXuYcJynsJ/gDiYSWb3ZdcZj9X+tlMtK7Wj/cIhsqg+/u3NDbUZEXu7qt//K4zs lJy6NevTZ6yA1XzUZQXQMFLUPeTbUOpTWdoKQTZTkDuJ0bZz3esYYaZYMS95qNnu2puc j11bHp3IYPIENq3l6o28n0s13nAYPFTGCQxe4AZjnR0aGagWurtkOFFfPEoo64H7zmt8 rYTE9nk/KKKr87AeJZvXrOd2lviLTrM5S8PDtaivzm2vjDxbMPm5v996EfLjSrhkjtXd Y8kQ== X-Gm-Message-State: AOAM530pJfxZzghIMBtbgkORc171nm/HoFkHtr2cF22jfoSlOndC6OzW ignEbUCWqyxRC8+AOwx//sWM5lAboRgBJpVme8cevmJDyqg= X-Received: by 2002:a17:90a:80c5:: with SMTP id k5mr4741288pjw.129.1623155898187; Tue, 08 Jun 2021 05:38:18 -0700 (PDT) MIME-Version: 1.0 References: <20161202195416.58953-1-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 8 Jun 2021 15:38:01 +0300 Message-ID: Subject: Re: [PATCH v1 0/2] firmware: dmi_scan: Make it work in kexec'ed kernel To: Dave Young Cc: Andy Shevchenko , Jean Delvare , Linux Kernel Mailing List , Mika Westerberg , =?UTF-8?Q?Javier_Ti=C3=A1?= , kexec@lists.infradead.org, Eric Biederman , linux-efi , Matt Fleming , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 8, 2021 at 3:29 PM Dave Young wrote: > On 06/07/21 at 08:18pm, Andy Shevchenko wrote: > > On Mon, Jun 07, 2021 at 07:22:21PM +0300, Andy Shevchenko wrote: > > > On Sat, Jun 05, 2021 at 03:51:05PM +0800, Dave Young wrote: > > > > On 06/02/21 at 11:53am, Andy Shevchenko wrote: > > > > > On Wed, Jun 02, 2021 at 11:42:14AM +0300, Andy Shevchenko wrote: > > > > > > On Fri, Dec 02, 2016 at 09:54:14PM +0200, Andy Shevchenko wrote: > > > > > > > Until now DMI information is lost when kexec'ing. Fix this in the same way as > > > > > > > it has been done for ACPI RSDP. > > > > > > > > > > > > > > Series has been tested on Galileo Gen2 where DMI is used by drivers, in > > > > > > > particular the default I2C host speed is choosen based on DMI system > > > > > > > information and now gets it correct. > > > > > > > > > > > > Still nothing happens for a while and problem still exists. > > > > > > Can we do something about it, please? > > > > > > > > Seems I totally missed this thread. Old emails lost. > > > > > > You can always access to it via lore :-) > > > https://lore.kernel.org/linux-efi/20161217105721.GB6922@dhcp-128-65.nay.redhat.com/T/#u > > Thanks. Hmm, this is for 32bit efi. kexec efi boot support was only > added for 64bit. So if 32bit dmidecode does not work I'm not surprise. > > > > > > > (Okay, it's not full, but contains main parts anyway) > > > > > > > > > > The question Ard asked is to confirm if the firmware converted the > > > > SMBIOS3 addr to a virtual address after exit boot service. I do not > > > > remember some easy way to check it due to lost the context of the code. > > > > But you can try to check it via dmesg|grep SMBIOS both in normal boot > > > > and kexeced boot log. And then compare if those addresses are > > > > identical. > > > > > > > > If the SMBIOS3 addr in kexec kernel is different then it should have > > > > been modified by firmware. Then we need patch kernel and kexec-tools to > > > > support it. > > > > > > > > You can try below patch to see if it works: > > > > > > So, AFAIU I have to apply patch to kexec tools for the fist kernel + userspace > > > and apply kernel patch for the second kernel? Or it's all for the first one? > > > > > > > apply a kexec-tools patch to kexec-tools if you do not use kexec -s > > > > (kexec_file_load): > > > > > > Here is how we are using it: > > > https://github.com/andy-shev/buildroot/blob/intel/board/intel/common/netboot/udhcpc-script.sh#L54 > > > > Okay, thanks for the patches. I have applied them to both kernels, so the first > > one and second one are the same and kexec tools have a patch provided in the > > user space of the both kernels (only first one in use though). > > > > Before applying your patch, I have reverted my hacks (as per this series). > > > > Result is: > > > > # uname -a > > Linux buildroot 5.13.0-rc5+ #1 SMP Mon Jun 7 19:49:40 EEST 2021 i586 GNU/Linux > > # dmidecode > > # dmidecode 3.3 > > Scanning /dev/mem for entry point. > > # No SMBIOS nor DMI entry point found, sorry. > > > > I.o.w. it does NOT fix the issue. My patches do (with a hint from user space). > > As I said, since it is 32bit efi, so your test results are expected, > also no need to check the kernel log about SMBIOS3 address changed or > not. So, what shall I do? It's already 5 years passed without any progress while my patches definitely help here. Should I rebase and resubmit? -- With Best Regards, Andy Shevchenko