Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3467236ybl; Tue, 21 Jan 2020 01:05:17 -0800 (PST) X-Google-Smtp-Source: APXvYqz3hSIAaVeG/qA21kZGTYg/551Kqs8W//uEhdK150jf2dTeFhjIXft6uj7iivngOhDxdek1 X-Received: by 2002:a05:6830:1481:: with SMTP id s1mr2841172otq.66.1579597517787; Tue, 21 Jan 2020 01:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579597517; cv=none; d=google.com; s=arc-20160816; b=V24t/+Rm1FsYcYJffAW+v4G41gfpzyPG2Xl0bL8N9LXNyRRlHDyDOXs9hUBdB5yIso 9brML1FRNHyskAELh9N9562pMlYcUiowwfa9T4oS15g/81MsqjJnujL30qXiqjgXqt6U KMOqVi/Rvh7RVtlz60161tZvsAsE7pcR1cQZU9/Qby6bR487KtTlu/dKpxtH9RPr5WLA ObTe4hfIkObglXSBMeOgTL9EEOiFfOnCYUOMPwuAhJ1t2UmUpmIjhguVgCIarhffhrzR ZpA/CbiAFIfMZE58LrLe3kTY884PAuyiKnopmCT0XhsEH1qxkNf3sNYpNnkF73BrbSf5 V0uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=/rNOYs3uWlwoW+mIevWczZOBC35RtLbOn5Muc3Xrm8g=; b=FW+nrUtHZlhaYYxyL9xKNuh/JxKh9NexhEsdC00gtQl4V+G3xjqxGYRkr2YZ71pGnf dw79zQsZ8UADS5NuPFIKq8sTg6uPQoVdPXVX8gdT/VLtwmw1I9P3PXSlBBau7Rd3goUh f+cdnuB5R8azM0cdg7Ms4giY1dz42peyh6V49OJDzOx0TgDMoRnwRefbQ94bwrcdqHyM kLK/WGj1BcOdX3ZhTLXjdMKc1J8KPRyXljmHZfa1acFhPXr1ElkSsbhrcrwPKv/RiSLs JcAjRMrgnhmOKfAgjVVcvfc4PvRaf2rLHTNpI7fTYXHlBFqeIUprK7bWZbOM2Y7B/x2y CjmQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j143si18460412oib.16.2020.01.21.01.05.04; Tue, 21 Jan 2020 01:05:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728913AbgAUJEF (ORCPT + 99 others); Tue, 21 Jan 2020 04:04:05 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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