Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp933126lqs; Wed, 6 Mar 2024 00:49:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUBy6XJIdpcs9mHSYARJ/g1aPgRWAoTseuDr0KHSDkcqDF6ALV8yG1rWd8sSamEBO0nLScXj5VjXAHfuGh0UY7NqKDJ4yfhoKqwDrFbtA== X-Google-Smtp-Source: AGHT+IGM+jdkWrehQfxG3ruKCRvHdsrLkC96+5A1Gdmeukj0Pen0X7v9+ve+ScIIPXHS3EyypkuB X-Received: by 2002:a05:6a20:4386:b0:1a1:4d3d:e221 with SMTP id i6-20020a056a20438600b001a14d3de221mr5887446pzl.58.1709714954280; Wed, 06 Mar 2024 00:49:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709714954; cv=pass; d=google.com; s=arc-20160816; b=DYmc2nQCJF+WXmxFDWV/Aml8QOsXflx28cgFPL5ia7TbmuoA7ZATqzWpln6l0pnULX 5/VZApWLZQg4WWlxz9omlc7GH8UAesiIR+WJYORMjqFUirWOAQnHRfHnO4OwOJGy+H9H Pe4phVZn7IiXDd9yutbUL1HVerVZKLiiH3Ziq32d80USOTSn81bi8w6bEyyEgrS/Gyp2 hAW08xleNvZFomhPzkjRmD/pURBRRVVBlrxzzpqpXvxKAgYM9Hk3SYKi5Gzg+L19W8GF Y8gKH/mRDxFxy8Wk+XYFGnfEl00PM6Un8UQxxNdlgDmOnHHjO9f2T8XfiMx1R0cEJqu0 RARg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wPJcMt9czU8S/KRgNJR9WUU4PL6FneJAhBauOiwGrYc=; fh=dHJyBdUNE3mE30tjZhZomawgv34D7JIudhv7aM8+cz4=; b=Esg0gNtr02sxgYYltIXatyUo0g0ymCO1HxeEQ3io9s5Bj9zgNIvjQ60R+IZ8+VoFSy /86xnUQv59ZnBJLKALqgsCZ22PGp1hZu4Ry8MIUI3UFSxQd3oy3AW/79eukIIucHBx9+ ct1cEulprYFA1hdhw3FRLos8/eYHf93csH9F24GEDbChi/sXYiTLEWbhTI22yAasqcix zaXsRg4KTMCNoI2cjDCZioS24wZBRtKfy9ymQeoHJLbAM0nZUq3hs4qEP32uyg19J4RS c4cxV3TR1uIUgVqc0FS6dv9OBAHOMYbHMAUsfIiIsqKQl6PkcRDhe8kU0WoTKJ/ivdYf bUPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ez6bQX5H; 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-93532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93532-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m16-20020a634c50000000b005d47eca0246si11223481pgl.378.2024.03.06.00.49.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ez6bQX5H; 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-93532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93532-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 784DA288CF4 for ; Wed, 6 Mar 2024 08:48:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF87B5D8FF; Wed, 6 Mar 2024 08:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ez6bQX5H" Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 4CB605D742 for ; Wed, 6 Mar 2024 08:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709714923; cv=none; b=ECh3JYSAphtovpne/opvJS704XlRYnmRIHOlfy3SPXjmSDOdF9TbKevFVvyplx6aBQX4xaXIQN1mW6vbn1SjvQeG4Hi5hxfu2XU8v/yFtjmbKh29fr/O07ZXJzP8BrvMFJMzW+MzsfesqqZBNEXkaHAFYIut7KJa7qHF/KZEYzw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709714923; c=relaxed/simple; bh=wPJcMt9czU8S/KRgNJR9WUU4PL6FneJAhBauOiwGrYc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RFAhtucdYimBzATgZP8r3YqQ3WzWlA06kOmia6sht6hquRBytfTLU78mjo31d+HrB0d6Y4L3RnOr9+sMJezsPtEO6oWmDkONonNqoJxUWwDQZBPSQjdprDY4J3WjZxwTjBbJcKPiJVjqGZDu68rbUq+l4ncjXl19B8xhhlg3UAU= 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=ez6bQX5H; arc=none smtp.client-ip=209.85.219.176 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-yb1-f176.google.com with SMTP id 3f1490d57ef6-dc74e33fe1bso760779276.0 for ; Wed, 06 Mar 2024 00:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709714921; x=1710319721; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wPJcMt9czU8S/KRgNJR9WUU4PL6FneJAhBauOiwGrYc=; b=ez6bQX5HRSTrgYagVveNUnmh49t6CNBD8kz6yQNxTbammHOs13dxZBHGnm3wlYALt9 KLlwq3x/L9bhP/9HSaCbKC/B6rUUmeT3ZPRlc+qCH5n6B3Sbxbnn4p/G0KcvMvKetPH+ Bp+7Y482CbYEARzIPAVyUidzXJ1hh5A3PNHl1TrAGLawsTkDY4bXmTOjftvERbuM0hFQ Az8ot1a8z271KKFq6pexhmWnNC3okqgfJ1mV44jT+CrOf4ZRWggEd25w9F8y4RGO3B4P wJvBkt1LLssl3eZJ0bQzDOk/cRWRJLXVxrsKQ63SVOw76UMZuWTRHYuvkd8/yZqk5bJn 7I4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709714921; x=1710319721; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wPJcMt9czU8S/KRgNJR9WUU4PL6FneJAhBauOiwGrYc=; b=IZUAt0wEC/Zq8Lt/nL8529V4D1EfZfMXzdENPnjhc5agGaFU82v6iTnGU1aHtEi1Jv C4/RYDPIIgwP1GxekbPQ/C3gjHdA5lCoJuOPxq86ZVhwF8+9YmmXQTIuEZNXqT4i4cJX WQH+Qu+jtUENtqt444MqM3BXPCZb0dL3lNTEYotSNL8N2A/jEiRz6KMLyV8s6NeiJKOR dDHUyMjFACZsNxE9RlzcoA4F1P9YInfJsdDFOosSe5x5f+WTPWHVydZG8C1sOO3fDOXQ mmEQ2XjKv3dctGNL6cHIVZm5sfXvRI5WgSVufrVi6sJc3o2Tf3L7vxjNrO8jMmJskkbD aIeg== X-Forwarded-Encrypted: i=1; AJvYcCXQ3PLfcLF13VM2SmIxOxcBTwZstouWk/2F9LGSF0zcVHYR0poBiw6gNIc7A19jQop+EJk6pBJ6CMOxRrkoiiurqcbvtOJQF5vPOQmY X-Gm-Message-State: AOJu0YynI/JV0eR9t2f7Rau/1YcSPEaZRh/Yuw5KLWB21ILSZN+wBV5s ry7qM0tLjFX2fEWnXeLmOJ4q+R95MjZwTYLkeXcDsin710PwpJD0UPKB1xX9+9HzztQsgZ3y3XQ 7soxi668fLyw04eX1/q4m83hbVYXQ4aY4cIrd1Q== X-Received: by 2002:a25:ae53:0:b0:dc7:42b8:2561 with SMTP id g19-20020a25ae53000000b00dc742b82561mr11571546ybe.34.1709714921292; Wed, 06 Mar 2024 00:48:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240305081105.11912-1-johan+linaro@kernel.org> <20240306063302.GA4129@thinkpad> <20240306083925.GB4129@thinkpad> In-Reply-To: <20240306083925.GB4129@thinkpad> From: Dmitry Baryshkov Date: Wed, 6 Mar 2024 10:48:30 +0200 Message-ID: Subject: Re: [PATCH v3 00/10] arm64: dts: qcom: sc8280xp: PCIe fixes and GICv3 ITS enable To: Manivannan Sadhasivam Cc: Johan Hovold , Johan Hovold , Bjorn Helgaas , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 6 Mar 2024 at 10:39, Manivannan Sadhasivam wrote: > > On Wed, Mar 06, 2024 at 08:20:16AM +0100, Johan Hovold wrote: > > On Wed, Mar 06, 2024 at 12:03:02PM +0530, Manivannan Sadhasivam wrote: > > > On Tue, Mar 05, 2024 at 09:10:55AM +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 ThinkP= ad > > > > X13s and the sc8280xp-crd reference design. > > > > > > > > It turns out that these errors are always generated, but for some y= et to > > > > be determined reason, the AER interrupts are never received when us= ing > > > > the internal MSI controller, which makes the link errors harder to > > > > notice. > > > > > > Enabling AER error reporting on sc8280xp could similarly also revea= l > > > > 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 deci= ded > > > > to go ahead and disable L0s for all controllers on the CRD and the > > > > X13s. > > > > > Just received confirmation from Qcom that L0s is not supported for an= y of the > > > PCIe instances in sc8280xp (and its derivatives). Please move the pro= perty to > > > SoC dtsi. > > > > Ok, thanks for confirming. But then the devicetree property is not the > > right way to handle this, and we should disable L0s based on the > > compatible string instead. > > > > Hmm. I checked further and got the info that there is no change in the IP= , but > the PHY sequence is not tuned correctly for L0s (as I suspected earlier).= So > there will be AERs when L0s is enabled on any controller instance. And th= ere > will be no updated PHY sequence in the future also for this chipset. Why? If it is a bug in the PHY driver, it should be fixed there instead of adding workarounds. > > So yeah, let's disable it in the driver instead. > > > > > 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). > > > > I'll respin the series. Looks like we've already missed the chance to > > enable ITS in 6.9 anyway. > > > > Sounds good, thanks! > > - Mani > > -- > =E0=AE=AE=E0=AE=A3=E0=AE=BF=E0=AE=B5=E0=AE=A3=E0=AF=8D=E0=AE=A3=E0=AE=A9= =E0=AF=8D =E0=AE=9A=E0=AE=A4=E0=AE=BE=E0=AE=9A=E0=AE=BF=E0=AE=B5=E0=AE=AE= =E0=AF=8D > --=20 With best wishes Dmitry