Revision 00250ec90963b7ef6678438888f3244985ecde14 authored by Andre Przywara on 09 April 2012, 22:16:34 UTC, committed by Guenter Roeck on 18 April 2012, 18:15:40 UTC
Newer BKDG[1] versions recommend a different initialization value for
the running average range register in the northbridge. This improves
the power reading by avoiding counter saturations resulting in bogus
values for anything below about 80% of TDP power consumption.
Updated BIOSes will have this new value set up from the beginning,
but meanwhile we correct this value ourselves.
This needs to be done on all northbridges, even on those where the
driver itself does not register at.

This fixes the driver on all current machines to provide proper
values for idle load.

[1]
http://support.amd.com/us/Processor_TechDocs/42301_15h_Mod_00h-0Fh_BKDG.pdf
Chapter 3.8: D18F5xE0 Processor TDP Running Average (p. 452)

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
[guenter.roeck@ericsson.com: Removed unnecessary return statement]
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@vger.kernel.org # 3.0+
1 parent e816b57
History
File Mode Size
dmasound
.gitignore -rw-r--r-- 59 bytes
CHANGELOG -rw-r--r-- 13.4 KB
Kconfig -rw-r--r-- 19.3 KB
Makefile -rw-r--r-- 3.3 KB
README.FIRST -rw-r--r-- 246 bytes
ad1848.c -rw-r--r-- 74.2 KB
ad1848.h -rw-r--r-- 982 bytes
ad1848_mixer.h -rw-r--r-- 10.7 KB
aedsp16.c -rw-r--r-- 35.6 KB
audio.c -rw-r--r-- 25.0 KB
bin2hex.c -rw-r--r-- 755 bytes
coproc.h -rw-r--r-- 361 bytes
dev_table.c -rw-r--r-- 5.5 KB
dev_table.h -rw-r--r-- 10.6 KB
dmabuf.c -rw-r--r-- 34.9 KB
hex2hex.c -rw-r--r-- 1.9 KB
kahlua.c -rw-r--r-- 5.0 KB
midi_ctrl.h -rw-r--r-- 1.0 KB
midi_synth.c -rw-r--r-- 14.8 KB
midi_synth.h -rw-r--r-- 1.7 KB
midibuf.c -rw-r--r-- 8.6 KB
mpu401.c -rw-r--r-- 37.6 KB
mpu401.h -rw-r--r-- 419 bytes
msnd.c -rw-r--r-- 8.2 KB
msnd.h -rw-r--r-- 7.2 KB
msnd_classic.c -rw-r--r-- 122 bytes
msnd_classic.h -rw-r--r-- 5.3 KB
msnd_pinnacle.c -rw-r--r-- 47.4 KB
msnd_pinnacle.h -rw-r--r-- 7.4 KB
opl3.c -rw-r--r-- 27.1 KB
opl3_hw.h -rw-r--r-- 6.9 KB
os.h -rw-r--r-- 942 bytes
pas2.h -rw-r--r-- 428 bytes
pas2_card.c -rw-r--r-- 9.3 KB
pas2_midi.c -rw-r--r-- 4.9 KB
pas2_mixer.c -rw-r--r-- 8.2 KB
pas2_pcm.c -rw-r--r-- 9.4 KB
pss.c -rw-r--r-- 32.2 KB
sb.h -rw-r--r-- 5.2 KB
sb_audio.c -rw-r--r-- 26.7 KB
sb_card.c -rw-r--r-- 9.7 KB
sb_card.h -rw-r--r-- 5.7 KB
sb_common.c -rw-r--r-- 29.1 KB
sb_ess.c -rw-r--r-- 51.4 KB
sb_ess.h -rw-r--r-- 887 bytes
sb_midi.c -rw-r--r-- 4.3 KB
sb_mixer.c -rw-r--r-- 19.3 KB
sb_mixer.h -rw-r--r-- 2.1 KB
sequencer.c -rw-r--r-- 33.7 KB
sound_calls.h -rw-r--r-- 3.4 KB
sound_config.h -rw-r--r-- 3.1 KB
sound_firmware.h -rw-r--r-- 58 bytes
sound_timer.c -rw-r--r-- 6.1 KB
soundcard.c -rw-r--r-- 16.7 KB
soundvers.h -rw-r--r-- 86 bytes
swarm_cs4297a.c -rw-r--r-- 87.6 KB
sys_timer.c -rw-r--r-- 5.2 KB
trix.c -rw-r--r-- 10.9 KB
tuning.h -rw-r--r-- 1.1 KB
uart401.c -rw-r--r-- 10.4 KB
uart6850.c -rw-r--r-- 7.1 KB
ulaw.h -rw-r--r-- 3.2 KB
v_midi.c -rw-r--r-- 6.3 KB
v_midi.h -rw-r--r-- 281 bytes
vidc.c -rw-r--r-- 12.1 KB
vidc.h -rw-r--r-- 1.8 KB
vidc_fill.S -rw-r--r-- 4.3 KB
vwsnd.c -rw-r--r-- 95.4 KB
waveartist.c -rw-r--r-- 45.9 KB
waveartist.h -rw-r--r-- 2.3 KB

README.FIRST

back to top