Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp49348lqt; Mon, 18 Mar 2024 00:19:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR7gsuxfIdmedxitHlz4tCXYqpGf7eg+N9GRYVERSuOlkvf4PLWRVgqM32GA6OzboKmgzHtGBhJKf7cGO18CXdBTOM19IJYZ31En634Q== X-Google-Smtp-Source: AGHT+IFH77JYMeqPnf/ONdNltkQKsLegad/f4ksYgCxR0CUf6TL7ZgdgbpJLfbchDhKl6VxNtzJR X-Received: by 2002:a05:6402:1f83:b0:566:a526:21ea with SMTP id c3-20020a0564021f8300b00566a52621eamr9122465edc.33.1710746381455; Mon, 18 Mar 2024 00:19:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710746381; cv=pass; d=google.com; s=arc-20160816; b=wJf0A7wxdIgvEX/gef6jZdYR71nOvaGlQJknIl+CyI+0zc5YL2pHeOg/xnkdV8J+L/ Y7xSQyGQoGs2PTSCYQGKj3OHWlcH4juW9aaYZ9e1+fd+D8gFfneEeLQvPcP/OoPJGSpx RHbxzFteALGLRvDo9ieoA23Z1vQhSCjWIvdn8SKF074i/xM0p+lx9xtGsxm/s1oKSahY NXcn/qublZYSyBnA/YlYfQu27NKZwouRZW2obtxoUQeb1hv/rOn2nLtHEIq1yFTGTREm xPZBlLLaqumUEam2ypmMDvN6tfOnwSfGdm7WhluWMCfJlfkTy2Cz011MZOcJ/5qo7Xkz eqxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=vq5Dos6DoYH4j6IedoqEyUOn4weuKjM4Z19kQDTr6Y0=; fh=hxrnDXcNNfSIZVuIpAfXYPLGgbkn01yiIAi4vfMfrss=; b=cJ76GEpCpgfgQLv530m4bdNZSYwhQIQJqHgTjOfK9FWcHNDZ+UtiPih6NJwvlsMUuZ QlIJT1aVfzdvvAzItScLxEql5PFuC+ELsuF1dxW/0dpGuHaWJiPxOURY371S+QBa5fl0 1XDjOIfJwufOCda9KlwUaDJMWJ7oqryHy8sEyG2mFG2OT1wmRV3cdWpwO67IESKzB2TB Iz/ETL0uNzGeaV7fGf+9VO7vzxl1yKWpguWkrCyHtauRdd8ELu3bNODXFQ/p0vD3pxtU 2gjAkFdIVcyb8Qz1Hip2R4I/hKNxmROqd4EaRP53+mlBGeWWdc1LbMSstDxE5tNGI4q/ 50Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NFkWht3e; 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-105765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t33-20020a056402242100b005684f955d78si4391631eda.478.2024.03.18.00.19.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 00:19:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105765-linux.lists.archive=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=NFkWht3e; 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-105765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105765-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 089921F21612 for ; Mon, 18 Mar 2024 07:19:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36DAF241E2; Mon, 18 Mar 2024 07:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NFkWht3e" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 DA7A622EFD for ; Mon, 18 Mar 2024 07:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710746355; cv=none; b=cL0EFBHC8q6Hl0z+tFS/N+YPOZYNYACAnIg7BVIHK+rbWlR9fNiC0y0pCD6pVHHIcKPe5lTFbLB9lkjzKbEInFC50RsAhLrME0kF55AHl4Ip8HJ9rAtzPUnqfqPDqQdDaYNZH8IzKdLfohMisKmXZGPWF80nS88Ub4sjPMQwMfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710746355; c=relaxed/simple; bh=1v1aQLIYP8b+mI95hKqjB4PDKnC2GI6VXXU3JQllGfA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u3l04j8JbHOtFlVNqTEqHyswuJNb1GMm+NWeHVyK43CFYPHlWRSa8+310smbrEOmf+NWzhrHiuLLuyFtq0FI9sn4QSzWcQp9m6J5ni+1VAgAoaBD1MOudTztNcAtX8hU4D7qAhLfWTQUmgAJ1H6uu/inLgd/RyS0zUVB1PINwrI= 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=NFkWht3e; arc=none smtp.client-ip=209.85.210.178 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-pf1-f178.google.com with SMTP id d2e1a72fcca58-6e6bee809b8so3770960b3a.1 for ; Mon, 18 Mar 2024 00:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710746353; x=1711351153; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vq5Dos6DoYH4j6IedoqEyUOn4weuKjM4Z19kQDTr6Y0=; b=NFkWht3eQAH7ntsZchDqrXm7b+aU3x2abErjZN1B2hjh6Dj5F0/lNefQLmsEG3PsJC EIEiZNsW+H6uIWrC7irhlk48bTz6HIae7mzPhCDHh70VCztxxM/zXpBhcSMJdhmhqwmv l8DQ/5qz2lXCFPR+zG+OMTnQaT9NSto0RXGtjuB/8ifeN3luKeFMYO8I8St8mt4dGyHG O+pCeSCB6NrhYwzhonjvYYB2yg0npp1IpSJL1Y1qne9um1LXfJRDW80jQPA6zq7m7LsF duzYWQhvghyh6NxIms9HxB7wKij90B0PNIsnFjUN/TnLJ9aM8JDfJot+HvLoXdvI7CT+ /cEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710746353; x=1711351153; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vq5Dos6DoYH4j6IedoqEyUOn4weuKjM4Z19kQDTr6Y0=; b=h4F5s2OZlTGWyibbQ8nDPmHNfcGhOh5YHfphOtI9Qb6NDh/1Nx9gEAZrcuDHQzwnvj bJQnnWFzm1eewZvrHIOkAhLvcteUgrnSlQB9BEG9emO91GNgOBGwss+HJNj08KfS99HA mkJiK4L3iMDuc2iVuoizI0g/LicMmTJehJxNApavfQQbRbpAnENeWptVMR6PZHn9zevd 71WijyHlWXGbJxma5nTpflBGIpmdtTK9U4wMZHKzB7OLdlJT0ARM9B80VaAW/lkJqrLC ll8BIxdErOtbobKh48YPCKcxQhWRNMH3cLor2a49PS0JHiMsXvPUMKzOfIncf1tMEJM+ vh5A== X-Forwarded-Encrypted: i=1; AJvYcCVLspGFZBrruuS4lx0ZRy1wL4UPCzA467JsThrrVMGsFwJufhqe4b3sHyBAqsU6eolFIEfzigjRnE2M+yBtpdjze7uJArFg1xcqTEBN X-Gm-Message-State: AOJu0YzVry9o791Dby80SnOPZiUlhZDWq3Tq1KAaWhnK2iUEJ21PGyXY 6vvKJ9TIFTZaPj/Lq1UORuLNg/ppKrP1rSstwVyiRLpjV8roYUK6YrbH/vid0A== X-Received: by 2002:a05:6a00:2387:b0:6e6:a0de:563a with SMTP id f7-20020a056a00238700b006e6a0de563amr13811975pfc.15.1710746352955; Mon, 18 Mar 2024 00:19:12 -0700 (PDT) Received: from [127.0.1.1] ([103.246.195.160]) by smtp.gmail.com with ESMTPSA id x16-20020aa784d0000000b006e66c9bb00dsm7387515pfn.179.2024.03.18.00.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 00:19:12 -0700 (PDT) From: Manivannan Sadhasivam Date: Mon, 18 Mar 2024 12:49:03 +0530 Subject: [PATCH 1/3] arm64: dts: qcom: sm8450: Fix the msi-map entries 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-Transfer-Encoding: 7bit Message-Id: <20240318-pci-bdf-sid-fix-v1-1-acca6c5d9cf1@linaro.org> References: <20240318-pci-bdf-sid-fix-v1-0-acca6c5d9cf1@linaro.org> In-Reply-To: <20240318-pci-bdf-sid-fix-v1-0-acca6c5d9cf1@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , stable@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2236; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=1v1aQLIYP8b+mI95hKqjB4PDKnC2GI6VXXU3JQllGfA=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBl9+rpsZJOD5LdQA2yEn0WyWcaDrhLmj04RjjXG pK/74qvqrSJATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZffq6QAKCRBVnxHm/pHO 9S3KB/42QV76nv/mS1H0u1J7geOMOVeURxPRrCxDsTk47fvKgH/rXwLsRQb0ZmpAhlX+4wtI1i3 rzTYnJr+CZGzVYIWktiszpGZ+V2/CH7igul/6ekvW7QUKOa3xLUKRObTi/K8+MDNxQs8x0olJ6v JWKyOZ1JyWvQrGZB2+zIhAKKlURRRK0V/yfHzOktZQLH3DZXsHUOaBthHOPxDVIAXLDaqdPgBQv VzvW7ZBYviiTHCnUXHcrSFpIeo1o2qRpV28hL0FFdyB8OGyMgyGAfNDXFHqlV5GOQ3nhyQCSlOJ WxC8S2xcnpDAQISj7XlJGE3jaZxbpJ5Giu8m+KgVpXBKFzUn X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 While adding the GIC ITS MSI support, it was found that the msi-map entries needed to be swapped to receive MSIs from the endpoint. But later it was identified that the swapping was needed due to a bug in the Qualcomm PCIe controller driver. And since the bug is now fixed with commit bf79e33cdd89 ("PCI: qcom: Enable BDF to SID translation properly"), let's fix the msi-map entries also to reflect the actual mapping in the hardware. Cc: # 6.3: bf79e33cdd89 ("PCI: qcom: Enable BDF to SID translation properly") Fixes: ff384ab56f16 ("arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1") Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index b86be34a912b..024d2653cc30 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1777,12 +1777,8 @@ pcie0: pcie@1c00000 { ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; - /* - * MSIs for BDF (1:0.0) only works with Device ID 0x5980. - * Hence, the IDs are swapped. - */ - msi-map = <0x0 &gic_its 0x5981 0x1>, - <0x100 &gic_its 0x5980 0x1>; + msi-map = <0x0 &gic_its 0x5980 0x1>, + <0x100 &gic_its 0x5981 0x1>; msi-map-mask = <0xff00>; interrupts = , , @@ -1900,12 +1896,8 @@ pcie1: pcie@1c08000 { ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; - /* - * MSIs for BDF (1:0.0) only works with Device ID 0x5a00. - * Hence, the IDs are swapped. - */ - msi-map = <0x0 &gic_its 0x5a01 0x1>, - <0x100 &gic_its 0x5a00 0x1>; + msi-map = <0x0 &gic_its 0x5a00 0x1>, + <0x100 &gic_its 0x5a01 0x1>; msi-map-mask = <0xff00>; interrupts = , , -- 2.25.1