From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796346795; b=oH2fOG/Ax79mkzM4f2hbZxh0PI46EuSSq4LhN5TiL//cNM7QTTCnZvK6071n11BEAmcy SwtxaCcyu9/oXrnx0gtpIeZ1iJpB75Ys4jqbiQSRpEmZ4y5nLuvRMaJ7OofQb0ZWRhPVU CYKUgGdw8NIoJRZ9BuBTvmNTzPlQh529qxezk3LvgyuE0/HRcpD1FDwmRYyJgb8WIRXn6 BNnXAuWLQQsXEKQFvHtYYVcSh/POBPW0oalKrn4AbkYREtgx+v4n9yJL9WpUfWwNjA77u OMx/9Qz5X10sTnjU2YfXiai2vTEmtdosPpl3XuP6NiWbuac84L3A8YItGPWlMIjiaVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796346795; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=jT+0a8/b7cK79A+fE09ljq5qeG+GLDESuP9O7qtm+iA=; b=G4kFRLMkMEYMYYl1S7ttm68GZ3cjdlQS28S5MlInon0EtbZJXbHou0dRzn+xXMIpQimY lZAobzPXeyS5Kq+FtV+SapOFicbvhAa6QhbP7A3NXYgbWTM7pC07LlCttDdA5bOiQu62X LeMZtXdB88ouKGkCdZZvswXouIidPG66h3RsbOVZhnoVOCHCC/aHctqLfKraILi7IFL5F IBVfvJkWMGxx1ajxWIB8Q8pWck3JDDOeSliI7pRMvOsCEgEny1lQjfy2CFkJ9ZZ3fKR5f tPx+GDvAkgj87aqh62DSVi4du0rN6qiw9q2rQZMuXoNXgomI+MFhRd2aaq81URvu+9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=MILmlShX; arc=none smtp.remote-ip=115.124.30.130 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 154AB606A322; Fri, 4 Dec 2026 01:13:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 154AB606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=MILmlShX DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796346790; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; bh=jT+0a8/b7cK79A+fE09ljq5qeG+GLDESuP9O7qtm+iA=; b=MILmlShXrpZAAXpK3FdrDf10PCjfnbfOsGaW9bIQBvXXggv/AlTPxoMkMYA8nHxogGftm1K+oAsKz7j4GNqPMSXIGVxnY+IJwVs6laedAnYi1xnDAV8MZeNRYQiBL333zgBk7gVRNmPUwr+E/1r5I7z1+h/8gHUOiB1agzBp33o= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033071064103;MF=feng.tang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0XGFQWGm_1796346789; Received: from localhost(mailfrom:feng.tang@linux.alibaba.com fp:SMTPD_---0XGFQWGm_1796346789 cluster:ay36) by smtp.aliyun-inc.com; Fri, 04 Dec 2026 09:13:10 +0800 Date: Fri, 4 Dec 2026 09:13:08 +0800 From: Feng Tang To: Niklas Cassel Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Anju Zheng Subject: Re: [PATCH RFC] PCI: Add warning about possible danger for pcie_bus_perf mode Message-ID: References: <20261125155829.77269-1-feng.tang@linux.alibaba.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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