Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vdpau broken when cpufreq scaled to lowest frequency
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sat Apr 17, 2010 5:07 pm    Post subject: vdpau broken when cpufreq scaled to lowest frequency Reply with quote

Code:
# cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 15
model      : 107
model name   : AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
stepping   : 2
cpu MHz      : 1800.000
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 2
apicid      : 0
initial apicid   : 0
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
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 rdtscp lm 3dnowext 3dnow extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips   : 3599.91
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps

processor   : 1
vendor_id   : AuthenticAMD
cpu family   : 15
model      : 107
model name   : AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
stepping   : 2
cpu MHz      : 1800.000
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 1
cpu cores   : 2
apicid      : 1
initial apicid   : 1
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
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 rdtscp lm 3dnowext 3dnow extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips   : 3599.91
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps


Code:
$ cat .mplayer/config
# Write your default config options here!

[vo.vdpau]
#vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,
vc=ffh264vdpau,ffvc1vdpau,ffwmv3vdpau,ffmpeg12vdpau,


I normally keep the scaling_governor set to ondemand, and the defaults for max/min_freq(2600000/1000000).

But when I upgraded to nvidia-drivers-195.36.15, which I needed for kernel-2.6.33, if I leave the CPU at the lowest frequency when playing movie the sound stops working, and I can see the audio icon on my receiver flickering in and out.

I also see the following in my dmesg.
Code:
[  199.584283] CE: hpet increasing min_delta_ns to 15000 nsec


If I increase the scaling_min_freq on my CPU to the next step up, 1800000, the problem goes away.
Obviously I'm using vdpau because I want my CPU to run as slowly as possible, though.

Anybody know how to fix this?
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sun Apr 18, 2010 4:15 pm    Post subject: Reply with quote

AMD has memory controller in CPU, so when you scale down cpu-freq the memory performance decreases as well. Just keep min in 1800MHz and should be ok (maybe undervolt to keep heat down).

There is more info in nV News Linux Forum somewhere.
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sun Apr 18, 2010 4:21 pm    Post subject: Reply with quote

This worked perfectly with an earlier version of nvidia-drivers
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Mon Apr 19, 2010 10:56 am    Post subject: Reply with quote

I think i remembered wrong, that was about integrated graphic chips with shared memory..
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Thu Apr 29, 2010 7:57 am    Post subject: Reply with quote

Looks like a nasty regression, you could try and report this as a bug. We cannot do much about it since it's closed-source :/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum