mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-02 14:08:38 +00:00
habanalabs: Use simplified API for p2p dist calc
Use the simplified API that calculates distance between two devices. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
a925d90b36
commit
ea73ef14dd
@ -1689,7 +1689,7 @@ static int hl_dmabuf_attach(struct dma_buf *dmabuf,
|
||||
hl_dmabuf = dmabuf->priv;
|
||||
hdev = hl_dmabuf->ctx->hdev;
|
||||
|
||||
rc = pci_p2pdma_distance_many(hdev->pdev, &attachment->dev, 1, true);
|
||||
rc = pci_p2pdma_distance(hdev->pdev, attachment->dev, true);
|
||||
|
||||
if (rc < 0)
|
||||
attachment->peer2peer = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user