Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4966522rwb; Mon, 31 Jul 2023 15:45:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHjavOfawzKCo09+wXH6tmxfWZ2pRItQKIyIxzlnL83fHGPGUo6+hGS17p4DV7zlnF46JYB X-Received: by 2002:a05:6402:2747:b0:522:b723:11bd with SMTP id z7-20020a056402274700b00522b72311bdmr1372844edd.4.1690843532314; Mon, 31 Jul 2023 15:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690843532; cv=none; d=google.com; s=arc-20160816; b=xWjR4LqQRcoXfBorrZ0zUpCf0vxQubUNL0zfwxkjrIapqaT2Ma8PFD6j5jTkA2E6b5 Pnqed0W5qcj8Ih/daufQejaavfJQwxm2gCjUMgjPxQDKUirpyUdUvOu/1HFuxtX0Zae4 G+erWLgx8d+jktohUmzIkliZpcvIb8uNXXJUFrR86rokWotRAAQ84SlrXypt8MlMTw2S nXjtl9I53dTmSGw39xcQEkcUr8W9/H9VceOFqeGD4FIxim3qfO8sMpmBivAOEEpzDpll Z91rZ1h6933xoeLFODjqArwHeJTHJ17M1UMTXgrX2xpjrAsJkSt8xTIe7v2qfb37hSGa Sqpg== 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=Id3I1cJMIHoKEHxCvdzG3jxQMHabAL/BIyDQ5h52PeY=; fh=kXu5Ay1asRYrvnKSgLb5YYWu5Y2uBy9V1KPqtz1JcXo=; b=V+UZgv/TGY8cCfWsCtIzhhJkPdGH1HUWfefWfXj+jqSDoUz708+QTI57WXBKhw4S21 RR7Bm3ZpUUqjINVtawhUr2IltNO9EuVCZoZrP2wVYiRwVmcW2PWcPA0xa1A6mEwlv2vY 9eUKKHrvB+Sxhw5Cd13kER2wdlh1yi7LG1Fs1bnDGvJ2uemCEzcPQdtYEkIpIdTPe3bA lDGaCr7B7ayL9CXn0pbpZQOSBRRN/qq4L012gJj5zMl38x6ZAAmZzkSpnP5pCpEPAKlg 4G31dWKd1XH/8FWp/nreo0HbEErZPtzSi2Z225KGnX6evNvV9HIcZl19l5Z4Cg4ZEQbd 4TGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D3qcu2oo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a056402034f00b00522c9614859si2123994edw.623.2023.07.31.15.45.07; Mon, 31 Jul 2023 15:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D3qcu2oo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231600AbjGaVzS (ORCPT + 99 others); Mon, 31 Jul 2023 17:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231597AbjGaVzP (ORCPT ); Mon, 31 Jul 2023 17:55:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E686B133 for ; Mon, 31 Jul 2023 14:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690840468; 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=Id3I1cJMIHoKEHxCvdzG3jxQMHabAL/BIyDQ5h52PeY=; b=D3qcu2oovxXfhBy2mPSWYYdjdveO47MqX4dOgK6uS6cHgrrQjjLHJlJB4SEfzBz3yuZzpT i+KUUH0C1nkxOhNt//bzRdilE9bW0TdN9JcI2fpB1+uZXyi+34Q/aHsdDAd1nl/AjRI+h5 wMcsnXvIZ1gsL6vYhQ7kYl7kkURPRaA= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-582-OZdZggBlNBCMjUPzLbiFsQ-1; Mon, 31 Jul 2023 17:54:26 -0400 X-MC-Unique: OZdZggBlNBCMjUPzLbiFsQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-314394a798dso2475824f8f.0 for ; Mon, 31 Jul 2023 14:54:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690840465; x=1691445265; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Id3I1cJMIHoKEHxCvdzG3jxQMHabAL/BIyDQ5h52PeY=; b=QwwkvG7GRBPAQvGl5pXhDCT/8cBIp6/TR3egqDGIQBfyLEHGaGUwI5x30v2g8d8bXq yorwj9Cb8nXBcVPKMrZ3Vrbu7mYtxcrL/uy7i+lvIeshv0XpFmlmsVVlit2cZLwV1CXe uo0YUai00amr3aOSzJzshPgOg7y/Chr1ZfLPdCi2Vh3LmhO3BnoPltR4ypbnXj5plkmV c3Mtcu71EPRomafW5FZzw7AWOmCWqtej+AQRLhciY47NbZu6zXS5XHMCtIlf4zoC7gFd oDUzBlMU57cJX0rgzvxAvhAcPzXehMcWcVSmm+sjZY13VSMUw7Eiv/+XSPVJtsDdfi2f HRnQ== X-Gm-Message-State: ABy/qLYKy12SQNrqQ1pcGk+vfjX8i6HlSow2Etqn7s7j+gMIB6MA+QjF TNBC6Yz9oSNfgaIQxg5MF5ga1D6KEpaei5cDj8xoYL4E7mRldwEZYmfmHvwNgZTvP8yCU4PkFqw JUS9RthYKfpBJpfaMcDXdaPRA X-Received: by 2002:a5d:6692:0:b0:314:3e96:bd7e with SMTP id l18-20020a5d6692000000b003143e96bd7emr742574wru.4.1690840465586; Mon, 31 Jul 2023 14:54:25 -0700 (PDT) X-Received: by 2002:a5d:6692:0:b0:314:3e96:bd7e with SMTP id l18-20020a5d6692000000b003143e96bd7emr742567wru.4.1690840465319; Mon, 31 Jul 2023 14:54:25 -0700 (PDT) Received: from redhat.com ([2.52.21.81]) by smtp.gmail.com with ESMTPSA id p3-20020a1c7403000000b003fbc9d178a8sm15014373wmc.4.2023.07.31.14.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 14:54:24 -0700 (PDT) Date: Mon, 31 Jul 2023 17:54:21 -0400 From: "Michael S. Tsirkin" To: Bjorn Helgaas Cc: Igor Mammedov , linux-kernel@vger.kernel.org, terraluna977@gmail.com, bhelgaas@google.com, linux-pci@vger.kernel.org, rafael@kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH 1/1] PCI: acpiphp:: use pci_assign_unassigned_bridge_resources() only if bus->self not NULL Message-ID: <20230731175316-mutt-send-email-mst@kernel.org> References: <20230731144418.1d9c2baf@imammedo.users.ipa.redhat.com> <20230731214251.GA25106@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731214251.GA25106@bhelgaas> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31, 2023 at 04:42:51PM -0500, Bjorn Helgaas wrote: > I would expect hot-add to be handled via a Bus Check to the *parent* > of a new device, so the device tree would only need to describe > hardware that's present at boot. That would mean pci_root.c would > have some .notify() handler, but I don't see anything there. That has a big performance cost though - OSPM has no way to figure out on which slot the new device is, so has to rescan the whole bus.