On Thu, Oct 18, 2018 at 11:40:19AM -0700, Piotr Jaroszynski wrote: > GPUs are linked to NPU devices through device tree properties, I think. > Linux has a helper to look up linked NPU devices for a PCI device > pnv_pci_get_npu_dev() here: > https://elixir.bootlin.com/linux/latest/source/arch/powerpc/platforms/powernv/npu-dma.c#L86 FYI, all this code has never been used in the three years it was in the tree, so I'm going to remove it pretty soon.