|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] PCI passthrough issue
Le 01/02/2011 17:23, Ian Campbell a écrit :
> On Tue, 2011-02-01 at 15:38 +0000, Jean Baptiste Favre wrote:
>> OK, just found it:
>> after domU boot:
>> - log in
>> - ping -s 86 10.0.0.1 (fails)
>> - rmmod sky2
>> - modprobe sky2 copybreak=0 (no packet copied)
>> - ping -s 86 10.0.0.1 (works)
>>
>> So it's clearly related to that option.
>
> Awesome!
>
>> Now the question: what am I supposed to do ?
>
> I think the next step is to try and reproduce on native 32 bit, with RAM
> artificially limited via the mem= kernel command in option, this will
> let us determine if this is a generic issue or is somehow Xen specific.
OK, so I'll install a 32bits Debian Squeeze with 2.6.37 32bits kernel to
check it.
> The main difference caused by the copybreak option is that for larger
> frames (i.e. always when copybreak==0) it hits a code path which uses
> pci_map_single and pci_map_page to access the received data. When len <
> copybreak it takes a path which uses pci_dma_sync_single_for_cpu, so it
> seems like the later path is broken somehow. If the issue does turn out
> to be related to Xen then I think that points to the swiotlb code.
>
> I assume you are not seeing "rx mapping error" in your domU dmesg? Did
> you post a full guest console log at some point? Comparing the logs for
> the 256MB, 398MB and 512MB guest RAM case might be useful.
No sure I've ever posted that logs. But I can redo my tests :)
> Konrad, is there some way to force swiotlb use even for native to make
> the native test cases more relevant? Or is there some other direction we
> should try first?
>
>> It seems that adding this options in /etc/modprobe.d/sky2.conf does not
>> work, neither using /etc/modules
>
> That will be a userspace issue in your distro, perhaps with openwrt they
> are not expected to work that way.
All tests were done with Debian. As the module is included in initramfs
and not on domU, since I've no kernel installed in the domU, module is
loaded before system FS, so /etc/modprobe.d/sky2.conf is not taken into
account.
I think that the best solution here is to compile kernel with static
sky2 driver inclusion and use kernel commandline to pass sky2 copybreak
option.
Regards,
JB
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] PCI passthrough issue, (continued)
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
- Re: [Xen-devel] PCI passthrough issue, Konrad Rzeszutek Wilk
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue,
Jean Baptiste Favre <=
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Konrad Rzeszutek Wilk
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Jean Baptiste Favre
- Re: [Xen-devel] PCI passthrough issue, Ian Campbell
|
|
|
|
|