From: Richard Cheng <icheng@nvidia.com>
To: Joshua Machauer <machaujo@amazon.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
Dave Jiang <dave.jiang@intel.com>,
linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org,
linux-kernel@vger.kernel.org, nh-open-source@amazon.com
Subject: Re: [PATCH] PCI: Skip the CXL state update for a VF
Date: Tue, 24 Nov 2026 17:19:44 +0800 [thread overview]
Message-ID: <awVWhqBe62XZ4ICF@MWDK4CY14F> (raw)
In-Reply-To: <20261123161956.72689-1-machaujo@amazon.de>
On Mon, Nov 23, 2026 at 04:19:56PM +0800, Joshua Machauer wrote:
> On Mon, Nov 23, 2026 at 11:29:10AM +0800, Richard Cheng wrote:
> > One nit on the sentence above, before this patch, each VF add also re-read
> > the Flex Bus Port Status of every bridge above the PF.
> > That refresh is now gone. I don't think anything depends on it, but
> > it is a behavior change, might be worth to mention it.
>
> [...]
>
> > I would like the spec section to be cited here, CXL r4.0, sec 8.1.8
> > "PCIe DVSEC for Flex Bus Port"
>
> Thanks. v2 states the dropped refresh and cites the spec section in
> the comment.
>
> > Is the walk to the RP needed, or would refreshing only the immediate parent
> > would be enough ?
> > If it's the former case, we can cut more cost for non-VF devices too.
>
> Refreshing the immediate parent looks enough to me. A device is only
> visible once the link to its parent's downstream port has trained, and
> the links further up were already read when the device directly below
> each of them was added. The link speed in pci_bus is handled that way
> too: it is read when the bus is added and updated on link events
> (retrain, bandwidth notification, hotplug), not on every child add.
>
> I don't have a system with a CXL switch to test that change on, so I
> have kept v2 to the VF case.
>
> Joshua
Ok, makes sense, thanks for clarifying this, I guess I'll work on this myself.
I'll cc you then.
Best regards,
Richard Cheng.
prev parent reply other threads:[~2026-11-24 9:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 16:42 Joshua Machauer
2026-11-19 16:50 ` Dave Jiang
2026-11-23 3:29 ` Richard Cheng
2026-11-23 16:19 ` Joshua Machauer
2026-11-24 9:19 ` Richard Cheng [this message]
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=awVWhqBe62XZ4ICF@MWDK4CY14F \
--to=icheng@nvidia.com \
--cc=bhelgaas@google.com \
--cc=dave.jiang@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=machaujo@amazon.de \
--cc=nh-open-source@amazon.com \
/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
all inboxes | Powered by JetHome®