Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 09:16:19 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Bengt Ahlgren <bengta@sics.se>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: AMT console (was: Fixing suspend/resume on Lenovo x220)
Message-ID:  <20130620061619.GH91021@kib.kiev.ua>
In-Reply-To: <uh7fvwd4uac.fsf_-_@P142.sics.se>
References:  <20130613134922.M8280@martymac.org> <201306131016.57098.jhb@freebsd.org> <uh7fvwd4uac.fsf_-_@P142.sics.se>

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

--nFP5HOmuB4FR6qoM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 20, 2013 at 12:20:27AM +0200, Bengt Ahlgren wrote:
> John Baldwin <jhb@freebsd.org> writes:
>=20
> > On Thursday, June 13, 2013 10:00:21 am Ganael LAPLANCHE wrote:
> >> Hi,
> >>=20
> >> As you may know, suspend/resume has been broken on Lenovo x220 for a
> >> long time now, see :
> >>=20
> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/174504
> >>=20
> >> I have been able to do a suspend(S3)/resume operation in text mode (it
> >> works, but console stays dark at resume, I had to connect through ssh ;
> >> also, resume hangs if X is started with i915kms.ko loaded) and collect
> >> the following verbose logs :
> >
> > Interesting, I connected a serial console via AMT but wasn't able to get
> > any output during resume.  Is this with a stock kernel?
>=20
> Does the console via AMT otherwise work for you?
>=20
> I'm trying to set up AMT as the console on a TP X201.  I got the serial
> over LAN working using amtterm from another machine - verified with cu
> on the tty (ttyu2) that typing on both ends shows up at the other end
> before trying console redirection.  The device is:
>=20
> uart2: <Non-standard ns8250 class UART with FIFOs> port 0x1808-0x180f mem=
 0xf2524000-0xf2524fff irq 17 at device 22.3 on pci0
>=20
> uart2@pci0:0:22:3:	class=3D0x070002 card=3D0x216217aa chip=3D0x3b678086 r=
ev=3D0x06 hdr=3D0x00
>     vendor     =3D 'Intel Corporation'
>     device     =3D '5 Series/3400 Series Chipset KT Controller'
>     class      =3D simple comms
>     subclass   =3D UART
>     bar   [10] =3D type I/O Port, range 32, base 0x1808, size  8, enabled
>     bar   [14] =3D type Memory, range 32, base 0xf2524000, size 4096, ena=
bled
>     cap 01[c8] =3D powerspec 3  supports D0 D3  current D0
>     cap 05[d0] =3D MSI supports 1 message, 64 bit=20
>=20
> I've set:
>=20
> hint.uart.2.flags=3D"0x10"
> console=3D"comconsole"
>=20
> in /boot/loader.conf, but the loader just hangs after printing:
>=20
> Loading /boot/defaults/loader.conf
>=20
> Any advice?  Is uart2 unusable as a console?  It does not say "flags
> 0x10" in the device probe - does that mean it won't work?

You should use
comconsole_pcidev=3D0:0:22:3

--nFP5HOmuB4FR6qoM
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQIcBAEBAgAGBQJRwp4yAAoJEJDCuSvBvK1BU4MP/3K9woLqWAN1wtyn8hzJHqBx
apucqzMl4M1cUg9igCInjvjYS51A+L1YKNxbtK++sBuvE9iH6LoqyMHjuYB+nnxb
jJz/aCvXfaK9knZ/hlf237atMYPUhX42hB//P7vf/aI9pxf0kJ2Rpdp9dlB5r749
8GINy6rT1G5BOoC3glug4J3nmtIYfM+ypKHyw2ku9NYmAMU1s0+3mxYtmgliYMiR
Xs1JZfhSkDSiFg9JeCH78yuslPKpizzw2bsnwyGvRxh5mApE9r/eXzlwO132NW7r
te9E8kVO45YTppAHfT0aUe5sk/EEeasg7JgG0exOUJflUl0FKqUJ/0YDGbRo3aah
X4nM4xHwJkCX518jsQBES+gHPsUUa0OXfBVKdTHCEZoxZcKccfVgUGtRYCEBxGSZ
CwxYv/+EmtFh0msnDH0MprzRZLmZrAmNFRTkWgVrvf6/P1Nu7WOJCRFqPunWBgtL
WocK9PybndS6CF44Byr66SMfWNrebYLqOAFzT3IZA67kObxrXdmc4bkPsS4A0C7k
0oI713zgZx3nhH8BXV6LWMlXN9uvbwTHA331lnTCSSb/368+gN6CS9aihzV8+jKb
Kyr9XjbQNO4VRNEMz1GyaVa1lxS6+J5X58VeJxQoIIRVrc+jdFqtC8LmxDCobDJq
QddbiB/3PVq1h4bb9fOA
=Rs1a
-----END PGP SIGNATURE-----

--nFP5HOmuB4FR6qoM--



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