From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: igb pciback and e1000e pciback not work. Date: Mon, 6 Sep 2010 12:11:20 +0300 Message-ID: <20100906091120.GZ2804@reaktio.net> References: <20100905104733.GE2804@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: ?????? Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Sep 06, 2010 at 12:58:48PM +0800, ?????? wrote: > Thank you for your advise. > I update the kernel and xen to the newest version. Now both Dom0 and > DomU's kernels are 2.6.32.21-xen Ok. > still the e1000e driver in DomU complains about the "Detected Tx Uni= t > Hang", but there is no kernel oops.=C3=82 > It seems the new kernel has fixed a bug about pciback. > Maybe I should change the=C3=82 /etc/xen/xend-pci-permissive.sxp and > /etc/xen/xend-pci-quirks.sxp file ,because I found this in Dom0 dmes= g: > [ =C3=82 385.007473] pciback 0000:09:00.1: Driver tried to write to = a read-only > configuration space field at offset 0xe8, size 2. This may be harmle= ss, > but if you have problems with your device: > [ =C3=82 385.007475] 1) see permissive attribute in sysfs > [ =C3=82 385.007475] 2) report problems to the xen-devel mailing lis= t along > with details of your device obtained from lspci. > note: 09:00.0 is the pci interface I move to DomU . > But I don't know how to change this. > I remove the e1000e driver in Dom0 , still it can't fix the problem. > You shouldn't use the device (at all) in dom0 when you're passing it thru to domU! Some questions: - Is that a multiport nic? - Are you using another nic port in dom0? - Do you have the "iommu=3Dsoft swiotlb=3Dforce" options for the domU ker= nel?=20 - How much memory does your domU have?=20 -- Pasi > Anyone knows about that? > thanks. > 2010/9/5 Pasi K=C3=83=E2=82=ACrkk=C3=83=E2=82=ACinen <[1]pasik@iki.f= i> >=20 > On Sun, Sep 05, 2010 at 10:55:35AM +0800, ?????? wrote: > > =C3=82 =C3=82 I'm using Xen 4.01 and jeremy's pvops kernel, the= kernel version > is > > =C3=82 =C3=82 2.6.32.18. > > =C3=82 =C3=82 At first I want to test the performance of pci pa= ssthrough =C3=83* > when it comes > > =C3=82 =C3=82 to the network card 82571EB > > > > =C3=82 =C3=82 I'm using the Jeremy's kernel 2.6.32.18 as DomU k= ernel too. > > > > =C3=82 =C3=82 And I found if the interface is not connected, I = mean the network > card > > =C3=82 =C3=82 receives no packet, ( the network card doesn't co= nnect to the > switch ), > > =C3=82 =C3=82 it's fine. when I connect it to a switch , I got = a lot of > "Detected Tx > > =C3=82 =C3=82 Unit Hang" in dmesg of the DomU kernel > > =C3=82 =C3=82 and a kernel oops saying: > > > > =C3=82 =C3=82 Pid: 0, comm: swapper Not tained 2.6.32.18-xen #4 > > =C3=82 =C3=82 warn_slowpath_fmt+0x41/0x50 > > > > =C3=82 =C3=82 the ooops image is in the attachment of this post= . > > > > =C3=82 =C3=82 I've checked the mailing list, some one said it's= about the > e1000e driver > > =C3=82 =C3=82 with a wrong > > =C3=82 =C3=82 config of the EEPROM. > > > > =C3=82 =C3=82 So I switch to use the network card 82575EB with = igb driver > > =C3=82 =C3=82 It seems to work well,=C3=83* > > =C3=82 =C3=82 until I find it can't receive any packets in DomU= . > > =C3=82 =C3=82 And I see a lot of packets dropped when I ifconfi= g these > interfaces. > > =C3=82 =C3=82 Anyone knows how to deal with this ? > > >=20 > Hello, >=20 > The latest kernel version in xen/stable-2.6.32.x branch is 2.6.32.= 21. > Dunno if it has any fixes that are relevant to you. >=20 > Anyway, did you read: > [2]http://wiki.xensource.com/xenwiki/XenPCIpassthrough >=20 > -- Pasi >=20 > _______________________________________________ > Xen-devel mailing list > [3]Xen-devel@lists.xensource.com > [4]http://lists.xensource.com/xen-devel >=20 > -- > hepeng > ICT >=20 > References >=20 > Visible links > 1. mailto:pasik@iki.fi > 2. http://wiki.xensource.com/xenwiki/XenPCIpassthrough > 3. mailto:Xen-devel@lists.xensource.com > 4. http://lists.xensource.com/xen-devel