Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp770954rwd; Tue, 16 May 2023 07:32:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6B+/gtIisYBMoRhXuGo0+e/45lonMvm0DnehqGisss3kgbmM6jJPThgciFCAnNuuqEzD7l X-Received: by 2002:a17:90a:49c6:b0:253:2f1b:612b with SMTP id l6-20020a17090a49c600b002532f1b612bmr1348982pjm.11.1684247567580; Tue, 16 May 2023 07:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684247567; cv=none; d=google.com; s=arc-20160816; b=yfoRex8jsDtaX3vCINm4nosKK5048YpLsZ8xr6RBH0VI3LgqUoJv15dSWlqMT+ZSHl vj/aLXswvYhg0irIjnVaaGl9V+SQfHESmv/LMSkX8OdRRxqx1kR0JW6qbwyYo0j3uxB2 OY5ZlKlij8tG33VX6EuaeA8hiq1Qz2nfE0QJC2sye3mF5EG6JGSF/aiVte0jMGnJPFKU o3FuW1B24+IsVR1roPf2L13IUugecgIhYIcwhFGqgvibG/jH8FV/H3aW0+dlnDAYHZK4 a/wPNGCyIYjGPO3eucRIcD4ilKvEv4RMLDZ/wn5RIggSWfWI1NbJKGpOVM1KQMAN0L9K ZPrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Alx4r0aar3zIInvSYgRnPVJwOWq1H/zXlc1OuInK7Cs=; b=GLFFoyg9Eq6Fo+h9BzETx6+pTZvagAqfE311XqU7qjGz0kwFzlqZ3DxNQI8XnBGPYe 1ZgGs9oFlE9p5MB6QmHaEGYDO5GKMH9aQXIclasagQk8jgL8w3Q+nNJfwaMIUK5sKLZ2 S5PtVAsml+AJ/oRJDlefUND9C+ODuUbtg0A8MPjd6cpaEcIqHHhqrN017BKvpSwcub/p IIa2fQfwa5WdIQB16R1kIVoG+mVg1OTdZ2Sd4EVI6TP95Z3ZQDtFvABBAt4lwXAyJtcj dhs7gCdCnkh4lFcho3iNTKc7r2Be8dslFjI3H934A+9qLhqoZmJhAYo8LVVTVPW/pk5I XNmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Wjc/lQ+T"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a630007000000b0052c7c1eb769si18729169pga.856.2023.05.16.07.32.31; Tue, 16 May 2023 07:32:47 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Wjc/lQ+T"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232968AbjEPOPP (ORCPT + 99 others); Tue, 16 May 2023 10:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233368AbjEPOPH (ORCPT ); Tue, 16 May 2023 10:15:07 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEBC6E85; Tue, 16 May 2023 07:15:05 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-64a9335a8e7so5951007b3a.0; Tue, 16 May 2023 07:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684246505; x=1686838505; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Alx4r0aar3zIInvSYgRnPVJwOWq1H/zXlc1OuInK7Cs=; b=Wjc/lQ+Tw57nKz6pQH3IfjqMr9dO8VhAZNvyhZaooYuL1mHcQzyyOX/JpD9p+1lFyk tkJk3B/6I/4M80xDDhM2arf7NqvKM4ANppGtrlY9bg36wRjaThty+JLw0V+UM5jcXH2n S/sbzvGbbcATpe7Cg6amo2WJ1WfTlYkDBmqH5n26AYH7SQexpiCEIWDgsft3OLRehtdP a3tjGiMyBTmDn+4+JBPuT0YV5dxEW4GBXGnhXo/HIRSjDm8mPvjmWByWO4bAX/GvXaGg 2BnIxtafWi1F95PyCK60EwZpbWPmTKLgd5dAfIxF061MJGtsfm+ERHB/nC9fsuZD2dkY YuDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684246505; x=1686838505; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Alx4r0aar3zIInvSYgRnPVJwOWq1H/zXlc1OuInK7Cs=; b=GmKlJ/11EWjGUetHzPtIK7KlL2JV1eBg6vpk8fqpQ8KvGjgXvPfkkl2EXfzm68RXDs 0qwE8BeHN36hgSk2mSkhLQOD+Z8n2pXnCG4udne8HPJUQDv87tOZERMcD73fI2AZ+L0W G8G1xTdOHfkC5CaCSl6Tj4R9AvygR42hhcs+o/GQkcDCiBiTE/zfy+oZsk3KMFAMstGg iYey8BozRWagyjIbbvRG9usSslupdexrrSjL2xJvlfTdhqdxnU9rXEm8KsJ7ZzSnIdYI dOgo2syKgNFdMYexNIlHKJFGWUlZR6EXPE8nOpYhPfv0CpZDWye+O0/3gc4BMjHkcF+F mCpw== X-Gm-Message-State: AC+VfDx04yKfEaOVgh8s4QFtaPmCBqJW+96pHxZBUlIcgrT2zwEhDbaX sGOwI/2HWzksaKdDibMBZ/Q= X-Received: by 2002:a05:6a20:7494:b0:102:19b9:25c7 with SMTP id p20-20020a056a20749400b0010219b925c7mr25274346pzd.6.1684246505338; Tue, 16 May 2023 07:15:05 -0700 (PDT) Received: from debian.me (subs02-180-214-232-11.three.co.id. [180.214.232.11]) by smtp.gmail.com with ESMTPSA id p38-20020a631e66000000b0052c766b2f52sm13669054pgm.4.2023.05.16.07.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 07:15:04 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 2BA8F1069B3; Tue, 16 May 2023 21:15:00 +0700 (WIB) Date: Tue, 16 May 2023 21:14:59 +0700 From: Bagas Sanjaya To: Kai-Heng Feng , bhelgaas@google.com Cc: Mario Limonciello , Mika Westerberg , Keith Busch , Kuppuswamy Sathyanarayanan , Pali =?utf-8?B?Um9ow6Fy?= , Stefan Roese , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Pengyu Ma Subject: Re: [PATCH] PCI/portdrv: Avoid enabling AER on Thunderbolt devices Message-ID: References: <20221226153048.1208359-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="swGwUbbeTl4fTlQh" Content-Disposition: inline In-Reply-To: <20221226153048.1208359-1-kai.heng.feng@canonical.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 --swGwUbbeTl4fTlQh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 26, 2022 at 11:30:31PM +0800, Kai-Heng Feng wrote: > We are seeing igc ethernet device on Thunderbolt dock stops working > after S3 resume because of AER error, or even make S3 resume freeze: > pcieport 0000:00:1d.0: AER: Multiple Corrected error received: 0000:00:1d= =2E0 > pcieport 0000:00:1d.0: PCIe Bus Error: severity=3DCorrected, type=3DTrans= action Layer, (Receiver ID) > pcieport 0000:00:1d.0: device [8086:7ab0] error status/mask=3D00008000/= 00002000 > pcieport 0000:00:1d.0: [15] HeaderOF > pcieport 0000:00:1d.0: AER: Multiple Uncorrected (Non-Fatal) error receiv= ed: 0000:00:1d.0 > pcieport 0000:00:1d.0: PCIe Bus Error: severity=3DUncorrected (Non-Fatal)= , type=3DTransaction Layer, (Requester ID) > pcieport 0000:00:1d.0: device [8086:7ab0] error status/mask=3D00100000/= 00004000 > pcieport 0000:00:1d.0: [20] UnsupReq (First) > pcieport 0000:00:1d.0: AER: TLP Header: 34000000 0a000052 00000000 0000= 0000 > pcieport 0000:00:1d.0: AER: Error of this Agent is reported first > pcieport 0000:04:01.0: PCIe Bus Error: severity=3DUncorrected (Non-Fatal)= , type=3DTransaction Layer, (Requester ID) > pcieport 0000:04:01.0: device [8086:1136] error status/mask=3D00300000/= 00000000 > pcieport 0000:04:01.0: [20] UnsupReq (First) > pcieport 0000:04:01.0: [21] ACSViol > pcieport 0000:04:01.0: AER: TLP Header: 34000000 04000052 00000000 0000= 0000 > thunderbolt 0000:05:00.0: AER: can't recover (no error_detected callback) >=20 > This supposedly should be fixed by commit c01163dbd1b8 ("PCI/PM: Always d= isable > PTM for all devices during suspend"), but somehow it doesn't work for > this case. >=20 > By dumping the PCI_PTM_CTRL register on resume, it turns out PTM is > already flipped on by either the Thunderbolt dock firmware or the host > BIOS. Writing 0 to PCI_PTM_CTRL yields the same result. >=20 > Windows is however not affected by this issue, by using WinDbg's !pci > command, it shows that AER is not enabled for devices connected via > Thunderbolt port, and that's the reason why Windows doesn't exhibit the > issue. >=20 > So turn a blind eye on external Thunderbolt devices like Windows does by > disabling AER. >=20 > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=3D216850 > Cc: Mario Limonciello > Cc: Mika Westerberg > Signed-off-by: Kai-Heng Feng Hi, I noticed a similar regression on bugzilla [1] where I asked the reporter to test your patch, and his regression still occured. For full details, see bugzilla. Thanks. Reported-by: Pengyu Ma Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D217446 [1] --=20 An old man doll... just what I always wanted! - Clara --swGwUbbeTl4fTlQh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZGOP3AAKCRD2uYlJVVFO o55WAQDiz4AxHaMzxpfSq/YrLOTQ/UbRNX9S9CPp4N3fJWDYewD/bJqyDv6mWPX/ qgKDqtaJs5+6j6Frsnkqel2RqU6dbg4= =IdSW -----END PGP SIGNATURE----- --swGwUbbeTl4fTlQh--