View Single Post
  #6 (permalink)  
Old 02-09-08, 10:32 PM
mewn mewn is offline
N00B
 
Join Date: Aug 2008
Posts: 2
mewn is on a distinguished road
Default

Hi Paul,


In the mean time I did some extra changes :

- updated kernel to latest version : then the module from VIA doesn't work anymore
- I was affected by a bug regarding the use of the second SATA connector ( see Bug 8563 - pata_via: Does not work with 2nd drive attached )

For both reason I then decided to patch the source against 1) the VIA unichrome patch ( unichrome_patch from VIA Linux Portal ) and 2) the SATA patch from the link above.
Now the whole is perfect.


Regarding the use of the VIA unichrome patch, I installed first the binary driver, and then after recompilation was having my own module. But you still need the binary driver for the GL libraries.

I have created .deb of my kernel binary and modules, if it can help someone, I don't mind dumping it somewhere. With this kernel I do raid 1 on SATA to encrypted LVM, 3D and hard accel ( well this is the DRM part of the patch right ? ).

Now for your questions :

a)
uname -r
2.6.24.3-epia6

That's my customer version now, it has been build using source from 2.6.24 shipped with 2.6.24-19

b) you get this error message after upgrading your kernel version. The binary module shipped with the binary driver is build against the first kernel of ubuntu 8.04 LTS, after doing an upgrade it doesn't work anymore.

c) yes you still see it, but you can go past it :

(--) VIA(0): mapping Integrated TV MMIO @ 0xdd00c000 with size 0x100
(II) VIA(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(EE) VIA(0): Couldn't open "/dev/video2"
(II) VIA(0): VIAScreenInit : V4L Disabled : fd2 = -1
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID PCI:1:0:0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) [drm] loaded kernel module for "via" driver.
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) VIA(0): [drm] Using the DRM lock SAREA also for drawables.
(II) VIA(0): [drm] framebuffer handle = 0xa0000000
(II) VIA(0): [drm] added 1 reserved context for kernel
[...]
(II) VIA(0): DPMS enabled
(II) VIA(0): [DRI] installation complete
(II) VIA(0): [dri] kernel data initilized.
(II) VIA(0): [drm] Initialized AGP ring-buffer, size 0x1000000 at AGP offset 0x0.
(II) VIA(0): direct rendering enabled
(II) VIA(0): lpVIAGraphicInfo->dwXServerEnabled is 1


d) no I am using totem shipped with ubuntu ( based on xine ).
I haven't tried VeXP / VeMP but will probably if I can get hold of it

e) not a lab benchmark, but here you go :


DIVX :

gmplayer playing that :

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 640x480 12bpp 25.000 fps 901.1 kbps (110.0 kbyte/s)
Clip info:
Software: VirtualDubMod 1.5.4.1 (build 2178/release)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================== ========================
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
================================================== ========================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12


not fullscreen : 17 to 19% of CPU


It was windowed. My desktop is running at 1680x1050 ( my flat panel is way bigger than the computer.... :-) )

Using Totem : 23 to 25 % of CPU


MPEG :

gmplayer

MPEG-PS file format detected.
VIDEO: MPEG1 640x480 (aspect 1) 29.970 fps 1500.0 kbps (187.5 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
================================================== ========================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
================================================== ========================
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 96.0 kbit/13.61% (ratio: 12000->88200)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
================================================== ========================
AO: [pulse] 44100Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12


cpu usage : 20 to 22 %


totem, same file : 22 to 24 %


f) I am not using the TV-out

g) everything left by default, no configuration made.



Cheers,
mewn
Reply With Quote