From owner-freebsd-current@FreeBSD.ORG Thu Nov 17 18:52:16 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B28B81065670; Thu, 17 Nov 2011 18:52:16 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1DA778FC1C; Thu, 17 Nov 2011 18:52:15 +0000 (UTC) Received: by vcbfy13 with SMTP id fy13so2216202vcb.13 for ; Thu, 17 Nov 2011 10:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=23aUTagf/uZwyU+yHYhmB/dgdoUCL6o/Umb5hlKi1U4=; b=DQBYI+MRTHapw7MEY5L7p29KPbgjppVHpW4fBoOykecyrB15UBmdT88GCq2KRWWAgr /yXBepdo2fVttXaxYsUgfm2zRwm+j9dPTkoEIl5rt69CTjJgknogkqap6+Qhmh40a/kV mISOQKnDx68CH6bboJqhpwepFVwZzht2cM4IY= MIME-Version: 1.0 Received: by 10.52.97.10 with SMTP id dw10mr25266393vdb.51.1321555934406; Thu, 17 Nov 2011 10:52:14 -0800 (PST) Received: by 10.52.156.135 with HTTP; Thu, 17 Nov 2011 10:52:14 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Nov 2011 19:52:14 +0100 Message-ID: From: Davide Italiano To: Paul Ambrose Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Attilio Rao , George Neville-Neil , freebsd-current@freebsd.org, Fabien Thomas Subject: Re: [PATCH] Intel Sandy Bridge support for hwpmc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 17 Nov 2011 18:52:16 -0000 On Tue, Nov 15, 2011 at 3:44 AM, Paul Ambrose wrote: > hi, I apply your patch on this > [root@capoor-daemon /usr/src]# git show > commit 4ec1d958bad5e78bcd3cc61a0da6b5a1302f8ec2 > Author: kensmith > Date: =A0 Mon Nov 14 00:45:25 2011 +0000 > > =A0 =A0The releng/9.0 release branch has been created so convert stable/9= over > =A0 =A0to our standard "Politically Correct" name for the balance of the > 9.0-RELEASE > =A0 =A0release cycle. > > =A0 =A0Approved by: =A0 =A0 =A0 =A0re (implicit) > > when my machine shutdown in my absence yesterday evening, I find a > kernel oops this morning,(sorry, just printf, I can not get a kernel > dump) > the kernel says it is at uncore_pcpu_fini+0x5b > I check the source, and it is at > static int > uncore_pcpu_fini(struct pmc_mdep *md, int cpu) > { > ..... > =A0 =A0 =A0 =A0for (n =3D 0; n < npmc; n++) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0wrmsr(UCP_EVSEL0 + n, 0); //here > ..... > here is my cpu type, and build hwpmc into kernel > > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =A0 =A0 =A0 =A0The Regents of the University of California. All rights re= served. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-PRERELEASE #0 r+4ec1d95-dirty: Mon Nov 14 15:31:45 CST 2011 > =A0 =A0root@capoor-daemon:/usr/obj/usr/src/sys/MYKERNEL amd64 > CPU: Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz (2793.02-MHz K8-class CPU) > > I will try to apply this to current to see if this is reproduced. > > 2011/11/14 Attilio Rao : >> 2011/11/13 Davide Italiano : >>> On Sun, Nov 13, 2011 at 9:52 PM, Davide Italiano >>> wrote: >>>> Good evening folks. >>>> During last days I've written a patch to add sandy bridge support to >>>> hwpmc. Until now, the most recent Intel processor microarchitecture >>>> supported was Westmere. >>>> Testing is appreciated, in order to see if there's something that have >>>> to be fixed. >>>> You can find the diff here: http://davit.altervista.rg/hwpmc_sandy_bri= dge.diff >>>> >>>> I'd like to thanks a lot attilio@ that helped me to fix a bug and gnn@ >>>> and fabient@ for the useful suggestions. >>>> >>>> Best >>>> >>>> Davide >>>> >>> >>> Sorry, bad link. It should be: >>> http://davit.altervista.org/hwpmc_sandy_bridge.diff >> >> I can perform some small cleanups and likely test it too. >> >> If Fabien or George can review it I'm fine with committing as long as >> all that is settled. >>+ >> Attilio >> >> >> -- >> Peace can only be achieved by understanding - A. Einstein >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.or= g" >> > Have you tried on -current? If yes, what are the results? Can you provide a kernel dump and/or the instruction to reproduce this bug? Best Davide