mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joshua Machauer <machaujo@amazon.de>
To: Richard Cheng <icheng@nvidia.com>
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: Mon, 23 Nov 2026 16:19:56 +0000	[thread overview]
Message-ID: <20261123161956.72689-1-machaujo@amazon.de> (raw)
In-Reply-To: <awOxn3BcKl8Ru-QS@MWDK4CY14F>

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

      reply	other threads:[~2026-11-23 16:20 UTC|newest]

Thread overview: 4+ 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 [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=20261123161956.72689-1-machaujo@amazon.de \
    --to=machaujo@amazon.de \
    --cc=bhelgaas@google.com \
    --cc=dave.jiang@intel.com \
    --cc=icheng@nvidia.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --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®