
Code: Select all
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CFLAGS="${CFLAGS} -march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param
l2-cache-size=512 -mtune=amdfam10"
Code: Select all
Portage 2.1.13.1 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.17, 3.10.0-gentoo x86_64)
=================================================================
System uname: Linux-3.10.0-gentoo-x86_64-AMD_E2-1800_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem: 3627048 total, 502876 free
KiB Swap: 9047036 total, 9047036 free
Timestamp of tree: Sat, 10 Aug 2013 19:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/ccache: 3.1.9
dev-util/cmake: 2.8.11.1
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache distcc distlocks ebuild-locks fail-clean fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j20 -l2.6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/local/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://hazel/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups cxx dbus declarative dga djvu dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fortran ftp gd gdbm geoip gif gimp gmp gnutls gphoto2 gpm graphviz gtk handbook hddtemp iconv imagemagick imap inotify java javascript jit jpeg kde kipi lame latex lcms ldap libkms libnotify lm_sensors lzma lzo mad maildir matroska mbox mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer mtp mudflap multilib musicbrainz mysql ncurses nls nptl ocamlopt offensive ofx ogg opengl openmp pam pango pcre pda pdf perl phonon php plasma png policykit posix postscript ppds qt3support qt4 quicktime radius raw readline rss samba scanner sdl session sharedmem smp snmp sockets socks5 sound spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg syslog tcpd theora threads tidy tiff tk tokenizer truetype udev udisks unicode upnp upnp-av upower usb v4l vcd vhosts vnc vorbis wifi wmf wxwidgets x264 xa xcb xcomposite xft xine xinerama xml xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64 multiboot" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Code: Select all
processor : 0
vendor_id : AuthenticAMD
cpu family : 20
model : 2
model name : AMD E2-1800 APU with Radeon(tm) HD Graphics
stepping : 0
microcode : 0x500010d
cpu MHz : 850.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips : 3393.76
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
processor : 1
vendor_id : AuthenticAMD
cpu family : 20
model : 2
model name : AMD E2-1800 APU with Radeon(tm) HD Graphics
stepping : 0
microcode : 0x500010d
cpu MHz : 850.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips : 3393.76
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
Code: Select all
cpu MHz : 850.000
That user is either severely misinformed or a liar. VDPAU works fine on Radeon GPUs.Havin_it wrote:@dE_logics: Could you elaborate on that somewhat polemical statement? I thought AMD were quite good on Linux generally (though I realise the ATI baggage may differ here). I will look into the VAAPI thing though, thanks for suggesting that (I never know what these things are when choosing USE flags etc...)
It certainly seems to - I made the required changes and mplayer does seem a little more responsive, with the machine sweating a bit less to I think (no empirical study undertaken so could be placebo effect...).Ant P. wrote:That user is either severely misinformed or a liar. VDPAU works fine on Radeon GPUs.Havin_it wrote:@dE_logics: Could you elaborate on that somewhat polemical statement? I thought AMD were quite good on Linux generally (though I realise the ATI baggage may differ here). I will look into the VAAPI thing though, thanks for suggesting that (I never know what these things are when choosing USE flags etc...)
Code: Select all
Forced video codec: ffmpeg12vdpau
Forced video codec: ffwmv3vdpau
Forced video codec: ffvc1vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.92.100 (external)
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 64.0 kbit/4.53% (ratio: 7999->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO_ALSA] Playback open error: Device or resource busy
[AO SDL] Samplerate: 22050Hz Channels: Stereo Format floatle
[AO SDL] Unsupported audio format: 0x1d.
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 22050Hz 2ch floatle (4 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x480 => 640x480 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.Already upgraded mesa and enabled vdpau: that's what I was intending to show by the post above. I have added "export VDPAU_DRIVER=r600" in my .bashrc, but not the other line as I haven't enabled vaapi yet, which is what that line's for according to the wiki. Refer again to the questions I actually ask in my post above. Particularly, given the weird output dE_logics flagged above, should I actually be disabling xvmc flag?crshbndct wrote:Try installing Mesa 9.2 and enabling the vdpau USE flag, and if you are compiling firefox, enable the gstreamer flag for it.
This will give you hardware acceleration for flash and other media. (Select vdpau in the player of your choice, I find smplayer is best.)
Check to see what your GPU speed is running at, and for the DPM stuff to be enabled, you need to pass radeon.dpm=1 to the kernel at boot. There is a good chance that your GPU is running at whatever its lowest speed is, so the DPM stuff should make a difference, but you can test it by manually turning the power level to high and seeing if that speeds things up, if it does then 3.11 is your fix. (It was released like 2 hours ago, so it should be available very shortly) I would suggest playing with the setting manually anyway, (as a way to test the difference in performance) before enabling it permanently in your kernel.
If you need better 3d performance, (which it doesn't sound like you do from your description, but its worth a try) set R600_DEBUG=sb in your environment, it should speed things up a little.
You need to set some other things in your environment to get vdpau working perfectly:
VDPAU_DRIVER=r600
LIBVA_DRIVER_NAME=vdpau
Code: Select all
watch -n0.5 grep MHz /proc/cpuinfoHmm, can't say why I did that -- just a weird brainfart on my part I guess. The somewhat cryptic passage above does little to explain what's wrong with doing this, but I'm sure there is no reason for it (I know I'm getting unstable packages fine currently) so I'll take the stable keyword out. This hasn't changed since install-time, FWIW.aim nano wrote:i thought amd64 and ~amd64 clashed:
http://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
"One should not specify the stable keyword (amd64) when adding the testing keyword (~amd64) because ACCEPT_KEYWORDS is an incremental variable."
-just curious
I had heard something to this effect, and it's probably worth a look. So far I've made some edits to /etc/adobe/mms.cfg to force accelerated video decoding (in original config it only accelerates display) and Youtube's "data for nerds" panel shows me this has worked, however videos on some other sites have caused the plugin to crash every time.aim nano wrote:also, are you using the 64bit flash? i was, then downgraded to 32 with nspluginwrapper and my flash performance improved, there was a bug in hw accel for 64 bit (not sure if it's applicable in your situation)
It's working, those weird messages are just a cosmetic issue; the important word is "accelerated". If you run it via `time mplayer` and then `time mplayer -vo xv` (the default) you should notice a large difference in CPU time. It'll be more noticeable with 720p or larger videos.Havin_it wrote:I notice that when I play an mp4 video, mplayer says:We can see there that the vdpau-enabled codec is being used, but what's this about XVMC towards the end? I have that flag enabled too, but should I?Code: Select all
Forced video codec: ffmpeg12vdpau Forced video codec: ffwmv3vdpau Forced video codec: ffvc1vdpau Forced video codec: ffh264vdpau Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.92.100 (external) Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU)) ========================================================================== ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 22050 Hz, 2 ch, floatle, 64.0 kbit/4.53% (ratio: 7999->176400) Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio)) ========================================================================== [AO_ALSA] Playback open error: Device or resource busy [AO SDL] Samplerate: 22050Hz Channels: Stereo Format floatle [AO SDL] Unsupported audio format: 0x1d. [AO SDL] Unable to open audio: No available audio device DVB card number must be between 1 and 4 AO: [null] 22050Hz 2ch floatle (4 bytes per sample) Starting playback... [VD_FFMPEG] Trying pixfmt=0. [VD_FFMPEG] XVMC-accelerated MPEG-2. Movie-Aspect is undefined - no prescaling applied. VO: [vdpau] 640x480 => 640x480 H.264 VDPAU acceleration [VD_FFMPEG] XVMC-accelerated MPEG-2. [VD_FFMPEG] Trying pixfmt=0. [VD_FFMPEG] XVMC-accelerated MPEG-2.
You can safely leave it enabled if you want, but in this case it's just another layer of bloat.Also, from what I've been reading, VAAPI is something I could also use on top of VDPAU, but is there any point in doing that? Is it just a question of which apps use which API? For example I see that ffmpeg has both flags, but mplayer has only vdpau and vlc (which I also have installed purely for a Phonon backend, I don't use it on its own) only has vaapi. Is there any point in enabling vaapi just for phonon purposes (which I don't think involves video)? Could that have any effect on the audio issues I'm having (this can be seen in the mplayer output above; currently stuck in a half-second loop of the login music)?
Unless it's an RT3290 or RT5390, you might be OK. I found this patch that went into the kernel between 3.10 and 3.11 which might be responsible, and this proposed patch that sounded like it might address the issue. However, after applying it, I'm now also getting panicsAnt P. wrote:The rt2800 issue sounds a bit worrying; I'm using one of those and they're usually fine...
Odd thing is, R600_DEBUG="sb" is already in my environment (not put there by me, AFAICR). Maybe this or some other flag causes this to be set? I'm not too clear on how they relate to each other (never understood this 3d juju too well, as various laptops will attest).Ant P. wrote:I don't think I've ever successfully gotten that LLVM thing to compile. You can get similar benefits by putting R600_DEBUG="sb" in an env.d file, but I've no idea if their effects stack or not (though it'd be nice...)