Fails to set MTRR for 2D acceleration

Bug #564378 reported by aeromojito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-video-neomagic (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-neomagic

Playing DVD or other video results in dropped frames and high CPU usage on a Neomagic NM2380 chip (MagicMedia 256XL+). The problem is evident in VLC and Totem. This was not the case in Hardy. The difference has been traced to the absence of the MTRR setting for video acceleration. This bug also exists in Jaunty and Karmic but I have not tested Intrepid.

In Lucid (10.04):
cat /proc/mtrr
reg00: base=0x000000000 ( 0MB), size= 256MB, count=1: write-back
reg01: base=0x010000000 ( 256MB), size= 128MB, count=1: write-back

In Hardy (8.04):
cat /proc/mtrr
reg00: base=0x000000000 ( 0MB), size= 256MB, count=1: write-back
reg01: base=0x010000000 ( 256MB), size= 128MB, count=1: write-back
reg02: base=0x0fc000000 ( 4032MB), size= 8MB, count=1: write-combining

Entering the command
echo "base=0xfc000000 size=0x800000 type=write-combining" > /proc/mtrr
in a terminal will set the MTRR but it will be reset at boot or when the X-server is restarted.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100406.1)
Package: xserver-xorg-video-neomagic 1:1.2.4-2
PackageArchitecture: i386
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Tags: lucid
Uname: Linux 2.6.32-19-generic i686
UnreportableReason: This is not a genuine Ubuntu package
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Bryce Harrington (bryce)
tags: added: lucid
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi aeromojito,

Please run the command 'apport-collect BUGNUMBER', which will attach several files we need for debugging.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in xserver-xorg-video-neomagic (Ubuntu):
status: New → Incomplete
Revision history for this message
aeromojito (aeromojito) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
aeromojito (aeromojito) wrote :

Here is my Xorg.log

Revision history for this message
aeromojito (aeromojito) wrote :
Revision history for this message
aeromojito (aeromojito) wrote :

Looks like I'm the only one with this problem so far. I'd be happy if someone could tell me where to add a script to make the needed mtrr entries permanent on my system.

Bryce Harrington (bryce)
tags: removed: needs-xorglog
tags: removed: needs-lspci-vvnn
Changed in xserver-xorg-video-neomagic (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
aeromojito (aeromojito) wrote :

In addition to the MTRR range not set, there is no "OverlayMem" specified by xorg.conf. This causes the multimedia player to close unexpectedly when attempting to play a video file.

It also seems impossible to display a video larger than DVD resolution regardless of the "OverlayMem" specified. The window must be downsized to prevent a garbled display on a 960 x 540 video.

The CPU usage by the X server is still too high (15-20%) during video play, even with the MTRR ranges set as above. By comparison, playing a DVD video uses 70-90% CPU in Ubuntu, while the same video in Windows 2000 uses 40-60% utilizing DirectX.

Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
Jasmine Hassan (jasmine-aura) wrote :

aeromojito,

sorry if this is a bit late, but, could you try setting:
Option "OverlayMem" "1000000"
or if you want more than full dvd resolution (720x576) maybe a bit higher OverlayMem, provided you are able (and willing) to go with modest resolution and/or depth, to make more video ram available

and also set your DefaultDepth to 16, or even try 8 ?
I believe the X desktop will display in whatever depth you choose, but the video - as it is in an overlay that is managed directly by the video chip - will be in true color. You could even play with mplayer from console (no X needed) !
see: http://forum.thinkpads.com/viewtopic.php?p=31808#p31808

So, reducing Resolution (1024x768 or 800x600 ) and/or depth may help, mplayer (or gmplayer if you shall) may also be preferable over vlc / totem in terms of CPU overhead!

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

​​​​this driver has been removed from Ubuntu, closing the bugs

Changed in xserver-xorg-video-neomagic (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.