Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp81415lqt; Mon, 18 Mar 2024 01:53:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2hhzaaLCtZjMJRdcTgMJ9tcPlHUqcusgpE5oWbWoSBIhV9aI2pILv+sf6HX+iiDkGQsyfYg4Q5rtEZepl8/nW8MsJbr0NaQDmuz/yOQ== X-Google-Smtp-Source: AGHT+IEQodZNtNxZkMjEVDu+OLo9rO9y+sF15jJ7CFI6nWrvGhvXPzyGtKLJMMiUR6JVhJdGOPrU X-Received: by 2002:a17:907:1009:b0:a46:68b5:5967 with SMTP id ox9-20020a170907100900b00a4668b55967mr6106543ejb.16.1710752019253; Mon, 18 Mar 2024 01:53:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710752019; cv=pass; d=google.com; s=arc-20160816; b=xaHDDCLmMKzp13gRpeh+xhBiuyO6VVpwolgoM/Bht5ZGIMNGymXxAUo9QFw33Do48t 7ADoPGJe/dsZ0lmxV4UzcfOfwwOuUrCePDJirIXcwBbCZKM4XR3DVKCzKKGgIEolBO6+ 0cL4YNIzDqRI6k3/0gY/Z6VE8pFrYYxzsm1jLKQhlRwxena6/SBMilaAdhICVvFq7+OT U4a3/zDD/WaNhusJBWZWn6itjRCM+lmu4pLnnyROq970AEo/3D2FL17cqRFaDz9Q78Tm ynk/0ST7SywKDkNfFgfG3cv+Q4OXyNfKlLIh51OMwK8H+rM8CTRurUOvoq8JacKuXXfC hrQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=e6RdvrF1nwywjuutN1RSGDtUcsbQUwWLcTgjf0q2ePc=; fh=4FZM89H1P0AdrzVK/nmieYPzPuN0ppOTS/mPpCxxILg=; b=drWpgLN76GFHUGef/YpArECGDn/zadeAkZMaO2+X8eb5fbUj3lwuJDKwRJjowakOaC EEwv0aHvsFKN0bOlQ6A2806RwkladzoFIcOzN6rzuQ1/kYtnK1P1hDxBSpb3k8V60dg4 9yaPSl0wZaBVzpWd9Xz5uQVq21uqX+2Z9HNyBTTzyEsuOV32+y5hiWB4ftwLvo01ri+H 1HmP68FrBPdNYKL7eiqmRSc1LlhXOLuCkAnhrl5/xkzYJvjR1p4jqhuijaDa0PWuX4AR /T/BiV9Lr9fPJ/ydjoLoxtnajljTf6X1OYf9O/uG9S3f5OlsP0ciEtnVETbW/shaprcA RQSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uLTpZaC6; 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-105840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105840-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. [147.75.80.249]) by mx.google.com with ESMTPS id t23-20020a17090616d700b00a462a380c3esi4114094ejd.874.2024.03.18.01.53.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:53:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uLTpZaC6; 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-105840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105840-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 C94521F21941 for ; Mon, 18 Mar 2024 08:53:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 604FD28DB3; Mon, 18 Mar 2024 08:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uLTpZaC6" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 9AFE028DC0 for ; Mon, 18 Mar 2024 08:53:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710752008; cv=none; b=jF+yEl4Z4LDOuBrnrKrxxBU+xkffvEcjKyhgj3NXNbpbUy3A3DY28gaKo3JKyWwx6N0gD212k1uMtxbv1AjbR2aZhqLDXgw0jqXbSnuVKh0/q+DJ3UKFRCxmOoLsyTk4mZg4+4dlZbX0UAOVZv+ucqLVdlFoJCBYZoszY76LKps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710752008; c=relaxed/simple; bh=IeCriGnHDiuzZ2xp1Qd2CEgIuo6HCVCELGtRINMfM9A=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=OXrRNVx/SPL2iOAisVr4A+skOaZEYO/phjCmUre8TQKL91o/nJN9AHu0VDv6Q/prDoymUI5j2xx+Oq/Rg1MNOG48ddiAs698DJkKWwpcxv3iOaaWonVHb5cdrlkQBi2GJdcWlDNydw0yOkw/c7Mx6Hosjzob75yk+KnJ2wPzaLU= 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=uLTpZaC6; arc=none smtp.client-ip=209.85.221.48 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-wr1-f48.google.com with SMTP id ffacd0b85a97d-34100f4f9a2so738258f8f.2 for ; Mon, 18 Mar 2024 01:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710752005; x=1711356805; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=e6RdvrF1nwywjuutN1RSGDtUcsbQUwWLcTgjf0q2ePc=; b=uLTpZaC6ja1nZmz8u3qTBVX7lpZFvZ7ZqVN0VkCq9Sw3pM8A74O1yOZEIERDXHPVDs skGxZngwC8YaJniQ7i3HsyPriwe6P7abKtWdBs0QE5yStDWwc8AmpTlKTtf+cYe1Rvkq esJRGtSWyLEoqil0Ircr0YF7ChC3EzZ2PIqgGdK+PmuDIqMrlJOkMUv53xMmBoHPl567 H2EU9T4fGOSyzV17E1kH3AkKSm/r8ayxlBSBUYV7+NMFI3wzCyKGxFLxjyjBdYcRbswP xHslEX/32nCwtR8hIbI8CSFT6AQJlOfSpOdkC8D+vIjs89+Towh5BPxMSH6jF2t/Qn+h XbTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710752005; x=1711356805; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=e6RdvrF1nwywjuutN1RSGDtUcsbQUwWLcTgjf0q2ePc=; b=Dbc0KbXtdpK0QhHomdxIgx/Wz33u7T2/DdMSLf3mUoEva1nfqP9eAlRpdQphEfFguN U6pNlgxFBJy3SgHTL0XXSLG6xFpmZmNq8w0lkh3/SOPJ0ZEthM1zL2A8/l/ZNUaFAKmk T8V/WpgUCN8P9NqidYkK9zDcYYoO1ohNMan6T3Z86sQZ3k/GS2mi1N1Y/4JycsQYuazZ 14zYalvWw4JYphe5U8VEvWV3MZOkbmNuLFzwBJxf9U6HM1n9jkmU8V6+79lxwKx9yYHH SbpR1DUYVUA8uwh0WPl/dkWN18Q3Wziop78ntb65kSXEBi12Cnas2a7SB4uDw1m3UUpb ZmSA== X-Forwarded-Encrypted: i=1; AJvYcCVt1uGWvLrhBBGGI7nur3vOCYr/dKk4HHgvFystyhAn2iMLGt0WDjq/bz0uLLuHyemqgqxHxHpYXgUhK+uGeCcNGuDdq/Vj6AnJzaFd X-Gm-Message-State: AOJu0Ywk6tz/5j+UY4Le9Fs6Taw6t57GPdZPgNM8FiUi88uv2kreY3gM cspq0bOXQtp1fzPequ+kHXu/lnGfARQOYr0WFp9mq27ShpPCmzrg7Y1CLCrfYFM= X-Received: by 2002:adf:fe0d:0:b0:33e:96c1:3da6 with SMTP id n13-20020adffe0d000000b0033e96c13da6mr7099752wrr.65.1710752004926; Mon, 18 Mar 2024 01:53:24 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:ad2b:a316:59d9:3dbc? ([2a01:e0a:982:cbb0:ad2b:a316:59d9:3dbc]) by smtp.gmail.com with ESMTPSA id i7-20020a5d5587000000b0033ec68dd3c3sm9289562wrv.96.2024.03.18.01.53.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 01:53:24 -0700 (PDT) Message-ID: Date: Mon, 18 Mar 2024 09:53:24 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/3] arm64: dts: qcom: sm8450: Fix the msi-map entries Content-Language: en-US, fr To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240318-pci-bdf-sid-fix-v1-0-acca6c5d9cf1@linaro.org> <20240318-pci-bdf-sid-fix-v1-1-acca6c5d9cf1@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuy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u7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240318-pci-bdf-sid-fix-v1-1-acca6c5d9cf1@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 18/03/2024 08:19, Manivannan Sadhasivam wrote: > 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 = , > , > Reviewed-by: Neil Armstrong