Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp968995lqs; Wed, 6 Mar 2024 02:13:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsorGXVCLGh+AY1vihd8CTy2bkB2E/NozHz6ZjKqA3SyQDYxY4QytBU0rfpIqsbx4rUOpAGs5J3qo12r2e1kenHykDvJXhCcp/NHwR7A== X-Google-Smtp-Source: AGHT+IFQxiJ2DyzVANuaRVIMlYtt6n7bv5TeQpkBCAhl42LqX8xLyeSUpWPRJTf518vpantZenTf X-Received: by 2002:a17:903:1251:b0:1db:c536:803c with SMTP id u17-20020a170903125100b001dbc536803cmr4531722plh.33.1709720000056; Wed, 06 Mar 2024 02:13:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709720000; cv=pass; d=google.com; s=arc-20160816; b=wgyj2KeaFehOvtpJpp1qk6ttIpDGry+DLOq97fHqBPQT0dxpkvog9RW6987qr/B2rL IlE6eKG6jcs0yQJOGKCRVYPrjJsMty/FkXsT2iTJyM4eOp8v5+Pm7jmxKkSUGmDN7Kjl /kgcnE2bfoY5tm/1GK0dbIOITFLOMRTSAEk64koi+V4ND53yzWOD0AzSmsYWADclE7/H YorvNbxSYk7nAHg5VxG4SM9zRa7qM3B5kAu5mZGfl2ErqgHajuAs3RYqvofiJ6f+lrDj hmEZDmddyyT9wmOjNS+E3xyPTMrBtg3cjpymw6i1VRnsVF+kx2YO0Gzevqua8Tab+dzt gCTw== 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=onNOJK5dVb7dHDdyyPmx8REkXT8q/MvLJnZknRgJ6mw=; fh=nZa+bZyBSgU4K35KPACcDidWhOyyYEtl4L7pOw14tXQ=; b=AT3cIlfmSRgkYeC4wgQvjjr+xq7GYrfM44WJMJ86AtGjKWxdwjoJeWPmopO3Vjv4ZQ HbnmbxoqemE58ZTNtByPj9ZUFBeI3gqfhpfKl6RWWlATavPhPkOmXqgq9jfYQZ2OUYw9 sUXPym0n+ycuCKma4+tqwd8IIilotUdl1GeSfE+LzwpSdLuK14VDtN78L9gyw+x8UZkv +VNEf1QHGSDhtgGe6h0AA8mNwjNzAanzNsjdi9LxVDWnaZbEzYOu5WzH2j4+tDjIZn0B 7961KtfM20dWt2rrQzjFKwUTcaFnZlRCphGT9RGh0mUgvtlpL/nVGeE4KFY3Y6jDlYrB 22Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aD2KGCDk; 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-93661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y9-20020a17090264c900b001dcdf7eb233si10578157pli.45.2024.03.06.02.13.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:13:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aD2KGCDk; 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-93661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93661-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A1970B26901 for ; Wed, 6 Mar 2024 09:47:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 703E55FDA0; Wed, 6 Mar 2024 09:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aD2KGCDk" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 D58DF5FB87 for ; Wed, 6 Mar 2024 09:45:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709718354; cv=none; b=OCD60Jydzn+fM95ECm+wpqVueRX7/tGzfJo0bv8zsrVT7GZ475jDcMFtwmRa/sT1ts+0p+ICHTEvl9udN/fjfvsL5+FZpUSp+y6cFxr0KwaqEBgTW0Sd7DdukgTvgGRrqxd3Cr0Dcugt0pGTeKe+5KMNCTgFiy8/iV1Uw9FWCCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709718354; c=relaxed/simple; bh=CMVF7n8dO5vESzb9IowrOlCjHiKoyt3gqfWtMoJTUa8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HerEtVjJpIIMqmOq7cjKv1p85+fo5rQTrSgE1OhN6cARQOhbLluhmt+opeytC4/cE6OJnl/OxKww9SLCgOzxkdL7zGUDm5VlwRJITSvsdCkGgk7VJm/Z8NBrd0GzuFDNg/aJ00hnb+Dk+8aRlu6Ptvm5BIL60GYa15Vjb/vsoXg= 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=aD2KGCDk; arc=none smtp.client-ip=209.85.214.172 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-pl1-f172.google.com with SMTP id d9443c01a7336-1dc0e5b223eso56786515ad.1 for ; Wed, 06 Mar 2024 01:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709718352; x=1710323152; 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=onNOJK5dVb7dHDdyyPmx8REkXT8q/MvLJnZknRgJ6mw=; b=aD2KGCDkwwTN4+n3M2IQxusmQv89GQOnCb2vyldhkkZMMNc9eA92HqO2FGHB7l2V6e zrqHPXcSoaW2Fvdw38zLRQroKE0wwStl+DnDAmff9FWnQFi5OB9anLTz7tmueXUrQbOw 7xfz2FsR3Ggnywtk2I5WvW5o0zV5vv1FBEkuRfkbRfH3Xg0uePSAkCZb22R323nRvOgf 1yiGU878gTKUhEmzx/jaDjmWuUbjW+z8xXpTMjHc995u+9hwSUNuyMj5+EuvJHNGY0Yf ggTnMUchI7Smx26RRydFqVh4wiF4QZGldJlDA/PJT/0rM7IFCDn89owgP6kPvefCalQj 6AhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709718352; x=1710323152; 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=onNOJK5dVb7dHDdyyPmx8REkXT8q/MvLJnZknRgJ6mw=; b=IdY4mCfwE5Ak8hFEujiWkQV8b6Nl7VulMHuNNNzs/m0nOppfwO5UZqIN62bWesFUuP lmW6/AuLpnX3zA7MEsDrZ8HowgS+rDK+esFajefdipYibYMOMC3xi1WMgmSwkfs9tueB zaJRP7Sp8N3KibwRwdCg2w0PT3ObIXH2JARhMD926O7SOh7LtKOrWP3YBoGTZO8dc2TP t2qH0+XEoRhzXnhQmLfGtbRQT3aK9Hv3Ec9bhZdzFoMHRRgrnkiWFultNWXYkRXQ/G3B touL1m2dy8n4sfF4g+s4Hml2LUvlU2Vqb9Y27R+ygijkcwzKhFfvPZy7/UEvv82rgw/f /HMw== X-Forwarded-Encrypted: i=1; AJvYcCWYKajNf2P/I0n4fBh1NGHcesq4XW0GkQ1nSx9pJayLPyieJevxpaw/vzzUuOGbE/rmzQHlgnj4bkVJCXhN/CR7vErs3Qo4S67L8Yi6 X-Gm-Message-State: AOJu0YxkojZYHw7aLXOZUTaYgqDaY2TzYapjj6pEFfTM0UJ3h3qhiPdZ c/469OjKedpfPFl+QZ7awgpNB9JFYkzRdK84J7t0spvcuR6bOmTFrkOSLsJwwQ== X-Received: by 2002:a17:903:24c:b0:1dc:b531:833 with SMTP id j12-20020a170903024c00b001dcb5310833mr4833692plh.63.1709718352039; Wed, 06 Mar 2024 01:45:52 -0800 (PST) Received: from thinkpad ([117.248.1.194]) by smtp.gmail.com with ESMTPSA id c1-20020a170903234100b001db594c9d17sm12099477plh.254.2024.03.06.01.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 01:45:51 -0800 (PST) Date: Wed, 6 Mar 2024 15:15:45 +0530 From: Manivannan Sadhasivam To: Dmitry Baryshkov Cc: Johan Hovold , Johan Hovold , Bjorn Helgaas , Bjorn Andersson , 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 v3 00/10] arm64: dts: qcom: sc8280xp: PCIe fixes and GICv3 ITS enable Message-ID: <20240306094545.GD4129@thinkpad> References: <20240305081105.11912-1-johan+linaro@kernel.org> <20240306063302.GA4129@thinkpad> <20240306083925.GB4129@thinkpad> 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: On Wed, Mar 06, 2024 at 10:48:30AM +0200, Dmitry Baryshkov wrote: > 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 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. > > > > > > > > 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. > > > > > > > Just received confirmation from Qcom that L0s is not supported for any of the > > > > PCIe instances in sc8280xp (and its derivatives). Please move the property 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 there > > 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. > Fixing the L0s support requires the expertise of the PHY team and they will only do if there is any real demand (like in the case of mobile chipsets). For compute chipsets, they didn't do because most of the NVMe devices out there in the market only support L1 and L1ss. So we have to live with this limitation for now. - Mani > > > > 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 > > > > -- > > மணிவண்ணன் சதாசிவம் > > > > > -- > With best wishes > Dmitry -- மணிவண்ணன் சதாசிவம்