Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp250043lqs; Tue, 5 Mar 2024 00:17:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDHqdr/WXbvIBV7zGBVgJJUgERBsmyAKD1I1+QsJo6xBISsmqA2xlJ+KdwfOFxPO26COAaRv5zLWhzELtsPhDAPY/Uu/TmNB7jFOpFAQ== X-Google-Smtp-Source: AGHT+IGsVdjRdJdrhGoixTEkzFchlR0EvtH8aYzTVMWdEBDnd5M2a62yOz7P+aj0uA9G3lMQVftt X-Received: by 2002:a05:6402:1e86:b0:565:3aa7:565f with SMTP id f6-20020a0564021e8600b005653aa7565fmr7085315edf.8.1709626641169; Tue, 05 Mar 2024 00:17:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709626641; cv=pass; d=google.com; s=arc-20160816; b=wzmBaoBc3ryBTdRcVzj/3sx15kpSVETI7rymkJLdwLH/yNMzFrUFlCp2UuV+ZSNrlc dWxruNnsJSGmRJqm4fGsA1VVsV3xa6Dz5/gQJ/5uqzr9Hz1l7BRcU5vXde8TWB/0/1rr RWjCCuUxbl1XsHjVPyx+g7DB+G2+Q7RQnHVR/aQjP/8Hdl7oXAUbiiEl438vrsxcmzLS GVI0vlA6BHadHLAq2V6PiUDqObySuz6IOor87cd1TuqxAOuV0YBq2eJJFdAc/0TF5nkc 5FqXKJ4LBxPGbgmUKfnY1ZbfiyaQxu0recQQ4ECiuuX5in5iLMPUTSOWw4XMm1gOZdm8 8c4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=bIwhuElUXIwVMr/xCZQvPMD2aoLsGVCT8851g87E3RQ=; fh=ksFR342kkulMuv+0q94BrHeEzFBbdZfbM5STU9uX3MA=; b=CR/Yymw5iJJv+BMdERU0XWC+z2zyGJaEMHj2d3RAh+4N76vaFQ8NpE6m4/a6O6NRLL vDW4fnLnx5E9e2e2Kz3ubGLbe7Rrz+rnxC9pNk9aIo1gmtEhDdsUaJtwydCiW8GL24jv zGKN/YzFxp0TDqAYS19wiYr7hXpmk/IePsXB6Bwo6G0uC+XRn7DOR/UB3+AVFa9qEHAT 02GGnbaCuXisLQhBhG/RnsxBd3+z8yG2hnyOrj3DZLNnKXK6ACy3IpskhXZnBWGy5ZM3 ZimYidxaX4StOS3Qp7vII4inbypUK2R2Guurkx8/kvUzUVcdiABxWeobyhu6pDieDjaa 2gpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J6771nRi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q22-20020aa7da96000000b00560dedd6fafsi4862376eds.167.2024.03.05.00.17.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J6771nRi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BBC6B1F215FB for ; Tue, 5 Mar 2024 08:17:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE0F823B7; Tue, 5 Mar 2024 08:14:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J6771nRi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DFF980620; Tue, 5 Mar 2024 08:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626486; cv=none; b=oseavRNZC+w9U6xfT73qMvLFuI41GIo9pZZOjiUXWcZvuiTLT5ntw2v+xSumn0M+9jdN80tUzGgqrk+6eiABdYcOBC+W4gXYa9UtjzhO/LUXFQkXZhwWo1ILTytoC+OaPaPdb0KYNnMF7m1SLZZseEq0C9chBm7Vce232rVQcXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626486; c=relaxed/simple; bh=bz1gXOES0RIAkOKF6ua3EaiEwnFlMnYADUJVvZk8C9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rsxi5G7wYTeRfwcvS3FmChgYhuzqVvwSAHqEuaIUOCnanGria4FMoCMpQE/IvIzloDIL8KMwIhPC8kS9hOGsyhD7sepbSlGnFOfUMMOq1zxFC+RCmsUY/cWqteDEpQodzd4BZ4V4mWco6NC7kZUp/wVBCAh1B5630UlsVzLOGvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J6771nRi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DAE9C43399; Tue, 5 Mar 2024 08:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709626485; bh=bz1gXOES0RIAkOKF6ua3EaiEwnFlMnYADUJVvZk8C9U=; h=From:To:Cc:Subject:Date:From; b=J6771nRi2xyn/nMZnbhEGrcDZ+Pfem9XccK0J/zEtO2BSB0UcUJNsuIUD+Axxf7v/ npLbvPU1nlKvrpu1hN5spe7umykP8zFKNo4C1mWxbr+OLZtdRaL2gD6+zU7agRvYdd gYu3GwykVpynAB2sxnBk+i0ToHIaqhJSVFutXAjWsQb9+LHLC1L4K1IdmKez5kM49D aWMN1mJ9E61vwmaTJnOXgDvlNa6+3YxU5+f78rBol6DUKrG7YWh8ynjOK7iKrVV+oW ztqHQwZaBHKdCR1NNNV+gPQDyO92wRriuUMygK9p9g1tdt+vuAKCpIUeJ/sf4UrrWu gPnGaGna/CDOQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rhPwo-0000000037n-4AX1; Tue, 05 Mar 2024 09:14:51 +0100 From: Johan Hovold To: Bjorn Helgaas , Bjorn Andersson Cc: Konrad Dybcio , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 00/10] arm64: dts: qcom: sc8280xp: PCIe fixes and GICv3 ITS enable Date: Tue, 5 Mar 2024 09:10:55 +0100 Message-ID: <20240305081105.11912-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series addresses a few problems with the sc8280xp PCIe implementation. The DWC PCIe controller can either use its internal MSI controller or an external one such as the GICv3 ITS. Enabling the latter allows for assigning affinity to individual interrupts, but results in a large amount of Correctable Errors being logged on both the Lenovo ThinkPad X13s and the sc8280xp-crd reference design. It turns out that these errors are always generated, but for some yet to be determined reason, the AER interrupts are never received when using the internal MSI controller, which makes the link errors harder to notice. On the X13s, there is a large number of errors generated when bringing up the link on boot. This is related to the fact that UEFI firmware has already enabled the Wi-Fi PCIe link at Gen2 speed and restarting the link at Gen3 generates a massive amount of errors until the Wi-Fi firmware is restarted. This has now also been shown to cause the Wi-Fi to sometimes not start at all on boot for some users. A recent commit enabling ASPM on certain Qualcomm platforms introduced further errors when using the Wi-Fi on the X13s as well as when accessing the NVMe on the CRD. The exact reason for this has not yet been identified, but disabling ASPM L0s makes the errors go away. This could suggest that either the current ASPM implementation is incomplete or that L0s is not supported with these devices. Note that the X13s and CRD use the same Wi-Fi controller, but the errors are only generated on the X13s. The NVMe controller on my X13s does not support L0s so there are no issues there, unlike on the CRD which uses a different controller. The modem on the CRD does not generate any errors, but both the NVMe and modem keeps bouncing in and out of L0s/L1 also when not used, which could indicate that there are bigger problems with the ASPM implementation. I don't have a modem on my X13s so I have not been able to test whether L0s causes any trouble there. Enabling AER error reporting on sc8280xp could similarly also reveal existing problems with the related sa8295p and sa8540p platforms as they share the base dtsi. After discussing this with Bjorn Andersson at Qualcomm we have decided to go ahead and disable L0s for all controllers on the CRD and the X13s. Note that disabling ASPM L0s for the X13s Wi-Fi does not seem to have a significant impact on the power consumption (and there are indications that this applies generally for L0s on these platforms). *** As we are now at 6.8-rc7, I've rebased this series on the Qualcomm PCIe binding rework in linux-next so that the whole series can be merged for 6.9 (the 'aspm-no-l0s' support and devicetree fixes are all marked for stable backport anyway). The DT bindings and PCI patch are expected to go through the PCI tree, while Bjorn A takes the devicetree updates through the Qualcomm tree. Johan Changes in v3 - drop the two wifi link speed patches which have been picked up for 6.8 - rebase on binding rework in linux-next and add the properties also to the new qcom,pcie-common.yaml - https://lore.kernel.org/linux-pci/20240126-dt-bindings-pci-qcom-split-v3-0-f23cda4d74c0@linaro.org/ - fix an 'L0s' typo in one commit message Changes in v2 - drop RFC from ASPM patches and add stable tags - reorder patches and move ITS patch last - fix s/GB/MB/ typo in Gen2 speed commit messages - fix an incorrect Fixes tag - amend commit message X13 wifi link speed patch after user confirmation that this fixes the wifi startup issue - disable L0s also for modem and wifi on CRD - disable L0s also for nvme and modem on X13s Johan Hovold (10): dt-bindings: PCI: qcom: Allow 'required-opps' dt-bindings: PCI: qcom: Do not require 'msi-map-mask' dt-bindings: PCI: qcom: Allow 'aspm-no-l0s' PCI: qcom: Add support for disabling ASPM L0s in devicetree arm64: dts: qcom: sc8280xp: add missing PCIe minimum OPP arm64: dts: qcom: sc8280xp-crd: disable ASPM L0s for NVMe arm64: dts: qcom: sc8280xp-crd: disable ASPM L0s for modem and Wi-Fi arm64: dts: qcom: sc8280xp-x13s: disable ASPM L0s for Wi-Fi arm64: dts: qcom: sc8280xp-x13s: disable ASPM L0s for NVMe and modem arm64: dts: qcom: sc8280xp: enable GICv3 ITS for PCIe .../bindings/pci/qcom,pcie-common.yaml | 6 +++++- .../devicetree/bindings/pci/qcom,pcie.yaml | 6 +++++- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 5 +++++ .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 5 +++++ arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 17 +++++++++++++++- drivers/pci/controller/dwc/pcie-qcom.c | 20 +++++++++++++++++++ 6 files changed, 56 insertions(+), 3 deletions(-) -- 2.43.0