Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7383986rwl; Mon, 9 Jan 2023 23:25:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLxRPNTaXXFYv6OCctZjRjCCl0SjlnYUOuzb+YeL2sZrydB8B4iQLDw2Eavlrxh5ik6P5D X-Received: by 2002:a17:902:7488:b0:193:27da:e61d with SMTP id h8-20020a170902748800b0019327dae61dmr8266997pll.68.1673335550117; Mon, 09 Jan 2023 23:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673335550; cv=none; d=google.com; s=arc-20160816; b=YER2PN3FnEMGpyvMF667gQmNokHXflvxIzDm0VWlPzkjjad1EvFt+izCf0SD33F+2s MjizBg0qRRX2yy+4T9ToXTSJHSA3z/Mc/1FmKMUyCqkedO0H5lh7IKgTDVBjrPoYD5Dh e7aFNbu55zMr5SPy+5HUbjxNzlIO8jgVzf1LoGDS6cTGKpej26t1LG85BQ0P3rfFPtkF m78z2rG9BsnBh+jVdBGQbZbR9SxLTejSzFCdnrXeMd0PMIC0pcE4/3kBFXD5IEEsVH0M wLqFYdENCCwDmT7ry0sCjhHdD8SXklAof2JdyEHRe6IIzZcZWPa5C0tjDX2LW+Fy1+Zz toBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=mxYwzNZFBRSVwDEot+UCmtg8NIfJJnNcW/0PONsKP38=; b=qSMSDFMDH0S8Ejg/V+xi7+wRpYlSP2CEhrgkTa6PxoxmE9PTrPrM9kYUPEoTUMABrf tKv2zSvFrBpVzzNHNULhcuR70NxLI1v0NU3Vpf5wGARk/nc6XHrVGJlwTV+t3o5C0WgY GxHDrDYIzrD9hbcXoDyKOWqBpAIKwInC6gQwZCPhLgrpbZ7OtHcFAc2Z9ejYu2/P2UXB gdrAcauhLQtLhsc5psYnHaCwHAkbTOB8eMhIna9Yqc6GHLfQ/o4QZ1k6W89R3lUTDNVN zkIDnDv7YzFqkACv2NjktCH89nZ+PjW21e4/+VZWhgB1JiaF6EuJ8JYMhhRgzvEPsYOU 8JqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik24-20020a170902ab1800b0019257c9a252si10163151plb.175.2023.01.09.23.25.43; Mon, 09 Jan 2023 23:25:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbjAJHNh (ORCPT + 53 others); Tue, 10 Jan 2023 02:13:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235424AbjAJHNf (ORCPT ); Tue, 10 Jan 2023 02:13:35 -0500 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4694564B; Mon, 9 Jan 2023 23:13:33 -0800 (PST) Received: from [192.168.0.2] (ip5f5aefa0.dynamic.kabel-deutschland.de [95.90.239.160]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id A6C6960293A85; Tue, 10 Jan 2023 08:13:30 +0100 (CET) Message-ID: Date: Tue, 10 Jan 2023 08:13:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [Bug 216863] ThinkPad X1 Extreme Gen 5: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) after resuming from sleep To: linux-pci@vger.kernel.org Cc: Bjorn Helgaas , Frederick Zhang , Rajat Khandelwal , linux-kernel@vger.kernel.org, Mark Pearson References: <20230110012620.GA1460882@bhelgaas> Content-Language: en-US From: Paul Menzel In-Reply-To: <20230110012620.GA1460882@bhelgaas> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Cc: +Mark] Am 10.01.23 um 02:26 schrieb Bjorn Helgaas: > https://bugzilla.kernel.org/show_bug.cgi?id=216863 > > Frederick reports: > >> I recently purchased a Thunderbolt 4 dock (CalDigit TS4) and started >> having millions of these warnings in my logs after resuming from sleep. >> I previously didn't have any Thunderbolt peripherals. The device is a >> ThinkPad X1 Extreme Gen 5 (BIOS 1.12 N3JET28W, EC 1.08 N3JHT21W). >> >> Dec 29 18:51:05 FredArch systemd[1]: Starting System Suspend... >> Dec 29 18:51:05 FredArch systemd-sleep[31007]: Entering sleep state 'suspend'... >> Dec 29 18:51:05 FredArch kernel: PM: suspend entry (s2idle) >> Dec 29 18:51:07 FredArch kernel: Filesystems sync: 1.566 seconds >> Dec 29 18:52:30 FredArch kernel: Freezing user space processes ... (elapsed 0.001 seconds) done. >> Dec 29 18:52:30 FredArch kernel: OOM killer disabled. >> Dec 29 18:52:30 FredArch kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. >> Dec 29 18:52:30 FredArch kernel: printk: Suspending console(s) (use no_console_suspend to debug) >> Dec 29 18:52:30 FredArch kernel: ACPI: EC: interrupt blocked >> Dec 29 18:52:30 FredArch kernel: ACPI: EC: interrupt unblocked >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:00:1d.0: AER: Multiple Corrected error received: 0000:21:01.0 >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: device [8086:1136] error status/mask=00001100/00002000 >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: [ 8] Rollover >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: [12] Timeout >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: AER: Error of this Agent is reported first >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:23:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:23:00.0: device [8086:0b26] error status/mask=00001000/00002000 >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:23:00.0: [12] Timeout >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:00:1d.0: AER: Corrected error received: 0000:21:01.0 >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: device [8086:1136] error status/mask=00001100/00002000 >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: [ 8] Rollover >> Dec 29 18:52:30 FredArch kernel: pcieport 0000:21:01.0: [12] Timeout > > And disabling ASPM seems to have some effect: > >> It happened every time after resuming from sleep. pcie_aspm=off solved >> the issue for me. > > But also broke other stuff: > >> I just realised that pcie_aspm=off broke most of my dock's functions. I >> still had Ethernet but wake-on-lan stopped working. The dock's >> Thunderbolt ports, USB Type-A/C data ports, SD card slots all stopped >> working too (no logs at all after plugging in things). >> >> Then I tested pcie_aspm.policy=performance. The dock started working >> again but the warning logs were also back. >> >> Also tried applying quirk_disable_aspm_l0s_l1 on the Thunderbolt bridges >> but unfortunately I still had the logs.