From owner-freebsd-acpi@FreeBSD.ORG Wed Jun 19 22:49:19 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0F6EF48F; Wed, 19 Jun 2013 22:49:19 +0000 (UTC) (envelope-from bengta@P142.sics.se) Received: from sink.sics.se (sink.sics.se [193.10.64.88]) by mx1.freebsd.org (Postfix) with ESMTP id 82D4513AE; Wed, 19 Jun 2013 22:49:17 +0000 (UTC) Received: from P142.sics.se (h139n3-u-d1.ias.bredband.telia.com [90.228.197.139]) by sink.sics.se (8.14.5/8.14.5) with ESMTP id r5JMK6mn088901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Jun 2013 00:20:06 +0200 (CEST) (envelope-from bengta@P142.sics.se) Received: from P142.sics.se (localhost [127.0.0.1]) by P142.sics.se (8.14.5/8.14.5) with ESMTP id r5JMKSgP002195; Thu, 20 Jun 2013 00:20:28 +0200 (CEST) (envelope-from bengta@P142.sics.se) Received: (from bengta@localhost) by P142.sics.se (8.14.5/8.14.5/Submit) id r5JMKRB5002194; Thu, 20 Jun 2013 00:20:27 +0200 (CEST) (envelope-from bengta@P142.sics.se) From: Bengt Ahlgren To: John Baldwin Subject: AMT console (was: Fixing suspend/resume on Lenovo x220) In-Reply-To: <201306131016.57098.jhb@freebsd.org> (John Baldwin's message of "Thu, 13 Jun 2013 10:16:57 -0400") References: <20130613134922.M8280@martymac.org> <201306131016.57098.jhb@freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) Date: Thu, 20 Jun 2013 00:20:27 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jun 2013 22:49:19 -0000 John Baldwin writes: > On Thursday, June 13, 2013 10:00:21 am Ganael LAPLANCHE wrote: >> Hi, >> >> As you may know, suspend/resume has been broken on Lenovo x220 for a >> long time now, see : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/174504 >> >> 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? Does the console via AMT otherwise work for you? 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: uart2: port 0x1808-0x180f mem 0xf2524000-0xf2524fff irq 17 at device 22.3 on pci0 uart2@pci0:0:22:3: class=0x070002 card=0x216217aa chip=0x3b678086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset KT Controller' class = simple comms subclass = UART bar [10] = type I/O Port, range 32, base 0x1808, size 8, enabled bar [14] = type Memory, range 32, base 0xf2524000, size 4096, enabled cap 01[c8] = powerspec 3 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit I've set: hint.uart.2.flags="0x10" console="comconsole" in /boot/loader.conf, but the loader just hangs after printing: Loading /boot/defaults/loader.conf 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? Bengt