Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp381969rdh; Tue, 13 Feb 2024 22:36:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeyHJsH/zvzWWamUT3DHh4TCmMVI4mh2ZVyg0+C66XtJXmFJuLRfU8NKPyRQBjJQwuMBO+zmlIl51yjr+cquts91/WTPd26A5fGobG9A== X-Google-Smtp-Source: AGHT+IFvGO/y+hNu/r45ZLZXKnGYxlWWBhpohyzGsemt/QPvxxOaSNFBpWVi1pnbJbqNKjQkNKAt X-Received: by 2002:a17:90a:468f:b0:296:454f:1e72 with SMTP id z15-20020a17090a468f00b00296454f1e72mr1680431pjf.4.1707892575934; Tue, 13 Feb 2024 22:36:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707892575; cv=pass; d=google.com; s=arc-20160816; b=u/ZfbHDTgw2JrtoQp9OFvc+GPgMZiRCnJXmCRXOQA5xhwdPJcEKr/sWASsf9q3ojfO +UDc0D2eBCAlqyDjcaO2r0916ed/Y25rz/dSG1TLQxVKRR2KMUFS2WRo9u0OerLP++dq V1L0f32qgdadfJB27n/YRazRvBMTJZsyX5VcCGyO1Dni+kj8m+KEBGpAPTsPPYsPUX0o 02eWgKi9w6Ump6ted5sdg4Qn6zntN/J9n7gIDUva75+g4yTuhXT798AAQLymTN3Mh3mb NSOFN7qp3NJ3K603cS/oLbAYVU2pTebwIUbyVhlYkUqNtR5GxGbl9aNqhH5hsm/vhqb0 y0MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QGcxOyI3gqRHqjaeGgz6cLsEEU9nKKLG3Qcn8Q9LRis=; fh=pjlLpEB8uu5PVul4al61/dEz6hTfBD5tmYdsbwUZWjM=; b=SVyBtcbwuTVkZgB/FApeLZTOx3DdIvstI89Hg/ICf9pint7lsgTned9UPFiR8NWUUO 6mqRLt9aToZa8kMRo+DrjrLBPpt52DPhj1P/0Rp5xMEApAh6Cwlpy2SBj+kzQ3OER16D gAEWSUOnbvw9Eh9cHzYROyVEbv0A3ePe3jjpkcfJjougZdIfAs7Ar8VJDelUsJeajoBL 9FsUVhhlsNY+pEtC6QiHk4PuKR+FHxvXbsywWmeIad1iSVxt7AMyl5yZ7Z9TC0FV3O7R IqbZrpur2yy7iQv9n/fhIM+ktdhdkelr98FQ6nnAQMrGojmCsbLTZ8WJIAWxmaZZHfeZ yxvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eq6AOaj9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCX/ZJmdmBZLoWKhkF1zLHryRLTC33phtg7zdUSyTnW8TJLBRs0EehDGC4f15AsdanfwPnC4AYA6xmKx+G9KKuQhBBH/w90shjCo0pLClg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r24-20020a638f58000000b005dc788f3767si3292298pgn.620.2024.02.13.22.36.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eq6AOaj9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D99F28511F for ; Wed, 14 Feb 2024 06:36:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89877111B0; Wed, 14 Feb 2024 06:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eq6AOaj9" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80B83D51B for ; Wed, 14 Feb 2024 06:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707892565; cv=none; b=nOqA+0aRrlNU1wo3bwRRHb19B9r5VTLRqLafFwis3UZ5aFlRjg9NLi8ICbunk+pNrpNT/41/ur4+g7MfA4LQzq68VmvRudcaVB1riK+seyUNlaiqCJOyNQl5oeZpl5h8+LS0QwddbDXxhFU9KmGZXVHWWqYbzaR5WghDnw+D/f8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707892565; c=relaxed/simple; bh=S0n0jL6+mRYRMYvMwHnUkELzPpbyDPaR1URF6rkE1lQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rIMvR5beFnz3JhmU3Q3LkF2AO2A7qM+4f+YcuP5iOWJZ6XsAZsNgB4pq7MCx/BpKyjADPgGUPZMFMBnUGZKTNtqzBzudzs4qNH8Vt9n5450D+6t+5+AB573roQedH30sRiclwzfPLMFBfeIvoTTtNxTmiqsFJVLx8S/68PgvEOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eq6AOaj9; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-298c1751c3dso342169a91.0 for ; Tue, 13 Feb 2024 22:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707892561; x=1708497361; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=QGcxOyI3gqRHqjaeGgz6cLsEEU9nKKLG3Qcn8Q9LRis=; b=eq6AOaj9OPoWEtHfaR+s6/ZYiKHPPsLCOMfZsKHuupE2/tFbjaE71L4zUq3e3o+bT6 MCfflegwlpOXAMMGYTFaRZNxOMIxxVVPt5qanA2uIsxZlwUV0X0Ju8E17zpZug/+a79H 1xY9EIPQ291ms549zlTN0z6bfQiLXAWxlMN6Lx78g+GXUcRrNGgLVRIIxlkJntEC6Ymt OGKaFrgof2GLlATs94EjhU0uPydQZCXQ92obUS/FVVpwBDDu/PWfWHeuFPmrnFN5ZUyX YTW3HmJH1lBfkBSPor/YP7SG5XggbWldg1l4FZGXD+lihR2q1kU4JIdbXN3ZoIXtd/iJ 5e0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707892561; x=1708497361; h=in-reply-to:content-transfer-encoding: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=QGcxOyI3gqRHqjaeGgz6cLsEEU9nKKLG3Qcn8Q9LRis=; b=cNoird64GaoDrkZHSPFKW644ddYOwkl2DLN1mvWYsIwh2Si88e+6JX5mnhZwlrmcGX bjBkNfdeO9JpfRRAu5rcz6aD8ZKvXRYE147A18O2OlJU/I7AQziY2cr+zOn57U1vWZ52 EYs/z2V2i0RD4Ov0LjHtYBUOtJXdSzhIULxL/4QorTpXDBrCVQhkTcU58XaQeVcNqUXs XPiEjtm9Vl2Js8nHhcExQd8KatYfM2AMyaM9vBqytf+3C3kempfhkI++vgm2HmqZrutV BjDExOLrwSfUgh8Aub7pACtpkrHGynVU7aOIeEIn5x3H7p/T9MaWD4M0a3TWnSVB+2XP bCyA== X-Forwarded-Encrypted: i=1; AJvYcCUguHAC580FFKGj7Xy+kHJkXdMTiFdw9lgUwQSBq5vmcL11HjJ1Sxwu6THKaXFREzMFaZa9nTfEseVB5pBbWuqfkHlbvlnoEAVtUcR8 X-Gm-Message-State: AOJu0Yw5HxogLWBNwpeywVXzoEJ9f8TpK/6NB/ii1JKqaKMt5Dhsbmb7 LIrK2N0OK7GmvxN7UukWGPBUZyfzL0IRskI0zoMnlvW0sJUFiCd6/SuSYbPXqw== X-Received: by 2002:a17:90a:df86:b0:296:66a4:2e6c with SMTP id p6-20020a17090adf8600b0029666a42e6cmr1576120pjv.23.1707892560535; Tue, 13 Feb 2024 22:36:00 -0800 (PST) Received: from thinkpad ([103.28.246.124]) by smtp.gmail.com with ESMTPSA id d30-20020a17090a6f2100b0029899165611sm643285pjk.35.2024.02.13.22.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:36:00 -0800 (PST) Date: Wed, 14 Feb 2024 12:05:54 +0530 From: Manivannan Sadhasivam To: Johan Hovold Cc: Bjorn Andersson , Bjorn Helgaas , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/10] arm64: dts: qcom: sc8280xp: enable GICv3 ITS for PCIe Message-ID: <20240214063554.GC4618@thinkpad> References: <20240212165043.26961-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240212165043.26961-1-johan+linaro@kernel.org> On Mon, Feb 12, 2024 at 05:50:33PM +0100, Johan Hovold wrote: > 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, How did you confirm this? > 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. > If you manually inject the errors using "aer-inject", are you not seeing the AER errors with internal MSI controller as well? > 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. > > 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. > What are those "further errors" you are seeing with ASPM enabled? Are those errors appear with GIC ITS or with internal MSI controller as well? > 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 an 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. > > The last four patches, marked as RFC, adds support for disabling ASPM > L0s in the devicetree and disables it selectively for the X13s Wi-Fi > and CRD NVMe. If it turns out that the Qualcomm PCIe implementation is > incomplete, we may need to disable ASPM (L0s) completely in the driver > instead. > If the device is not supporting L0s, then it as to be disabled in the device, not in the PCIe controller, no? > Note that disabling ASPM L0s for the X13s Wi-Fi does not seem to have a > significant impact on the power consumption > > 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. > Since I took a stab at enabling the GIC ITS previously, I noticed that the NVMe performance got a slight dip. And that was one of the reasons (apart from AER errors) that I never submitted the patch. Could you share the NVMe benchmark (fio) with this series? > Johan > > > Johan Hovold (10): > dt-bindings: PCI: qcom: Allow 'required-opps' > dt-bindings: PCI: qcom: Do not require 'msi-map-mask' > arm64: dts: qcom: sc8280xp: add missing PCIe minimum OPP > arm64: dts: qcom: sc8280xp-crd: limit pcie4 link speed > arm64: dts: qcom: sc8280xp-x13s: limit pcie4 link speed > arm64: dts: qcom: sc8280xp: enable GICv3 ITS for PCIe Is this patch based on the version I shared with you long back? If so, I'd expect to have some credit. If you came up with your own version, then ignore this comment. - Mani > dt-bindings: PCI: qcom: Allow 'aspm-no-l0s' > PCI: qcom: Add support for disabling ASPM L0s in devicetree > arm64: dts: qcom: sc8280xp-crd: disable ASPM L0s for NVMe > arm64: dts: qcom: sc8280xp-x13s: disable ASPM L0s for Wi-Fi > > .../devicetree/bindings/pci/qcom,pcie.yaml | 6 +++++- > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 4 ++++ > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 3 +++ > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 17 +++++++++++++++- > drivers/pci/controller/dwc/pcie-qcom.c | 20 +++++++++++++++++++ > 5 files changed, 48 insertions(+), 2 deletions(-) > > -- > 2.43.0 > -- மணிவண்ணன் சதாசிவம்