From: Jonathan Cameron <jonathan.cameron@huawei.com>
To: "Cheatham, Benjamin" <benjamin.cheatham@amd.com>
Cc: <linux-cxl@vger.kernel.org>
Subject: Re: RFC: CXL Isolation Support
Date: Mon, 2 Feb 2026 15:52:59 +0000 [thread overview]
Message-ID: <20260202155259.00003a0e@huawei.com> (raw)
In-Reply-To: <b4f7a760-5cf4-4343-8f7e-9698ba435fa4@amd.com>
> Possible Solutions
> ------------------
> There's a couple of things we could do here. First is to restrict isolation to when
> the CXL core is built-in (CXL_BUS=y && depends on PCIEPORTBUS). I'm not particularly
> happy about this approach since it removes the modularity of the CXL driver(s), but I
> won't gripe if that's what's settled on.
It's the sort of constraint we can relax later if that becomes possible.
>
> Another approach would be to move the CXL register mapping code in cxl/core/regs.c to a
> library, or always make the file built-in when CXL_BUS is selected. This is more palatable
> (imo) but splits the CXL code up in a potentially weird way.
>
> Last one is to rework the PCIe port bus driver to allow for re-allocating MSI/-X interrupts.
> Jonathan Cameron sent out a series where there was some discussion on this. This support
> would be limited to MSI-X interrupts only due to the PCI maintainers not wanting to add
> more support for MSI [4].
> This wouldn't work for AMD platforms because we use MSI interrupts
> for this support. There is still a way to make this work, however. AMD server platforms
> use the same MSI vector for all PCIe interrupts, so we could introduce a quirk to use that
> same vector as another PCIe interrupt for CXL isolation. That would require no register mapping
> code in the PCIe portdrv code but would introduce a platform quirk instead. I doubt anyone would
> be happy about introducing a quirk but I thought I'd throw it out as an option.
That whole approach (I failed to follow up so far) in [4] never took shared interrupts into account.
So might well have been quirk territory even with that rework done (with MSI as a possible
controversial follow up to the MSI-X version).
Jonathan
>
> Thanks for reading,
> Ben
>
next prev parent reply other threads:[~2026-02-02 15:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-30 19:47 RFC: CXL Isolation Support Cheatham, Benjamin
2026-01-30 21:30 ` Gregory Price
2026-02-02 15:59 ` Jonathan Cameron
2026-02-02 16:50 ` Gregory Price
2026-02-02 17:31 ` Cheatham, Benjamin
2026-02-02 17:30 ` Cheatham, Benjamin
2026-02-02 19:52 ` Gregory Price
2026-02-02 15:52 ` Jonathan Cameron [this message]
2026-02-02 19:28 ` Vikram Sethi
2026-02-02 20:20 ` dan.j.williams
2026-02-05 20:49 ` Cheatham, Benjamin
2026-02-05 21:52 ` dan.j.williams
2026-02-05 22:54 ` Gregory Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260202155259.00003a0e@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=benjamin.cheatham@amd.com \
--cc=linux-cxl@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox