NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/45626



The following reply was made to PR kern/45626; it has been noted by GNATS.

From: Simon Nicolussi <sinic%sinic.name@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Bernd Ernesti <netbsd%lists.veego.de@localhost>,
        Manuel Bouyer <bouyer%antioche.eu.org@localhost>,
        Christos Zoulas <christos%zoulas.com@localhost>
Subject: Re: kern/45626
Date: Wed, 25 Jun 2014 00:52:27 +0200

 --ZGiS0Q5IWpPtfppv
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 It has been a while since this report has last been touched, but maybe
 someone's still interested in my findings:
 
 I was seeing the same issue on an IBM ThinkCentre and didn't spot any
 obvious errors in the code where the TSC frequency is determined, but
 noticed that i8254_delay is sometimes taking some fraction of a second
 longer than it should take (as reflected in the TSC), despite waiting
 the correct number of i8254 ticks.
 
 SMM is the first thing that comes to mind as the reason for such weird
 behaviour. If a system receives SMIs right when executing i8254_delay,
 it might cause the two counters (i8254 and TSC) to diverge. One common
 application of SMM is USB keyboard support for real-mode operation [1]
 (e.g., for the BIOS). I'm fortunate enough to have a knob for that in
 my BIOS, so I disabled USB support there and, lo and behold, the bug
 no longer occurs.
 
 [1] http://blogs.msdn.com/b/carmencr/archive/2005/09/01/459194.aspx
 
 --=20
 Simon Nicolussi, <sinic%sinic.name@localhost>
 http://www.sinic.name/
 
 --ZGiS0Q5IWpPtfppv
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (OpenBSD)
 
 iQEcBAEBAgAGBQJTqgEnAAoJELFnvrFg/L45B3kH/jEj4mKciZbHJYJTEZB2rcNx
 5vnjHMm5BCuZtlyDA4wpxGc7G6/dEWFHl9Y8gCycS8fZnsp2aTfhKKWfxYta020e
 Be1pVwQDFRhv/F1SCjdcfr1tMwOD8iIRs8VyrCq3PTFmSr+Glb36BZlED+tVbZ5z
 OEi9abiGn2hWAfeWilv4abs/O7XwUmziSTuwdx8lqy8YIW6FiN6SZ3eV1jy7Xf67
 aqIvbsHz3WZRBt+s30xTTRH0Umy6TfYOwZNqgL7gE+ZIwh28QUGFQdZ6sLcFxyCL
 FtCsOC7aQMl0Mi/3u48UodgFD0cX0oknIElZL+MWO5YvjitnWzwGRZzVSH2FQ6A=
 =anGL
 -----END PGP SIGNATURE-----
 
 --ZGiS0Q5IWpPtfppv--
 


Home | Main Index | Thread Index | Old Index