From owner-freebsd-mobile@FreeBSD.ORG Fri Aug 31 15:07:31 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1CE61065674 for ; Fri, 31 Aug 2012 15:07:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 53C948FC18 for ; Fri, 31 Aug 2012 15:07:28 +0000 (UTC) Received: by iebc12 with SMTP id c12so2220720ieb.13 for ; Fri, 31 Aug 2012 08:07:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=a1hj2d+tDnQnpWDPVRpPPR+8Ib2PQ0KEozKV9VT3C80=; b=HleB+U6AIAWWASBkjZbSuifSLgaXUQL+NDh0c6/nqsyAPKGBUwVhw+jkxoobMZaYUA r+ZyGTZEuyTBo1M8OZfBx/keKej6G1/O9uzUCrZ6WnY5T2/xrut9JO8pScLrz9ZgJfxR oKk/qaxxqh0gjAUvTqxmxAqTWvcxDQyv5duQ+tMaS8+IKabZUFi7mpWah+pTpPWeHBgb igBbTfyoMlJbjd/VirU14KJgiDGNFodfduv5cFAlxZva9F1vdZ8nwmvqxLbU52lapxB7 evgfSkMP4FYOUri+BOqQc2HD03NRMLgckDmUjPazTpV0+RLGidVPIt4NEZE0jgShKxUE Vydw== Received: by 10.50.186.130 with SMTP id fk2mr3196071igc.60.1346425648079; Fri, 31 Aug 2012 08:07:28 -0700 (PDT) Received: from 63.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id p8sm652867igl.16.2012.08.31.08.07.26 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 08:07:27 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20120831141437.GA7316@FreeBSD.org> Date: Fri, 31 Aug 2012 09:07:25 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <85277024-0DB3-4EAD-94FC-FCF2FA0A0B71@bsdimp.com> References: <20120831104038.GA69581@FreeBSD.org> <5583C09D-C3D1-4E88-AC77-3E44D420C2EB@bsdimp.com> <20120831141437.GA7316@FreeBSD.org> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQlnSz5F1ppOXAqBEf7wPYmN3pT6FwHMIMeEpee7xuTEGdqGgSl4Tc9fItDfCxc4KQbMfZA4 Cc: bz@FreeBSD.org, mobile@freebsd.org, Hans Petter Selasky Subject: Re: suspend/resume [was: Devsummit pictures] X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 15:07:31 -0000 On Aug 31, 2012, at 8:14 AM, Alexey Dokuchaev wrote: > On Fri, Aug 31, 2012 at 07:58:36AM -0600, Warner Losh wrote: >> On Aug 31, 2012, at 4:40 AM, Alexey Dokuchaev wrote: >>> On Fri, Aug 31, 2012 at 12:11:42PM +0200, Hans Petter Selasky wrote: >>>>> and then new USB stack had broken it again for me (NEC Versa S950, = YMMV). >>>>=20 >>>> Should be fixed in all -stable with regard to USB and suspend and = resume. >>>=20 >>> To be fair to Hans Petter, maybe his USB stack itself does not have = a bug, >>> but instead uncovers a bug somewhere else. OTOH, my laptop does not = care. >>=20 >> You can determine if it is the usb stack by removing it and trying = again. >=20 > Actually I did. Resume was still broken. But backing out r229370 = (only > USB-related changes) fixes the hang. I am puzzled... And while = keyboard > does not work in general, tty switching does. That's very odd results. Perhaps is suggests needing to run many tests? keyboard not working means the process isn't reading the data. Since = tty switching is working, does breaking in ddb with control escape work = (or is that alt-escape)? >> If possible, a serial console will tell you for sure... >=20 > Serial console is practically useless if you have to work via = USB-RS232 > adapter. "call doadump" also hangs. So it looks like I have to find > firewire machine, revive attilio@'s netdump [1] code, or implement = phk@'s > soundcard tricks Yes, you need a real serial port, not a usb one to do this. However, if = the USB-RS232 is on the other end, it works well (I was using just such = a setup with gdb the other day). Hmmm, call doadump fails, but that means you can get into ddb? Firewire works well, and is very cheap. I don't know if it works with a = plug-in card though. > [1] = http://lists.freebsd.org/pipermail/freebsd-current/2010-October/020405.htm= l Now that's cool... Warner