Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3919657ybl; Tue, 21 Jan 2020 09:25:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwoZ8hua3jsSmA1nbVnDQWvDrERFtqk/SFR6kJQv8LQrNYCDx/qevJ+wwBv3n52OS9GLrxL X-Received: by 2002:aca:c646:: with SMTP id w67mr3671067oif.171.1579627529058; Tue, 21 Jan 2020 09:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579627529; cv=none; d=google.com; s=arc-20160816; b=euPMmMAxrVqCPW3n1UHRgjxLVzThnX06szRBOJWeTo5/DW2oDk9TFGIrFSwaFTPa6q 4SWhNHjpRlWQ9uFd3OCG8sFuYOAlZzlk9Xa5JI5tI5yoetC0aejgp5lBvfltW0EbiC+3 G8uPC8eKmNKlJBCuIbO29e5mmzn4ma10ON9pWnToDhIYm1bKl759SEGuergy8LUVG30u KbJrxc5jAhMiV0zJ2NrTkeMgoKBL0JGDQz22RHKd7ukW7T7ytjx67gh/D3VcAncs5GA6 UpEZewsmWZyUjF8mcw6GdDLRrXKuhKYOI89jMxJ6S3jXOQ6RXO3LOnDa4X7e1Q3/EImr fiJA== 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=zQ3R5PGQxqbB4KfMNxR8C5aeIiqvQon7m/ajp5FIRao=; b=sOdQ4T+pDN3lDwwWs4ruOrnxPxUd0LjkRDVcFYrgljoBep9mX+N6lAnn4V1yrb6sK/ oImDd6H27w8FA2/5995G5gaj0Se+dRoKad/YniJQsauu29Y9fRM/RA4MkBhQoY3tyLZ3 LFIrI+Nk2VeHkonpbfO2rcnQkDjm5y6tXH/8x8zqKHwqxVIwhLtqZpGPYIalYd/JLKgn cuxWeVVE2itpH7DANU2tkM5gq70plGgKbkXnlkFgfEHWgxIA+anaePvcpb3KwW/9qNou 3aNUk6XyQ5yJGAc3+6stwueo5tphEyfODI+fvZKHgSQpb8nNkospFNchaoLorpuogAzv 0VBw== 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si19519966otl.214.2020.01.21.09.25.13; Tue, 21 Jan 2020 09:25:29 -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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729261AbgAURYF (ORCPT + 99 others); Tue, 21 Jan 2020 12:24:05 -0500 Received: from mga09.intel.com ([134.134.136.24]:7131 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbgAURYF (ORCPT ); Tue, 21 Jan 2020 12:24:05 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2020 09:24:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,346,1574150400"; d="scan'208";a="250323755" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004.fm.intel.com with ESMTP; 21 Jan 2020 09:24:02 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1itxFz-0000qC-1l; Tue, 21 Jan 2020 19:24:03 +0200 Date: Tue, 21 Jan 2020 19:24:03 +0200 From: Andy Shevchenko To: "Eric W. Biederman" Cc: Jean Delvare , 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: <20200121172403.GA32742@smile.fi.intel.com> References: <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> <20200121100359.6125498c@endymion> <87zheg93io.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zheg93io.fsf@x220.int.ebiederm.org> 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 Tue, Jan 21, 2020 at 10:29:35AM -0600, Eric W. Biederman wrote: > Jean Delvare writes: > > > 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. > > No. I just haven't dived into this area of code in a long time. > > It seems a little indirect to use dmidecode as the test to see if the > kernel has the pointer to the dmitables, but with the knowledge you > provided it seems like a perfectly valid test. In any case that doesn't work. See my response to Ard. -- With Best Regards, Andy Shevchenko