mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Feng Tang <feng.tang@linux.alibaba.com>
To: Niklas Cassel <cassel@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	Anju Zheng <zaj01616726@alibaba-inc.com>
Subject: Re: [PATCH RFC] PCI: Add warning about possible danger for pcie_bus_perf mode
Date: Fri, 4 Dec 2026 09:13:08 +0800	[thread overview]
Message-ID: <axITpJQ8Bh4djbvW@U-2FWC9VHC-2323.local> (raw)
In-Reply-To: <axFoEuXBJjulDLya@ryzen>

On Thu, Dec 03, 2026 at 02:01:06PM +0100, Niklas Cassel wrote:
[...]
> > > My series [1] avoids this without pcie_bus_perf: with the default strategy,
> > > it sets each Root Port hierarchy to the largest MPS that all of its devices
> > > support, i.e. 256 bytes for both your Root Port and the NVMe. Since a
> > > Function must not generate TLPs larger than its own Max_Payload_Size, the
> > > Root Port then returns Completions of at most 256 bytes, even for the
> > > 512-byte reads your NVMe issues. The NVMe also gets the same 256-byte
> > > payloads as with pcie_bus_perf, so nothing is lost by dropping it: the Root
> > > Port's 512 bytes don't help a link whose only device supports 256.
> > > 
> > > Would you be able to test the series on that server, without
> > > pci=pcie_bus_perf?
> > > 
> > > [1] https://lore.kernel.org/linux-pci/20261020122854.1500883-5-cassel@kernel.org/
> > 
> > Hi Niklas,
> > 
> > I tested your series with this NVMe device, it worked fine without
> > 'pci=pcie_bus_perf', and also triggered the "Malformed TLP" error
> > with the parameter, same as the mainline kernel. 
> 
> Thank you for testing!
> 
> I assume that you mean that it triggered the error even with my series,
> if you supplied 'pci=pcie_bus_perf' ?

Yes. 

> That is expected, since my series only changes the default strategy for
> MPS and MRRS configuration.
> 
> So your quirk should be accepted regardless, since it can be backported
> and is needed when using strategies other than the default.

Thanks for your review and suggestion!

- Feng

      reply	other threads:[~2026-12-04  1:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 15:58 Feng Tang
2026-11-26  8:37 ` Christoph Hellwig
2026-11-26  9:48   ` Feng Tang
2026-11-27 13:24   ` Feng Tang
2026-11-27 13:29     ` Niklas Cassel
2026-11-26  8:39 ` Niklas Cassel
2026-11-26 11:03   ` Feng Tang
2026-11-26 11:56     ` Niklas Cassel
2026-12-01 14:17   ` Feng Tang
2026-12-03 13:01     ` Niklas Cassel
2026-12-04  1:13       ` Feng Tang [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=axITpJQ8Bh4djbvW@U-2FWC9VHC-2323.local \
    --to=feng.tang@linux.alibaba.com \
    --cc=bhelgaas@google.com \
    --cc=cassel@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=zaj01616726@alibaba-inc.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®