Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5680634rwe; Tue, 18 Apr 2023 09:57:15 -0700 (PDT) X-Google-Smtp-Source: AKy350aXyedXi0F9H5srQyAtYe2NA+jJ/XEutSOj2bfg33PaVH4r46XeXADyqPTrletxE3t6TYmq X-Received: by 2002:a05:6a20:7351:b0:ee:6c12:6c95 with SMTP id v17-20020a056a20735100b000ee6c126c95mr503909pzc.21.1681837034716; Tue, 18 Apr 2023 09:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681837034; cv=none; d=google.com; s=arc-20160816; b=dt9wby++uuzNSs8weAXuLV0PgGOXA+KU4K+DHIofSePFIpKJAvIgL5yqjyLaRrJM/v f9M9M8sAyTWJzJfmhr99D0F7/e9vTe4QqBsCo8sQheDeuAiOPVM9nY7ZdouryWLOgxQ1 VXHCYS0ByrK8S60EXHJt/FwnVopjxZSArOKqSnjbq7baTPVM53PqoQvwNPf9kYFe5hBn dcUhO56F+bAWG39Cf2Wn8pQjPqvx0RBvT7IrmxoOvSenWtD644aVX8EJPVtihE/6aEBr BCHavLdCoqG4S2Go+YzDyBhqLuUoEhoByInZJmeYkfWhIeZAy0j77c7qMBs9xQdDc0GL v7jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m4XuvKNkvXzZc1+3hTfEGj/qcp3I6s5wJfqCgvZMlpk=; b=yBl+jnYeDSqP6n8fJYVkxL7LP7DR9OAFOEtB3JDMBYcZn2WbF9d1zdtmwFO6yFl+Y1 LvZ1zA3Pqt2rs/ynkUs1LlT7sqXJw4zwnepqkHOIELKbY3rorCHaXwlFq/24TEFF75AN zru2oy9asMivQ6Zp22guUe2OZGK3fqaMY40lUYa+bgWOf2EHWVuP0Qv2mHy12FYJspr9 Lgt149uSScTflcGNzoCn721onH331X4ud9DydHIzJoQ+truFZ7pFMhQJidF6CY7ZjJ8e LTKogwHZCzUY29rBAUfkzN2js5l1Of+CPJuV0Iful5mThdlk4T61Su1mfoiK6fZUaJRN gN9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hhKg04mZ; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a635c42000000b00512fab8c401si14479822pgm.427.2023.04.18.09.56.59; Tue, 18 Apr 2023 09:57:14 -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=@redhat.com header.s=mimecast20190719 header.b=hhKg04mZ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231384AbjDRQxT (ORCPT + 99 others); Tue, 18 Apr 2023 12:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbjDRQxO (ORCPT ); Tue, 18 Apr 2023 12:53:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F91E468C for ; Tue, 18 Apr 2023 09:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681836745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=m4XuvKNkvXzZc1+3hTfEGj/qcp3I6s5wJfqCgvZMlpk=; b=hhKg04mZguhAukimq5/LODR7Idgj2J2Sv2AWnxz019zTNIlMpUvVCD6HtH5EQu3OAk0pQr o+0Wu+IZtr0f2eFIsGbxDbHMmIgPHaLVZCegwB96epMeCvB9NC1lzleCpVcRR6FM6ppwaU W7Fw/qMjXGx26GnoYIGIxmorYeWOggg= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-8SjS37KEOpWDmJoltEiJ2g-1; Tue, 18 Apr 2023 12:52:24 -0400 X-MC-Unique: 8SjS37KEOpWDmJoltEiJ2g-1 Received: by mail-qk1-f198.google.com with SMTP id 13-20020a37050d000000b0074dfd7b97bbso2655008qkf.18 for ; Tue, 18 Apr 2023 09:52:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681836742; x=1684428742; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=m4XuvKNkvXzZc1+3hTfEGj/qcp3I6s5wJfqCgvZMlpk=; b=en4rKcZLykZlqdrq05K7Oubb9wnaC9BhAY6/PCtPjSDbEakQePwuqvE/XpfxbWfnBh 3mVP3GEnhXdV1KNf2TNX0UlNYV3YYF4QBckooYhUzz+t9PPn3SAQdOI37TapI5R291G9 ZB1ENPDIXYFB60g04RgAx/Y6nliU9+P0KjsyXdgKVep6gv9+uwZBzSx4SxiVGAZweEua 3CBaNe/ZIKflXUBIdzuGbZyOvODoniys7Md6i7O6t4srLdYUWLrbHx8J4GxAlFXMbqK4 PyLT35fckZW9q0BB51DBv3PcqULDWUVMeQEnWyLhXXLXrnUouvskWUuGP9dG8scsOsYy d/Og== X-Gm-Message-State: AAQBX9d3FvS2KGrID9Y1yiG1wE3VROfhc/cNGlkG9w2hwmUr+csTVsbN hhss2DmJmtHi5uStq3kpN1ib90t9D75wPYjbK6KqqvzjvDP3hK95ipGrWn0f4Dixq3c6+f5TWL5 iB15Md4sHV7dZFVhhW7cP6reS X-Received: by 2002:ac8:5c09:0:b0:3e4:db8e:93a3 with SMTP id i9-20020ac85c09000000b003e4db8e93a3mr1051622qti.7.1681836742453; Tue, 18 Apr 2023 09:52:22 -0700 (PDT) X-Received: by 2002:ac8:5c09:0:b0:3e4:db8e:93a3 with SMTP id i9-20020ac85c09000000b003e4db8e93a3mr1051594qti.7.1681836742197; Tue, 18 Apr 2023 09:52:22 -0700 (PDT) Received: from localhost (pool-71-184-142-128.bstnma.fios.verizon.net. [71.184.142.128]) by smtp.gmail.com with ESMTPSA id a145-20020ae9e897000000b0074d02ac1c19sm2468991qkg.15.2023.04.18.09.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 09:52:21 -0700 (PDT) Date: Tue, 18 Apr 2023 12:52:24 -0400 From: Eric Chanudet To: Bartosz Golaszewski Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , Will Deacon , Arnd Bergmann , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , Shazad Hussain Subject: Re: [PATCH v4 2/5] arm64: dts: qcom: sa8775p: add the pcie smmu node Message-ID: <20230418165224.vmok75fwcjqdxspe@echanude> References: <20230417125844.400782-1-brgl@bgdev.pl> <20230417125844.400782-3-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230417125844.400782-3-brgl@bgdev.pl> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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/ > > 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 > -- Eric Chanudet