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=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 26614C433FF for ; Tue, 6 Aug 2019 09:20:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EFB9F20B1F for ; Tue, 6 Aug 2019 09:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731922AbfHFJUm (ORCPT ); Tue, 6 Aug 2019 05:20:42 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:53199 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730068AbfHFJUm (ORCPT ); Tue, 6 Aug 2019 05:20:42 -0400 Received: from rabammel.molgen.mpg.de (rabammel.molgen.mpg.de [141.14.30.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id CEA9C201A3C30; Tue, 6 Aug 2019 11:20:38 +0200 (CEST) To: Mika Westerberg , "Rafael J. Wysocki" Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Linux Kernel Mailing List From: Paul Menzel Subject: [Regression] pcie_wait_for_link_delay (1132.853 ms @ 5039.414431) Message-ID: <2857501d-c167-547d-c57d-d5d24ea1f1dc@molgen.mpg.de> Date: Tue, 6 Aug 2019 11:20:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms030407030505030902090402" Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This is a cryptographically signed message in MIME format. --------------ms030407030505030902090402 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Dear Mika, dear Rafael, Commit c2bf1fc2 (PCI: Add missing link delays required by the PCIe spec) = [1]=20 increases the resume time from ACPI S3 on a desktop system Dell OptiPlex = 5040 by one second. It looks like this is expected from the commit message, bu= t breaks existing systems with boot time requirements. I measured this with= the help of the pm-graph script `sleepgraph.py` [2]. 0000:00:01.0 resume_noirq (1134.715 ms @ 5039.412578 to 5040.547293) =E2=80=A6 pcie_wait_for_link_delay (1132.853 ms @ 5039.414431) $ lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/= 6th Gen Core Processor Host Bridge/DRAM Registers [8086:191f] (rev 07) 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6= th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07) 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 = xHCI Controller [8086:a12f] (rev 31) 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Po= int-H Thermal subsystem [8086:a131] (rev 31) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-= H CSME HECI #1 [8086:a13a] (rev 31) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA co= ntroller [AHCI mode] [8086:a102] (rev 31) 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express = Root Port #1 [8086:a110] (rev f1) 00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controll= er [8086:a146] (rev 31) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [= 8086:a121] (rev 31) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [= 8086:a170] (rev 31) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123]= (rev 31) 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection= (2) I219-V [8086:15b8] (rev 31) 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [A= MD/ATI] Oland XT [Radeon HD 8670 / R7 250/350] [1002:6610] (rev 81) 01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cape = Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1002:aab0] 02:00.0 PCI bridge [0604]: Texas Instruments XIO2001 PCI Express-to-PCI B= ridge [104c:8240] So, it=E2=80=99s about the internal Intel graphics device, which is not u= sed on this=20 system, as there is an external AMD graphics device plugged in. As far as I understand it, it=E2=80=99s a bug in the firmware, that a one= second delay is specified? Anyway, there is such firmware out there, so I=E2=80=99d like to avoid th= e time increases. As a first step, the commit should be extended to print a warning (maybe = if `initcall_debug` is specified), when the delay is higher than let=E2=80=99= s say 50(?) ms. Also better documentation how to debug these delays would be apprecia= ted. If there is no easy solution, it=E2=80=99d be great if the commit could b= e reverted for now, and a better solution be discussed for the next release. Kind regards, Paul [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/c= ommit/?id=3Dc2bf1fc212f7e6f25ace1af8f0b3ac061ea48ba5 [2]: https://github.com/intel/pm-graph --------------ms030407030505030902090402 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC EFowggUSMIID+qADAgECAgkA4wvV+K8l2YEwDQYJKoZIhvcNAQELBQAwgYIxCz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