From owner-freebsd-current@FreeBSD.ORG Wed Oct 17 18:41:06 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96D94ED1 for ; Wed, 17 Oct 2012 18:41:06 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3D1138FC08 for ; Wed, 17 Oct 2012 18:41:06 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so10803822vcb.13 for ; Wed, 17 Oct 2012 11:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZNIetv5xUK5rZQdTNGFb6FaEmnByjk9ojZx2oeUuqk8=; b=KyzblM1ZTW0qqykDWweN8WZJQgGg20DFTM8vjB5nu8oYtgogKVIep/ip7rxHLwuTVp n4xjYPB8tyTbBVgX1xzybI6Xafx2OwTO55nxoqSaPo8MjPHWpousxt+tmI3xsD3onNgB 966p8BZFukHYH6h2P8Dn2ZeZw/HVTbYnk4slbMc3Li6HFPTjN5I+ZtQxl8p5pQD2iCQy EyKGrfaA4Sb/0RDpaUV4upL1VgtyPpGmLM7kikKUPbTpkqRJECjVLEZDJnCB1PS7nRM2 fVG5L749Li/6sEXMr9YVv9texr51h+lNa13bIUx+MaBI+8tvr/pQygjpQv4Ld1b+R16c 434g== MIME-Version: 1.0 Received: by 10.58.244.99 with SMTP id xf3mr11157303vec.21.1350499265113; Wed, 17 Oct 2012 11:41:05 -0700 (PDT) Received: by 10.58.225.2 with HTTP; Wed, 17 Oct 2012 11:41:05 -0700 (PDT) In-Reply-To: References: <1349390777.5234.9.camel@powernoodle.corp.yahoo.com> Date: Wed, 17 Oct 2012 11:41:05 -0700 Message-ID: Subject: Re: [CFT]hwpmc update for sandybridge-e From: Jim Harris To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 Cc: Davide Italiano , freebsd-current , Fabien Thomas 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, 17 Oct 2012 18:41:06 -0000 On Mon, Oct 15, 2012 at 5:49 PM, hiren panchasara wrote: > > Thanks Fabien for getting back quickly. As I am not clear about uncore > support, I've removed it entirely as you suggested. I've tried to > incorporate other comments too. > > New set of diffs, pmccontrol and pmctest.py results are here: > > http://www.strugglingcoder.info/patches/hwpmc_sbx_2.txt > http://www.strugglingcoder.info/patches/pmccontrol_2.txt > http://www.strugglingcoder.info/patches/pmctestpy_2.txt > > I now have following event counters failing from pmctest.py script: > > CYCLE_ACTIVITY.CYCLES_L2_PENDING > BACLEARS.ANY > L2_TRANS.DEMAND_DATA_RD > L2_TRANS.RF0 > SQ_MISC.SPLIT_LOCK Hi Hiren, With your patch, I see different event counters failing on my SNB Xeon system: CYCLE_ACTIVITY.CYCLES_L2_PENDING - this is due to missing IAP_F_FM which Fabien already pointed out. There are 5 total that need this added - this one is the only one that fails from the pmctest.py script because it's the only one with bit 0 set (IAP_M_CORE) in its flags which causes a hard pmc_allocation failure. MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM - this is due to adding this event to the SNB Xeon event list in the header file, but IAP_F_SBX is missing from the associated IAPDESCR for D3H_01H in hwpmc_core.c. It's not clear to me why you are seeing failures on those other events. Maybe make sure libpmc/pmcstat/pmccontrol/hwpmc are all in sync? Thanks for working on this! Regards, -Jim > I am not quite sure why these are failing. Will continue looking into it. > > Appreciate your help, > Hiren > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"