Message ID | 20240216-sm8550-msi-map-fix-v1-1-b66d83ce48b7@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69028-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp653973dyb; Fri, 16 Feb 2024 09:09:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLiCfNEqqwIIIj1DshO8djX7OGrAgfSRXpbI64gH/Os8HxcaJqEITlm8T0w64aBADAS+3hMPLEGP0P2qGl7vnoDea91g== X-Google-Smtp-Source: AGHT+IHT0oxGw5O7YrXiTiF+UaZDYyy0hWbI/uxQSzyVOEoc/D1X7hwLDDjYgrw4LNJeXiCzv5HS X-Received: by 2002:aa7:c2c4:0:b0:561:a6e0:8980 with SMTP id m4-20020aa7c2c4000000b00561a6e08980mr4009754edp.12.1708103341186; Fri, 16 Feb 2024 09:09:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708103341; cv=pass; d=google.com; s=arc-20160816; b=nEhEGghM/nceaUqNcSchREtu3UgcIAT0Z+NGl0zH7Jrtzco5wPqifgR6QZwNDuvlPi HWima/32trlCx81ERuIIrhYpyHVHXmE49OS8RCtmkJ9JdqBiZR2RLPI9Kby/YxI/g1iO nbFuGMZeWd911hHhhDaznivr9JJrYI38GjTazSy2gd1tZ4MHhg3Flh/ZvprAu1vh1p4M L0i6+k8NGVluhUmwSjTSepAvkwStSPwrYlsvkwbrvtMhUzE0oqpIafURGXqpi5Gkksmd MOgC/MUPxY21dave3hsSZM01cP3WQg1V1WjOsIzu78SsIBOsKCaygWiG61OJ0vzFXfVt a/rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=xzo0goznw/Ntco681h4qJZM6h9c/lx0QHhOStfpeEEE=; fh=k2vLGfkHcRpOHp2d2OH53T2PETens6yPFilwvmg7ivU=; b=MVa00zeGAUr6vpVZLv2UQQs5aQwvUrtl0CDCGh0W8OOFndvnp1PwxoBAgKQx+yQqgq A6N7TNQE+6iP3Y/KKCLf3+kMhGVZIM8Xj7mMl0KiZxJ//dqtBcq+pnNPtRxoCfyecxcJ MdUZ5is+fLNyhplP8SLK/0PIUkYxNappoQUumKYTcIjRafjRX6sKB8gzlmXUgxYEH0hy Bqy7yw1PbJ/v+iWyeWZP9n6hvtuEarhFNWHlEq/JNmkOioBw2ag1Vq3zAYJp2v66X7Yk NLeK1TtdFscJjDacU9DaLNC68Vmbl4SkkOJrbkEPXZLEqj+nBpMS3SutkSs4+tk4KghO /t/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cQf/OelZ"; 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-69028-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69028-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t21-20020aa7d715000000b00563f1559c6asi134948edq.158.2024.02.16.09.09.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69028-ouuuleilei=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=@linaro.org header.s=google header.b="cQf/OelZ"; 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-69028-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69028-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id C4A561F22F1D for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 17:09:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9103132C28; Fri, 16 Feb 2024 17:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cQf/OelZ" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 CF423135A6D for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 17:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708103130; cv=none; b=DX80ObCho1712cKmtUmyZVorPYgBV/7zjgcsC1/4RAiNbkDV8fGT67yjDkYL7EujGTApS3yY1CHDSMmW+Pd4j1KbBY2cUK25XGNPf9ycf6E547PPvdxO4KkgCSrM8evsErfQO1JfliymHDinwfBYBNENgjQ/aZvY+ZV9slynHUo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708103130; c=relaxed/simple; bh=YEe1iIkMkTl6mXT05twz1lybD8lNCICMNljhIyX2vlU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=X2QIOlM2v1zuBNBxRsXrVHVE562Ezs56ZG9kfbV17pc1JdiTRdstWfQk0Wb/n6xBo+1C5rKe5S32iHbSWsE8JfrUha8GgcKTp0vbLJmNNlsMyJllHglY9U25MWu3Iw/+YhsZSaW3TyRJ+sE4wjTWJNrDKGUq4OV6T00uRcG9GWM= 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=cQf/OelZ; arc=none smtp.client-ip=209.85.214.174 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-f174.google.com with SMTP id d9443c01a7336-1d7354ba334so20514045ad.1 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 09:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708103128; x=1708707928; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=xzo0goznw/Ntco681h4qJZM6h9c/lx0QHhOStfpeEEE=; b=cQf/OelZQD1t6FaPQ0oMy0KKqc5oNg2hYs56A1NyX34m6vmtCCXaiLg8nvAtjtE+TH OGrnmZGVMmvUL2rfSPWh8X+waHrlYBtl53Pn5p5rs/kc21CCDBkU14kSRJqoK4oWZm6a AuHhpv1seLydHEu2ewb/vn9mTjTE7o652JuTxA8hOlT0F3fTYl1wz5bzHff71xYz9Don MJzI/2bRl7JzN5LrMlCJd2oa4I3h2LE3OU9F9nXe3k5oclaT6+/dEy3TPEzrbZ4XXKCe SB4NOINgXSXuQ54AdM4Wq3eQ5kysD9QcoEOs3pykgaJQhrqyBZiPtikrdAvPLjRda8b4 Nf9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708103128; x=1708707928; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xzo0goznw/Ntco681h4qJZM6h9c/lx0QHhOStfpeEEE=; b=nMWbx3V+JJhIszjV+hhmv9sZdS0NsYI0DJqL0oPIxP6NiCLbAb9FLlaRgOE7Neomi8 Hb7PqmcBr5K2p7F7Zk21HLwGR2mDVO5NXZliEtUgC8+j3mPzzOVgUEUKXcSSTu+I4Nz+ 6PyErj7pmza19f9uK3oIcKalvE5THURANEKfEM2xbrzBVrMNhCjKxEhwG0tcLcHGcC4d JaCWQg/uweRasQhscdWVt1bzpOdXegN1foqhKu2Qgz7UwCHCZZ2lJw1SRMcFZwC1eaQi Q5D1JaO0vFWfy0njTS8QQi/xYzga2uQdfer3hM+DKvJv6di7HoLSXIu9n3BmTt+FxX5A 2gWg== X-Forwarded-Encrypted: i=1; AJvYcCUmtMSrZ776AAFtOpGaJN7AKE2t5WkzNZfSi/czEz1WT+BTJHeG5R+/R6VnAHSR9Gu/XpRUoDHexSgi9pk9enTMIF9h9KQjEwRrkB1n X-Gm-Message-State: AOJu0YxD0c8WMh/mPVmBYRbg3Nlpe59n0QyAqKdniX32fQNwH5ojXvRV qOaCNCnhQD8rmWywLNjuLZCYN810safPuhfvppjaYgu8LIeZFjRzJm/sWuJ2JA== X-Received: by 2002:a17:902:d2c5:b0:1db:701b:33e0 with SMTP id n5-20020a170902d2c500b001db701b33e0mr6357753plc.14.1708103128010; Fri, 16 Feb 2024 09:05:28 -0800 (PST) Received: from [127.0.1.1] ([120.138.12.48]) by smtp.gmail.com with ESMTPSA id b15-20020a170902d50f00b001d9aa663282sm95508plg.266.2024.02.16.09.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:05:26 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Date: Fri, 16 Feb 2024 22:35:21 +0530 Subject: [PATCH] arm64: dts: sm8650: Add msi-map-mask for PCIe nodes 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-sm8550-msi-map-fix-v1-1-b66d83ce48b7@linaro.org> X-B4-Tracking: v=1; b=H4sIANCVz2UC/x2MQQqAIBAAvyJ7bkFFQ/pKdLBaaw9WuBBB+Pek4 wzMvCBUmAQG9UKhm4XPo4HpFCx7PDZCXhuD1dZpa3qUHLzXmIUxxwsTPxjnkMiTdWsy0MKrUNP /dJxq/QCbmuN3ZAAAAA== To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Neil Armstrong <neil.armstrong@linaro.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1655; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=YEe1iIkMkTl6mXT05twz1lybD8lNCICMNljhIyX2vlU=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBlz5XTZlP1P9oCFUUIiXdV0t5k+20GxBAJixguy WJaznFAxzuJATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZc+V0wAKCRBVnxHm/pHO 9U4aB/wIVpxyFUp+gK/gJRJ91smrvGmTk8YfnaRAHiwLEN0phPdcRslim8zkXKDBR07EQVwjdMN o+bO7kSkjl5fK9wj79VVyhl+JB28ej5M8lhXogmrlIN7MKVKhEkO4/u3rbt43RhpS7M38Ojhz7m zROIaziDGj21hQBpHO3GAfTD6bBUlEAY8CdSv7mRev53j94zslS6FComze1ZVB87U1r2e2unWBO cWJUEd1N9TBzTSiMUp43RM8+8IS+1K3RYjGxv3BhyHcWNOuUPD4UBPI4VhHRhvM9RWre8mH2vQB CIob/rGzp3nO4GtjpzaspPlxXobnpPhcKwmiUbI5Lf2sbhRn X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791076168981751268 X-GMAIL-MSGID: 1791076168981751268 |
Series |
arm64: dts: sm8650: Add msi-map-mask for PCIe nodes
|
|
Commit Message
Manivannan Sadhasivam
Feb. 16, 2024, 5:05 p.m. UTC
"msi-map-mask" is a required property for all Qcom PCIe controllers as it
would allow all PCIe devices under a bus to share the same MSI identifier.
Without this property, each device has to use a separate MSI identifier
which is not possible due to platform limitations.
Currently, this is not an issue since only one device is connected to the
bus on boards making use of this SoC.
Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 ++
1 file changed, 2 insertions(+)
---
base-commit: d37e1e4c52bc60578969f391fb81f947c3e83118
change-id: 20240216-sm8550-msi-map-fix-ab8fe5e24df1
Best regards,
Comments
On 16/02/2024 18:05, Manivannan Sadhasivam wrote: > "msi-map-mask" is a required property for all Qcom PCIe controllers as it > would allow all PCIe devices under a bus to share the same MSI identifier. > > Without this property, each device has to use a separate MSI identifier > which is not possible due to platform limitations. > > Currently, this is not an issue since only one device is connected to the > bus on boards making use of this SoC. > > Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1") > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On 16/02/2024 18:05, Manivannan Sadhasivam wrote: > "msi-map-mask" is a required property for all Qcom PCIe controllers as it > would allow all PCIe devices under a bus to share the same MSI identifier. > > Without this property, each device has to use a separate MSI identifier > which is not possible due to platform limitations. > > Currently, this is not an issue since only one device is connected to the > bus on boards making use of this SoC. > > Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1") > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi > index d488b3b3265e..12ba839f215e 100644 > --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi > @@ -2277,6 +2277,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > /* Entries are reversed due to the unusual ITS DeviceID encoding */ > msi-map = <0x0 &gic_its 0x1401 0x1>, > <0x100 &gic_its 0x1400 0x1>; > + msi-map-mask = <0xff00>; > > linux,pci-domain = <0>; > num-lanes = <2>; > @@ -2404,6 +2405,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > /* Entries are reversed due to the unusual ITS DeviceID encoding */ > msi-map = <0x0 &gic_its 0x1481 0x1>, > <0x100 &gic_its 0x1480 0x1>; > + msi-map-mask = <0xff00>; > > linux,pci-domain = <1>; > num-lanes = <2>; > > --- > base-commit: d37e1e4c52bc60578969f391fb81f947c3e83118 > change-id: 20240216-sm8550-msi-map-fix-ab8fe5e24df1 > > Best regards, Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
On Fri, Feb 16, 2024 at 10:35:21PM +0530, Manivannan Sadhasivam wrote: > "msi-map-mask" is a required property for all Qcom PCIe controllers as it > would allow all PCIe devices under a bus to share the same MSI identifier. > > Without this property, each device has to use a separate MSI identifier > which is not possible due to platform limitations. > > Currently, this is not an issue since only one device is connected to the > bus on boards making use of this SoC. > > Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1") > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reported-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Johan
On Fri, 16 Feb 2024 22:35:21 +0530, Manivannan Sadhasivam wrote: > "msi-map-mask" is a required property for all Qcom PCIe controllers as it > would allow all PCIe devices under a bus to share the same MSI identifier. > > Without this property, each device has to use a separate MSI identifier > which is not possible due to platform limitations. > > Currently, this is not an issue since only one device is connected to the > bus on boards making use of this SoC. > > [...] Applied, thanks! [1/1] arm64: dts: sm8650: Add msi-map-mask for PCIe nodes commit: dfc554d5217163f9d1c9d75d1380af1156df6eb3 Best regards,
diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index d488b3b3265e..12ba839f215e 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2277,6 +2277,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, /* Entries are reversed due to the unusual ITS DeviceID encoding */ msi-map = <0x0 &gic_its 0x1401 0x1>, <0x100 &gic_its 0x1400 0x1>; + msi-map-mask = <0xff00>; linux,pci-domain = <0>; num-lanes = <2>; @@ -2404,6 +2405,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, /* Entries are reversed due to the unusual ITS DeviceID encoding */ msi-map = <0x0 &gic_its 0x1481 0x1>, <0x100 &gic_its 0x1480 0x1>; + msi-map-mask = <0xff00>; linux,pci-domain = <1>; num-lanes = <2>;