Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2009 11:18:50 -0500
From:      Robert Noland <rnoland@FreeBSD.org>
To:        rea-fbsd@codelabs.ru
Cc:        freebsd-current@freebsd.org
Subject:   Re: Patch for "device_attach: estX attach returned 6" on half of the cores
Message-ID:  <1241453930.1788.10.camel@balrog.2hip.net>
In-Reply-To: <pUAsgDrqwxYS/sC%2BkTmkqjTWM/8@psUvbB26hX94GoQd3C5ThNBxOp8>
References:  <o4xm64iOwjCQABT%2BLyYf4J6bdds@psUvbB26hX94GoQd3C5ThNBxOp8> <1241418372.78715.1.camel@balrog.2hip.net> <z3eD9vm%2BPfdrvO13WMzgYPrBP6U@zJPT6v7ej2A2kHQ7pL5rJQfsxXs> <1241419338.78715.8.camel@balrog.2hip.net> <pUAsgDrqwxYS/sC%2BkTmkqjTWM/8@psUvbB26hX94GoQd3C5ThNBxOp8>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <rnoland@FreeBSD.org>
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1241453930.1788.10.camel>