From owner-freebsd-current@FreeBSD.ORG Wed Aug 14 20:58:20 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 15842D9D; Wed, 14 Aug 2013 20:58:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 54D232685; Wed, 14 Aug 2013 20:58:19 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id hr7so2467798wib.12 for ; Wed, 14 Aug 2013 13:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=VtrMICPqlNSGlMMgiy5ry+Rgd0mDBEK+Spmyd5w7eFw=; b=pxva9DBAuCgV9F798za89d4aSYEtgzC++zMnmCukJTnyqtF8xd15MHHIUCU17j5hrD Y6Vyz+MdRtm6EJrlMMNd3MrcO2dc7wvJe5q8JI9RVHxSwb48TPOITH3OlBEelmwDbz+e khS3iOgJht6cUP4p0RuZkdAhMjTFiMinOJA8+/Vqdjlq6MYqsk5YFiE/V8fBjm8qfVeV +8FOT9BVbAacm284akAqQ3gPQp/v+JZF3hdeZNRPAm++6LqiWok7kcmdo2YC7xgvZ4L/ hswjr8EVcoucD5oo02pMsQGcd6+5V5d7Ia+wJZTjKsu4jHER90qiupZEybNkXIjdXzfb 49Yw== MIME-Version: 1.0 X-Received: by 10.180.20.116 with SMTP id m20mr7273264wie.46.1376513897412; Wed, 14 Aug 2013 13:58:17 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Wed, 14 Aug 2013 13:58:17 -0700 (PDT) Date: Wed, 14 Aug 2013 13:58:17 -0700 X-Google-Sender-Auth: wKfBR-7KhbZX-S7pPCAsT0TWbvI Message-ID: Subject: patch: enable MEM_LOAD_UOPS_LLC_HIT_RETIRED on sandy bridge xeon From: Adrian Chadd To: freebsd-current , Jim Harris , Davide Italiano Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2013 20:58:20 -0000 Hi, This (and maybe more?) events are applicable to both the sandy bridge and sandy bridge xeon CPUs. This is from the Intel SDM June 2013 Volume #3. David/Jim, does this look fine to you? Thanks, ndex: sys/dev/hwpmc/hwpmc_core.c =================================================================== --- sys/dev/hwpmc/hwpmc_core.c (revision 254263) +++ sys/dev/hwpmc/hwpmc_core.c (working copy) @@ -1541,13 +1541,18 @@ IAP_F_SBX | IAP_F_IBX | IAP_F_HW), IAPDESCR(D2H_01H, 0xD2, 0x01, IAP_F_FM | IAP_F_CA | IAP_F_CC2 | - IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_IB | IAP_F_IBX | IAP_F_HW), + IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_SBX | IAP_F_IB | + IAP_F_IBX | IAP_F_HW), IAPDESCR(D2H_02H, 0xD2, 0x02, IAP_F_FM | IAP_F_CA | IAP_F_CC2 | - IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_IB | IAP_F_IBX | IAP_F_HW), + IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_SBX | IIAP_F_IB | + IAP_F_IBX | IAP_F_HW), IAPDESCR(D2H_04H, 0xD2, 0x04, IAP_F_FM | IAP_F_CA | IAP_F_CC2 | - IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_IB | IAP_F_IBX | IAP_F_HW), + IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_SBX | IIAP_F_IB | + IAP_F_IBX | IAP_F_HW), IAPDESCR(D2H_08H, 0xD2, 0x08, IAP_F_FM | IAP_F_CA | IAP_F_CC2 | - IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_IB | IAP_F_IBX | IAP_F_HW), + IAP_F_I7 | IAP_F_WM | IAP_F_SB | IAP_F_SBX | IIAP_F_IB | + IAP_F_IBX | IAP_F_HW), + IAPDESCR(D2H_0FH, 0xD2, 0x0F, IAP_F_FM | IAP_F_CA | IAP_F_CC2 | IAP_F_I7 | IAP_F_WM), IAPDESCR(D2H_10H, 0xD2, 0x10, IAP_F_FM | IAP_F_CC2E),