The NetBSD Project

CVS log for src/sys/arch/x86/pci/amdtemp.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / pci

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 30 15:43:43 2018 UTC (3 months, 2 weeks ago) by is
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, isaki-audio2-base, isaki-audio2, HEAD
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Document bobcat/puma family nicknames.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 12 23:35:04 2018 UTC (4 months, 1 week ago) by is
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.21: +6 -3 lines
Diff to previous 1.21 (colored)

Added support for AMD family 16h cpu sensors - (just like 10h-14h).
(Tested on netbsd-8.0 release.)

Revision 1.21 / (download) - annotate - [select for diffs], Thu Sep 27 14:59:43 2018 UTC (6 months, 3 weeks ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.20: +44 -52 lines
Diff to previous 1.20 (colored)

Improve a bit, no real functional change.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:08 2017 UTC (22 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.19: +2 -5 lines
Diff to previous 1.19 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 23 23:23:00 2015 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Update module dependencies for all the existing modules that depend on sysmon components.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 15 08:47:55 2013 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.17: +8 -12 lines
Diff to previous 1.17 (colored)

 Modify some macros and add some new macros for CPU family and model
to reduce code duplication and to avoid bug.

CPUID_TO_STEPPING(cpuid)	(not changed)

CPUID_TO_FAMILY(cpuid)		(new)
CPUID_TO_MODEL(cpuid)		(new)

	Return the display family and the display model.
	The macro names are the same as FreeBSD.

CPUID_TO_BASEFAMILY(cpuid)	(The old name was CPUID2FAMILY)
CPUID_TO_BASEMODEL(cpuid)	(The old name was CPUID2MODEL)

	Only for the base field.

CPUID_TO_EXTFAMILY(cpuid)	(The old name was CPUID2EXTFAMILY)
CPUID_TO_EXTMODEL(cpuid)	(The old name was CPUID2EXTMODEL)

	Only for the extended field.

See http://mail-index.netbsd.org/port-amd64/2013/11/12/msg001978.html

Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 12 15:08:01 2013 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.16: +4 -3 lines
Diff to previous 1.16 (colored)

 Calcurate the processor family correctly. The extended family bits
should be added only when the base family is 0xf.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 16 01:52:37 2012 UTC (6 years, 9 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Enable entropy gathering

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 13 13:11:17 2012 UTC (7 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.14: +4 -16 lines
Diff to previous 1.14 (colored)

Replace amdtempbus with amdnb_miscbus.
This allows us to have independent drivers on the same device (northbridge f3)
each coming with a certain functionality/feature.
This way we do not need to mess with amdtemp(4) to utilize other features.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 13 12:14:41 2012 UTC (7 years ago) by cegger
Branch: MAIN
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored)

- support AMD Family15h
- deregister pmf on detach

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 2 19:26:41 2012 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4
Changes since 1.12: +7 -4 lines
Diff to previous 1.12 (colored)

Added Family 12h support.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 31 22:04:07 2011 UTC (7 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.11: +11 -7 lines
Diff to previous 1.11 (colored)

add Family14h (AMD Fusion) support

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 15 03:30:15 2011 UTC (7 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.10: +27 -20 lines
Diff to previous 1.10 (colored)

Small cleanup; use KM_SLEEP, wrap long lines, etc. No functional change.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 15 03:22:39 2011 UTC (7 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.9: +64 -15 lines
Diff to previous 1.9 (colored)

Modularize amdtemp(4).

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 16 12:05:19 2009 UTC (9 years, 6 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.8: +14 -2 lines
Diff to previous 1.8 (colored)

Family 10h Errata #319: Attach on Family10h cpu series which have it fixed.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 16 07:34:40 2009 UTC (9 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.7: +10 -4 lines
Diff to previous 1.7 (colored)

- use <sys/bus.h> and <sys/cpu.h>
- add reference to family11h documentation
- add reference to AMD K8 Errata #141

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 12 14:24:17 2009 UTC (10 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.6: +5 -6 lines
Diff to previous 1.6 (colored)

- beautify dmesg
- print family id if not supported
spotted by jmcneill@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 4 18:54:24 2008 UTC (10 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Fix the fix: Only AMD K8 Rev-G on AM2 sockets are impacted.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 4 18:45:04 2008 UTC (10 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.4: +56 -17 lines
Diff to previous 1.4 (colored)

On AMD K8 CPUs with Socket AM2, sensor normalization is off by 21C degree.
Adjust temperature calculation. This should fix strange temperatures on AMD K8
CPUs reported by many people.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 20 14:45:22 2008 UTC (10 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, mjf-devfs2, haad-dm
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

correct comment copied from aiboost(4): envsys(4) wants uK

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 20 13:58:32 2008 UTC (10 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.2: +5 -4 lines
Diff to previous 1.2 (colored)

envsys(4) expects values in mK  and not the top of the range of possible temperature values.
Needed some time to figure this out after I saw negative temperature values on Griffin.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:02 2008 UTC (10 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.1: +2 -5 lines
Diff to previous 1.1 (colored)

Convert to new 2 clause license

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 22 22:37:14 2008 UTC (11 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp

amdtemp(4): Driver for AMD CPU Temperature Sensors. Adopted from OpenBSD's kate(4).
Changes beyond OpenBSD's driver:
- Improved support for AMD K8
- Added support for AMD Barcelona, AMD Phenom and AMD Griffin
Tested on various single and multi-socket machines.
Review and OK xtreame

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>