Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp209242rwe; Tue, 18 Apr 2023 20:49:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZoHDnZZeJcLxvnAuPET//4uBxclusJCEIRBYZnVwH+4KkvUXmFkGHilKUGv77PrSX0G2k6 X-Received: by 2002:a05:6a00:1251:b0:63d:4358:9140 with SMTP id u17-20020a056a00125100b0063d43589140mr1955567pfi.34.1681876163868; Tue, 18 Apr 2023 20:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681876163; cv=none; d=google.com; s=arc-20160816; b=MeW3nF9JYpt8StorTBTsETxWSHu3D8v++SuBislwNwMHZz5ZOYt6p1cfKQuZsAyBch WUiDXKIO1IRwLjI7t/YnCpwLucLcdHZXxkhgAUkIrU3/2b/UrYTzI7z0zoM1A7W/oiAf wJheJ1ynnBEtDra8ZX25dpPxXtYnGm+Zz8T00qicu3cvB/dynoLL+7LQCGwB3kiStXGJ rEfHcLhOJuH12YJZhr+LhJNHf1Dgp+/Z9NCbLxoMKQf3vakNhmPeDHzIMSEYXrxqGEEC 5JIIrwTGA+v33kHJA+S/+Tn3uZCEN1lBSmkhIeI73gwzFU27PCNnchnlkRfIZB6LdatN Pz3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NuxstRpctWIWCXWw3tpYg07U13GdQl2Gi4+JbSMjuSM=; b=QPAN861MwxuKnGoG3o8YneIOLrKYS5KvKRtMGlIFDhRKgFrIUgBo2Rk9wnGVEVXqQP 2q7SoWBFQZPQR89Sp768cA3Di12UVw94+8m+l+eep8feCVVGMszCCO0zfhkFikEReJ5w rC3bLLGCt1VJiLwsBr/VTMbf4VBZz6TObrN/MwjDEKNTFDXrmAMZEo18S48H/6PBRN5R 08R1r+MP74DI4z6TGmYLbdP+GaNNthWez4CUQHgiY/yU1uUG8/1/bJGUub+sSRUqgHG1 ETx2ctfVLVm3czUsgI/0VS79SFyBGgxtDYVZNXqBRf77rET2/eXvFaAGX1vXaHhU01y4 /Llw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HH5LDCFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 128-20020a621786000000b0063b88d64e0bsi7956915pfx.77.2023.04.18.20.49.12; Tue, 18 Apr 2023 20:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HH5LDCFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231877AbjDSDj7 (ORCPT + 99 others); Tue, 18 Apr 2023 23:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231597AbjDSDjq (ORCPT ); Tue, 18 Apr 2023 23:39:46 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3506240FE; Tue, 18 Apr 2023 20:39:43 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33J23hrR020187; Wed, 19 Apr 2023 03:39:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=NuxstRpctWIWCXWw3tpYg07U13GdQl2Gi4+JbSMjuSM=; b=HH5LDCFUHd5gfaX0qHmXbw/HDWGXH/jU8eLrPL6vaGrwzLorxH51omSyx0S1k/YPjEme zmhP5oKGdFpx4pjeR9nd6KQLnVCq7sbZFAPjAFrhrn/6lDJZovKGBrQpUgaA9ie22J1m 4qx3Z2886uf3Nr28XNvX0quca3tGqB2ki5d3I89R3zVED+2g1UMSkxEIfIZ/Rh3kCwTK 8OqYZFqDq4jcRY/WN5iv3NkGb4ZyxvgY7OHxbx4FRLqTCO6WVzsXTHuJ3NdL+A1Kpg0T fFk6nmiXUSjEYPvONaRSvdqc9N1qp4m6JjXYqfhFR6YVdyQ3Z5rRtSXxTVtD8H0Dgxb3 8Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q1v2ahw84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Apr 2023 03:39:27 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33J3dQ6E002543 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Apr 2023 03:39:26 GMT Received: from [10.216.57.243] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 18 Apr 2023 20:39:20 -0700 Message-ID: Date: Wed, 19 Apr 2023 09:09:17 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH v4 2/5] arm64: dts: qcom: sa8775p: add the pcie smmu node Content-Language: en-US To: Eric Chanudet , Bartosz Golaszewski CC: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , "Will Deacon" , Arnd Bergmann , , , , , , Bartosz Golaszewski , "Parikshit Pareek (QUIC)" References: <20230417125844.400782-1-brgl@bgdev.pl> <20230417125844.400782-3-brgl@bgdev.pl> <20230418165224.vmok75fwcjqdxspe@echanude> From: Shazad Hussain In-Reply-To: <20230418165224.vmok75fwcjqdxspe@echanude> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8M_zJ4pfjKRN-dX96s3PBO-S-t_MtHcG X-Proofpoint-ORIG-GUID: 8M_zJ4pfjKRN-dX96s3PBO-S-t_MtHcG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-18_17,2023-04-18_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 clxscore=1015 impostorscore=0 mlxscore=0 adultscore=0 mlxlogscore=787 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304190031 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/18/2023 10:22 PM, Eric Chanudet wrote: > On Mon, Apr 17, 2023 at 02:58:41PM +0200, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> Add the PCIe SMMU node for sa8775p platforms. >> >> Signed-off-by: Bartosz Golaszewski >> Reviewed-by: Konrad Dybcio >> --- >> arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ >> 1 file changed, 74 insertions(+) > > Hi Bartosz, > > Adding Shazad. > > I upgraded to the meta Shazad mentioned in v2[1], but I still get a > synchronous external abort on reboot: > > [ 8.285500] arm-smmu 15200000.iommu: disabling translation > 4 12.145913 Injecting instruction/data abort to VM 3, original ESR_EL2 = 0x93800047, fault VA = 0xffff80000a080000, fault IPA = 0x15200000, ELR_EL2 = 0xffffae99a42c96e4 > [ 8.310145] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP > [ 8.316561] Modules linked in: qcom_pon crct10dif_ce gpucc_sa8775p i2c_qcom_geni spi_geni_qcom ufs_qcom phy_qcom_qmp_ufs socinfo fuse ipv6 > [ 8.331284] CPU: 4 PID: 1 Comm: systemd-shutdow Not tainted 6.3.0-rc7-next-20230417-00014-g93340f644112 #136 > [ 8.341365] Hardware name: Qualcomm SA8775P Ride (DT) > [ 8.346555] pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 8.353705] pc : arm_smmu_device_shutdown+0x64/0x154 > [ 8.358815] lr : arm_smmu_device_shutdown+0x3c/0x154 > [ 8.363915] sp : ffff80000805bc00 > [ 8.367322] x29: ffff80000805bc00 x28: ffff69c250ca0000 x27: 0000000000000000 > [ 8.374643] x26: ffffae99a53357f8 x25: 0000000000000001 x24: ffffae99a60d5028 > [ 8.381963] x23: ffff69c2516ab890 x22: ffffae99a614e218 x21: ffff69c251668c10 > [ 8.389283] x20: ffff69c2516ab810 x19: ffff69c251479a80 x18: 0000000000000006 > [ 8.396603] x17: 0000000000000014 x16: 0000000000000030 x15: ffff80000805b5d0 > [ 8.403923] x14: 0000000000000000 x13: ffffae99a5ce1a28 x12: 00000000000005eb > [ 8.411243] x11: 00000000000001f9 x10: ffffae99a5d39a28 x9 : ffffae99a5ce1a28 > [ 8.418563] x8 : 00000000ffffefff x7 : ffffae99a5d39a28 x6 : 80000000fffff000 > [ 8.425884] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000 > [ 8.433204] x2 : 0000000000000000 x1 : ffff80000a080000 x0 : 0000000000000001 > [ 8.440524] Call trace: > [ 8.443039] arm_smmu_device_shutdown+0x64/0x154 > [ 8.447784] platform_shutdown+0x24/0x34 > [ 8.451821] device_shutdown+0x150/0x258 > [ 8.455857] kernel_restart+0x40/0xc0 > [ 8.459623] __do_sys_reboot+0x1f0/0x274 > [ 8.463656] __arm64_sys_reboot+0x24/0x30 > [ 8.467778] invoke_syscall+0x48/0x114 > [ 8.471633] el0_svc_common+0x40/0xf4 > [ 8.475397] do_el0_svc+0x3c/0x9c > [ 8.478806] el0_svc+0x2c/0x84 > [ 8.481947] el0t_64_sync_handler+0xf4/0x120 > [ 8.486334] el0t_64_sync+0x190/0x194 > [ 8.490100] Code: f9400404 b50005e4 f9400661 52800020 (b9000020) > [ 8.496361] ---[ end trace 0000000000000000 ]--- > > [1] https://lore.kernel.org/linux-arm-kernel/24804682-6ead-03b1-8b21-3ac413187c4a@quicinc.com/ > Adding Parikshit to comment. >> >> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> index 2343df7e0ea4..a23175352a20 100644 >> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >> @@ -809,6 +809,80 @@ apps_smmu: iommu@15000000 { >> ; >> }; >> >> + pcie_smmu: iommu@15200000 { >> + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; >> + reg = <0x0 0x15200000 0x0 0x80000>; >> + #iommu-cells = <2>; >> + #global-interrupts = <2>; >> + >> + interrupts = , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + ; >> + }; >> + >> intc: interrupt-controller@17a00000 { >> compatible = "arm,gic-v3"; >> reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ >> -- >> 2.37.2 >> > -Shazad