From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDD0CC2D0DB for ; Tue, 21 Jan 2020 09:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD9DC217F4 for ; Tue, 21 Jan 2020 09:04:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbgAUJEE (ORCPT ); Tue, 21 Jan 2020 04:04:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:53556 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727220AbgAUJED (ORCPT ); Tue, 21 Jan 2020 04:04:03 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0F6E8BA7E; Tue, 21 Jan 2020 09:04:01 +0000 (UTC) Date: Tue, 21 Jan 2020 10:03:59 +0100 From: Jean Delvare To: Andy Shevchenko Cc: "Eric W. Biederman" , Andy Shevchenko , Dave Young , linux-efi , Ard Biesheuvel , Matt Fleming , kexec@lists.infradead.org, Linux Kernel Mailing List , Mika Westerberg Subject: Re: [PATCH v1 2/2] firmware: dmi_scan: Pass dmi_entry_point to kexec'ed kernel Message-ID: <20200121100359.6125498c@endymion> In-Reply-To: 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> <20200120121927.GJ32742@smile.fi.intel.com> <87a76i9ksr.fsf@x220.int.ebiederm.org> <20200120224204.4e5cc0df@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Mon, 20 Jan 2020 23:55:43 +0200, Andy Shevchenko wrote: > On Mon, Jan 20, 2020 at 11:44 PM Jean Delvare wrote: > > > > On Mon, 20 Jan 2020 10:04:04 -0600, Eric W. Biederman wrote: > > > Second. I looked at your test results and they don't directly make > > > sense. dmidecode bypasses the kernel completely or it did last time > > > I looked so I don't know why you would be using that to test if > > > something in the kernel is working. > > > > That must have been long ago. A recent version of dmidecode (>= 3.0) > > running on a recent kernel > > (>= d7f96f97c4031fa4ffdb7801f9aae23e96170a6f, v4.2) will read the DMI > > data from /sys/firmware/dmi/tables, so it is very much relying on the > > kernel doing the right thing. If not, it will still try to fallback to > > reading from /dev/mem directly on certain architectures. You can force > > that old method with --no-sysfs. > > > > Hope that helps, > > I don't understand how it possible can help for in-kernel code, like > DMI quirks in a drivers. OK, just ignore me then, probably I misunderstood the point made by Eric. -- Jean Delvare SUSE L3 Support