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.2 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 D5CFAC47094 for ; Thu, 10 Jun 2021 15:03:33 +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 9B8F8613C8 for ; Thu, 10 Jun 2021 15:03:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B8F8613C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NSrNctcRojxRT0PsUaM7Q+pp9Ctd+UHpwjYnNNG0I1Y=; b=K4Ql5HRq0Bk2BT MWP+0wHBEAYizBl8GBQBOptYZKQPkkmB+G8jP8Ea1HPBkb63D/dZVecObEkKOK3Xq0p2gNTucf+lw dQOn1CggvLBj/Z4XrF1NOryy1OiURUj/QwV//1xfz2cBO4X7nuSQ3fDrB688wblhX+TDIxEP5hta6 OiQetMD9M0zeSSeLG8BmeUuJNxNFzZlRIwg0EyOSkmcl9gQrFuWW6Sk2FzMPVbfGzQO1bsA9VZTAh JBfclPXYwOcpoRhVNBNbdNI/+jB1rEXHqEzU1bhVCeBRMlMd8ykYZ6LngpokEXi0EYVLp92LkxRyg 1F5PvvUjCsri7EDB0JCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrMBR-001Gn6-RA; Thu, 10 Jun 2021 15:01:26 +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 1lrMBO-001GmD-3T for linux-arm-kernel@lists.infradead.org; Thu, 10 Jun 2021 15:01:23 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BD94613E3 for ; Thu, 10 Jun 2021 15:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623337281; bh=B8YUrdGtvh1GlX9DXPYnLvrAiv1MGNWen6/6xy5xNj0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZOOKAHQiUBk7P4XwofeAx9bYWQKbqO2Y4+luqnSOASsoYUCFy7CkXg/H5OaGC1GyJ yzRam3hEWbUK2dAXhmukaB+YzI9AbDvXVYANRTARIvfLKa03eXFEjyYDCtqaQjt2hl 0IMAjOxWnoWmIhYvh6jl5/ZvEJaMK6SNbvqNWc02vhyjPCcy35jQNSFlUQcZ2dLPqD sHFPhNeBHPuo9MDNeYvAt1DziEiU8Vg199tHAZZYCDGOsP5360qwF224ioWL7UTibn igH3wAqxExu+RCXjqWJkxZaswAnquByLVHSHqZCLiJ78s+gQROtrgurLGNODv817MY MHXDpw4gnFctg== Received: by mail-oi1-f171.google.com with SMTP id c13so2396712oib.13 for ; Thu, 10 Jun 2021 08:01:21 -0700 (PDT) X-Gm-Message-State: AOAM531dc9D/wdkcRV005V6UmVUrmo+ZVaXynv4rlb7G1z8kTXGWsOop UTDubFMCEPkSPfhzPi/cltWkoO0/2TWBiJD5VM0= X-Google-Smtp-Source: ABdhPJxibo6JABGA7bE+zFOtcntl98rQdpSxCh/xGWjytPaZ+l9cdgGdrTsv+YQbvAM2joKHZSGRQzNlq6GWTM6SPeM= X-Received: by 2002:aca:eb55:: with SMTP id j82mr3640527oih.174.1623337280475; Thu, 10 Jun 2021 08:01:20 -0700 (PDT) MIME-Version: 1.0 References: <20210609163211.3467449-1-boqun.feng@gmail.com> In-Reply-To: <20210609163211.3467449-1-boqun.feng@gmail.com> From: Ard Biesheuvel Date: Thu, 10 Jun 2021 17:01:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v3 0/7] PCI: hv: Support host bridge probing on ARM64 To: Boqun Feng , Arnd Bergmann Cc: 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210610_080122_208543_88ABE317 X-CRM114-Status: GOOD ( 20.45 ) 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 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) > 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