From nobody Thu Oct 16 16:56:55 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cnYyp2xPHz6CnfT for ; Thu, 16 Oct 2025 16:57:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cnYyn07hpz3hQw for ; Thu, 16 Oct 2025 16:57:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=miv98uZl; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1760633822; bh=DuA9JnBpbWbCyPCC4eAiS4uRn8SQQaopTUUF4nhLjtI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=miv98uZlN4d6VZT3m4JGHHaukJbGroHuGKbu55Ve27YJ/sTmRmsu/6nHn6d+RgPyT6FfZ/8AfzFYnEyyYroiRJr/Rc/f7v0cq6ld82Xq+l/SiTEcOKExiFQFEE9U6ZkdlALVcoTUkDYbYmCajrRLbYSSf1oziY6TM24dEfjUffvefo1UMHO1UOdsoYOu0Ni+TeSlMwvNC9t6xBUYcB1t5Rzd/bWnn+4tdc1os9X2QmGYbAOeCvl+2VriY82F2o8/o+Z1XqzKhqk1nq7LZi5MPoeVixLpsTua/G324+5/AGqSeYhYI5iSof5TFAfL8Vdo3qNEWilpLlHZ+Eeyln7YDw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1760633822; bh=x9vjVsTl4gwdUnDMdQR614t/1kt1f8tm7SOIhvYugT6=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=WNEt7sG6RKPlVHQYK25crjrpH8Zn+c7xcEV4li5yJzvWq1oo6Hha6N81EvVJDGgvIxBDjLIi2E1MCrvl41ksQtJhtOW3bUyWzfah7l1adKw7txs3lT3TReM+lyPUEHofVC+uyCR2Vxhk3AWsF5iCsmjdyC/ExcNNA5a7S44Evsu9GHf8qUlYlu/32N6c+D+6M2P2DqcFXD8H/3PPEbZLn+Z2Qcklndw+6GQiLeam6v8R6Ij+NTf0pqjsS2xo3UC0AL1NG/sIH0MH4a707MmPAHrMBHrIT5V62pJuNMs1MocbZW7X66z7katcobx0nMuVhFgzyxI6ItviQ0DVYlRD/A== X-YMail-OSG: 14W2xqIVM1kasKtXELF_BVLGiQEhH7BmSnUtFLwLcvzIQghOphmisY40Uxzigeo NOAmQAaruRIaAaQQl9q5LkcIt2SPVursCJuYhntSHyZTHh.xI_T7BHUuXw64KPvbc3PwhtP_xkcf BJSfIH1k1Z_RcC3cyDAXWbEVZga2isIjSEzHRkA89NpZsUvNl1mk1X7fsUysZWAJ7a13_xGBD3CO swgnO.9WDT6WeyZdO1.f_Yo.ur0i5d8vSgkG8ZeH5RWZX5i0LgN.gKlCYadyW90Bj0tN69zQ0TXY Y9JZXl69cA4c.kbZuYtXpH6lCekZ9ADZ9q9lvYezb4zKEM7Uo.VNM4KVlOPdmrtsOtR1kU3ztycC hE72TpEvYF3e0E.SiLwIQrnN0.lREN9fV6qwRQyVOI422DtBMEqBYppYBY5pxed1lXcrIK3L_yNM uoHc6Kw.kuqwbWALgzobHEdHBwI_PbcubbQ_KPTHM9T8kgGl7mvqMLye3OYNZFmtdpD_S8ImMWXJ m2UUUHdXUdk5i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ZCtN3cy3Fc.Fu0KNiB2_gMKN7mk82sSOYJplwVQ.0VQb1Y63ojU4Lg Yz_p9m1A.0keGaTT18GKmOLEBDupakAwukp5FliQJagQXonHzSlAIWpj5exg6d03o6wjmaIDr0LS XDbW2PlhQd7Q1MWfu7uU75cBHV2_Jr_6YybzDoW4RiE62NdQjSk7bz2jrWJiD5wehHWXURGN5XIa 3rhw7Nw5tvPHs77g_GfJpEH.O0RxmgTwXaDZIiRSCYY5.uJoecyWHSt4o1Esj9jBJgy9IYcdGuez vCIJpQesTuSVmO3XofSIKdsFHL3uFo8a4uVS2GHwNnfVhzFR6_b1Y3F9VavHz0qlHfrxwcqQFgVE KeHfKMtK1thOPrqSk7gl1jcftGCXwb3CQ8lO4o0dqm8U2HmB6AYkSIyHc4l0by1Jw6TjbVeS1rlR _PUS8fcqo_dzGHtBa5JB8ZdXqUQ4F96dweJCHWRR38aMInliMxZY9ZzFRIZ46c2AjpSzyJGX1cOd ZT8zZ2LRPZzRJZIA_37rXJc8.KjAQuHcMaI2xY9OdQoFt02XMVljc7ozmRTJ_A6fqY5uWS7rmuiq psnl2xuY0p2YSSFU3P5k1Zv4Lf95gyFjOeRpYiLRCBLjpOOpKDX0CDNgJvc_CRS0B6RSANJr.QGc 6qccfZcPvBSmBwF8ZlYhytNvH1T4PWHLJg6ivln6ARR5dhi5v5nFL3inNlts_7Q1Nei4HgELRY5J ZbcypuKXdHA-- X-Sonic-MF: X-Sonic-ID: f3e92e1b-4e1b-4949-a01b-97b5f6978c78 Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Thu, 16 Oct 2025 16:57:02 +0000 Received: by hermes--production-gq1-6c5b94f9b-t4p94 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fb85ee7c58bb3405c1b305cdec09181e; Thu, 16 Oct 2025 16:56:58 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: S4 hibernate design document [corrections] From: Mark Millard In-Reply-To: <9E014B66-CE52-45D1-9DA3-3AEF3726CB1C@yahoo.com> Date: Thu, 16 Oct 2025 09:56:55 -0700 Cc: Warner Losh Content-Transfer-Encoding: quoted-printable Message-Id: <76B06FB8-67A1-41B9-99E4-4CE79EB6C9B0@yahoo.com> References: <9E014B66-CE52-45D1-9DA3-3AEF3726CB1C@yahoo.com> To: obiwac , FreeBSD Current X-Mailer: Apple Mail (2.3826.700.81) X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.31:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.31:from] X-Rspamd-Queue-Id: 4cnYyn07hpz3hQw [Fixing missing text and some odd copy/paste results.] On Oct 16, 2025, at 09:29, Mark Millard wrote: > obiwac wrote on > Date: Thu, 16 Oct 2025 14:19:43 UTC : >=20 >> Hi again! >>=20 >> Following up on the previous email announcing the Foundation's intent = to add S4 >> hibernate support to FreeBSD [1], kib@ has started working on a more = detailed >> design document for this: >>=20 >> https://hackmd.io/@eJNIw-SNShyq1LSp2azAcw/Bka-kXTpge >>=20 >> There are still a couple unsolved bits of the design, so we'd like to = gather >> some more feedback on this document. If you could reply with any = feedback >> within a week (before Oct 23rd) that would be ideal for us! >>=20 >> Thanks, >> Aymeric on behalf of the FreeBSD Foundation >>=20 >> [1] = https://lists.freebsd.org/archives/freebsd-current/2025-August/008616.html= >=20 > I'm not sure how it fits with the material referenced above, but I'll > note that ACPI references S4 handling in at least the following, > including some of the _OSC usage that is tied to USB4 handling . . . >=20 >=20 > 6.2.11. _OSC (Operating System Capabilities) >=20 > . . . >=20 > Since platform context is lost when the platform enters the S4 = sleeping state, OSPM > must re-evaluate _OSC upon wake from S4 to restore the previous = platform state. > This requirement will vary depending on the device specific _OSC = functionality. [I had originally noticed that what should have been "platform" was odd by being 'pla"orm' but managed to not type the "f" in the "tf" correction text each time.] [The "ti" in "functionality" had been a "!".] > . . . >=20 > 6.2.11.1.2. Evaluation Conditions I should have quoted here: QUOTE The OS must evaluate _OSC under the following conditions: END QUOTE > . . . >=20 > Upon resume from S4. Platform firmware will handle context restoration = when > resuming from S1-S3. [I had originally noticed that what should have been "platform" was odd by being 'pla"orm' but managed to not type the "f" in the "tf" correction text each time.] [The "ti" in "restoration" had been a "!".] >=20 > . . . >=20 > 6.2.11.3. Operating System Capabilities (_OSC) for USB >=20 > . . . >=20 > Note: OSPM must re-invoke _OSC during S4 resume. >=20 > . . . >=20 > 6.3. Device Insertion, Removal, and Status Objects >=20 > . . . >=20 > For removing devices, ACPI supports both hot removal (system is in the = S0 state), > and warm removal (system is in a sleep state: S1-S4). This is done = using the _EJx > control methods. Devices that can be ejected include an _EJx control = method for > each sleeping state the device supports (a maximum of 2 _EJx objects = can be listed). > For example, hot removal devices would supply an _EJ0; warm removal = devices > would use one of _EJ1-EJ4. These control methods are used to signal = the hardware > when an eject is to occur. >=20 > The sequence of events for dynamically removing a device goes as = follows: >=20 > . . . >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com