From nobody@FreeBSD.org  Fri Aug 16 20:27:17 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 33BCBCED
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2013 20:27:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 2163B2F6D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2013 20:27:17 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7GKRGIP097849
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2013 20:27:16 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7GKRGtV097848;
	Fri, 16 Aug 2013 20:27:16 GMT
	(envelope-from nobody)
Message-Id: <201308162027.r7GKRGtV097848@oldred.freebsd.org>
Date: Fri, 16 Aug 2013 20:27:16 GMT
From: adrian chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [hwpmc] Sandy Bridge Xeon - workaround required for some perf events
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181346
>Category:       kern
>Synopsis:       [hwpmc] Sandy Bridge Xeon - workaround required for some perf events
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 16 20:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Aug 17 01:55:39 UTC 2013
>Originator:     adrian chadd
>Release:        
>Organization:
>Environment:
>Description:
There's a workaround required for some events on Sandy bridge Xeon hardware.

http://software.intel.com/en-us/articles/performance-monitoring-on-intel-xeon-processor-e5-family

Here's the workaround packaged up in a linux-specific python script. ugh.

https://github.com/andikleen/pmu-tools/blob/master/latego.py

I have no idea about the specifics of the workaround; only that we should likely add support to hwpmc to do this.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
