From: Sander Eikelenboom Subject: Re: Re: [pvops xen/next ] attenpt to passthrough PCI-e usb controllor to PV domU Date: Mon, 22 Mar 2010 14:14:26 +0100 Message-ID: <3510638223.20100322141426@eikelenboom.it> References: <1017192770.20100321221949@eikelenboom.it> <1A42CE6F5F474C41B63392A5F80372B21D641D6D@shsmsx501.ccr.corp.intel.com> <1057357311.20100322111524@eikelenboom.it> <4BA75B510200007800036286@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4BA75B510200007800036286@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" , Weidong Han , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org Hello Jan, Thx, that was indeed unrelated, not compiling in the microcode patchloader = made it disappear. Any tips on how to find out where the problem seems to be ? not using the D= MA-api correctly could perhaps be something ? Don't seem to have any errors warning indicating anything left. I suppose the usb xhci driver has some assumption that is not valid in the = xen context, but what .. On xen + 2.6.32 dom0, the controller shows the USB device with lsusb (no pa= ssthrough just hypervisor + dom0, also no iommu). On xen + 2.6.32 dom0 + 2.6.32 domU passthrough, the device doesn't show up = with lsusb. When i compare the output of lspci -vvvknn from the first and last i don't = see any shocking things. --- dom0-lspci.txt 2010-03-22 13:55:57.000000000 +0100 +++ domu-lspci.txt 2010-03-22 05:42:49.000000000 +0100 @@ -1,31 +1,32 @@ 03:00.0 USB Controller [0c03]: NEC Corporation Device [1033:0194] (rev 03)= (prog-if 30) Subsystem: ASUSTeK Computer Inc. Device [1043:8413] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-= Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=3Dfast >TAbort- SERR- Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff Capabilities: [150] #18 Kernel driver in use: xhci_hcd When i compare the output of lsusb -v of the first and last situation, i do= see some differences, but have no clue what caused them. --- dom0-lsusb.txt 2010-03-22 13:55:09.000000000 +0100 +++ domu-lsusb.txt 2010-03-22 05:42:58.000000000 +0100 @@ -1,176 +1,68 @@ -Bus 007 Device 002: ID 2040:2400 Hauppauge WinTV PVR USB2 (Model 24019) -Device Descriptor: - bLength 18 - bDescriptorType 1 - bcdUSB 2.00 - bDeviceClass 0 (Defined at Interface level) - bDeviceSubClass 0=20 - bDeviceProtocol 0=20 - bMaxPacketSize0 64 - idVendor 0x2040 Hauppauge - idProduct 0x2400 WinTV PVR USB2 (Model 24019) - bcdDevice 8.00 - iManufacturer 1 Hauppauge - iProduct 2 WinTV - iSerial 3 2401-00-008433DC - bNumConfigurations 1 - Configuration Descriptor: - bLength 9 - bDescriptorType 2 - wTotalLength 60 - bNumInterfaces 1 - bConfigurationValue 1 - iConfiguration 0=20 - bmAttributes 0xc0 - Self Powered - MaxPower 0mA - Interface Descriptor: - bLength 9 - bDescriptorType 4 - bInterfaceNumber 0 - bAlternateSetting 0 - bNumEndpoints 6 - bInterfaceClass 255 Vendor Specific Class - bInterfaceSubClass 255 Vendor Specific Subclass - bInterfaceProtocol 255 Vendor Specific Protocol - iInterface 0=20 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x81 EP 1 IN - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x84 EP 4 IN - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x88 EP 8 IN - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x01 EP 1 OUT - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x02 EP 2 OUT - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 - Endpoint Descriptor: - bLength 7 - bDescriptorType 5 - bEndpointAddress 0x86 EP 6 IN - bmAttributes 2 - Transfer Type Bulk - Synch Type None - Usage Type Data - wMaxPacketSize 0x0200 1x 512 bytes - bInterval 0 -Device Qualifier (for other device speed): - bLength 10 - bDescriptorType 6 - bcdUSB 2.00 - bDeviceClass 0 (Defined at Interface level) - bDeviceSubClass 0=20 - bDeviceProtocol 0=20 - bMaxPacketSize0 64 - bNumConfigurations 1 -Device Status: 0x0003 - Self Powered - Remote Wakeup Enabled =20 -Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 3.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 3=20 bMaxPacketSize0 9 idVendor 0x1d6b Linux Foundation idProduct 0x0002 2.0 root hub bcdDevice 2.06 iManufacturer 3 Linux 2.6.32 xhci_hcd iProduct 2 xHCI Host Controller iSerial 1 0000:03:00.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0=20 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0=20 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x0009 Per-port power switching Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0100 power - Port 4: 0000.0503 highspeed power enable connect + Port 4: 0000.0101 power connect Device Status: 0x0003 Self Powered Remote Wakeup Enabled -- Sander Monday, March 22, 2010, 11:58:09 AM, you wrote: >>>> Sander Eikelenboom 22.03.10 11:15 >>> >>Hello Weidong/Konrad, >> >>1) With iommu=3D0, the DMAR fault is gone (of course), but >> > (XEN) traps.c:2309:d1 Domain attempted WRMSR 000000000000008b f= rom 00000a07:00000000 to 00000000:00000000. >> Stays in xm-dmesg, the pv guests is booted, and lspci shows the p= ci device. But the device doesn't function properly. > This is certainly unrelated to $subject problem - MSR 0x8b is MSR_AMD64_P= ATCH_LEVEL, and is being written by the microcode patch loader. > Jan --=20 Best regards, Sander mailto:linux@eikelenboom.it