Message ID | qcoqksikfvdqxk6stezbzc7l2br37ccgqswztzqejmhrkhbrwt@ta4npsm35mqk |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-21036-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp181578dyi; Tue, 9 Jan 2024 07:21:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+4q7aiKjBF0E7jacAsoQfZND5Xm6c6kKKW9ZBcwMCuJ0wlHeJdAtyolo/LXwf5oaQnMRI X-Received: by 2002:a17:90a:6bc6:b0:28c:fcef:25a8 with SMTP id w64-20020a17090a6bc600b0028cfcef25a8mr3226583pjj.71.1704813681550; Tue, 09 Jan 2024 07:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704813681; cv=none; d=google.com; s=arc-20160816; b=Psz+mQt1OAvq9zrOBmrJyvuhqen4T7kMTIOALY8jaKTLDJXR8g2SMZtKb+W5zLUVIQ pS9G2JdaRLk5TrxHt8nZViMes8A89MnOKHmXC/RDV2STC1yT48qzQX4ZTwNcnlHMtpfW eX+O1l1N77AyckHOzZF9P6xAmV77iQmQNldzpDid82RAiqfcfP1yeFJGq67o96sVgHUz jn2/eVyyOcEtd63NdRVgfR56fpL+X3IkV06vqLDhS+BQKyxrJvpE1FkXeJqrZA4CM0+u ljlMhXkFDAKI0Vpxu4Le4KRRNz+ppCRIwGhFWVCQ3u3zX3RTuI9FVU2pjSC8b99rAuBG 47+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=vn1ce8hywqQSUdzE/tq3PAQDOHuc7M+muFOo7RqI5C0=; fh=1NFVXna5qQ6ufhZR+JqlrRJwRoKPB2SLNBRGW7QUGLE=; b=QUwdOI/I4j9eG0QjQ5ViGrr1MWNOlzwrh+MGuuoWvBdCl7Ae39E2vGPICqe1vH3TAJ n73SdgJScLkLW7s/fyR08bYkdfzcGnHZtO6639BhjBWamOw5ljt3UGLJeL2qDbwJrApA YyTPeyqGlK4Km9CAB6le3IpeEanDMrgpALq6NjHri6er+lzt5Zx3cT428T5q2gND1OFZ 6WMgWiTX2KHdd9T06ON8eQ5BcInEFPbbX8g9VUrfB78sMYnvagOt2ogXaPRfA5wa5fip 5ct0Qo3FAJprFM7em1keaMCGLdnRgCChYLoPxE19fNi372uWHmskSo2+CpnxSRoLQ6h4 Gxag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NcDQdF9l; spf=pass (google.com: domain of linux-kernel+bounces-21036-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21036-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ne3-20020a17090b374300b0028d94a1d13esi1402278pjb.80.2024.01.09.07.21.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:21:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21036-ouuuleilei=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=@redhat.com header.s=mimecast20190719 header.b=NcDQdF9l; spf=pass (google.com: domain of linux-kernel+bounces-21036-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21036-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 537BC287E00 for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 15:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9BE939FEE; Tue, 9 Jan 2024 15:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NcDQdF9l" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 EA7E039FC1 for <linux-kernel@vger.kernel.org>; Tue, 9 Jan 2024 15:21:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704813662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=vn1ce8hywqQSUdzE/tq3PAQDOHuc7M+muFOo7RqI5C0=; b=NcDQdF9l8+9zIF96irLq9TVr9K4MG+GNybtjRs3eSA6O7uXu7A3nkBXZvMJ1r/5IOGWcqF lwXopGYW6TLi/DIEmMO0yEFHnp2PpI0+yPxxfhkrb01f/UJk5PZLgQdLhuFj/H5WblgAhM 5+fuk+Tngzzicz+mf55CR3qL3mclhg4= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-NRbeGThqMJuyX5xv38JAEg-1; Tue, 09 Jan 2024 10:21:01 -0500 X-MC-Unique: NRbeGThqMJuyX5xv38JAEg-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-78330275051so60720085a.3 for <linux-kernel@vger.kernel.org>; Tue, 09 Jan 2024 07:21:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704813661; x=1705418461; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vn1ce8hywqQSUdzE/tq3PAQDOHuc7M+muFOo7RqI5C0=; b=El20zD/qpxK9lL48iq830NdxwNlKEsTiUPLZ56xndNyegD2m6Q6H6edifB1WWiBks8 qfXTOaKHX/v7zmLoB1xeNjmE8dxp8F8+Sew8TTt9/hk94axV2EiNTpF5EtVtJP8Z9SU/ 8IcrLY3/A+eafzlEzHmLGML6Rwgh9drJqAByDjRWOFge9yLEeQz/VyGcAqVYVP6dNNwy /3ZO0Wn0tCM9JDbymeevfYdwVS0vtyhK1g5eyz16drs4SfYocSaWlkLYIHRw0HJSNSPw CZNssRRmSZ29cKpeMSVUx//z1OXyy2wHlrOppoui0LLqo7OwmuvIrrfJN5w6va2D/ILv d06Q== X-Gm-Message-State: AOJu0Yxf/AMpMpzdTOS9465ZULQq/E+Wz0JmDleyJ/6c3PdnGFYESLgQ zzJm67Ssxa3KisEMco+lCSErEmmnb2c0MemasS3QOKpf4nFpX40GBAMb4rmiBMVM9uB1YEvA7rM GgSoe0+2MrqGpK3m8WpklEFb4UM4+rIHl X-Received: by 2002:a05:620a:4008:b0:783:314c:48c4 with SMTP id h8-20020a05620a400800b00783314c48c4mr605886qko.96.1704813660942; Tue, 09 Jan 2024 07:21:00 -0800 (PST) X-Received: by 2002:a05:620a:4008:b0:783:314c:48c4 with SMTP id h8-20020a05620a400800b00783314c48c4mr605875qko.96.1704813660554; Tue, 09 Jan 2024 07:21:00 -0800 (PST) Received: from fedora ([174.91.39.234]) by smtp.gmail.com with ESMTPSA id h2-20020a05620a13e200b007832016a732sm874832qkl.83.2024.01.09.07.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:21:00 -0800 (PST) Date: Tue, 9 Jan 2024 10:20:50 -0500 From: Lucas Karpinski <lkarpins@redhat.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: sa8540p-ride: disable pcie2a node Message-ID: <qcoqksikfvdqxk6stezbzc7l2br37ccgqswztzqejmhrkhbrwt@ta4npsm35mqk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20231103 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787626710920423844 X-GMAIL-MSGID: 1787626710920423844 |
Series |
[v2] arm64: dts: qcom: sa8540p-ride: disable pcie2a node
|
|
Commit Message
Lucas Karpinski
Jan. 9, 2024, 3:20 p.m. UTC
pcie2a and pcie3a both cause interrupt storms to occur. However, when
both are enabled simultaneously, the two combined interrupt storms will
lead to rcu stalls. Red Hat is the only company still using this board
and since we still need pcie3a, just disable pcie2a.
Signed-off-by: Lucas Karpinski <lkarpins@redhat.com>
---
v2:
- don't remove the entire pcie2a node, just set status to disabled.
- update commit message.
arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Tue, Jan 09, 2024 at 10:20:50AM -0500, Lucas Karpinski wrote: > pcie2a and pcie3a both cause interrupt storms to occur. However, when > both are enabled simultaneously, the two combined interrupt storms will > lead to rcu stalls. Red Hat is the only company still using this board > and since we still need pcie3a, just disable pcie2a. > > Signed-off-by: Lucas Karpinski <lkarpins@redhat.com> Reviewed-by: Brian Masney <bmasney@redhat.com> To elaborate further: Leaving both pcie2a and pcie3a enabled will lead to rcu stalls and the board fails to boot when both are enabled. We have the latest firmware that we've been able to get from QC. Disabling one of the pcie nodes works around the boot issue. There's nothing interesting on pcie2a on the development board, and pcie3a is enabled because it has 10GB ethernet that works upstream. The interrupt storm on pcie3a can still occur on this platform, however that's a separate issue. Brian
On Thu, Jan 11, 2024 at 09:02:41AM -0500, Brian Masney wrote: > On Tue, Jan 09, 2024 at 10:20:50AM -0500, Lucas Karpinski wrote: > > pcie2a and pcie3a both cause interrupt storms to occur. However, when > > both are enabled simultaneously, the two combined interrupt storms will > > lead to rcu stalls. Red Hat is the only company still using this board > > and since we still need pcie3a, just disable pcie2a. > > > > Signed-off-by: Lucas Karpinski <lkarpins@redhat.com> > > Reviewed-by: Brian Masney <bmasney@redhat.com> > > To elaborate further: Leaving both pcie2a and pcie3a enabled will lead > to rcu stalls and the board fails to boot when both are enabled. We > have the latest firmware that we've been able to get from QC. > Disabling one of the pcie nodes works around the boot issue. There's > nothing interesting on pcie2a on the development board, and pcie3a is > enabled because it has 10GB ethernet that works upstream. > > The interrupt storm on pcie3a can still occur on this platform, however > that's a separate issue. Related work-around to that in case anyone is interested in the paper trail: https://lore.kernel.org/all/89c13962f5502a89d48f1efb7a6203d155a7e18d.camel@redhat.com/
On Tue, Jan 09, 2024 at 10:20:50AM -0500, Lucas Karpinski wrote: > pcie2a and pcie3a both cause interrupt storms to occur. However, when > both are enabled simultaneously, the two combined interrupt storms will > lead to rcu stalls. Red Hat is the only company still using this board > and since we still need pcie3a, just disable pcie2a. > Why are there interrupt storms? What interrupt(s) is(are) involved? Do you consider this a temporary fix? Are you okay with pcie3a misbehaving? Regards, Bjorn > Signed-off-by: Lucas Karpinski <lkarpins@redhat.com> > --- > v2: > - don't remove the entire pcie2a node, just set status to disabled. > - update commit message. > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > index b04f72ec097c..177b9dad6ff7 100644 > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > @@ -376,14 +376,14 @@ &pcie2a { > pinctrl-names = "default"; > pinctrl-0 = <&pcie2a_default>; > > - status = "okay"; > + status = "disabled"; > }; > > &pcie2a_phy { > vdda-phy-supply = <&vreg_l11a>; > vdda-pll-supply = <&vreg_l3a>; > > - status = "okay"; > + status = "disabled"; > }; > > &pcie3a { > -- > 2.43.0 >
> Why are there interrupt storms? What interrupt(s) is(are) involved? In the earlier link that Andrew mentioned, the DesignWare PCIe driver uses a chained interrupt to demultiplex the downstream MSI interrupts. This meant we couldn't identify the MSI interrupt source, so it is not clear what is causing the hw to misbehave the way that it is. > Do you consider this a temporary fix? This will likely be a permanent fix. Qualcomm disabled pcie2a in their downstream kernel as well, quite some time ago, so this may never be actually fixed. > Are you okay with pcie3a misbehaving? Yes, it would be great of the underlying issue was addressed, but at least the boards are usable with just pcie3a enabled and the nic will be available. Lucas > > Signed-off-by: Lucas Karpinski <lkarpins@redhat.com> > > --- > > v2: > > - don't remove the entire pcie2a node, just set status to disabled. > > - update commit message. > > > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > index b04f72ec097c..177b9dad6ff7 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > @@ -376,14 +376,14 @@ &pcie2a { > > pinctrl-names = "default"; > > pinctrl-0 = <&pcie2a_default>; > > > > - status = "okay"; > > + status = "disabled"; > > }; > > > > &pcie2a_phy { > > vdda-phy-supply = <&vreg_l11a>; > > vdda-pll-supply = <&vreg_l3a>; > > > > - status = "okay"; > > + status = "disabled"; > > }; > > > > &pcie3a { > > -- > > 2.43.0 > > >
On Tue, 09 Jan 2024 10:20:50 -0500, Lucas Karpinski wrote: > pcie2a and pcie3a both cause interrupt storms to occur. However, when > both are enabled simultaneously, the two combined interrupt storms will > lead to rcu stalls. Red Hat is the only company still using this board > and since we still need pcie3a, just disable pcie2a. > > Applied, thanks! [1/1] arm64: dts: qcom: sa8540p-ride: disable pcie2a node commit: 07bbe3fd0704ab47d365756a31f45a86e3b45c0a Best regards,
diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts index b04f72ec097c..177b9dad6ff7 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts @@ -376,14 +376,14 @@ &pcie2a { pinctrl-names = "default"; pinctrl-0 = <&pcie2a_default>; - status = "okay"; + status = "disabled"; }; &pcie2a_phy { vdda-phy-supply = <&vreg_l11a>; vdda-pll-supply = <&vreg_l3a>; - status = "okay"; + status = "disabled"; }; &pcie3a {