Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3282514rwd; Fri, 16 Jun 2023 15:14:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M5rGdFIjbNQllz5+lKNI2mN2xDov1a2E9asazwBkp3/TFsG8AFWOfvJj9/aE6+CevVdPO X-Received: by 2002:a17:902:f545:b0:1b3:e77b:f70d with SMTP id h5-20020a170902f54500b001b3e77bf70dmr3075789plf.29.1686953687023; Fri, 16 Jun 2023 15:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686953687; cv=none; d=google.com; s=arc-20160816; b=XGppV2Z6GGRyVYZTQ4UTspYNetCOPzBGd+e+BxmsNgBo1snnTD2rU2iECIYTClGz3y bOHBcLcb7c/NY1X3IjiFoK8zrnqJvpJZMl0PzLZUfiAbkHV1dqHbSt13trTScX96YJb5 p3fhP6GheRfvD/th9VRB05QlEtrh3oQefvzmDUA95taFKmQL7w3p82e7GCRl48UYh+bW yuvCvf1qvvK3HiI07yJTIJh9tRiM8sKDKBi9N98Hiu/rR3a5a7GznfdOcHv+X2VCD8B8 9fGsb+9OL82vA6bkB0u0wItlHQy9JO21/reFp7zHJ3jd1w4xdjvx4AZmAAtgyIwxgIWE Y7Dg== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=jyX46MIFLx4Dt06S+a6O+EIuQHkosfilTYoefC0GG6A=; b=M5e9N0ldQW5mE28BQnYJX9Lk5P4wZ2SsTbgM9Y2CBiXjAJdHJf50HEpz66WWiEWEXJ LyVdg+VVHjL6iF/WPOw2aEMGiqQage1hhb4gbDmu+J+Q1yMMuJP706ZVxmA44F6MVF5T WiDi/Fw62IR5zN+3J8m2mwcxK7DQqFgX9RRKy/aXq/BEyCNB30Sgi8b0pAwLNGqmlt3L BkVSon0+nhMbvpWmBsu9JLKSYgQTbaeKqWvxbbOUTjUEfC8N//pkySfoVaoxR+ZNm8GB 5JzvTJdJHgD6T82rDIbNgbWh1syjNUIZZM4Pv8FMv8hSpQzLzov3g3VsoahepajVja5M Lngw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lZPkTGzs; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a170902c40d00b001afd000029bsi14295419plk.581.2023.06.16.15.14.34; Fri, 16 Jun 2023 15:14: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=@kernel.org header.s=k20201202 header.b=lZPkTGzs; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232981AbjFPWBd (ORCPT + 99 others); Fri, 16 Jun 2023 18:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbjFPWBa (ORCPT ); Fri, 16 Jun 2023 18:01:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8379D297E; Fri, 16 Jun 2023 15:01:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5F9A61F51; Fri, 16 Jun 2023 22:01:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7494C433C8; Fri, 16 Jun 2023 22:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686952888; bh=lor+9CzJuJ16UAG83X/TrSjJxGuaeIWyzZ4JuzMH5fQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=lZPkTGzs39ZHNiZkaoRWItQiE0QwvxE957VSI9JWquQq4mV90qHPQptOpsBAx+lze xfiHf2HcLRwfopB8TRTD6qhV4NHGBjs+mtLNFejEWYk0sl6RIxowOwbXT8GJzlivg8 wpw+MI/FVXVsuxy1n3sqLrOSjqD4HsBX/hbU20KB0vepY8onDtXm4vyrajS0dcR8Ub th22LqZDDA1LOI55A6huIW9/QZ9MeQc6sptqeKTvTdZON67TGfxJdxH+QJH1tGssol +Whion7zGtqqG5VJbz9TjDVzpYXZ/t8hvrEUMtynD+jz9KQw69B6w3xNw4N7TxLMAP naFyJtKNzxD4w== Date: Fri, 16 Jun 2023 17:01:25 -0500 From: Bjorn Helgaas To: Kai-Heng Feng Cc: bhelgaas@google.com, Mario Limonciello , Mika Westerberg , Kuppuswamy Sathyanarayanan , Vidya Sagar , Michael Bottini , "Rafael J. Wysocki" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI/ASPM: Enable ASPM on external PCIe devices Message-ID: <20230616220125.GA1555182@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230615070421.1704133-1-kai.heng.feng@canonical.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jun 15, 2023 at 03:04:20PM +0800, Kai-Heng Feng wrote: > When a PCIe device is hotplugged to a Thunderbolt port, ASPM is not > enabled for that device. However, when the device is plugged preboot, > ASPM is enabled by default. > > The disparity happens because BIOS doesn't have the ability to program > ASPM on hotplugged devices. > > So enable ASPM by default for external connected PCIe devices so ASPM > settings are consitent between preboot and hotplugged. > > On HP Thunderbolt Dock G4, enable ASPM can also fix BadDLLP error: > pcieport 0000:00:1d.0: AER: Corrected error received: 0000:07:04.0 > pcieport 0000:07:04.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID) > pcieport 0000:07:04.0: device [8086:0b26] error status/mask=00000080/00002000 > pcieport 0000:07:04.0: [ 7] BadDLLP > > The root cause is still unclear, but quite likely because the I225 on > the dock supports PTM, where ASPM timing is precalculated for the PTM. > Link: https://bugzilla.kernel.org/show_bug.cgi?id=217557 I know you said this isn't clear yet, but I don't see a connection between ASPM being enabled and PTM. If anything, *disabling* ASPM should be safer if there's a timing issue. I assume the ASPM timing you refer to is the LTR snoop/no snoop latency, since that's the only timing difference I see in the lspci output in bugzilla? I don't see any PTM differences there. Bjorn