Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp81256lqt; Mon, 18 Mar 2024 01:53:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHZs4yShdTvF7esGMT1fcURlSDIPd17cpuYo8X5j22NFWavQp94nzMwpgfOb/WaNLTniKuNTDqbISIwheW9cAtwR4ebORcKmIXEtwTOg== X-Google-Smtp-Source: AGHT+IEIejD4z2GlQqEHupWBwGLZlBk7gKFVQAI5ML3dyHI38NSq9UtdYdSRYgM4PkVnlNiUCfd0 X-Received: by 2002:a05:6402:3603:b0:568:2c30:96d9 with SMTP id el3-20020a056402360300b005682c3096d9mr6941952edb.33.1710751994405; Mon, 18 Mar 2024 01:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710751994; cv=pass; d=google.com; s=arc-20160816; b=IAaNh5pM4UN/+RuwIqzPX2sVd6E4oR0S2Gj0p5Uew1jJ3pB5fpxG23P5H8kX0io0pN BdlIcjd2VGlvT9nuewaXes3poQD4b5XqMOs1iLrR1mwRqtYJmYJkdBWACJRPYg2cDEvu NYT+ldVIBQTwBeH+zZlw2moNUi1Xwtmdsuoh8Xo+KmD0vMl1cUzHQ/njUIOmanVx1Mrt jFVibO6723wAYUT5UEBoNtmjMBwe/Kc5WRjsFXxhHDkCkZ8QbaV2kXx8+g36bYsKiIy/ Q7C1CIQj041McEdmgkcnHgRpZgZ/pUQkG75slaZzdzvSLMKDEQUWjHtj47/wo/2/mh6M V1cg== 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=/FEqaW8978q6uu/sJ/jddbH0VCAhF5dMut1fH76Gu9k=; fh=wU/z6ihxcrV3buI1k18tmd7vUIz35gJZ3uZYDXDYyVM=; b=0qWa5QPJc8wLXQNWvC8Re4L6aLsYDq3mx0DtQEO3pdFmyUYuRPu3TIVG6+gMNO+AnC kSXEgxyftxRLNZ1oaoZBpUFzsOPXQVUUGAvHT2Oqg+j6CoDhAy7UA8yuMD02W5dTpsrx FtD8aO/nn3ApLc1PHk5LWg2Ksc0ThY2maaA/E0OR6khzSNex5ZrisYR813ob/aumy+Cn Hd/Mi9YISRGGJW/gZjbAgV4KlfMvsMP0T3UUGzsAGG0rSBtywaiPoxh8GrOr7QkQ2j9Q aSBduGFxz6pZqn0zHwjoXA+ES0qHvHmANxfPfxhtCKmR976bFLtvz57heUUfNAMbGBqq Zmcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0frjDCL; 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-105839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105839-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 f9-20020a056402354900b005681b2e422dsi4374531edd.111.2024.03.18.01.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105839-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=A0frjDCL; 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-105839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105839-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 0006E1F220EA for ; Mon, 18 Mar 2024 08:53:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E35E28DD3; Mon, 18 Mar 2024 08:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="A0frjDCL" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 0207A28DAB for ; Mon, 18 Mar 2024 08:53:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751984; cv=none; b=lnIp6Hs0mdy2KK8/eLYBNBhZUBUV+hoUM3eWed/7tsfPcCUKrb0QB0zAmMP6YPam7kiQtg+mOJZ/WJzHaxXDJsBjjWj4m0qsmz2L7go+Z58o/2MQkajl02KUpLbPx4IrWPDjNxgaZWcHVeYcMxq6j21iAUPlEYIDsHItsV7HgPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751984; c=relaxed/simple; bh=eSn6LBOc6+egbllu0D8THHRgtcAyr2tVphV+JyyJ68o=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Vm5YS8ipsD1eH3qffedWViAHZohF3IQqTxjuyHETdY26r102FZAbbXKDx6GQdDM/3nNs+ibJFY4aDrjN8EoPR8MDAiwZ0m+TmisutPYVfSu+D7GK+TFP3A5I836fI67v/B2eEmZARSlLjbYEtZB/7l/dXI8WRbwg3BARu61daxg= 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=A0frjDCL; arc=none smtp.client-ip=209.85.221.46 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-f46.google.com with SMTP id ffacd0b85a97d-33e285a33bdso2024504f8f.2 for ; Mon, 18 Mar 2024 01:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710751981; x=1711356781; 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=/FEqaW8978q6uu/sJ/jddbH0VCAhF5dMut1fH76Gu9k=; b=A0frjDCLgNH6uhwdna+64eKiWC8xOm/w3v2BXwnpO51XrlNRCQy5XLYbcugGHf8xAy 1jxyqv39CNSMjVTfa8ziqqiNvpQWBcWR15Xnwvlt21d7hJan+0w1Q53+EjEI9PTSnkcD m1FAf3h7lrczNV2CX7ARISJ1MF0Sojc6yl1qqowVtWLxC+HoVbFnuGUBERT29z4JIgZw 92rLDkqv0wXoJ9if2ZmsO2EQAdLDijtKBtDAaaiji2hzEWiKUC59JlJHI0sQ9gmnxmWQ 3dC9Fv5jxfHr0bkeOygGRrBYHZgC0NASQd5fxrZEUluvleNrdWmxG3eIRBqnG/NpXOy7 UHLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710751981; x=1711356781; 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=/FEqaW8978q6uu/sJ/jddbH0VCAhF5dMut1fH76Gu9k=; b=IMfMX6dV2vPz0jB+uu4+tuuiIcgun7f+2s4lBh/YT9AcPh7JKJnfKG462lTq24nrYR m+OT/2QnoPAAUtEwD7CfEOk16Bk03VLy8Jy9i3buejboiatea4FpXlNicIchMntZ/25F 6k2LyYSO0Dd5o98bkacEfeHJlq57heujC1ULkUmzDJMXlUj3hK3QabJvin58olEZghH7 oiDEML2itY+ZY5o9kqNvbWyctmnqnkJZVFoun4Ov9n9Sg+FIL4Db5exRumfej5At6+tH uNpHDEGqRKAsCFnbpfGLS+mFw5RFOe/KA3ev4v8kTWm9CKPGewURRMitaG1yxbN9iy8l Gq+w== X-Forwarded-Encrypted: i=1; AJvYcCW7PzdpFsBBpGXXK3zzZ145z241WAmQFpOdKq8kVG37vRCxoWaA09xxccp3XaNo8H2aAPa4FXnVQzZ1d+w6+dCVs+u7hDHyCkRXGXe4 X-Gm-Message-State: AOJu0YyoHAj/EKdZgIBt0PFB0pLzB3/d11tFejuKJKin+4Ssib+yJ/wf bGUQUR7ZNcXH9Q+6CSzI1w1uUDIHomp8DKNk3r6+RJI/Wmy8LCyXTZaqqGa3GbA= X-Received: by 2002:adf:fdcc:0:b0:33e:c3ca:e9ff with SMTP id i12-20020adffdcc000000b0033ec3cae9ffmr7946456wrs.61.1710751981381; Mon, 18 Mar 2024 01:53:01 -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.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 01:53:00 -0700 (PDT) Message-ID: <3bdb00ed-249d-4e49-b990-d1bb23c20673@linaro.org> Date: Mon, 18 Mar 2024 09:53:00 +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 3/3] arm64: dts: qcom: sm8650: 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 References: <20240318-pci-bdf-sid-fix-v1-0-acca6c5d9cf1@linaro.org> <20240318-pci-bdf-sid-fix-v1-3-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 Q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M0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240318-pci-bdf-sid-fix-v1-3-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. > > Fixes: a33a532b3b1e ("arm64: dts: qcom: sm8650: Use GIC-ITS for PCIe0 and PCIe1") > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm64/boot/dts/qcom/sm8650.dtsi | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi > index ba72d8f38420..eb117866e59f 100644 > --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi > @@ -2274,9 +2274,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > interrupt-map-mask = <0 0 0 0x7>; > #interrupt-cells = <1>; > > - /* 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>; > msi-map-mask = <0xff00>; > > linux,pci-domain = <0>; > @@ -2402,9 +2401,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > interrupt-map-mask = <0 0 0 0x7>; > #interrupt-cells = <1>; > > - /* 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>; > msi-map-mask = <0xff00>; > > linux,pci-domain = <1>; > Acked-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8650-QRD