From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH kernel 3/3] vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] [10de:1db1] subdriver Date: Thu, 18 Oct 2018 23:25:46 -0700 Message-ID: <20181019062546.GA18804@infradead.org> References: <20181015094233.1324-1-aik@ozlabs.ru> <20181015094233.1324-4-aik@ozlabs.ru> <20181016130824.20be215b@w520.home> <71c11c53-c83d-b0b6-5036-574df45009e4@ozlabs.ru> <20181017155252.2f15d0f0@w520.home> <2175dbbd-21d9-df26-67f5-4b41f90ab1bc@ozlabs.ru> <20181018105503.088a343f@w520.home> <0e0db29d-a1e8-af85-b715-c1ba1a2f3875@nvidia.com> <20181018120502.057feb7a@w520.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Reza Arbab , kvm@vger.kernel.org, Alexey Kardashevskiy , Alistair Popple , kvm-ppc@vger.kernel.org, Alex Williamson , linuxppc-dev@lists.ozlabs.org, David Gibson To: Piotr Jaroszynski Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" List-Id: kvm.vger.kernel.org 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.