From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD551C47094 for ; Thu, 10 Jun 2021 15:43:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B63C2613C9 for ; Thu, 10 Jun 2021 15:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231775AbhFJPoz (ORCPT ); Thu, 10 Jun 2021 11:44:55 -0400 Received: from disco-boy.misterjones.org ([51.254.78.96]:44302 "EHLO disco-boy.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231737AbhFJPor (ORCPT ); Thu, 10 Jun 2021 11:44:47 -0400 Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lrMpR-006lZz-3S; Thu, 10 Jun 2021 16:42:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 10 Jun 2021 16:42:45 +0100 From: Marc Zyngier To: Ard Biesheuvel , Boqun Feng Cc: Boqun Feng , Arnd Bergmann , Bjorn Helgaas , Linux ARM , Linux Kernel Mailing List , linux-hyperv@vger.kernel.org, PCI , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Lorenzo Pieralisi , Rob Herring , Clint Sbisa , Sunil Muthuswamy Subject: Re: [RFC v3 0/7] PCI: hv: Support host bridge probing on ARM64 In-Reply-To: References: <20210609163211.3467449-1-boqun.feng@gmail.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <2283b22ae7832db348bd9b3eff3aab16@misterjones.org> X-Sender: maz@misterjones.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: ardb@kernel.org, boqun.feng@gmail.com, arnd@arndb.de, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, lorenzo.pieralisi@arm.com, robh@kernel.org, csbisa@amazon.com, sunilmut@microsoft.com X-SA-Exim-Mail-From: maz@misterjones.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 2021-06-10 16:01, Ard Biesheuvel wrote: > On Wed, 9 Jun 2021 at 18:32, Boqun Feng wrote: >> >> Hi Bjorn, Arnd and Marc, >> > > Instead of cc'ing Arnd, you cc'ed me (Ard) And I don't know if you intended to Cc me, but you definitely didn't. Thanks, M. > >> This is the v3 for the preparation of virtual PCI support on Hyper-V >> ARM64. Previous versions: >> >> v1: >> https://lore.kernel.org/lkml/20210319161956.2838291-1-boqun.feng@gmail.com/ >> v2: >> https://lore.kernel.org/lkml/20210503144635.2297386-1-boqun.feng@gmail.com/ >> >> Changes since last version: >> >> * Use a sentinel value approach instead of calling >> pci_bus_find_domain_nr() for every CONFIG_PCI_DOMAIN_GENERIC=y >> arch as per suggestion from >> >> * Improve the commit log and comments for patch #6. >> >> * Rebase to the latest mainline. >> >> The basic problem we need to resolve is that ARM64 is an arch with >> PCI_DOMAINS_GENERIC=y, so the bus sysdata is pci_config_window. >> However, >> Hyper-V PCI provides a paravirtualized PCI interface, so there is no >> actual pci_config_window for a PCI host bridge, so no information can >> be >> retrieve from the pci_config_window of a Hyper-V virtual PCI bus. Also >> there is no corresponding ACPI device for the Hyper-V PCI root bridge. >> >> With this patchset, we could enable the virtual PCI on Hyper-V ARM64 >> guest with other code under development. >> >> Comments and suggestions are welcome. >> >> Regards, >> Boqun >> >> Arnd Bergmann (1): >> PCI: hv: Generify PCI probing >> >> Boqun Feng (6): >> PCI: Introduce domain_nr in pci_host_bridge >> PCI: Allow msi domain set-up at host probing time >> PCI: hv: Use pci_host_bridge::domain_nr for PCI domain >> PCI: hv: Set up msi domain at bridge probing time >> arm64: PCI: Support root bridge preparation for Hyper-V PCI >> PCI: hv: Turn on the host bridge probing on ARM64 >> >> arch/arm64/kernel/pci.c | 7 ++- >> drivers/pci/controller/pci-hyperv.c | 87 >> +++++++++++++++++------------ >> drivers/pci/probe.c | 9 ++- >> include/linux/pci.h | 10 ++++ >> 4 files changed, 73 insertions(+), 40 deletions(-) >> >> -- >> 2.30.2 >> > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Who you jivin' with that Cosmik Debris?