Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread Brynet
On Sat, Mar 26, 2011 at 03:15:13PM -0400, Scott McEachern wrote:
> Hi Bryan,
> 
> I tried the new driver you suggested and with light testing it works
> quite well.
> 
> For "standard" apps (firefox, thunderbird, amarok), and mplayer with
> regular def and HD it's just fine.  mplayer with 1080p is slow, but
> since I only have a handful of vids at that resolution, I'm not too
> concerned.
> 
> In other words, it's good enough and I'm far better off than I was
> yesterday, so thank-you very much for your suggestion! :D  Later, I
> might give 6.14.1 a shot just for giggles.
>

Cool beans, HD video uses CPU to decode, no GPU offloading on OpenBSD.

Yeah, it seems there is still some work that needs to go into the kernel and 
Xorg/Mesa for 3D graphics and modesetting on newer cards.

The Mobility/Radeon HD 4xxx are latest cards the kernel radeondrm driver can 
support at the moment, at least for 2D/Xv.

Radeon HD 5000+ are different beasts and only support KMS, some "Mobility" 
cards may be rebranded/modified 4xxx chips though and might work with patches.

-Bryan.



Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread Brynet
On Sat, Mar 26, 2011 at 05:52:14PM +, iproudlyeat...@gmail.com wrote:
> > So far, 6.14.0 works.. 6.14.1 does not (X server segfaults).
> 
> If you are using the power management features (clock gating &
> friends), did you notice any improvement on battery life and/or
> temperature?

DynamicPM seems to make suspend/resume break on my system, ClockGating works so 
far.

Just a heads up,
-Bryan.



Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread Brynet
On Sat, Mar 26, 2011 at 05:52:14PM +, iproudlyeat...@gmail.com wrote:
> > So far, 6.14.0 works.. 6.14.1 does not (X server segfaults).
> 
> If you are using the power management features (clock gating &
> friends), did you notice any improvement on battery life and/or
> temperature?

I don't currently have them enabled, nor have I done any testing to see if it 
effects battery life much. I have a patch to do CPU frequency scaling on my AMD 
and that seems to help, as does using the Fn keys to reduce the brightness.

My primary goal was tolerate video playback, and that seems to work well.

-Bryan.



Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread Scott McEachern

On 03/26/11 12:11, Brynet wrote:

Hi Scott,

I have a Mobility Radeon HD 4200, indeed, xf86-video-ati in base lacks 2D/3D&
XVideo acceleration.

Compiling a newer version of the radeon DDX driver "works for me", trying the
obsolete "radeonhd" driver is also an option (..I found it unstable).

So far, 6.14.0 works.. 6.14.1 does not (X server segfaults).



Hi Bryan,

I tried the new driver you suggested and with light testing it works 
quite well.


For "standard" apps (firefox, thunderbird, amarok), and mplayer with 
regular def and HD it's just fine.  mplayer with 1080p is slow, but 
since I only have a handful of vids at that resolution, I'm not too 
concerned.


In other words, it's good enough and I'm far better off than I was 
yesterday, so thank-you very much for your suggestion! :D  Later, I 
might give 6.14.1 a shot just for giggles.




Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread iproudlyeat...@gmail.com
> So far, 6.14.0 works.. 6.14.1 does not (X server segfaults).

If you are using the power management features (clock gating &
friends), did you notice any improvement on battery life and/or
temperature?



Re: mplayer video sluggish with Radeon HD 4200

2011-03-26 Thread Brynet
Hi Scott,

I have a Mobility Radeon HD 4200, indeed, xf86-video-ati in base lacks 2D/3D & 
XVideo acceleration.

Compiling a newer version of the radeon DDX driver "works for me", trying the 
obsolete "radeonhd" driver is also an option (..I found it unstable).

So far, 6.14.0 works.. 6.14.1 does not (X server segfaults).

$ ftp http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.14.0.tar.gz
$ tar xvzf xf86-video-ati-6.14.0.tar.gz; cd xf86-video-ati-6.14.0/
$ ./configure --prefix=/usr/X11R6 --sysconfdir=/etc --mandir=/usr/X11R6/man \
--with-xorg-module-dir=/usr/X11R6/lib/modules
$ make; sudo make install

This will trash the installed driver though, so, be prepared if it breaks.

Hopefully the base driver will get updated soon.

-Bryan.



Re: mplayer video sluggish with Radeon HD 4200

2011-03-25 Thread Scott McEachern

On 03/25/11 19:47, Scott McEachern wrote:


dmesg:

OpenBSD 4.9-current (BLACKSTAFF.MP) #1: Wed Mar 23 23:22:50 EDT 2011

sc...@blackstaff.blackstaff.ca:/usr/src/sys/arch/i386/compile/BLACKSTAFF.MP


Sorry, I posted the dmesg for a system with POOL_DEBUG disabled.  There 
is no dmesg difference between it and GENERIC.MP, but the diff is below 
anyway.  The problem remains the same.  This is using -current from 
anoncvs as of about two hours ago.


I also forgot to mention I've tried playback with "-framedrop" and yes, 
the video is in sync with the audio, but looks like crap with a bunch of 
frames missing.  Go figure. :)


- Scott


dmesg diff from previous message:  (the iic0 values change on every boot 
anyway)


< OpenBSD 4.9-current (BLACKSTAFF.MP) #1: Wed Mar 23 23:22:50 EDT 2011
< 
sc...@blackstaff.blackstaff.ca:/usr/src/sys/arch/i386/compile/BLACKSTAFF.MP

---
> OpenBSD 4.9-current (GENERIC.MP) #0: Fri Mar 25 20:56:58 EDT 2011
> 
sc...@blackstaff.blackstaff.ca:/usr/src/sys/arch/i386/compile/GENERIC.MP

89c89
< iic0: addr 0x20 01=19 02=24 03=2e 04=00 05=00 06=00 07=00 08=00 09=00 
0a=10 0b=10 0c=10 0d=10 0e=16 0f=88 10=3d 11=00 12=00 13=00 14=0a 15=0a 
16=2c 17=a0 18=e0 1a=ae 1b=a4 1c=b3 1d=00 1e=0c 1f=01 20=09 21=09 22=09 
23=09 24=bb 3e=03 words 00=ff19 01=1924 02=242e 03=2e00 04= 05= 
06= 07=

---
> iic0: addr 0x20 01=19 02=24 03=2e 04=00 05=00 06=00 07=00 08=00 09=00 
0a=10 0b=10 0c=10 0d=10 0e=16 0f=88 10=3d 11=00 12=00 13=00 14=0a 15=0a 
16=2b 17=a0 18=e0 1a=ae 1b=a4 1c=b3 1d=00 1e=0c 1f=01 20=09 21=09 22=09 
23=09 24=bb 3e=03 words 00=ff19 01=1924 02=242e 03=2e00 04= 05= 
06= 07=




mplayer video sluggish with Radeon HD 4200

2011-03-25 Thread Scott McEachern

 Hi,

I'm having an issue where video playback in mplayer is sluggish in 
full-screen mode with Radeon HD 4200 onboard video.  This applies only 
to -current, with either i386 or amd64.  In 4.8-stable (amd64 or i386), 
Mplayer is perfectly fine in either normal or full-screen mode on the 
same hardware.  x.org.conf, dmesg, xdpyinfo and xvinfo files are below.


Mplayer is the same version between 4.8 and -current, but the X.Org 
version goes from 1.8.2 to 1.9.3.  Googling for "mplayer + x.org 1.9.3 + 
radeon hd 4200" doesn't yield anything useful, and the archives only 
offer tedu@'s post about using "gl" instead of "x11" for Intel chipsets.


I've tried all "vo=" modes available, including "x11", "xv", "gl" and 
"gl2".  x11 works "best", but video playback appears to be somewhat less 
than 1.00 speed.  All frames appear correctly without any distortion, 
just slower than normal, as if the frame rate was lowered.  Audio is 
fine but out of sync, of course.


Has anyone else experienced similar problems / found solutions?  I can't 
find any setting in the man page that corrects this behaviour, but it's 
worth noting that for full-screen to work, the "zoom=1" setting has to 
be enabled, even for -stable.


I'm out of gas on this.

- Scott


xvinfo for both -current and 4.8-stable only gives:

$ cat xvinfo.output
X-Video Extension version 2.2
screen #0
 no adaptors present


xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/OTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load  "dbe"
Load  "dri"
Load  "dri2"
Load  "extmod"
Load  "glx"
Load  "record"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "wsmouse"
Option  "Device" "/dev/wsmouse"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#DisplaySize  450   280 # mm
Identifier   "Monitor0"
VendorName   "HWP"
ModelName"HP f2105"
HorizSync30.0 - 94.0
VertRefresh  48.0 - 85.0
Option  "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
#Option "NoAccel"   # []
#Option "SWcursor"  # []
#Option "Dac6Bit"   # []
#Option "Dac8Bit"   # []
#Option "BusType"   # []
#Option "CPPIOMode" # []
#Option "CPusecTimeout" # 
#Option "AGPMode"   # 
#Option "AGPFastWrite"  # []
#Option "AGPSize"   # 
#Option "GARTSize"  # 
#Option "RingSize"  # 
#Option "BufferSize"# 
#Option "EnableDepthMoves"  # []
#Option "EnablePageFlip"# []
#Option "NoBackBuffer"  # []
#Option "DMAForXv"  # []
#Option "FBTexPercent"  # 
#Option "DepthBits" # 
#Option "PCIAPERSize"   # 
#Option "AccelDFS"  # []
#Option "IgnoreEDID"# []
#Option "DisplayPriority"   # []
#Option "PanelSize" # []
#Option "ForceMinDotClock"  # 
#Option "ColorTiling"   # []
#Option "VideoKey"  # 
#Option "RageTheatreCrystal"# 
#Option "RageTheatreTunerPort"  # 
#Option "RageTheatreCompositePort"  # 
#Option "RageTheatreSVideoPort" # 
#Option "TunerType" # 
#Option "RageTheatreMicrocPath" # 
#Option "RageTheatreMicrocType" # 
#Option "ScalerWidth"   # 
#Option "RenderAccel"   # []
#Option "SubPixelOrder" # []
#Option "ShowCache" # []
#Option "DynamicClocks" # []
#Option