Bug 213945 - Unable to power off iMac16,2
Summary: Unable to power off iMac16,2
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: PCI (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: drivers_pci@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-02 16:02 UTC by Kevin
Modified: 2021-08-02 17:18 UTC (History)
0 users

See Also:
Kernel Version: 5.4.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (74.68 KB, text/plain)
2021-08-02 16:02 UTC, Kevin
Details
dmidecode (12.60 KB, text/plain)
2021-08-02 16:03 UTC, Kevin
Details
iomem (3.50 KB, text/plain)
2021-08-02 16:04 UTC, Kevin
Details
ioports (1.27 KB, text/plain)
2021-08-02 16:04 UTC, Kevin
Details
lspci (62.89 KB, text/plain)
2021-08-02 16:04 UTC, Kevin
Details
dmesg pci=earlydump (105.68 KB, text/plain)
2021-08-02 17:18 UTC, Kevin
Details

Description Kevin 2021-08-02 16:02:47 UTC
Created attachment 298155 [details]
dmesg

I believe this bug is very similar if not the same to https://bugzilla.kernel.org/show_bug.cgi?id=103211.

I have managed to work around it and have the computer power off by using the two setpci commands from comment 298 in bug report 103211 in a systemd shutdown script placed in /lib/systemd/system-shutdown.

#!/bin/sh

case $1 in
	poweroff)
	setpci -s1c.0 0x20.l=0xf011f001
	setpci -s1c.0 0x24.l=0xf031f021
	;;
esac

Without the script the computer will just hang at shutdown. It also will not suspend properly. It looks like it does, but then it will not wake up and I have to hard power it down by holding the power button for 10 seconds before I can turn it back on again.

I am attaching the output of dmesg, lspci, dmidecode and /proc/iomem and /proc/ioports to aid in possibly extending the quirk fix from the previous bug report. Hopefully the issue is similar enough that it will be a quick fix.

I do believe I am running the latest BIOS (427.140.8.0.0 06/13/2021) which I believe was installed when I installed Big Sur.
Comment 1 Kevin 2021-08-02 16:03:41 UTC
Created attachment 298157 [details]
dmidecode
Comment 2 Kevin 2021-08-02 16:04:01 UTC
Created attachment 298159 [details]
iomem
Comment 3 Kevin 2021-08-02 16:04:21 UTC
Created attachment 298161 [details]
ioports
Comment 4 Kevin 2021-08-02 16:04:38 UTC
Created attachment 298163 [details]
lspci
Comment 5 Kevin 2021-08-02 17:18:57 UTC
Created attachment 298165 [details]
dmesg pci=earlydump

Note You need to log in before you can comment on or make changes to this bug.