From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: PCI assignement with nvidia K1: RmInitAdapter failed Date: Tue, 09 Jul 2013 11:52:52 -0600 Message-ID: <1373392372.2602.273.camel@ul30vt.home> References: <20130709111810.yrgakqxj4wgwkgw0@www.imp.polymtl.ca> <20130709121545.a00mic44fksswk84@www.imp.polymtl.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Guillaume Thouvenin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44468 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235Ab3GIRxB (ORCPT ); Tue, 9 Jul 2013 13:53:01 -0400 In-Reply-To: <20130709121545.a00mic44fksswk84@www.imp.polymtl.ca> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2013-07-09 at 12:15 +0200, Guillaume Thouvenin wrote: > Guillaume Thouvenin a =C3=A9crit : >=20 > > I'd like to test a nvidia K1 with pci assignement by using the=20 > > pci-stub module or the vfio module. I'm running an ubuntu raring as= =20 > > the host and a version 1.4.0 of qemu-system-x86 1.4.0. >=20 > I just tested with QEMU emulator version 1.5.50 that I compiled from=20 > git but I have the same issue. The kernel running on the host is a=20 > 3.8.0-23-generic that comes with ubuntu. >=20 > I also tried to reset the card before binding it but I got the same i= ssue: >=20 > NVIDIA: could not open the device file /dev/nvidia0 (Input/output e= rror). > Unable to determine the device handle for GPU 0000:00:03.0: Unknown= Error >=20 > even if in /dev I have: >=20 > $ ls -l /dev/nvidia* > crw-rw-rw- 1 root root 195, 0 juil. 9 12:09 /dev/nvidia0 > crw-rw-rw- 1 root root 195, 255 juil. 9 12:09 /dev/nvidiactl Are you sure that nvidia-smi is relevant to the K1/K2 devices? Does it work on the host? I wouldn't be surprised if a system management interface tries to use backdoors that are not available in a VM. Are there other tests you can do to check whether the device is otherwise available? Also, I'm curious to see what these cards look like, could you provide an 'sudo lspci -vvv' of the host system? Thanks, Alex