Re: [PATCH RFC] PCI: Add warning about possible danger for pcie_bus_perf mode

From: Feng Tang

Date: Thu Dec 03 2026 - 20:13:18 EST


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@xxxxxxxxxx/
> >
> > 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