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=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 1D226C432BE for ; Mon, 2 Aug 2021 23:05:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00D8760EC0 for ; Mon, 2 Aug 2021 23:05:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232353AbhHBXFa (ORCPT ); Mon, 2 Aug 2021 19:05:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:55536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbhHBXF3 (ORCPT ); Mon, 2 Aug 2021 19:05:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81F5660D07; Mon, 2 Aug 2021 23:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627945519; bh=WUIcSBQjSgJB67+np/uRZK+3HKPV7Ij1i4amc4Hm1bU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FiY6NWvHhG9xX44PQGg0eaU6mL/wf2FLhT7l5+qlEXztPvht1b16J/6cnwMX88aO5 MJG9lyK2U6G0OgiuFLOPd2JaLXTiNW5UG4ePAIdNiZyFjKU65iegHG+JxxXjw2fqnB DWeZTvuqHyWe/qrYqetgU9TyHGaSf4xX4RFFUR6oxfGtNutU8oZrTNr4kvKcYhDNSZ 4suu6Wk0rfplZTni+mBnbmwwoG4jzTuI2WMBtP8eHn/wE89OWE5Fh2b9LnePIEBSht Y1cc3vKzvAEcde3nJqz9VBCzw2OsHwyM9ztVmcumOXP1m4pG/uSYlr+6KpyY1oZzsE BZK4DkAHE1TXw== Date: Mon, 2 Aug 2021 18:05:18 -0500 From: Bjorn Helgaas To: Boqun Feng Cc: Bjorn Helgaas , Arnd Bergmann , Marc Zyngier , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , 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: [PATCH v6 0/8] PCI: hv: Support host bridge probing on ARM64 Message-ID: <20210802230518.GA1473900@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 04:15:04PM +0800, Boqun Feng wrote: > On Tue, Jul 27, 2021 at 02:06:49AM +0800, Boqun Feng wrote: > > Hi, > > > > This is the v6 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/ > > v3: https://lore.kernel.org/lkml/20210609163211.3467449-1-boqun.feng@gmail.com/ > > v4: https://lore.kernel.org/lkml/20210714102737.198432-1-boqun.feng@gmail.com/ > > v5: https://lore.kernel.org/lkml/20210720134429.511541-1-boqun.feng@gmail.com/ > > > > Changes since last version: > > > > * Rebase to 5.14-rc3 > > > > * Comment fixes as suggested by Bjorn. > > > > 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, > > which introduces a special case when trying to find the ACPI device from > > the sysdata (see patch #3). > > > > With this patchset, we could enable the virtual PCI on Hyper-V ARM64 > > guest with other code under development. > > > > Comments and suggestions are welcome. > > Ping ;-) Lorenzo normally takes care of the native drivers (including Hyper-V), so I don't want to get in his way. If he's too busy and doesn't get a chance, poke me again after -rc6 or so and I'll pick it up. > > Arnd Bergmann (1): > > PCI: hv: Generify PCI probing > > > > Boqun Feng (7): > > PCI: Introduce domain_nr in pci_host_bridge > > PCI: Support populating MSI domains of root buses via bridges > > arm64: PCI: Restructure pcibios_root_bridge_prepare() > > arm64: PCI: Support root bridge preparation for Hyper-V > > PCI: hv: Set ->domain_nr of pci_host_bridge at probing time > > PCI: hv: Set up MSI domain at bridge probing time > > PCI: hv: Turn on the host bridge probing on ARM64 > > > > arch/arm64/kernel/pci.c | 29 +++++++--- > > drivers/pci/controller/pci-hyperv.c | 86 +++++++++++++++++------------ > > drivers/pci/probe.c | 12 +++- > > include/linux/pci.h | 11 ++++ > > 4 files changed, 93 insertions(+), 45 deletions(-) > > > > -- > > 2.32.0 > > 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=-9.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 65963C4338F for ; Mon, 2 Aug 2021 23:07:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3425A60EB5 for ; Mon, 2 Aug 2021 23:07:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3425A60EB5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=mvZLZPixJ6eyNwIfd1BXm7/EdOMlMqubB/eVx1ElC/A=; b=TnhngDmNLHAsUv z8NfkgJk78M6hGSGpDFx5Uifv34wTAhU+8H2HfRnm+Lgyi2z/RqGzehUVXGalP1o/EbGDOcwfHwNf VaKEK39WJbyY0fxueFXPcQdKNU8+oQRkQKgdfBtpxuWnsfXCzv5DkT6L2r4c0hKEmtHGSEtAndfJ5 ojWs3MYuEQFTc017nmUfEqy/Gen127/+w7/GKvyvOhAWbSFGxxZ+Is/J0BE6gFTBe33cpT7TN1lO6 QuSSk8Fx/lAW3W7o6MjV+W5vNoiM0iQbkpWWeHhNYfv3AucN0z9XgbHpDjbR/jQ67YhUHPppsPma5 9boqQdb6FNzIjjR2b2tQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAgzr-000XRv-NS; Mon, 02 Aug 2021 23:05:23 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAgzo-000XRG-H8 for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 23:05:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81F5660D07; Mon, 2 Aug 2021 23:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627945519; bh=WUIcSBQjSgJB67+np/uRZK+3HKPV7Ij1i4amc4Hm1bU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FiY6NWvHhG9xX44PQGg0eaU6mL/wf2FLhT7l5+qlEXztPvht1b16J/6cnwMX88aO5 MJG9lyK2U6G0OgiuFLOPd2JaLXTiNW5UG4ePAIdNiZyFjKU65iegHG+JxxXjw2fqnB DWeZTvuqHyWe/qrYqetgU9TyHGaSf4xX4RFFUR6oxfGtNutU8oZrTNr4kvKcYhDNSZ 4suu6Wk0rfplZTni+mBnbmwwoG4jzTuI2WMBtP8eHn/wE89OWE5Fh2b9LnePIEBSht Y1cc3vKzvAEcde3nJqz9VBCzw2OsHwyM9ztVmcumOXP1m4pG/uSYlr+6KpyY1oZzsE BZK4DkAHE1TXw== Date: Mon, 2 Aug 2021 18:05:18 -0500 From: Bjorn Helgaas To: Boqun Feng Cc: Bjorn Helgaas , Arnd Bergmann , Marc Zyngier , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , 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: [PATCH v6 0/8] PCI: hv: Support host bridge probing on ARM64 Message-ID: <20210802230518.GA1473900@bjorn-Precision-5520> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210802_160520_654238_54D2EA61 X-CRM114-Status: GOOD ( 25.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Aug 02, 2021 at 04:15:04PM +0800, Boqun Feng wrote: > On Tue, Jul 27, 2021 at 02:06:49AM +0800, Boqun Feng wrote: > > Hi, > > > > This is the v6 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/ > > v3: https://lore.kernel.org/lkml/20210609163211.3467449-1-boqun.feng@gmail.com/ > > v4: https://lore.kernel.org/lkml/20210714102737.198432-1-boqun.feng@gmail.com/ > > v5: https://lore.kernel.org/lkml/20210720134429.511541-1-boqun.feng@gmail.com/ > > > > Changes since last version: > > > > * Rebase to 5.14-rc3 > > > > * Comment fixes as suggested by Bjorn. > > > > 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, > > which introduces a special case when trying to find the ACPI device from > > the sysdata (see patch #3). > > > > With this patchset, we could enable the virtual PCI on Hyper-V ARM64 > > guest with other code under development. > > > > Comments and suggestions are welcome. > > Ping ;-) Lorenzo normally takes care of the native drivers (including Hyper-V), so I don't want to get in his way. If he's too busy and doesn't get a chance, poke me again after -rc6 or so and I'll pick it up. > > Arnd Bergmann (1): > > PCI: hv: Generify PCI probing > > > > Boqun Feng (7): > > PCI: Introduce domain_nr in pci_host_bridge > > PCI: Support populating MSI domains of root buses via bridges > > arm64: PCI: Restructure pcibios_root_bridge_prepare() > > arm64: PCI: Support root bridge preparation for Hyper-V > > PCI: hv: Set ->domain_nr of pci_host_bridge at probing time > > PCI: hv: Set up MSI domain at bridge probing time > > PCI: hv: Turn on the host bridge probing on ARM64 > > > > arch/arm64/kernel/pci.c | 29 +++++++--- > > drivers/pci/controller/pci-hyperv.c | 86 +++++++++++++++++------------ > > drivers/pci/probe.c | 12 +++- > > include/linux/pci.h | 11 ++++ > > 4 files changed, 93 insertions(+), 45 deletions(-) > > > > -- > > 2.32.0 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel