From owner-freebsd-bugs@freebsd.org Mon Dec 28 22:51:09 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CCDD84C3CB8 for ; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4D4XpP5GT7z4qWs for ; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B44F14C3CB7; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B414C4C3FAF for ; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4XpP4gZDz4qPZ for ; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 93AE82142D for ; Mon, 28 Dec 2020 22:51:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BSMp95B079400 for ; Mon, 28 Dec 2020 22:51:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0BSMp9g2079399 for bugs@FreeBSD.org; Mon, 28 Dec 2020 22:51:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252241] MacBook Pro 8,3 17" black screen after suspend/resume Date: Mon, 28 Dec 2020 22:51:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jwb@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2020 22:51:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252241 Bug ID: 252241 Summary: MacBook Pro 8,3 17" black screen after suspend/resume Product: Base System Version: 12.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jwb@freebsd.org System suspends and seems to resume fine except for the screen. I can ssh = in after resume, but the console is unresponsive and I cannot switch to a vt. The system has two GPUs: vendor =3D 'Intel Corporation' device =3D '2nd Generation Core Processor Family Integrated Graphics Controller' class =3D display -- vendor =3D 'Advanced Micro Devices, Inc. [AMD/ATI]' device =3D 'Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]' class =3D display Both work fine in general. Running auto-gpu-setup (called from desktop-installer), I first selected the modesetting driver + drm-kmod and = got a full-functional desktop. 1.. For most modern Intel GPUs, use the modesetting driver which is part of the FreeBSD base. pkg install -y drm-kmod Add kld_list=3D"/boot/modules/i915kms.ko" to /etc/rc.conf [snip] After testing the Intel GPU setup, ran auto-gpu-setup again and selected op= tion 2, ati driver + drm0kmod: 1.. For recent AMD GPUs, you can try pkg install -y drm-kmod xf86-video-amdgpu Add "kld_list=3Damdgpu" to /etc/rc.conf 2.. For older AMD GPUs, you can try pkg install -y drm-kmod xf86-video-ati Add "kld_list=3D/boot/modules/radeonkms.ko" to /etc/rc.conf [snip] System booted into a working desktop, but using scfb rather than radeon. Adding the following got Xorg to use the radeon driver: <<>> /home/bacon 107 # cat /etc/X11/xorg.conf.d/radeon.= conf=20 Section "Device" Identifier "Card0" Driver "radeon" BusID "PCI:1:0:0" EndSection However, behavior after suspend/resume is the same with either modesetting = or radeon. I reduced the system to nothing but generic kernel + ATP driver for the touchpad and this did not help. There are quite a few drivers auto-loaded, though. Seems doubtful to me th= at any of them are causing the issue since everything seems to work after resu= me except the screen. kldstat Id Refs Address Size Name 1 101 0xffffffff80200000 227ad00 kernel 2 1 0xffffffff8247b000 9080 atp.ko 3 1 0xffffffff82fdb000 1a20 fdescfs.ko 4 1 0xffffffff82fdd000 103f0 fuse.ko 5 1 0xffffffff82fee000 152fd0 radeonkms.ko 6 2 0xffffffff83141000 76570 drm.ko 7 5 0xffffffff831b8000 12d30 linuxkpi.ko 8 4 0xffffffff831cb000 12f30 linuxkpi_gplv2.ko 9 2 0xffffffff831de000 6d0 debugfs.ko 10 1 0xffffffff831df000 f181 ttm.ko 11 1 0xffffffff831ef000 33ee0 if_bwn.ko 12 14 0xffffffff83223000 37e48 bhnd.ko 13 2 0xffffffff8325b000 3408 gpiobus.ko 14 4 0xffffffff8325f000 a1f0 bhndb.ko 15 1 0xffffffff8326a000 3c50 bhndb_pci.ko 16 1 0xffffffff8326e000 1a58 bhnd_pci_hostb.ko 17 2 0xffffffff83270000 1b64 bhnd_pci.ko 18 1 0xffffffff83272000 598 bcma_bhndb.ko 19 1 0xffffffff83273000 4818 bcma.ko 20 1 0xffffffff83278000 ad4 siba_bhndb.ko 21 1 0xffffffff83279000 4ea8 siba.ko 22 1 0xffffffff8327e000 a160 if_lagg.ko 23 1 0xffffffff83289000 1860 uhid.ko 24 1 0xffffffff8328b000 1a40 wmt.ko 25 1 0xffffffff8328d000 2908 ums.ko 26 1 0xffffffff83290000 4260 ng_ubt.ko 27 6 0xffffffff83295000 9bd0 netgraph.ko 28 2 0xffffffff8329f000 9128 ng_hci.ko 29 3 0xffffffff832a9000 9b0 ng_bluetooth.ko 30 1 0xffffffff832aa000 29e0 wsp.ko 31 1 0xffffffff832ad000 caf0 ng_l2cap.ko 32 1 0xffffffff832ba000 1af20 ng_btsocket.ko 33 1 0xffffffff832d5000 2150 ng_socket.ko 34 1 0xffffffff832d8000 46f0 autofs.ko 35 1 0xffffffff832dd000 acf mac_ntpd.ko On the whole, this is a perfectly usable FreeBSD laptop for my purposes. I don't personally care about suspend/resume on this machine since I don't ta= ke it anywhere (I prefer to carry a smaller one), but I'm happy to help diagno= se and fix this issue if possible. --=20 You are receiving this mail because: You are the assignee for the bug.=