summaryrefslogtreecommitdiffstats
path: root/sys/dev/coretemp
Commit message (Collapse)AuthorAgeFilesLines
* Mark the coretemp(4) sysctls as MPSAFE, ensuring that Giant won't be heldmarkj2013-02-181-6/+6
| | | | | | | | | | unnecessarily by a user thread waiting to run on a specific CPU after calling sched_bind(). Reviewed by: rstone Approved by: emaste (co-mentor) Sponsored by: Sandvine Incorporated MFC after: 1 week
* Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵sbz2013-01-301-1/+1
| | | | | | | device_method_t arrays Reviewed by: cognet Approved by: cognet
* This isn't functionally identical. In some cases a hint to disableeadler2012-10-221-0/+2
| | | | | | | | unit 0 would in fact disable all units. This reverts r241856 Approved by: cperciva (implicit)
* Now that device disabling is generic, remove extraneous code from theeadler2012-10-221-2/+0
| | | | | | | | device drivers that used to provide this feature. Reviewed by: des Approved by: cperciva MFC after: 1 week
* #PROCHOT assertion is sticky after reading the MSR (accordingly withattilio2011-09-191-1/+4
| | | | | | | | | | | Intel manuals) it must be cleared by writing a 0. Fix that. Sponsored by: Sandvine Incorporated Reported by: rstone Reviewed by: delphij, emaste, rstone Approved by: re (kib) MFC after: 1 week
* Expose more variables from coretemp(4) via sysctl:delphij2011-09-021-60/+157
| | | | | | | | | | | - tjmax - Tj(max) value from the CPU - delta - current delta reading - resolution - sensor resolution in Celsius - throttle_log - whether a #PROCHOT was asserted since last reset Submitted by: Mark Johnston <markjdb gmail.com> (mostly) MFC after: 1 month Approved by: re (kib)
* Bump the maximum coretemp limit (for CPU temperature) to 110. Severalattilio2011-08-191-2/+2
| | | | | | | | | cores with temp in the range 101-105 have been found in the past. Sponsored by: Sandvine Incorporated Reviewed by: delphij, emaste Approved by: re (kib) MFC after: 3 days
* Detect and set Atom's Tj(max) to 90 if it's not the 45nm D400/D500/N400delphij2011-05-051-0/+9
| | | | | | series. MFC after: 2 weeks
* Correct a typo. According to Intel document 318914, the Tj(max) for Core 2delphij2011-05-021-1/+1
| | | | | | | Duo Mobile CPUs should be 105. Noticed by: Mark Johnston <markjdb gmail.com> MFC after: 3 days
* Catch known CPUs before using IA32_TEMPERATURE_TARGET.delphij2010-08-041-28/+40
| | | | | | | | | This way we would have an opportunity to hide the Tj(target) value doesn't seem right stuff if we know it's not working there. Add temperature value for Core2 Duo Extreme Mobile that I have access to.
* Improve cputemp(4) driver wrt newer Intel processors, especiallydelphij2010-07-291-13/+47
| | | | | | | | | | | | | | | Xeon 5500/5600 series: - Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place of Tj(max) when a sane value is available, as documented in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane value we mean 70C - 100C for now); - Print the probe results when booting verbose; - Replace cpu_mask with cpu_stepping; - Use CPUID_* macros instead of rolling our own. Approved by: rpaulo MFC after: 1 month
* Change 'dev.cpu.N.temperature', sysctl I (degC) to IK (Kelvin).nork2009-09-061-3/+5
| | | | | | | Approved by: re (rwatson) Reviewed by: rpaulo Suggested by: ume MFC After: 3 days
* Introduce cpu_vendor_id and replace a lot of strcmp(cpu_vendor, "...").jkim2008-11-261-1/+2
| | | | Reviewed by: jhb, peter (early amd64 version)
* style(9): remove FreeBSD CVS ID from the initial license comment.rpaulo2008-05-141-3/+0
| | | | MFC after: 1 day
* Change the check for cpu_high to actually match CPUID 0x06.rpaulo2008-05-111-3/+3
| | | | | | Submitted by: Arthur Hartwig <arthur.hartwig at nokia.com> PR: 122878 MFC after: 3 days
* Don't attach to non Core CPUs. This is needed because on the PIII,rpaulo2008-02-141-0/+9
| | | | | | | querying the number of sensors returns > 0. PR: 120541 Approved by: njl (mentor)
* Disable the check for errata AE18. On MacBooks (1,1 version) there'srpaulo2008-01-101-0/+6
| | | | | | no problem with coretemp and C3 state. Approved by: njl (mentor)
* Backout sensors framework.netchild2007-10-151-45/+34
| | | | | Requested by: phk Discussed on: cvs-all
* Convert coretemp(4) to the hardware sensors framework andnetchild2007-10-141-34/+45
| | | | | | | | | | make sure to never call sched_bind() for uninitialised CPUs. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith
* Style nits + more reliable Tj(max) detection + improved reporting ofdes2007-08-231-34/+42
| | | | | | | critical temperature + sched_unbind() after rdmsr + initialize sc_dev. Submitted by: Rui Paulo <rpaulo@fnop.net>, cnst Approved by: re (kensmith)
* Add a driver for the on-die digital thermal sensor found on Intel Coredes2007-08-151-0/+268
and newer CPUs (including Core 2 and Core / Core 2 based Xeons). The driver attaches to each cpu device and creates a sysctl node in that device's sysctl context (dev.cpu.N.temperature). When invoked, the handler binds to the appropriate CPU to ensure a correct reading. Submitted by: Rui Paulo <rpaulo@fnop.net> Sponsored by: Google Summer of Code 2007 Tested by: des, marcus, Constantine A. Murenin, Ian FREISLICH Approved by: re (kensmith) MFC after: 3 weeks
OpenPOWER on IntegriCloud