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=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 5E8A5C433C1 for ; Sat, 20 Mar 2021 14:26:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 D99A961960 for ; Sat, 20 Mar 2021 14:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D99A961960 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de 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=desiato.20200630; 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=g21uYdV0eLeoeN0aSn2puB+4So9C5LiHb3lNN/jMdAA=; b=cClKFIivZaV6vTpJiNv68g8cS W8UsQMqsORPU2fr2zC979oVRn3ZqqKqJHyAtdrSbHdBwvaDm+FUmynaqIeoRz+ngXG6jZc5fmyksL S+B/Psuim2Yz1RTJEvzkn4PweGPQlHViXC9rzNdrOmrSAh2J2igS2Ju/IBepFBjjJ52kUv5IZ9Jhn vF/yoAGf2pcjHkTWflN15195kzTGXeJpTAfqAkdOoNatKNFufuwVl+R4MT3hnMJSiiBcnlTbvrTkg ovOv4Mq0KeUVbMFeOO1oyUC8J/dpcBjKB2bmgSNTIpboY/JHoIUdS5Vjmhel5duQU3fSuhNkdoOCr cEJcOX5pA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNcWj-008v38-8j; Sat, 20 Mar 2021 14:24:29 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNcWg-008v2b-11 for linux-arm-kernel@lists.infradead.org; Sat, 20 Mar 2021 14:24:27 +0000 Received: from mail-oi1-f180.google.com ([209.85.167.180]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MAwsT-1lYw8P1a2b-00BIyY for ; Sat, 20 Mar 2021 15:24:24 +0100 Received: by mail-oi1-f180.google.com with SMTP id w70so8038031oie.0 for ; Sat, 20 Mar 2021 07:24:23 -0700 (PDT) X-Gm-Message-State: AOAM532bJ4rO1CFn6EWL4nvwEVSQd1TYw7XisAy8nrUBHarPmabFoPs0 aLNBeHd3WpLDmfUdeEnlM9PAEB1Lxjh/dZ+bnKY= X-Google-Smtp-Source: ABdhPJwFux/CWtJN4dtM1TpbyyYUNN266hbwwVFHhGiD4/+JrypfSbnb4Kw3jN9gqUDMobOfJpAmk7MjdcZ0Eq7ynN8= X-Received: by 2002:a05:6808:313:: with SMTP id i19mr4360026oie.67.1616250262889; Sat, 20 Mar 2021 07:24:22 -0700 (PDT) MIME-Version: 1.0 References: <20210319161956.2838291-2-boqun.feng@gmail.com> <20210319211246.GA250618@bjorn-Precision-5520> <87tup6gf3m.wl-maz@kernel.org> <87sg4qgdrd.wl-maz@kernel.org> In-Reply-To: <87sg4qgdrd.wl-maz@kernel.org> From: Arnd Bergmann Date: Sat, 20 Mar 2021 15:24:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 1/2] arm64: PCI: Allow use arch-specific pci sysdata To: Marc Zyngier Cc: Bjorn Helgaas , Boqun Feng , Bjorn Helgaas , Linux ARM , Linux Kernel Mailing List , Linux on Hyper-V List , linux-pci , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Lorenzo Pieralisi , Rob Herring , Clint Sbisa , Ard Biesheuvel , Sunil Muthuswamy X-Provags-ID: V03:K1:alUJNfOtJBWi/XX1cv5KJc1dR9/VuegoF1ba/HqH1ZSo2V3wHUm HbqsjbEok+77XlPte9v/2bSBPiBXet8dhae+Q7SgBN3JOXsT76xbb0a29lqiyuJwhjIFT7l 8AdcZcb50iB73qi3yyresnXAyOX+rRnM/cN1QyJTY1vePcZTHydGuwVYiriFFKTTA28OP7F V5cQXDzl5cPPoVHAxNvew== X-UI-Out-Filterresults: notjunk:1;V03:K0:j7vL3OxPfPI=:I6Jqmrxu+0EaBneUl60FzO gYAVk4Hml1W6/zfFjwsh5Z6ghHg6ZU2BCnGAqNgBOyuTA9EX58kD4KGesBLTQ3T4zv+8ue9DF v+m1bMGguIIlwZ1wKUtQBcIMPi0MjcIeFQvG2gGsh9Y1NeNara7KY3aNApdbDUXhXxkWJ6hwG rluG+23y1zun65Jywt2AUf1qSwQaxC67v9URQJRWINMd/F0F72+kfmAiN4/lZJT7uGKqdz84r rJCHQ9GaBhUvrnPr5oRJGHyrr8B0BWbhr5aXnYMzy4gWqWXCWr2duv/odSyZgVkmdnUEGjBzu t01W88lMLD1m0lqc8edeDxRwrLskLJdUt5qFto2bdssbOtUX9K3+ks7LAE2VG8MgM/iRoIYi7 Guv5g7fqSWcS9nWfsq2BEPGO+qvbi0YW2xmeGa6Ha135rdwgXX7xiPtcO0OGt X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210320_142426_211171_0C11E1CA X-CRM114-Status: GOOD ( 19.29 ) 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 Sat, Mar 20, 2021 at 2:23 PM Marc Zyngier wrote: > > On Sat, 20 Mar 2021 13:03:13 +0000, > Arnd Bergmann wrote: > > > > On Sat, Mar 20, 2021 at 1:54 PM Marc Zyngier wrote: > > > On Fri, 19 Mar 2021 21:12:46 +0000, > > > > > > Having an optional callback to host bridges to obtain the MSI domain > > > may be possible in some cases though (there might be a chicken/egg > > > problem for some drivers though...). > > > > I would expect that the host bridge driver can find the MSI domain > > at probe time and just add a pointer into the pci_host_bridge > > structure. > > In most cases, it doesn't implement it itself, and I'd be reluctant to > duplicate information that can already be retrieved from somewhere > else in a generic way (i.e. no PCI specific). At the moment, the information is retried through a maze of different functions, and already duplicated in both the pci_host_bridge and the pci_bus structures. If we can change everything to use CONFIG_GENERIC_MSI_IRQ_DOMAIN, then most of that code can probably just go away, leaving only the part in the phb. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel