From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Baptiste Favre Subject: Re: PCI passthrough issue Date: Mon, 28 Feb 2011 11:00:57 +0100 Message-ID: <4D6B7259.60501@jbfavre.org> References: <4D4BBEC6.8070809@jbfavre.org> <4D4BD121.2080505@jbfavre.org> <1296817460.13091.646.camel@zakaz.uk.xensource.com> <4D4BE212.1090400@jbfavre.org> <1296818935.13091.648.camel@zakaz.uk.xensource.com> <4D4BFBE4.6080809@jbfavre.org> <1296827449.13091.670.camel@zakaz.uk.xensource.com> <4D4C06BB.8010907@jbfavre.org> <4D52658E.9060907@jbfavre.org> <4D5EE125.6040208@jbfavre.org> <20110225144035.GA7228@dumpdata.com> Reply-To: xen-devel@lists.xensource.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110225144035.GA7228@dumpdata.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: xen-devel@lists.xensource.com, konrad.wilk@oracle.com List-Id: xen-devel@lists.xenproject.org Le 25/02/2011 15:40, Konrad Rzeszutek Wilk a =E9crit : > On Fri, Feb 18, 2011 at 10:14:13PM +0100, Jean Baptiste Favre wrote: >> Hello, >> Back online after my exams :) >> >> Had some time to perform tests with my Debian Squeeze 32bits domU and >> 2.6.37 kernel from experimental. >=20 > I am bit lost now.. Can you refresh my memory whether the 'copy_break' > parameter worked or not? Copybreak param still solve problem: # ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data. __netif_receive_skb dropping skb proto 0x6aac ip summed 2 __netif_receive_skb dropping skb proto 0x620c ip summed 2 __netif_receive_skb dropping skb proto 0x6aac ip summed 2 ^C --- 10.0.0.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms root@xps-106:~# rmmod sky2 [ 23.137515] sky2 0000:00:00.0: eth0: disabling interface root@xps-106:~# modprobe sky2 copybreak=3D0 sky2: driver version 1.28 sky2 0000:00:00.0: Xen PCI enabling IRQ: 18 xen_map_pirq_gsi: returning irq 18 for gsi 18 sky2 0000:00:00.0: Yukon-2 EC Ultra chip revision 3 xen_map_pirq_gsi: returning irq 55 for gsi 55 sky2 0000:00:00.0: eth0: addr 00:1f:c6:eb:71:43 sky2 0000:00:00.0: eth0: enabling interface ADDRCONF(NETDEV_UP): eth0: link is not ready sky2 0000:00:00.0: eth0: Link is up at 1000 Mbps, full duplex, flow control both ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready root@xps-106:~# ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data. 64 bytes from 10.0.0.1: icmp_req=3D1 ttl=3D64 time=3D4.09 ms 64 bytes from 10.0.0.1: icmp_req=3D2 ttl=3D64 time=3D0.814 ms ^C --- 10.0.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev =3D 0.814/2.456/4.098/1.642 ms >=20 > Experimental is the stock kernel or was that a new proposed kernel? > Where are the sources for the experimental kernel? Kernel 2.6.37 has been installed from Debian experimental repository. Did not have time to compile my own from vanilla sources. Maybe will have some time this week, but not sure. >> DomU config is: >> ***************************************************************** >> kernel =3D '/cluster/kernels/vmlinuz-2.6.37-trunk-686-bigmem' >> ramdisk =3D '/cluster/kernels/initrd.img-2.6.37-trunk-686-bigmem' >> #kernel =3D '/cluster/kernels/vmlinuz-2.6.37-trunk-686-bigmem-sk= y2' >> #ramdisk =3D '/cluster/kernels/initrd.img-2.6.37-trunk-686-bigmem= -sky2' >> builder =3D 'linux' >> memory=3D268 >> vcpus =3D '1' >> cpus =3D '2' >> localtime =3D 0 >> serial =3D 'pty' >> boot =3D 'cdn' >> disk =3D [ 'drbd:xps-106,xvda,w' ] >> on_poweroff =3D 'destroy' >> on_reboot =3D 'restart' >> on_crash =3D 'restart' >> name =3D 'xps-106' >> hostname =3D 'xps-106.clichy.jbfavre.org' >=20 > I had a box with a sky2 adapter that looked to have a similar issue but > found the culprit to be the switch. So at this point I am having no luc= k > reproducing this. Would it be possible for you to stick the kernel + di= st > image somewhere so I can try it out on my box? As requested by you (or Ian, I don't remeber exactly), I've tried booting the server with 32bits 2.6.37 kernel and 32bits Debian Squeeze. Even with mem=3D256 boot param, everything worked fine, so I'm not sure switch can be the culprit. >> extra =3D "root=3D/dev/mapper/xps--106-root ro iommu=3Dsoft swiotlb=3D= force >> console=3Dhvc0 xencons=3Dtty" >=20 > Try without 'swiotlb=3Dforce' on any kernel that is PVOPS. Only the old= er > ones (lenny) required that. And you don't need 'xencons=3Dtty' either w= ith > PVOPS kernels. OK, will try that. Regards, JB