Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3437168pxb; Mon, 16 Nov 2020 14:55:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxspTRlz8S2/FL4Rp5ymnnZPpdjzZM+46GCp02APLM0nv2HLSSJjYlvPye1DMvAzZqEEaHG X-Received: by 2002:a17:906:8058:: with SMTP id x24mr17090403ejw.272.1605567359173; Mon, 16 Nov 2020 14:55:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605567359; cv=none; d=google.com; s=arc-20160816; b=Mh3AwTdB2CDg+bm9sJXQNXbtuYsIfx3+Butu6FBkeO/UPgRaGYSTLxkLtNLQYnPrdH mpj430ILq3M+eWusjeYb2ldomV8X4hYbIkgWCUyUWWp0zYXFpuUI6oauZpIrh3RWvjwQ 70iBl2x3u3WibF4kYzvYKhggcktUi+eazE2tuCqNMhklbtkq6YTtxVe+nhwdHXmUN8QX 7HBXHM6QIFkaAeyG7v7fC3XOz5PJGGX6wIlLnDKYwltiNDMNB0Divg7ubrl3I0+PsYXb FgmQTGdA4KY5A84CvMeIhyxCXpdlvlViId2P7QMbyiwk6hsDs0R9G7qtMrNvGTB3Uj+a 5WgQ== 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; bh=umNIoM2617jBm/kSow8UcR9m5NpkXB/CDpm1QO+O5AE=; b=Yj7pz8K7rwa3iD9kn9kOwDteJTV1CaJ43I6PzX7R56ctAk5F4fP52bdvCkQ1ZhAGyj dowF1AcqxtoAiu9a6Heqin5p+8rqsCE9P6s7a19KTP9P4w85Xmwr+ShM5Wo41VHe9ivm fHvi8P4hVpippoKalW3luS3u+6NHq+gsPDxJQQ/J/f0b/QnRPOTb3fIZtr665uII95Wt bbOwd8hxDnIgrgVBq6KjKEPV+uhndh0iFdRwD1GIIP83WX2g9lKbs+YZ/rzmkrdonrod 20n15rtpjPbsPHsqXs1UgCfl7D2UD4qy/gOIoQTcjn16J5+5eZoOHX1lacz9/f/hr00v Frzw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si12699262edy.145.2020.11.16.14.55.36; Mon, 16 Nov 2020 14:55:59 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728045AbgKPVts (ORCPT + 99 others); Mon, 16 Nov 2020 16:49:48 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53655 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727850AbgKPVtr (ORCPT ); Mon, 16 Nov 2020 16:49:47 -0500 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kemNd-0006NZ-8L for linux-kernel@vger.kernel.org; Mon, 16 Nov 2020 21:49:45 +0000 Received: by mail-ed1-f71.google.com with SMTP id d3so3708665eds.3 for ; Mon, 16 Nov 2020 13:49:45 -0800 (PST) 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=umNIoM2617jBm/kSow8UcR9m5NpkXB/CDpm1QO+O5AE=; b=L2bh04S8KWxR6cubsLIA2cThXCuL5mGubyctMnNCKwA8SozE1LIv3lzmv7GFPgEZwI 4V1pKIWrdRef2+YAicFwHrmaLkrPWh3+AP+uMNjPwJ/5QK2GMKuW8TReiS4IM3UNOFyT rd5ZYdP/4PU+zqZ5OwMctKLQMkK2UD9X5Hr2CEX+1dTlakk6Vwb3G1W9e3UYrPmrV+bm oxmh2znKkuyv2eiXo8rRdRmjrsM60j8KR+kt2fEYY5KxhuvtnIhkIYOqPXsAgoz9s7Y+ UuWZVn9f+KNfM+dcoW1NXcnNX+mI6kS1h/aNG0g9eXKghgsSqf7IVCFWCskwVuR29qTX sPxA== X-Gm-Message-State: AOAM530QfCbidFJm41W2+h0510vC4vL4o2n3u2P8PQlxPJiv+H+h7GYf +ENSf7FakE1TjFZ4m1PKNwcXDpvdW2BpU1R27moVnTRtUOVqtz4+GX5vfLuhrbN1ggKDkkk2V6t JS9E/WviGtCN5vI6SJWHO76jjibVxG3hWa1wPE3tQgNjnyuo+E59FCYb5Og== X-Received: by 2002:a17:906:fcdb:: with SMTP id qx27mr16916797ejb.470.1605563384818; Mon, 16 Nov 2020 13:49:44 -0800 (PST) X-Received: by 2002:a17:906:fcdb:: with SMTP id qx27mr16916769ejb.470.1605563384635; Mon, 16 Nov 2020 13:49:44 -0800 (PST) MIME-Version: 1.0 References: <20201114212215.GA1194074@bjorn-Precision-5520> <87v9e6n2b2.fsf@x220.int.ebiederm.org> <87sg9almmg.fsf@x220.int.ebiederm.org> <874klqac40.fsf@nanos.tec.linutronix.de> <87lff2ic0h.fsf@x220.int.ebiederm.org> <87a6vhht71.fsf@x220.int.ebiederm.org> In-Reply-To: <87a6vhht71.fsf@x220.int.ebiederm.org> From: Guilherme Piccoli Date: Mon, 16 Nov 2020 18:49:08 -0300 Message-ID: Subject: Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks To: "Eric W. Biederman" Cc: Thomas Gleixner , Bjorn Helgaas , lukas@wunner.de, linux-pci@vger.kernel.org, Pingfan Liu , andi@firstfloor.org, "H. Peter Anvin" , Baoquan He , x86@kernel.org, Sinan Kaya , Ingo Molnar , Jay Vosburgh , Dave Young , Gavin Guo , Borislav Petkov , Bjorn Helgaas , Guowen Shan , "Rafael J. Wysocki" , "Guilherme G. Piccoli" , kexec mailing list , LKML , Dan Streetman , Vivek Goyal Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 6:45 PM Eric W. Biederman wrote: > The way to do that would be to collect the set of pci devices when the > kexec on panic kernel is loaded, not during crash_kexec. If someone > performs a device hotplug they would need to reload the kexec on panic > kernel. > > I am not necessarily endorsing that just pointing out how it can be > done. > > Eric Thanks Eric, I agree! I think if we use something like PKRAM (a more dynamic approach) we could have the PCI hotplug path updating the data to-be-passed to the crash kernel, so the crash kernel doesn't even need to be loaded again.