Re: [PATCH v3 2/2] PCI/P2PDMA: Modify p2p_dma_distance to detect P2P links

Christoph Hellwig
2024-12-12T05:04:37Z

On Tue, Dec 10, 2024 at 11:17:48PM -0800, Shivasharan S wrote:
> Update the p2p_dma_distance() to determine inter-switch P2P links existing
> between two switches and use this to calculate the DMA distance between
> two devices. This requires enabling the PCIE_P2P_LINK config option in
> the kernel.

What the heck are "P2P links supposed to be. And why shoud Linux
support something non-standard like this?

NAK for these hacks to the core code unless you can get a vendor
indpendent spec for it.