From owner-freebsd-acpi@freebsd.org Thu Feb 11 12:08:18 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A97CAA5E2F for ; Thu, 11 Feb 2016 12:08:18 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41931138A for ; Thu, 11 Feb 2016 12:08:18 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-ig0-x232.google.com with SMTP id y8so4020879igp.1 for ; Thu, 11 Feb 2016 04:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=isJzNVE9UIfK0kWeUmbh/udOGHcxV8U1rYNifPoVi7I=; b=l7j+3tQG1iFf397IXWpRKJIJfRdWW4wzO3x+2O0IhW9AB/VzsWVpcKrephsM8JJ7pa 4HC81txJ4DFZKc1ArSKLouXV03iyGz+lYLsjbJGl9PrKFYGmoVg6NnFa9rNQ5EYMvk6x 6XXENveBb7t6nk9pmA4M8LCKt0DRVBXfCxmK/aTKa4piKIiwpvcksOib0h8MmYoyO8OP piv6qVh+F24UvhB/kU150bmPu8UoA6TDKKTeg40G9sTOUrAwHqv/l7yvoWKb5ii8SZMD GbZZIZB4NdvMohGgy7YaVyEoLQgqHFkCZ/v8OEIJxyHrKEM9txzJ8+MNbHRStc7Jg5ah RkLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=isJzNVE9UIfK0kWeUmbh/udOGHcxV8U1rYNifPoVi7I=; b=MzVsLBVpRLj38+yzlqXnxRXxzSwfUDqcKg1zLkW5luC2PqVWX9c/k3AqCuvNLL114a Zxd9uvro9jw3jh4JO4eTuYojTSNHY1nCV9F/1PgHfP/5hUjG75UbsZSxJ1IVzSCD4NC5 A0C2tJs8yRaPMs8nkeWJ7U1e8vIfSexyqWlS3J/97XJ3Q+B4XEcJ/Xd8kvhDN+FY0H4H qdyiRfJhVHPOw9+Ce6vd3Jwn66LO4ZsbRviyYiPIwAb7PNtgkstVWfisz2JBGot68Xtp fOD4xNUBl2cIMlVkVZRtl7zBb+hRHac9RiysS5HncbkAk0TjoQ8b8NPeybW/Zy3CvtoA 2dFA== X-Gm-Message-State: AG10YOQ+C37bnr7RQIx8rcUojcVY0vHutGcSqPr1eBQWoibhYlBQY1rjoyl7SwJo91YLw0jETj70SSQNCxO2Ow== MIME-Version: 1.0 X-Received: by 10.50.134.129 with SMTP id pk1mr16265169igb.11.1455192497732; Thu, 11 Feb 2016 04:08:17 -0800 (PST) Received: by 10.36.155.137 with HTTP; Thu, 11 Feb 2016 04:08:17 -0800 (PST) In-Reply-To: <56BC751A.4030707@selasky.org> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> Date: Thu, 11 Feb 2016 21:08:17 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 12:08:18 -0000 Hello, So, is the BIOS handover to the USB stack a prerequisite when resuming from standby mode HC (not completely off HC)? In other words, do we need to implement BIOS handover before we can use wake on usb keyboard input? Or is there a workaround for this specific functionality? Many Thanks again, Julian On Thu, Feb 11, 2016 at 8:48 PM, Hans Petter Selasky wrote: > On 02/11/16 12:30, Dee Zay wrote: > >> Hello, >> >> I am a bit confused about the resume problem and its procedures. >> Could you explain briefly about the difference between resuming from >> standby(powered) and completely off HC? >> >> Thank you, >> Julian >> > > Hi, > > Only the XHCI can resume completely off HC. It knows about which devices > are enumerated and so on. The other HC's don't. > > You need to ensure that filesystem reloads everything when you resume. No > assumptions can be made about which disk is connected. A USB keyboard is > simpler, of course. > > There is also something called a BIOS, which sometimes enable and > enumerate the USB devices before the OS is resuming. I think there is a > standard somewhere how the BIOS can handover enumerated devices to the USB > stack, but I'm not sure if it is public. In any case FreeBSD will reset the > HC and start from scratch when resuming. That always works. > > --HPS >