From owner-freebsd-current@FreeBSD.ORG Mon May 4 16:21:10 2009 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 84915106566B for ; Mon, 4 May 2009 16:21:10 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 4AEF38FC14 for ; Mon, 4 May 2009 16:21:10 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.4] (adsl-19-214-20.bna.bellsouth.net [68.19.214.20]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n44GJ33k060708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 May 2009 12:19:04 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: rea-fbsd@codelabs.ru In-Reply-To: References: <1241418372.78715.1.camel@balrog.2hip.net> <1241419338.78715.8.camel@balrog.2hip.net> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-qrTBfmH6pEsSotQ4jCoC" Organization: FreeBSD Date: Mon, 04 May 2009 11:18:50 -0500 Message-Id: <1241453930.1788.10.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-current@freebsd.org Subject: Re: Patch for "device_attach: estX attach returned 6" on half of the cores 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: Mon, 04 May 2009 16:21:10 -0000 --=-qrTBfmH6pEsSotQ4jCoC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-05-04 at 15:28 +0400, Eygene Ryabinkin wrote: > Robert, >=20 > Mon, May 04, 2009 at 01:42:18AM -0500, Robert Noland wrote: > > Without this patch, cpu0 does attach correctly. >=20 > On the Intel MB? If yes and you'll be able to to some debugging, > please, try the attached patch and send the output of 'dmesg', > 'sysctl dev.cpu', 'sysctl dev.cpufreq' and 'sysctl dev.est'. Ok, just to publicly state that the Intel board apparently was not attaching to core0. I saw the failure and assumed that it was cpu related and would be the same as the Asus board. Should I still apply this patch? > > > One could check if the patch will help by examining the output of > > > 'apicdump -d' and looking for the Alias () directives for the Process= or > > > objects. Here's what I have for my laptop: > > > ----- > > > Scope (_PR) > > > { > > > Processor (P001, 0x01, 0x00000810, 0x06) {} > > > Alias (P001, CPU1) > > > } > > >=20 > > > Scope (_PR) > > > { > > > Processor (P002, 0x02, 0x00000810, 0x06) {} > > > Alias (P002, CPU2) > > > } > > > ----- > > > So in this case we essentially have 4 Processor objects under _PR, > > > but only two objects are real ones and only they should be attached. > > >=20 > > > For the completeness, could you, please, show the output of 'acpidump > > > -dt 2>&1' for both of your machines? > >=20 > > Attached. The Asus does appear to use aliases as you described. >=20 > Then you should have est attached to cpu0/cpu2 and rejected on > cpu1/cpu3, aren't you? The output of 'sysctl dev.cpu', 'sysctl dev.est' > and 'sysctl dev.cpufreq' will be also helpful. Will you be able to try > my original patch on the Asus system? Ok, the patch is applied on the Asus board and it now appears to be working correctly. I've re-enabled powerd now, so we will see how that goes. When it was only attaching to core0 the board would hang at times with powerd enabled. robert. > Thanks! --=20 Robert Noland FreeBSD --=-qrTBfmH6pEsSotQ4jCoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkn/FWoACgkQM4TrQ4qfRONOcwCfaBPVIGBgyY7RqgQ3wKRsNL5Y 5qYAnjJS+Bl/6ZNo7VM7YK7hDxgoyklw =wavN -----END PGP SIGNATURE----- --=-qrTBfmH6pEsSotQ4jCoC--