Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2011 10:58:31 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225662 - head/sys/dev/coretemp
Message-ID:  <201109191058.p8JAwVv2076945@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Mon Sep 19 10:58:30 2011
New Revision: 225662
URL: http://svn.freebsd.org/changeset/base/225662

Log:
  #PROCHOT assertion is sticky after reading the MSR (accordingly with
  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

Modified:
  head/sys/dev/coretemp/coretemp.c

Modified: head/sys/dev/coretemp/coretemp.c
==============================================================================
--- head/sys/dev/coretemp/coretemp.c	Mon Sep 19 10:28:59 2011	(r225661)
+++ head/sys/dev/coretemp/coretemp.c	Mon Sep 19 10:58:30 2011	(r225662)
@@ -384,6 +384,7 @@ coretemp_get_val_sysctl(SYSCTL_HANDLER_A
 	}
 
 	if (msr & THERM_STATUS_LOG) {
+		coretemp_clear_thermal_msr(device_get_unit(dev));
 		sc->sc_throttle_log = 1;
 
 		/*
@@ -424,8 +425,10 @@ coretemp_throttle_log_sysctl(SYSCTL_HAND
 	msr = coretemp_get_thermal_msr(device_get_unit(dev));
 	sc = device_get_softc(dev);
 
-	if (msr & THERM_STATUS_LOG)
+	if (msr & THERM_STATUS_LOG) {
+		coretemp_clear_thermal_msr(device_get_unit(dev));
 		sc->sc_throttle_log = 1;
+	}
 
 	val = sc->sc_throttle_log;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109191058.p8JAwVv2076945>