Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4051349pxj; Tue, 8 Jun 2021 05:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWR6WGPBI0z1ceJX/uR/pzinrvfyRxb/gVSt+4m4Ydr1ue6T/lIA0nXNjVQ2h2jh1V9coH X-Received: by 2002:a05:6402:1648:: with SMTP id s8mr25518694edx.256.1623155267749; Tue, 08 Jun 2021 05:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623155267; cv=none; d=google.com; s=arc-20160816; b=E0gnAK292EVfzjX7+DsCBV1QoF1ezk1f3436rmf8f+uqieFpIEHKGWdaQ2Sd+vZYG6 9VU7nQelV4OmJuNyzh+B8sKAwogssT/TZ4u5mlOhM05RBKySKgFkgyQehv6cADAINFAy ILKggrsxM4q134uTK9TAhwiFYk+B5BECVSIDdXcHk49kXJsb9LeQH2rLnYr4OP9XU9hy 12tPggsTTGwyqYWgZqXv0RXAaRKyIeGzc3KWCF1Amz+Rl0AJKYHx7gAroda36XChtBz7 NTqevLF7LNS4S80Q9K2WM7h4rr97xpVRrPE5hvpErVK6o+0K+rtQBcTrFb9XfQKJb+ib 4x+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Jga5cgK+A8ydMUQlLBxVKdrh6U1IwpbLL2b3HyDvHoQ=; b=TeTpADCgbzblNWteE2kOjrw6uHaf25kDXzx5muFtnLaXuBGTZa+RV6UbrtcmWmT1DE BZSitXx8+Dc6mfsmV8bBow0rWBZ/cAoB7eCJduVlbD7UJP5Lb/4NpBRuR9iZOpx5918u Abxnzl9CB+B2o307RnI9HPcd9dU0mxQX6mWkEKiE0y9DvWPaFrVHsIXfo1+FRAwZxWYO lXvYagA7E3aaKFZb6QeGyK6vzUcM+n8TLjhjnCqjw/r+/giqwvT1wEd2hXfs/JQoJgKX j7aENeKD6yMl+ltO+UTfKSzyrRx6KmlV6uekKLFO6BuWOv2ND5NwHkRIaTs1bZ+nHl7d tGMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fUHqQNo/"; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si14317142ejl.190.2021.06.08.05.27.23; Tue, 08 Jun 2021 05:27:47 -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=@redhat.com header.s=mimecast20190719 header.b="fUHqQNo/"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbhFHM1o (ORCPT + 99 others); Tue, 8 Jun 2021 08:27:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30438 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbhFHM1o (ORCPT ); Tue, 8 Jun 2021 08:27:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623155150; 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: in-reply-to:in-reply-to:references:references; bh=Jga5cgK+A8ydMUQlLBxVKdrh6U1IwpbLL2b3HyDvHoQ=; b=fUHqQNo/6RwSSGybkwRir1B+zjFbatU3jE5rwWqoQuX9rZz27KlArVl/Hps1d36NlZ32RQ VZZoVyLYUespN8S1U8TdCuxJcvzAW4tWiEemk/6fzFyvk9ORUdKsF9VL4pRyv+B080oC7f tqiH3CBC6E5ZGjj6Zw2HO6RopFm8Iu4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-534-1Eiql0obMuq_UfswicDnmQ-1; Tue, 08 Jun 2021 08:25:49 -0400 X-MC-Unique: 1Eiql0obMuq_UfswicDnmQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0F3A31854E30; Tue, 8 Jun 2021 12:25:48 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-220.pek2.redhat.com [10.72.12.220]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38DA15C1BB; Tue, 8 Jun 2021 12:25:43 +0000 (UTC) Date: Tue, 8 Jun 2021 20:25:40 +0800 From: Dave Young To: Andy Shevchenko Cc: Jean Delvare , linux-kernel@vger.kernel.org, Mika Westerberg , Javier =?iso-8859-1?B?VGnh?= , kexec@lists.infradead.org, Eric Biederman , linux-efi , Matt Fleming , Ard Biesheuvel Subject: Re: [PATCH v1 0/2] firmware: dmi_scan: Make it work in kexec'ed kernel Message-ID: References: <20161202195416.58953-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > -- > With Best Regards, > Andy Shevchenko > > Thanks Dave