xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jean Baptiste Favre <xen-devel@jbfavre.org>
To: xen-devel@lists.xensource.com
Subject: Re: PCI passthrough issue
Date: Tue, 01 Feb 2011 16:14:23 +0100	[thread overview]
Message-ID: <4D48234F.2020907@jbfavre.org> (raw)
In-Reply-To: <1296569931.13091.194.camel@zakaz.uk.xensource.com>

Le 01/02/2011 15:18, Ian Campbell a écrit :
> On Tue, 2011-02-01 at 14:12 +0000, Jean Baptiste Favre wrote:
>
> > Le 01/02/2011 14:20, Ian Campbell a écrit :
>
> >>>> If you restrict dom0 to >256MB but <512MB (using dom0_mem= on
> >> hypervisor
> >>>> command line) does the NIC work correctly in non-passedthrough form?
> >>> My Xen hypervisor commandline is as follow:
> >>> placeholder dom0_mem=256M dom0_max_vcpus=1 dom0_vcpus_pin loglvl=all
> >>> guest_loglvl=all com1=115200,8n1 console=com1
> >>>
> >>> Everything works great without passthrough, but my dom0 is 64bits
> which
> >>> may explain that (I do have this strange behaviour only with 32bits
> >>> kernels).
> >>
> >> I don't suppose you could try installing a 32 bit OS in dom0? (e.g.
> as a
> >> skanky hack you might fit something into your existing swap
> >> partition ;-))
> > I could try, but that would means breaking my test platform. Let's say I
> > prefer complete other tests before :)
>
> Sure, no problem.
>
> >>> I did not tried changing dom0_mem param.
> >>>
> >>>> Similarly does the kernel running native with mem= cause the failure?
> >>> Not sure I understand what you mean here.
> >>
> >> I meant to run the system as a native (non-Xen) system and use the
> >> kernels mem= command line parameter to restrict the system to the
> >> problematic amounts of memory. Really just trying to verify if
> something
> >> is up specifically due to Xen or not. Probably needs a 32 bit
> >> user/kernel to be a useful experiment.
> > Ah ok. But then, running 32bits kernel with 64 bits OS will work ? (I
> > didn't know 64bits kernel worked with 32bits OS before Konrad told me)
>
> 32 user on 64 kernel works, 64 user on 32 kernel does not so this will
> tie in with the 32 bit test above too.
>
> >> What do "ifconfig" or "ethtool -S" show for the device after some
> >> failures. Do any of the numbers increment inline with the dropped
> >> frames?
> >>
> >> Perhaps interestingly 85 bytes, plus the ICMP, IP and Ethernet header
> >> sizes is something around 128 bytes (depending on options etc). This is
> >> pure numerology but I notice that sky2 has a copybreak parameter
> >> ("Receive copy threshold") which defaults to 128. I think it would be
> >> worth trying 64 and 256.
> > That's exactly the problem I faced with 256mb memory for my domU.
> > Outgoing packets reached my gateway (tcpdump saw them on it, as well as
> > replies) but incoming packets greater than 128bits were blocked
> > somewhere between Xen hypervisor and domU user space (where I was
> > listening traffic with tcpdump).
> >
> > I didn't notice the copybreak from sky2. Where can I change it ? It
> > could be exactly what we're looking for from the beginning, couldn't
> it ?
> > How can I change it ?
>
> Assuming the driver is modular:
>         "modprobe sky2 copybreak=<N>"
>
> Depending on your distro there will be somewhere in /etc you can add
> this. e.g. on Debian you can create a file in /etc/modprobe.d/
> containing "option sky copybreak=<N>" other distros
> use /etc/modprobe.conf etc.
OK I see but it doesn't seems to have any effect.
I tried "option sky copybreak=0" to get all packet copied with no change.

But I have to say that I'm a bit confused: as I run a PV domU, kernel
and initrd are provided by dom0.
So basically, I had no module related binaries installed. After
installation, I tried to remove module and reload it with different
configuration without changes.
Is there any way to provide this sort of option in kernel commandline so
that it 'll be taken into account even in initrd ?

> >> Are you able to see any traffic with tcpdump, either in guest and/or
> >> from another host (may require switch configuration to allow it to see
> >> the traffic). e.g. do you see the ICMP Echo Request but not the Echo
> >> Response or do you see nothing at all etc.
> > tcpdump tests have been done from my gateway and from domU.
> > On the GW: can see all incoming packets (whatever could be the size) and
> > send all replies.
> > On the DomU: can see all outgoing packets but only incoming ones shorter
> > than 128bytes (global size, means "ping -s85" and less)
>
> OK, so it is the sky2 receive path which is at fault, that's very useful
> info. It corresponds with the copybreak theory too.
And that makes me happy, because I began to desperate :)

JB

  reply	other threads:[~2011-02-01 15:14 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 15:38 PCI passthrough issue Jean Baptiste Favre
2011-01-12 15:43 ` Konrad Rzeszutek Wilk
2011-01-12 15:53   ` Jean Baptiste Favre
2011-01-12 16:09     ` Jean Baptiste Favre
2011-01-12 16:36     ` Konrad Rzeszutek Wilk
2011-01-12 16:56       ` Jean Baptiste Favre
2011-01-12 17:26         ` Konrad Rzeszutek Wilk
2011-01-12 17:44           ` Jean Baptiste Favre
2011-01-12 18:32             ` Konrad Rzeszutek Wilk
2011-01-12 20:07               ` Jean Baptiste Favre
2011-01-12 21:40                 ` Konrad Rzeszutek Wilk
2011-01-12 21:46                   ` Jean Baptiste Favre
2011-01-12 22:18                     ` Jean Baptiste Favre
2011-01-13 11:28                       ` Jean Baptiste Favre
2011-01-13 19:18                         ` Jean Baptiste Favre
2011-01-13 20:19                           ` Konrad Rzeszutek Wilk
2011-01-13 20:44                             ` Jean Baptiste Favre
2011-01-14 14:53                               ` Konrad Rzeszutek Wilk
2011-01-14 23:29                                 ` Jean Baptiste Favre
2011-01-17  8:59                                   ` Jean Baptiste Favre
2011-01-17 13:58                                     ` Jean Baptiste Favre
2011-01-22 10:22                                       ` Jean Baptiste Favre
2011-01-27 20:27                                         ` Konrad Rzeszutek Wilk
2011-01-27 21:47                                           ` Jean Baptiste Favre
2011-01-28 15:47                                             ` Jean Baptiste Favre
2011-02-01 11:34                                               ` Ian Campbell
2011-02-01 12:17                                                 ` Jean Baptiste Favre
2011-02-01 13:20                                                   ` Ian Campbell
2011-02-01 14:12                                                     ` Jean Baptiste Favre
2011-02-01 14:18                                                       ` Ian Campbell
2011-02-01 15:14                                                         ` Jean Baptiste Favre [this message]
2011-02-01 15:38                                                           ` Jean Baptiste Favre
2011-02-01 16:23                                                             ` Ian Campbell
2011-02-01 19:37                                                               ` Konrad Rzeszutek Wilk
2011-02-01 22:06                                                                 ` Jean Baptiste Favre
2011-02-02  9:12                                                                   ` Ian Campbell
2011-02-01 23:01                                                                 ` Jean Baptiste Favre
2011-02-02  9:44                                                                   ` Ian Campbell
2011-02-02 15:38                                                                     ` Konrad Rzeszutek Wilk
2011-02-02 15:55                                                                       ` Ian Campbell
2011-02-02 15:56                                                                       ` Jean Baptiste Favre
2011-02-01 22:04                                                               ` Jean Baptiste Favre
2011-02-02  9:27                                                                 ` Ian Campbell
2011-02-02 10:24                                                                   ` Jean Baptiste Favre
2011-02-02 10:59                                                                     ` Ian Campbell
2011-02-02 11:33                                                                       ` Jean Baptiste Favre
2011-02-02 17:42                                                                     ` Konrad Rzeszutek Wilk
2011-02-04  8:43                                                                       ` Jean Baptiste Favre
2011-02-04  8:53                                                                         ` Ian Campbell
2011-02-04  8:54                                                                           ` Jean Baptiste Favre
2011-02-04 10:12                                                                             ` Jean Baptiste Favre
2011-02-04 11:04                                                                               ` Ian Campbell
2011-02-04 11:25                                                                                 ` Jean Baptiste Favre
2011-02-04 11:28                                                                                   ` Ian Campbell
2011-02-04 13:15                                                                                     ` Jean Baptiste Favre
2011-02-04 13:50                                                                                       ` Ian Campbell
2011-02-04 14:01                                                                                         ` Jean Baptiste Favre
2011-02-09  9:59                                                                                           ` Jean Baptiste Favre
2011-02-18 21:14                                                                                             ` Jean Baptiste Favre
2011-02-25 14:40                                                                                               ` Konrad Rzeszutek Wilk
2011-02-28 10:00                                                                                                 ` Jean Baptiste Favre
2011-02-28 12:18                                                                                                 ` Jean Baptiste Favre
2011-02-28 15:01                                                                                                   ` Konrad Rzeszutek Wilk
2011-02-28 15:17                                                                                                     ` Jean Baptiste Favre
     [not found]                                                                                                       ` <4D6CB851.40103@jbfavre.org>
2011-03-03 22:12                                                                                                         ` Konrad Rzeszutek Wilk
2011-03-03 22:47                                                                                                           ` Jean Baptiste Favre
2011-03-03 22:58                                                                                                             ` Konrad Rzeszutek Wilk
2011-03-04  7:25                                                                                                               ` Jean Baptiste Favre
2011-03-16  3:14                                                                                                                 ` Konrad Rzeszutek Wilk
2011-03-25 13:06                                                                                                                   ` Jean Baptiste Favre
2011-02-01 15:38                                                           ` Ian Campbell
2011-02-01 16:16                                                             ` Jean Baptiste Favre
2011-01-12 21:44                 ` Jean Baptiste Favre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D48234F.2020907@jbfavre.org \
    --to=xen-devel@jbfavre.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).