[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 2/3] xen/arm: Enable the existing x86 virtual PCI support for ARM.
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 15 Oct 2021 13:35:15 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qVaKWQWok/L4wsobSpNYYkwFYE4O5PER6ESkKvtd2w0=; b=CFpPxtQ+4GIY0xjDUXv93Q0UO8/4nfPYxXbbvV0DRYOTkhC8xjC1oEZWoLCdqrE9RuS1/+6w6ut0t5luPh4HVh6lArfUii5cB2DdMbTWVPtulQ8fBXkZ0WLUH+JLPOrZBrFviQ2giAka2kivjYOZrk85Z06CDYEnP3Ma52/C2ni+rT3sxMPo/SCX0cN0h8jsIzPIfsFcTI1+ePTHkoEzAhkYghM6P0O4FX8TkIwnJHy2DL5DUfTvPSDaVBuWeo5fW0NT5DfVxaVQRtct+m8w4HJX5tmxAEYHGG27DKSMvLz6Ocx8HbzpJP9W7A3GcN9Qsc6t+PMUpVs3BngjIfSFvg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K0D1Ac4rBM9E+2g8xhmIyNXp89R/zgOwFCgdbPh59RiMfS/qjMCjU8bE8Xzi+g2RmqbcrAfJnS0+B/yjM5KwnPOaTmoYzIEDc1bjp9suDGLqO1sUG+J+j5Uh7MdA5jc7APmf+g3h+4KVSAmxUvQvHO5PeGlHQxa+yLCUvEJGVoTXD3DRKL5ozoIwcaV+SYD80fYJZYA3rt3vni0KCkF/XFm9PUJVE1zjOrQJBIdlGI8iIl64F0nHSrf/qRnRZBlAu8fp57nHnKlG5/lPVs9Fo54w7rr2m1kG2n5hcWTWTLzaZC81wBtzE2Z0ex0ElKRfR7Wd5S0yh5ko74q48FWYEA==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 15 Oct 2021 11:36:03 +0000
- Ironport-data: A9a23:uQeY6KLY3qQDy4qPFE+Rp5MlxSXFcZb7ZxGr2PjKsXjdYENSgzECy zMeUWjVMviDYzT9edt/O47ipBxUuceDztQxTARlqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokcxIn5BC5C5xZVG/fjgqoHUVaiUZ0ideSc+EH140Eo6xrZg6mJVqYPR7z2l6 IuaT/L3YDdJ6xYsWo7Dw/vewP/HlK2aVAIw5jTSV9gS1LPtvyB94KYkDbOwNxPFrrx8RYZWc QphIIaRpQs19z91Yj+sfy2SnkciGtY+NiDW4pZatjTLbrGvaUXe345iXMfwZ3u7hB2zoopX5 81Mr6aBUAsuZLbNneRCWDxXRnQW0a1uoNcrIFC6uM2XiUbHb2Ht07NlC0Re0Y8wo7gtRzsUr LpBdW5LPkvra+GemdpXTsF2gcsuNo/zNZ43sXB81zDJ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dtHHEo9A1Hrjs9rP7 Ei3ncVTnfbg3wR1LW4gcwvgRvYJN8qt1ogY5Edi8zrSKALlAYuAAp1dcfniFI6CWCFjb+nlX7E 6bz0yHYVsS79Tjrl2dCNAn+UYkCdztwrGRO7SxrOvKiGTAwMeN7NhFc0iMEYB+XiDjr2oxbfL9 hXPD9SPH7DbOPygZAivoo7cJ
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Fri, Oct 15, 2021 at 12:18:59PM +0200, Jan Beulich wrote:
> On 15.10.2021 12:14, Ian Jackson wrote:
> > Bertrand Marquis writes ("Re: [PATCH v6 2/3] xen/arm: Enable the existing
> > x86 virtual PCI support for ARM."):
> >>> On 15 Oct 2021, at 09:00, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> >>> The latter is fine to be put here (i.e. FTAOD I'm fine with it
> >>> staying here). For the former I even question its original placement
> >>> in asm-x86/pci.h: It's not generally correct as per the PCI spec, as
> >>> the bus portion of the address can be anywhere from 1 to 8 bits. And
> >>> in fact there is a reason why this macro was/is used in only a
> >>> single place, but not e.g. in x86'es handling of physical MCFG. It
> >>> is merely an implementation choice in vPCI that the entire segment 0
> >>> has a linear address range covering all 256 buses. Hence I think
> >>> this wants to move to xen/vpci.h and then perhaps also be named
> >>> VPCI_ECAM_BDF().
> >>
> >> On previous version it was request to renamed this to ECAM and agreed
> >> to put is here. Now you want me to rename it to VPCI and move it again.
> >> I would like to have a confirmation that this is ok and the final move if
> >> possible.
> >>
> >> @Roger can you confirm this is what is wanted ?
> >
> > I think Roger is not available today I'm afraid.
> >
> > Bertrand, can you give me a link to the comment from Roger ?
> > Assuming that it says what I think it will say:
> >
> > I think the best thing to do will be to leave the name as it was in
> > the most recent version of your series. I don't think it makes sense
> > to block this patch over a naming disagreement. And it would be best
> > to minimise unnecessary churn.
> >
> > I would be happy to release-ack a name change (perhaps proposed bo Jan
> > or Roger) supposing that that is the ultimate maintainer consensus.
> >
> > Jan, would that approach be OK with you ?
>
> Well, yes, if a subsequent name change is okay, then I could live with
> that. I'd still find it odd to rename a function immediately after it
> already got renamed. As expressed elsewhere, I suspect in his request
> Roger did not pay attention to a use of the function in non-ECAM code.
Using MMCFG_BDF was original requested by Julien, not myself I think:
https://lore.kernel.org/xen-devel/a868e1e7-8400-45df-6eaa-69f1e2c99383@xxxxxxx/
I'm slightly loss in so many messages. On x86 we subtract the MCFG
start address from the passed one before getting the BDF, and then we
add the startting bus address passed in the ACPI table. This is so far
not need on Arm AFAICT because of the fixed nature of the selected
virtual ECAM region.
Thanks, Roger.
|