Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp690410pxv; Wed, 14 Jul 2021 13:09:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx4j1A+InMBckVK+vfk9epqD/J1nKPxkMSr7EqOvhut/zMH+OJmFPSm8aLpAaAO03QjMwk X-Received: by 2002:a17:906:2b85:: with SMTP id m5mr14268100ejg.141.1626293385357; Wed, 14 Jul 2021 13:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626293385; cv=none; d=google.com; s=arc-20160816; b=yZHEMIb0UF4EbY1Ev55OWFkM/lf6IM8i9pN7IY3YFOM7S1giE+lRPMHwdV01+AWiv3 q2kGQjVzttNpqVr91okZA5zKSeh4qiCErokLh66Gto/vOqvU/pM1h2t13m9EWyAZGSAX N3gpfBQGB6dREz7Komio+MjIwu6O5Xp0cAmwagKCR6nyvthLDKTQh58is0/0FT0Wj2Oj D17cT7WvmxoLAr7Rff90I3dYhrLxQjfcOnjT0j2SLn1FmC2zPZMQCA88ZPPyc0awNnKH zDr3Z0AiIZDU5qMLe79EcNIUvmjyKLrsu2QAEbqvYdUYUC4enC370QMG/UeGRYtJUmno tB0Q== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=wzv0aChese70bEud/ht/ntx439sCNBNaNlDroeBkX1Y=; b=cjkFVkeleWHIsBP0nDkaCISky2xiIXZqhDlBBTXkRMynHF8O3nbeiz1mw8il0F8XII ir4uHRvUjvzRhnV/CAaue6+ykYTZG1B0FmylPdzp7chggovgF47uf+whCLlLGzki8kVL wJjePECRp22zQhDP8NLA8f4vVaF8mNCfxCm7NxOF7XEwmqRanZsqL0PwCqw9RiITfRE2 sVXtSxnXBR+XU+he71/nswaK82Dq0aPpKpYwpyL5Lhkb/OL4+EWMhbFF+Rt+aKhYVaBz 31YyBLH+58dY0bD2HHUButdYpzxa6OP1dcSQCQco1eFGFofWpRd2EC4x3DF9/PIykgnA BWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VVa6aI50; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si4032120edx.175.2021.07.14.13.09.19; Wed, 14 Jul 2021 13:09:45 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VVa6aI50; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241103AbhGNUGq (ORCPT + 99 others); Wed, 14 Jul 2021 16:06:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:48778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240312AbhGNTw3 (ORCPT ); Wed, 14 Jul 2021 15:52:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22C986100A; Wed, 14 Jul 2021 19:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626292177; bh=WfMWrkHvJ44P3JTRAzMBFhBHH9ErA8FDl5XjQ3/gaXk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VVa6aI500N7TcMemN2ST4LsAKUV1CDY1wp4O5LPgrfRmoiT7Z9uxVB1tGNmIDYKKw bYaYwfAEm5ou82Vv9P/nBJyi1Ea3wK3D6hVRLHUjRhqSk4v+GOVWtulEGMiPY98RHl xCuny/vdiZLZTL5H0CbvwGuEdO4CBSl8Z2yepo86yBpct9Q4K7PQtBVrry3pIk3+cB hAyON+FBCynK+gRdzhQCQWclkPr4/fxPj9Fkr69p2uwozduMLUmxmZ5YZ/bjjYFZSu 1TWdY02T43e8nLic+h8QMNUQjawJkOFeZ9rumpaXQiVyL7vSnrNNBAXYIoKEg1CY/T QwmXD5E0+g6Iw== Date: Wed, 14 Jul 2021 14:49:35 -0500 From: Bjorn Helgaas To: Boqun Feng Cc: Bjorn Helgaas , Arnd Bergmann , Marc Zyngier , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, Sunil Muthuswamy , Mike Rapoport Subject: Re: [RFC v4 4/7] PCI: hv: Generify PCI probing Message-ID: <20210714194935.GA1870211@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210714102737.198432-5-boqun.feng@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 06:27:34PM +0800, Boqun Feng wrote: > From: Arnd Bergmann > > In order to support ARM64 Hyper-V PCI, we need to set up the bridge at > probing time because ARM64 is a PCI_DOMAIN_GENERIC arch and we don't > have pci_config_window (ARM64 sysdata) for a PCI root bus on Hyper-V, so > it's impossible to retrieve the information (e.g. PCI domains, irq > domains) from bus sysdata on ARM64 after creation. > > Originally in create_root_hv_pci_bus(), pci_create_root_bus() is used to > create the root bus and the corresponding bridge based on x86 sysdata. > Now we create a bridge first and then call pci_scan_root_bus_bridge(), > which allows us to do the necessary set-ups for the bridge. Also here and other patches in this series: s/irq/IRQ/ s/msi/MSI/ in subject lines, commit logs, comments.