Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180655 - forcedeth on mcp55 shows bad behaviour with Mediatomb uPnP Server and Sony PS3
Summary: forcedeth on mcp55 shows bad behaviour with Mediatomb uPnP Server and Sony PS3
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 17:50 UTC by Ron
Modified: 2007-07-17 12:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info on system 1 (emerge-info-system1,2.86 KB, text/plain)
2007-06-02 17:52 UTC, Ron
Details
emerge --info on system 2 (emerge-info-system2,3.11 KB, text/plain)
2007-06-02 17:53 UTC, Ron
Details
lspci -v from system 1 (lspci-system1,12.65 KB, text/plain)
2007-06-02 17:54 UTC, Ron
Details
lspci -v from system 2 (lspci-system2,14.93 KB, text/plain)
2007-06-02 17:55 UTC, Ron
Details
config-linux-2.6.20-gentoo-r8.intel (kernel-config system 2,44.48 KB, text/plain)
2007-06-21 16:10 UTC, Ron
Details
dmesg from system 2 (dmesg from system 2,22.74 KB, text/plain)
2007-06-21 16:11 UTC, Ron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron 2007-06-02 17:50:36 UTC
When browsing shared media with Sony's Playstation 3 it stops working after watching a dozen or so pictures. The uPnP media server is mediatomb (http://mediatomb.cc).
This only happens with MCP55 based ethernet nics.

Reproducible: Always

Steps to Reproduce:
1. Start Mediatomb on a systems with a MCP55 based ethernet nic
2. Share pictures in Mediatomb
3. Browser picture folders in PS3's XMB


Actual Results:  
After viewing several folders/thumbnails/pictures it stops working. The PS3 shows an access denied message, allthough the Mediaserver is still working.

Expected Results:  
Serving media to the uPnP client.

Tested on Gentoo 2006.1, 2.6.20-gentoo-r8
System 1: Athlon X2, Asus M2N32 SLI Deluxe, nForce NIC
System 2: Core2Duo, Asus P5N32-E SLI, nForce NIC
System 3: Athlon X2, Asus M2N32 SLI Deluxe, Intel 82557/8/9 Ether Pro 100

System 1&3:
Portage 2.1.2.7 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.4-r4, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 02 Jun 2007 09:30:01 +0000

System 2:
Portage 2.1.2.7 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.4-r4, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 01 Jun 2007 10:00:01 +0000
Comment 1 Ron 2007-06-02 17:52:51 UTC
Created attachment 120958 [details]
emerge --info on system 1

added emerge --info from system 1
Comment 2 Ron 2007-06-02 17:53:19 UTC
Created attachment 120960 [details]
emerge --info on system 2

added emerge --info from system 2
Comment 3 Ron 2007-06-02 17:54:58 UTC
Created attachment 120961 [details]
lspci -v from system 1

Added lspci -v from system 1
Comment 4 Ron 2007-06-02 17:55:15 UTC
Created attachment 120963 [details]
lspci -v from system 2

added lspci -v from system 2
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2007-06-16 12:17:18 UTC
I know little about upnp and mediatomb. Mediatomb is installed on the x86 machines? Is the PS3 running gentoo linux/ppc64 or the original OS? I cannot find mediatomb in portage. where did you get it from?
Comment 6 Ron 2007-06-16 13:04:43 UTC
I got Mediatomb from its homepage (www.mediatomb.cc). There is a proposed ebuild at http://bugs.gentoo.org/show_bug.cgi?id=172799
I modified this ebuild to use the newest Mediatomb release 0.9.1 and put this ebuild in my local portage overlay.

Mediatomb runs on my x86 Gentoo boxes.
The Playstation uses its built-in UPnP Client (since PS3 Firmware 1.80). Its using the "Game OS".
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2007-06-16 17:01:52 UTC
ppc64 team cannot do anything about this then (this has nothing to do with PS3 running linux). And mediatomb is not in portage so there is no maintainer for the package (no ebuild, no maintainer), so I advise you to report this issue upstream. I think this is the only possibility to get the bug solved. Go to mediatomb homepage and file a bug.
Comment 8 Ron 2007-06-16 18:18:20 UTC
(In reply to comment #7)
> ppc64 team cannot do anything about this then (this has nothing to do with PS3
> running linux). And mediatomb is not in portage so there is no maintainer for
> the package (no ebuild, no maintainer), so I advise you to report this issue
> upstream. I think this is the only possibility to get the bug solved. Go to
> mediatomb homepage and file a bug.
> 
First I thank you for your support.
I am sorry that this bug was routed wrong withing gentoo bugzilla. I have not assigned this bug to the ppc64 team. It is certainly not an upstream problem regarding mediatomb.
I already did a debug session with mediatomb devs. They think its an issue with kernel/hardware. So this bug should go to kernel devs at gentoo.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2007-06-20 19:27:24 UTC
ok. so let's move this on to kernel guys.
Comment 10 Duane Griffin 2007-06-20 21:58:59 UTC
Firstly, what exactly do you/they think was happening? For example, does the interface start dropping packets or stop working all together? Do you have a link to the discussion with the mediatomb folks?

Next, could you please post the kernel config and dmesg from one of the buggy systems.

Finally, could you try booting with pci=nomsi and/or noapic and see if that makes a difference.
Comment 11 Ron 2007-06-21 12:58:18 UTC
My personal skills in tcp/ip are not good enough to describe the problematic behavoiur. I have got wireshark dumps of working and non working "uPnP-SessionS". File size is problematic, but I could give you text dumps of the header information or I try to cut the data segments.

I got in contact with the mediatomb devs on irc.freenode.net #mediatomb. I mainly talked to jin^eld. I don't have chat logs.

I'll post the kernel config and dmesg output later.
The kernel parameters will also be ckecked later this day. I'll keep you updated.
Comment 12 Ron 2007-06-21 16:10:50 UTC
Created attachment 122705 [details]
config-linux-2.6.20-gentoo-r8.intel
Comment 13 Ron 2007-06-21 16:11:16 UTC
Created attachment 122708 [details]
dmesg from system 2
Comment 14 Ron 2007-06-21 16:50:15 UTC
pci=nomsi and/or noapic as kernel parameters make no difference.
This was tested on System 2, because system 1 currently runs with the working Intel NIC (e100).
Comment 15 Duane Griffin 2007-06-27 16:11:14 UTC
Thanks for that additional info & testing. Could you do an /sbin/ifconfig eth0 before and after the problem starts occurring and post the results, please. That should tell us if the interface is noticing anything wrong. Also, just to confirm, could you check that there isn't anything new in the dmesg after things start going wrong.
Comment 16 Ron 2007-06-30 09:26:25 UTC
chronos ~ # /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1A:92:B2:24:05
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4781 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3315155 (3.1 Mb)  TX bytes:1802587 (1.7 Mb)
          Interrupt:17 Base address:0x8000

chronos ~ # /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1A:92:B2:24:05
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39042 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20832 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40854301 (38.9 Mb)  TX bytes:23022692 (21.9 Mb)
          Interrupt:17 Base address:0x8000

Comment 17 Ron 2007-06-30 09:27:35 UTC
I forgot to mention that there are no changes in the output from dmesg.
Comment 18 Duane Griffin 2007-06-30 12:19:27 UTC
So there are no errors in the logs or reported by the interface. As far as the kernel is concerned everything seems to be working fine. I think we need to understand how the application is failing. Are packets being corrupted or dropped?

After the failure occurs does other networking functionality continue to work? Try creating a large random file, checksumming it, transferring it over the problematic interface, and then checksumming it on the other end:

> dd if=/dev/urandom of=/tmp/rand bs=1024 count=1M
> md5sum /tmp/rand
> scp /tmp/rand <system 1>:/tmp/rand
> ssh <system 1>
> md5sum /tmp/rand

Do the checksums match?
Comment 19 Daniel Drake (RETIRED) gentoo-dev 2007-07-17 12:32:40 UTC
Please reopen when you respond to comment #18. I'm also of the opinion that we do not have enough information to pinpoint this as kernel bug here...