From nobody Wed Aug 7 18:52:52 2024 X-Original-To: freebsd-acpi@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 4WfK7R0hHRz5SSgZ for ; Wed, 07 Aug 2024 18:53:07 +0000 (UTC) (envelope-from megamansec@gmail.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WfK7Q1pFZz4RdW for ; Wed, 7 Aug 2024 18:53:06 +0000 (UTC) (envelope-from megamansec@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=NQFBykjd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of megamansec@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=megamansec@gmail.com Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2f15dd0b489so1596391fa.3 for ; Wed, 07 Aug 2024 11:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723056784; x=1723661584; darn=freebsd.org; h=to:message-id:subject:date:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=lmIL7wh3kPsioNqgSXZvdsEgZe/zZU8WCJE6xvd91sQ=; b=NQFBykjdxz8B2A3qQDzOtO6Hai4zTzM87ZuqO8ixe3pDcRcUrLl3hCjXw3RkJu37xb ZT1txQsmdf05vRt9qK5gjIFVT50zq6G/685ZNGuIext/Vz98eVNBpSsrBNpY9HyPURNs 8/p3sLKHkOw4n8MkxFnO3O/T2ThlNjVW+6Z45EdBiF+pIBpxJBys2mOchqUL49dVc5BW wsnp6n1ZHZsiMvLfpjWx+7JdMRACaSiMXnyb5c8AQ5dB1wn7fMHtCJMCGFLV0UuOyaUK LlxFcR7J+Wn5vAohH1d/WWaigCLgrM6U6sDDgOFxWPhraJj+JRM7GG/mAwlCAC0SHIjB mKIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723056784; x=1723661584; h=to:message-id:subject:date:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lmIL7wh3kPsioNqgSXZvdsEgZe/zZU8WCJE6xvd91sQ=; b=MUCvCwFwdHg+jp3qoMEStWtfkQRI6KPtHTIeAe6M7E52J7QYz6b6eUteF8M7EUkdmE T9Ct4lnvHabxg1Lezm4RaGiD0L3Lxl7tf8zGurbPxp7zt9UY4bD9kl6KXDziroukKD/6 KuT3ePWJII3jVQKpNtz8rD3JKd/hjdSoGT+oEgaIb8gdFG4XaIujO6yymJ9N4svzQwgA hmltHO32JKiTcOMGf1iI0F2U79RReUq6WCazJ6m0RSpjkYAmwrIEzHBMabz6EaSHxq9k lgs9HEvsKoWwhHt/Hx/nWXrxCZOg3eNgb/ERsxRz1kJvpH1dqZ08EiF4HQaJRuKB2R33 3OdQ== X-Gm-Message-State: AOJu0Yxhdesra/G0k9BGZLGuNBuq698mScIHyLe4utzAhFGjCtdJuGp7 6e/K6GbVEqiS4ew5mNOZiC8XNFn09m14SLBl6JQFfzcnEBt/kIAWb3aQM7tl X-Google-Smtp-Source: AGHT+IGR2stzUXfMxEjm68SwnX3/5utuw8oziStJtyS5xzz+cbOfOa39pYe1zu2nigv4kyabuFJFzA== X-Received: by 2002:a2e:b04b:0:b0:2f0:1a44:cdea with SMTP id 38308e7fff4ca-2f15aaab091mr118242591fa.26.1723056784058; Wed, 07 Aug 2024 11:53:04 -0700 (PDT) Received: from smtpclient.apple ([188.146.112.115]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f15e272eeesm19389171fa.128.2024.08.07.11.53.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Aug 2024 11:53:03 -0700 (PDT) From: Joshua Rogers X-Google-Original-From: Joshua Rogers Content-Type: multipart/alternative; boundary=Apple-Mail-57DFA965-297F-430B-AE8F-92518238D541 Content-Transfer-Encoding: 7bit List-Id: ACPI and power management development List-Archive: https://lists.freebsd.org/archives/freebsd-acpi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-acpi@FreeBSD.org Mime-Version: 1.0 (1.0) Date: Wed, 7 Aug 2024 20:52:52 +0200 Subject: suspend/resume on MacbookPro11.4 without X Message-Id: To: freebsd-acpi@freebsd.org X-Mailer: iPhone Mail (21F90) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.956]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; APPLE_IOS_MAILER_COMMON(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-acpi@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-acpi@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::231:from] X-Rspamd-Queue-Id: 4WfK7Q1pFZz4RdW --Apple-Mail-57DFA965-297F-430B-AE8F-92518238D541 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi all, I'm currently battling with a Macbook Pro 11.4, attempting to get all of its= hardware supported on FreeBSD. At the moment, I'm investigating whether it i= s possible to get suspend/resume working at on 13.3-RELEASE-p4. I've exhibited a few different behaviors: Using the inbuilt SSD/NVMe ("SM951 AHCI"), I exhibit the following behaviour= : 1A. No X, Using debug.acpi.suspend_bounce=3D1: Successfully resumes, but the disk becomes unreadable/unwritable. The keyboa= rd is responsive but the mouse is not. I can continue some actions, but clea= rly only what is cached in memory. I don't know whether this is expected: I'= m using ZFS with full disk encryption.=20 1B. No X, using debug.acpi.suspend_bounce=3D0: The screen does not turn back on: but everything else seems to work like bee= p, drive read/writing, keyboard, etc (I'm basically just typing in the blind= ).=20 2A. Using X and suspend_bounce=3D1: The screen resumes but the disk becomes unreadable writable. The keyboard is= responsive but the mouse is not. The same as without X 2B. Using X and debug.acpi.suspend_bounce=3D0: Everything works as well as expected. Keyboard and mouse work. Writing to th= e disk works.=20 --- For the non-X use cases, I've built the kernel with the following minimal co= nfiguration [config.txt]. A more minimal version may work, but I didn't both= er to trim it down any further. The behavior exhibited by the suspension is t= he same as when built normally. At the moment, case 2B is fine: I use X most of the time, and I don't use su= spend_bounce. But I would like to fiz the 1B case at least (no X). Are there= any suggestions of how to debug this? FYI: It looks like the Linux kernel went through an issue with this version o= f the Macbook too: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/= linux.git/commit/?id=3D13cfc732160f / https://bugzilla.kernel.org/show_bug.c= gi?id=3D103211. I've attempted to recreate the patch and it loads, but does n= ot seem to do anything [asmc-patch.c.patch]. I have no idea if it is relevan= t or not. An initial HW_PROBE can be found here: https://bsd-hardware.info/?probe=3D6b= ade1eaf8 Cheers, Joshua. --Apple-Mail-57DFA965-297F-430B-AE8F-92518238D541 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all,

I'm currently ba= ttling with a Macbook Pro 11.4, attempting to get all of its hardware suppor= ted on FreeBSD. At the moment, I'm investigating whether it is possible to g= et suspend/resume working at on 13.3-RELEASE-p4.

I'= ve exhibited a few different behaviors:

Using the i= nbuilt SSD/NVMe ("SM951 AHCI"), I exhibit the following behaviour:

1A. No X, Using debug.acpi.suspend_bounce=3D1:
Successfully resumes, but the disk becomes unreadable/unwritable. The keyb= oard is responsive but the mouse is not. I can continue some actions, but cl= early only what is cached in memory. I don't know whether this is expected: I= 'm using ZFS with full disk encryption. 

1B. N= o X, using debug.acpi.suspend_bounce=3D0:
The screen does not turn= back on: but everything else seems to work like beep, drive read/writing, k= eyboard, etc (I'm basically just typing in the blind). 

<= /div>

2A. Using X and suspend_bounce=3D1:
The s= creen resumes but the disk becomes unreadable writable. The keyboard is resp= onsive but the mouse is not. The same as without X

= 2B. Using X and debug.acpi.suspend_bounce=3D0:
Everything works as= well as expected. Keyboard and mouse work. Writing to the disk works. =

---

For the non-X use cas= es, I've built the kernel with the following minimal configuration [config.t= xt]. A more minimal version may work, but I didn't bother to trim it down an= y further. The behavior exhibited by the suspension is the same as when buil= t normally.

At the moment, case 2B is fine: I use X= most of the time, and I don't use suspend_bounce. But I would like to fiz t= he 1B case at least (no X). Are there any suggestions of how to debug this?<= /div>

FYI: It looks like the Linux kernel went through an= issue with this version of the Macbook too: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3D13cfc732160f / https://bugzilla.kernel.org/show_bug.cgi?id=3D10321= 1. I've attempted to recreate the patch and it loads, but does not seem t= o do anything [asmc-patch.c.patch]. I have no idea if it is relevant or not.=

An initial HW_PROBE can be found here: https://bsd-hardware.inf= o/?probe=3D6bade1eaf8

Cheers,
Joshua.=
= --Apple-Mail-57DFA965-297F-430B-AE8F-92518238D541--