From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3994FC4338F for ; Mon, 2 Aug 2021 16:48:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D896610FF for ; Mon, 2 Aug 2021 16:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbhHBQsu (ORCPT ); Mon, 2 Aug 2021 12:48:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:50360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbhHBQsu (ORCPT ); Mon, 2 Aug 2021 12:48:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4100861050; Mon, 2 Aug 2021 16:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627922920; bh=cuyJ/J2aukiAzaiuV1WF4K1tog/tiqHtk4SlbgotFLw=; h=Date:From:To:Cc:Subject:From; b=JYsCNXSw61RrVD0A9e5ycoOfMOx4IM7O0JrKPDsFfgcf4Kwryz9lUPFM/ZBflo7gc BVqd1pxxAJEduHu5DTGzYM1ziFUXJyH3Eoqr7GZR+T1PnCzvetVRSyH6RuQwD2TCh7 njgpn6VGiPN+ZX5g1zC4irt7s7XEsF9R58zyA0nCHnQzfinZT6pkTk8I2depW5TI1b 4qcteJZARrJMv4IiZSGBm8uoxihZ2XjbbWGBDSdikGA+/3Q5tLUeOFoRSVyHGaav76 A+PjZo8OvmDlWQJFHAsYjPRus5o7ryz7S1zaqaP+QtEru828OBlSw3OsVxi/gr1/B1 kMcBc3b0wCe1w== Date: Mon, 2 Aug 2021 11:48:38 -0500 From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: kevo@gatorgraphics.com Subject: [bugzilla-daemon@bugzilla.kernel.org: [Bug 213945] New: Unable to power off iMac16,2] Message-ID: <20210802164838.GA1386212@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Thanks for the report, Kevin. Could you also attach the dmesg log from booting with "pci=earlydump"? The kernel really should log the BARs and windows we get from firmware before we change anything, but we currently do not, so "pci=earlydump" is the only way to get that. ----- Forwarded message from bugzilla-daemon@bugzilla.kernel.org ----- Date: Mon, 02 Aug 2021 16:02:47 +0000 From: bugzilla-daemon@bugzilla.kernel.org To: bjorn@helgaas.com Subject: [Bug 213945] New: Unable to power off iMac16,2 Message-ID: https://bugzilla.kernel.org/show_bug.cgi?id=213945 Bug ID: 213945 Summary: Unable to power off iMac16,2 Product: Drivers Version: 2.5 Kernel Version: 5.4.0 Hardware: Intel OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: PCI Assignee: drivers_pci@kernel-bugs.osdl.org Reporter: kevo@gatorgraphics.com Regression: No Created attachment 298155 --> https://bugzilla.kernel.org/attachment.cgi?id=298155&action=edit 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. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. ----- End forwarded message -----