Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp81064lqt; Mon, 18 Mar 2024 01:52:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwd4pN4GMVWifhZ3S+kyaqlo8RpmhYxL8a9tJhuUAW4b/DdAnzzzZJoJRdl4Xf1CFokjDSy0fRXLP5geHFQBB7EZCLwEMfihjYmeHCig== X-Google-Smtp-Source: AGHT+IFeOuEEY6u+EmCtYKyMe930ykpUJK6Cg08rOyDDRpmktWevLAiwSPE2INcXP4fmi9IZdpdN X-Received: by 2002:a05:6870:291:b0:21f:d2a0:60f with SMTP id q17-20020a056870029100b0021fd2a0060fmr13215839oaf.51.1710751962854; Mon, 18 Mar 2024 01:52:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710751962; cv=pass; d=google.com; s=arc-20160816; b=iJu8fgRYSK12j+IekkuXmzIDYc+yex7x88whJrmlEsRFkhpwfhgqZvWmHh/yC8lcF4 cfet8xbrTU8i9xLoZAPNgClBJD+yY4MrXJsXgwe6M0W77WU6yOSXBF2LK/t8JxCpnkIP Vgpygq12lhxsSqf+ElPzF3EEcO8OHOMdPSqJ1Fw4dtFBL1FZO0zU6bDL7mFG4ftLOk2A Io45D7+JjE76Dre69Nad01oy7YZnAq4OAbIaUJ8XzIcuEDovqDFUaho6abk3L6lFUtca g+Rz0O+XFeRMNBlAwodyQLvj5v9JUDcDbWU1PAOBuf+iEfRv+SvElqf0phnup+hiGAM/ vZzw== 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=i6UMWdi6YpiZ/NlXwld8jB4DogbMlixTU7wdJd6oBLQ=; fh=vr8uwU4qcoFpK3aKio9OaYZLMftF6++VoXVL3xJZX48=; b=qn64yTPiU4nmIeH8eYwiPDjQOiX703cdwU7SX+4fAxGgBqj5lAANGqT2LGOtHl6L52 NyYM2ELiWDDIrjNQ+hAL2rwUrnInqQ8QuWU+XgOD2Q7cpO3EVoV9+8TxpwWzYmcSmwvK fQJNtJKT/bMvn4p2QRUZLMKopDXNs/4+hyCxSiy5bGANrxmCkpz1Imhi7T7FXc+HRIzq qNoiVmZuSdhhRgFCNDG5bwPg93xT6qOPVXjgQrieoAuDgWlvOXBMRmEenvhg/TKpWVBV Q9Er4Ymm0aoK6zkehwJcBbvvGIUgtaG3DT99pzF7JrkmykS5sajSTA+nqifoeM0w8oJS oGSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSe6UA7H; 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-105838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k15-20020aa788cf000000b006e70670e744si4832225pff.259.2024.03.18.01.52.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSe6UA7H; 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-105838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105838-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B335CB20CC2 for ; Mon, 18 Mar 2024 08:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B353C28DD1; Mon, 18 Mar 2024 08:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nSe6UA7H" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 0588328DAE for ; Mon, 18 Mar 2024 08:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751950; cv=none; b=UHlkJfUkSge+9XmALSM5qnSZE+LdZ+rX9niDtyLiIe9M8LOiZ/CyJV8o4jzVo46kB71PTS/JzJPTzMfzCerAX2h1F0P9SeMU673hnNV/brCIh6FP7Wf7Zy38/IkyROjQJ80+wb6qUddeoZkG2D4HEtEO5mquPyHC/2xf7mtZqdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751950; c=relaxed/simple; bh=GUiZOljZZCQ6KLDONbeZl1yR9+RFtSZ/NilXA1E2+dU=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=IXDFl1Bl2vC9uFRM1LjmMF18MHaW4XiGs9/nXsYSAzSEZMeHQy99PvWu6VO4VG8X6IxAGRuKGR2t6aLfjO2wWMYPYN2d1onI9IHT07nKot7Z/5LvidA/fY5P81MzvQ6D0kGRVVuzRO+DyJ0Wow7MGEm8wfRSQoIZCERa26DKynw= 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=nSe6UA7H; arc=none smtp.client-ip=209.85.221.43 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-f43.google.com with SMTP id ffacd0b85a97d-341730bfc46so428363f8f.3 for ; Mon, 18 Mar 2024 01:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710751947; x=1711356747; 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=i6UMWdi6YpiZ/NlXwld8jB4DogbMlixTU7wdJd6oBLQ=; b=nSe6UA7HonLd0Ooze21vZUWD6BFM9+Px/rSvG9Zye9v4VLSaPB6txhtxE0P2uW8Ve0 ouTAFPvDK+MviBH0fzo8RzzGTe156JkZaF967uSQ0A92WCjTdlMpq3PeAGpZ/B86cCiN Cw+rZGGutBY/O1NU6RpWwKsli1TZUiUDy/1+IZ5sG8pQOuchXPVD7amv8OHK0XSIvOLu E7YPorWjE51GuTSPmWSPlQ2q9sClUViX82s4+ivAIeUf2qjiUvu5hQqINGuUYy5sGCaY aWng1j+8t9MBkW5O4SUtTkEHyZ6qiGSxi5taaQEcteDsFXLP1SyEZ+50VzdWtllZCNIW Am9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710751947; x=1711356747; 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=i6UMWdi6YpiZ/NlXwld8jB4DogbMlixTU7wdJd6oBLQ=; b=n5mt3+LxqCeO4y0/AzLn09zdGSKclb3f0ZayUGGw5kuUdsT+osYH1VedyJAJBWLAz5 h512A3fKutUoe1tZM4UQYywUmL/kCNpk6YJeFTQa0qog2UMfQqEWmaLO6loSTh3USMuL 1cNi3WflfEWHzMrZgOgBG1eAdVLhCtbtXMGYhEZQj9CDiynue67XsZdVuWpHwYqVNL1Y Yg8RU3IVyO9rgMTrC1dzOP48GjJy0LRQco1ymklOERWDsaUaOpjGb2xdDV7pkruozmbI 9ta0pWU+ZFyjyjtRUPpU03GHiUk2LjKMiJqFRZzs5gVJhwWDIsjXAWk1C29kq05SQAqI Fw1g== X-Forwarded-Encrypted: i=1; AJvYcCUyKmQNn6LuRRg2u30DCwLJ6DxM5ou1NBNNAmUOC6I82uQEPOWttJ9tjY5mk7Upwh6/dM7ISx3n589uUo/4PLmf5VjKseAPZaMlJoLo X-Gm-Message-State: AOJu0YxJghMmKF9skKKPgKIOFQ21Ky0sej82tttr2HhDQAXohqWX39uA Wv1T0G1V6jpzFNAe/ATeyILwpxbCRXVCZ70WUsHOkvcM2JycZjHm2YXEAFNz53s= X-Received: by 2002:adf:fa4d:0:b0:33e:c5fd:662b with SMTP id y13-20020adffa4d000000b0033ec5fd662bmr7996520wrr.4.1710751947023; Mon, 18 Mar 2024 01:52:27 -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.52.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 01:52:26 -0700 (PDT) Message-ID: <869e106f-b953-4615-8dc2-bf200af6f3d9@linaro.org> Date: Mon, 18 Mar 2024 09:52:26 +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 2/3] arm64: dts: qcom: sm8550: 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-2-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 OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat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zq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240318-pci-bdf-sid-fix-v1-2-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: 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>; > > Acked-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8550-QRD