Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp49427lqt; Mon, 18 Mar 2024 00:20:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW30zooXGLVEPT4zfeUAf+j+fO0zkW/Yc+KWgTyYx6FYEQVQBs8XeWiRv1Jq901bVrLUkc4yH+em2P4LZsQe+PQkxhkvetMJfb51ZKDCg== X-Google-Smtp-Source: AGHT+IGf26OUbbDsb6XuTrdfk7E7w6AFo/AogyswSsCqtvkjUNHaE5O0q6EoKx9XomtsEyaVieHA X-Received: by 2002:a17:907:9453:b0:a45:f4d9:acc5 with SMTP id dl19-20020a170907945300b00a45f4d9acc5mr8358462ejc.29.1710746400464; Mon, 18 Mar 2024 00:20:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710746400; cv=pass; d=google.com; s=arc-20160816; b=lCWOowLtTCTu5cvjGzYuFIJMhQ1VCkPLm1WKRM3Ps1+PEtgLTcpLUDmbp+mpURE1LQ 0t8qEJi861IwEy9uWJm4NBNxw8U0herDbAAjUysXOOYWQ+cB9AlZRb8lc8nd8mgja1tC Nq/34QynsI6YiUVTMoA8vpMyJkziXPYLahYg/zyQmsJJQB6YdTW3L0Kz9vsuE/sMMOwg Ahg5TmAfEvZUh6cXin3JBuunyyRccK8oSDook4ZJ/VnWoaLsv8mHZJAg/E8i/xBiCTSS Fp1HE1nCpDSDZuzNhy4WsNhSGqtfrY1QgLGJ774KV5Lr3yeItXf1rfRRZURe648yzlpF nGcA== 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=kH/SjGlGieE/UE0Ur3+4AtAfyoXMqizrw8NzFP+1cro=; fh=KABzLrFJ/rIx3ruHMW8FDTkomTwzwnJ29eFId+sF4Mk=; b=fHBnQ6EImXK4PitGfFJnzn+kDQMBfsuQZakhZDw0XkAV4Mk2NVZU9C7hfgd5vWeXp6 cuXfxPVdgJpNROjQb+LADV8xVp3zNONWVy3mA57+UVFiWnzT5xthLWtAAe33NEDU160j BCT4Z7nMfnJ7hS56xlVcgy2K4MAkqYc0XZMeoNECwdcJSgUMvaWTf72qGmvEdf2VRmo9 CkTRJld5ozCtgohc+lwfwAbgc8ssAMAe9cECYBTYS7Gp/RZwU7/Kfkuroyyt7rsiFi4n o1hkoeR/Pi94xxcL9gy8qHDZZTGy8qENAR9elt4hODVbpzGhumaQyQFZ+Ha1tlOGG6Af 90Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oCXTHpq+; 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-105766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105766-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 i15-20020a1709063c4f00b00a465e237576si3964703ejg.620.2024.03.18.00.20.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 00:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105766-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=oCXTHpq+; 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-105766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105766-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 0E2081F217B0 for ; Mon, 18 Mar 2024 07:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6484624A12; Mon, 18 Mar 2024 07:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oCXTHpq+" Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (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 10E9424A08 for ; Mon, 18 Mar 2024 07:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710746358; cv=none; b=kyIU5uCExBmjPMH7mfKI3jzKAuVpQjge+l9R0I5qfqGeXMHMVThr5nPclwpM4j4at8Xdp2EMib2dV9TctZThE9hm2gNBmP2+nLUYpB5/GFjjueZ/MBDgxEfbRYQQmXgTfqo72R0xroueM3wt4fM2KZUP/xl86zerBBSawniTKoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710746358; c=relaxed/simple; bh=T8yctEwOPXumvWXkHLXlcJBaV/u14z5lA6ODl0lFm9E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jj20YSHLfkR9GINS5Htb3HkYmH4HuVrq1yl/hKvgtbm3SHnEx8O6tyJz1It4N7csNE21ZOgzLp1JmN61fS28ljJm2AlcJRHNWK5A+ZHY7rBCz70rnW7FgqHdTJyKzGKU2tf9tbczCDlbIhcfUx4zjROuQjPEyj7ZTr3MgIuwLhE= 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=oCXTHpq+; arc=none smtp.client-ip=209.85.167.175 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-oi1-f175.google.com with SMTP id 5614622812f47-3c37970b52aso1735265b6e.0 for ; Mon, 18 Mar 2024 00:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710746356; x=1711351156; 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=kH/SjGlGieE/UE0Ur3+4AtAfyoXMqizrw8NzFP+1cro=; b=oCXTHpq+tFaBzF425NcV+fNK/l272zvU3UNU8MTTqPfEjQf9KvQzdSg8uaijVfYlqF tEqLdqqcHwtOh8Ft8+JPGibpBE0gOYrKWN6jjyZM8KJSCGus2FwUldvIU8wQ4kDT4cn2 jRgVWDw7JaSRDncW7rdPYfg22MZfU7OYYOipSEvyke0RIMj3ajCXvZQQSQ/MFvIuO4hW +DXDMiftZGP6jlXbYnMlo3GJPtoPeCOkrFSDfftgnUUIGITSHNUqrt+Yh3xzEcdM4ZNc kWR5gROyoAnnsnj784ZV/BkgB3PxHj3Ergelkz0F21EncX2rEe00M3sChfMcvmst7l8u 9ZeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710746356; x=1711351156; 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=kH/SjGlGieE/UE0Ur3+4AtAfyoXMqizrw8NzFP+1cro=; b=wA8OGxy3+l3nuP5oNYpdrdcxnWg/9SKNt6CQKNIyuniFiJ6N/kbZ2ztmj5gZGLHf9l y6eDLci3YxkdJdAx7kGoY2AOH75XqpsNlKeamx0g1MFJVTa0iVsSYef2Gn7wvKlYc2tA MPiVYwOGPM6DyDkNGns9hX+y8udydcfQPe1l0W0tJeRoFqaXyKqrVDkbmQ/Edh2Rvbs5 kwYyNi/KHL8Sub2YJuP/p8WOWyEayYpJoECkUT7m/miCLFRFWF+j36BHefIbu90dates bEvpzThB1iEN+PE8lr6Axy6GVd8iMm4vPjA2bYAwBWgC6H5fhGCL/gk5J1cbQaMJXOzK u8+A== X-Forwarded-Encrypted: i=1; AJvYcCUBIoCAMTTsII4AsZ7IOlYuO34KRxW9dVyNJXE+hA+oEScuu55n5trKn7R/9G3mmJc5eqZgSQlvSzUpubtLTBKmUBE0nbtxJa7QgskP X-Gm-Message-State: AOJu0YwzcS4jhfPcbMDE3ucmYu8QRYAAO3yvIc5JxGGNwoxlAv9/bBQf daXhuWfpLELq8fjCgmCbNcZTDBwkhc0fHcB6Y8ZLT+nZADYoeMkpsTgKq+RI8A== X-Received: by 2002:a05:6871:64e:b0:221:6840:d131 with SMTP id x14-20020a056871064e00b002216840d131mr12314329oan.58.1710746356117; Mon, 18 Mar 2024 00:19:16 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 00:19:15 -0700 (PDT) From: Manivannan Sadhasivam Date: Mon, 18 Mar 2024 12:49:04 +0530 Subject: [PATCH 2/3] arm64: dts: qcom: sm8550: 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-2-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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1920; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=T8yctEwOPXumvWXkHLXlcJBaV/u14z5lA6ODl0lFm9E=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBl9+rpAPsEYVnQhIgS4XnxvfwLqtT1wLbJRKpe2 7uJrOvc7IeJATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZffq6QAKCRBVnxHm/pHO 9d1TB/9+1iI7pQ3wD5B9FCFbbI1bPHp7Hgji13iYVbWt1Enxa7RJY1mGNo5a6waNiXyGNH77GPZ trh92uH6U8Ogdsa/gen7bSlpQu1895kCKDuXZ9VBWeJeiVGsa/84Y8xT62HuWk7Tf3bC+temrF7 6URzlYlbT/Aq3X34zsWumRfOX9kbM/IooL50T9gaAH8fgEUrwuAjAybVkgk9Nhq7CpbVQxa7neY lFxgBjW/BPd3+NknijLFn9cu6FZytJ1C9Xb30uo0iaXoAfxGNEYjPaX4uLeSPExjNvV3xv1wkQL e7r/tpZLFX8tNfZFbWKhhVJm4UNSUrqJJhbxNMOjxpIfQoB7 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. Fixes: 114990ce3edf ("arm64: dts: qcom: sm8550: Use GIC-ITS for PCIe0 and PCIe1") Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 3904348075f6..3348bc06db48 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1755,9 +1755,8 @@ pcie0: pcie@1c00000 { <&gem_noc MASTER_APPSS_PROC 0 &cnoc_main SLAVE_PCIE_0 0>; interconnect-names = "pcie-mem", "cpu-pcie"; - /* Entries are reversed due to the unusual ITS DeviceID encoding */ - msi-map = <0x0 &gic_its 0x1401 0x1>, - <0x100 &gic_its 0x1400 0x1>; + msi-map = <0x0 &gic_its 0x1400 0x1>, + <0x100 &gic_its 0x1401 0x1>; iommu-map = <0x0 &apps_smmu 0x1400 0x1>, <0x100 &apps_smmu 0x1401 0x1>; @@ -1867,9 +1866,8 @@ pcie1: pcie@1c08000 { <&gem_noc MASTER_APPSS_PROC 0 &cnoc_main SLAVE_PCIE_1 0>; interconnect-names = "pcie-mem", "cpu-pcie"; - /* Entries are reversed due to the unusual ITS DeviceID encoding */ - msi-map = <0x0 &gic_its 0x1481 0x1>, - <0x100 &gic_its 0x1480 0x1>; + msi-map = <0x0 &gic_its 0x1480 0x1>, + <0x100 &gic_its 0x1481 0x1>; iommu-map = <0x0 &apps_smmu 0x1480 0x1>, <0x100 &apps_smmu 0x1481 0x1>; -- 2.25.1