Message ID | 20230406200723.552644-6-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1275569vqo; Thu, 6 Apr 2023 13:12:51 -0700 (PDT) X-Google-Smtp-Source: AKy350b6NflSoiqdoHXutTdBkkR6Ma6QyAwNPDmbTIYnjGETicO6wEs/35OS72HL29PETR/2+Fdi X-Received: by 2002:a17:902:c406:b0:1a1:97b5:c64f with SMTP id k6-20020a170902c40600b001a197b5c64fmr8268909plk.11.1680811971415; Thu, 06 Apr 2023 13:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680811971; cv=none; d=google.com; s=arc-20160816; b=su7BodwbpxI3KtmGxZs2b9O917t/vcx9Hn1RdVRPWMDeASExfuDNUuPMiXOxFAUYgq Obwng330MDiv29NWEWPulZij7rlavUDk+hjOAvw2dDY4RqCAtyrEPrplOeHy8MwKiprp vof729lgNR7mmwJV5MrgbZ4P+TrVJJ3N3Xghr43zL5pj1TQyC8ggFMquJcC3UuGXQzO1 oofgVUHG5Tl61cSR6ObSaXgEMKXIEllbhCy1M5RDqhdV9/7A0olK/ML0ki5j4FOYk4Fi lH2M23WDQhw6qyFNQ8ifQk/1TbuKGVWn9Fm935mILeV08FdJLwT+I/25xHc184w7jVRi 68EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m52Fvcr35MflUMHJTsLpmYtRZScsn7h+EREVPBWogx0=; b=LWScHF+ObKfItz78APEYDxgwNZ9OQQ3KEmP64ZePNmSqca9NkjBlxZKSTHWBBtG51G 9o6Z2Msp7xAFgmCSJPHOiHf+4LnkH+5t1k++VESV9GCX99n5FLbXQRTsI6UVR7ircspX jDrYFgcloX64KwXw3An/GOakXNMOeLo/M2Qf2aqWtcfe/ZQLqCh2MMoAb/KU7EEnSFPv y9ZTEIl53oc2J6T+kRsGcUyH5RNGqXk7EEVAkTgPdtrd0ZIcArs9+dYofDWJyVS7+JAh VbQCTQ1QSjfkjK4TXzZlpEfNfoLDy+s/J1oS/oMfLoKng5vpjVAzxjmHqwQjMphawMCj JsVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="FtP0/eW7"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf18-20020a170903269200b001994a4f9d34si2212502plb.145.2023.04.06.13.12.39; Thu, 06 Apr 2023 13:12:51 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="FtP0/eW7"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238925AbjDFUIW (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 6 Apr 2023 16:08:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238788AbjDFUIE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Apr 2023 16:08:04 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C2093F9 for <linux-kernel@vger.kernel.org>; Thu, 6 Apr 2023 13:07:55 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id e18so40643271wra.9 for <linux-kernel@vger.kernel.org>; Thu, 06 Apr 2023 13:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680811674; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m52Fvcr35MflUMHJTsLpmYtRZScsn7h+EREVPBWogx0=; b=FtP0/eW7E1kTl+x7xopru+dzz4dGbL19ET6V852K4bydrN4OVov2baH8oQ2bxfW1ou A2a39Zix/GM6gMJnX3LlTU5gFFKaQI5/oAEsLTJRp2Gc2h0KhP5oiePvszdIyU0WWDNF axa61RPGGTix+oVcDM+4+9skVyk2fCbYP07Smr+3mqwFk/ZsjM4BXHia2r7Clwf30bv6 ASbVp9SpcFg4FNN4LLy0uZKoxtCN+GtEA2y/mZMsdl+Pl/qkQ7fm8IIrKFJsnTQ7BH/W I9G/QNaeY2ErIRzIBkxX3bK126H16Mi/6wLdimXnO6EECDY9RW3mFmDMCpeQ4tc+NOCW 1Dow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680811674; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m52Fvcr35MflUMHJTsLpmYtRZScsn7h+EREVPBWogx0=; b=5tJMoZHQvA2eS4oyruFMWyvQSLvWGr+ATwfQe5YgvtXUmZhprCpSyvr9MA3pajzIiK oQMvD0RV6ziUr1g0xsH+eBBT56PQCbVZyZrU/caGabN+wecES/uOg8fm8yDaYpYNK/Tj Oc/B09VpiSrk1+YSFgGXgSZfrnPJna54W40QEMzD7IVWoXNCgDfuD+2+gIa7PfmXS2mp sgaza/ZlVuxcxdBbdvZgLeOK1wYgQc4hCsDutWy+WWRF0Mqyt/4rjdgJajYR+8YnFrGX eiMk5M0TU6TUPI2mDALIIio5kJHOrd0xIo7uJEdv9aCtvOBdWl+8BUpZriFOvImYfRtq 3gWw== X-Gm-Message-State: AAQBX9f5GdzrGTleFmofIt1EAW0lqLhIiQOf8OIG0dPMex+JnAprlJYU m4Q0xf4gFE/EcD56lGRbdr1R2g== X-Received: by 2002:a5d:5103:0:b0:2d3:fba4:e61d with SMTP id s3-20020a5d5103000000b002d3fba4e61dmr4436015wrt.12.1680811674335; Thu, 06 Apr 2023 13:07:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4793:cb9a:340b:2f72]) by smtp.gmail.com with ESMTPSA id c11-20020adfe74b000000b002d89e113691sm2560506wrn.52.2023.04.06.13.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:07:53 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Catalin Marinas <catalin.marinas@arm.com>, Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v2 5/7] arm64: dts: qcom: sa8775p: add the pcie smmu node Date: Thu, 6 Apr 2023 22:07:21 +0200 Message-Id: <20230406200723.552644-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406200723.552644-1-brgl@bgdev.pl> References: <20230406200723.552644-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,UPPERCASE_50_75 autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762459093564224316?= X-GMAIL-MSGID: =?utf-8?q?1762459093564224316?= |
Series |
arm64: dts: qcom: sa8775p: add more IOMMUs
|
|
Commit Message
Bartosz Golaszewski
April 6, 2023, 8:07 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add the PCIe SMMU node for sa8775p platforms. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ 1 file changed, 74 insertions(+)
Comments
On Thu, Apr 06, 2023 at 10:07:21PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add the PCIe SMMU node for sa8775p platforms. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > index 2343df7e0ea4..9ab630c7d81b 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 { > <GIC_SPI 891 IRQ_TYPE_LEVEL_HIGH>; > }; > > + pcie_smmu: iommu@15200000 { > + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; > + reg = <0x0 0x15200000 0x0 0x800000>; Testing on the board, applying on next-20230406: [ 1.041869] arm-smmu 15200000.iommu: SMMU address space size (0x80000) differs from mapped region size (0x800000)! In the downstream sources, the size is 0x80000[1]. On reboot, I also get a synchronous abort, but the second line, from the following output on the serial, could indicate the hypervisor is behind it: [ 26.906206] arm-smmu 15200000.iommu: disabling translation 3 33.244434 Injecting instruction/data abort to VM 3, original ESR_EL2 = 0x93800047, fault VA = 0xffff80000a380000, fault IPA = 0x15200000, ELR_EL2 = 0xffffd064f70c9de8 [ 26.942083] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP [ 26.948506] Modules linked in: nvmem_qcom_spmi_sdam qcom_pon spi_geni_qcom nvmem_reboot_mode crct10dif_ce i2c_qcom_geni phy_qcom_qmp_ufs gpucc_sa8775p ufs_qcom socinfo fuse ipv6 [ 26.966702] CPU: 3 PID: 1 Comm: systemd-shutdow Not tainted 6.3.0-rc5-next-20230406-00019-g9d08a3c17f54-dirty #134 [ 26.977315] Hardware name: Qualcomm SA8775P Ride (DT) [ 26.982505] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 26.989651] pc : arm_smmu_device_shutdown+0x88/0x1d8 [ 26.994773] lr : arm_smmu_device_shutdown+0x70/0x1d8 [ 26.999875] sp : ffff80000805bbf0 [ 27.003283] x29: ffff80000805bbf0 x28: ffff0e69400a0000 x27: 0000000000000000 [ 27.010608] x26: ffffd064f8130f38 x25: 0000000000000001 x24: ffffd064f8eac028 [ 27.017932] x23: ffff0e6940eeb490 x22: ffffd064f8f24f80 x21: ffff0e6940eeb410 [ 27.025254] x20: ffff0e6940808c80 x19: ffff0e6940eeb410 x18: 0000000000000006 [ 27.032579] x17: 0000000000000001 x16: 0000000000000014 x15: ffff80000805b5c0 [ 27.039903] x14: 0000000000000000 x13: ffffd064f8ac19a8 x12: 0000000000000606 [ 27.047226] x11: 0000000000000202 x10: ffffd064f8b199a8 x9 : ffffd064f8ac19a8 [ 27.054549] x8 : 00000000ffffefff x7 : ffffd064f8b199a8 x6 : 80000000fffff000 [ 27.061872] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000 [ 27.069195] x2 : 0000000000000000 x1 : ffff80000a380000 x0 : 0000000000000001 [ 27.076520] Call trace: [ 27.079041] arm_smmu_device_shutdown+0x88/0x1d8 [ 27.083787] platform_shutdown+0x24/0x34 [ 27.087825] device_shutdown+0x150/0x258 [ 27.091859] kernel_restart+0x40/0xc0 [ 27.095632] __do_sys_reboot+0x1f0/0x274 [ 27.099664] __arm64_sys_reboot+0x24/0x30 [ 27.103786] invoke_syscall+0x48/0x114 [ 27.107644] el0_svc_common+0x40/0xf4 [ 27.111410] do_el0_svc+0x3c/0x9c [ 27.114822] el0_svc+0x2c/0x84 [ 27.117969] el0t_64_sync_handler+0xf4/0x120 [ 27.122357] el0t_64_sync+0x190/0x194 [ 27.126126] Code: f9400404 b50008e4 f9400681 52800020 (b9000020) [ 27.132385] ---[ end trace 0000000000000000 ]--- [1] https://git.codelinaro.org/clo/la/kernel/ark-5.14/-/blob/ES2/arch/arm64/boot/dts/qcom/lemans.dtsi#L3498 > + #iommu-cells = <2>; > + #global-interrupts = <2>; > + > + interrupts = <GIC_SPI 920 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 921 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 925 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 926 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 927 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 928 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 950 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 951 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 953 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 954 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 955 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 956 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 957 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 958 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 885 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 886 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 887 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 888 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 820 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 823 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 841 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 842 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 843 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 845 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 847 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 849 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 802 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 803 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 804 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 805 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 807 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 808 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 809 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 810 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 811 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 812 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 813 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 814 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 837 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 838 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 839 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 854 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 855 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 790 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 791 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 792 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 793 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 794 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 795 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 796 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 639 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>; > + }; > + > intc: interrupt-controller@17a00000 { > compatible = "arm,gic-v3"; > reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ > -- > 2.37.2 >
On Mon, Apr 10, 2023 at 10:11 PM Eric Chanudet <echanude@redhat.com> wrote: > > On Thu, Apr 06, 2023 at 10:07:21PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Add the PCIe SMMU node for sa8775p platforms. > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ > > 1 file changed, 74 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > > index 2343df7e0ea4..9ab630c7d81b 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 { > > <GIC_SPI 891 IRQ_TYPE_LEVEL_HIGH>; > > }; > > > > + pcie_smmu: iommu@15200000 { > > + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; > > + reg = <0x0 0x15200000 0x0 0x800000>; > > Testing on the board, applying on next-20230406: > [ 1.041869] arm-smmu 15200000.iommu: SMMU address space size (0x80000) differs from mapped region size (0x800000)! > > In the downstream sources, the size is 0x80000[1]. > > On reboot, I also get a synchronous abort, but the second line, from the > following output on the serial, could indicate the hypervisor is behind > it: > > [ 26.906206] arm-smmu 15200000.iommu: disabling translation > 3 33.244434 Injecting instruction/data abort to VM 3, original ESR_EL2 = 0x93800047, fault VA = 0xffff80000a380000, fault IPA = 0x15200000, ELR_EL2 = 0xffffd064f70c9de8 > [ 26.942083] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP > [ 26.948506] Modules linked in: nvmem_qcom_spmi_sdam qcom_pon spi_geni_qcom nvmem_reboot_mode crct10dif_ce i2c_qcom_geni phy_qcom_qmp_ufs gpucc_sa8775p ufs_qcom socinfo fuse ipv6 > [ 26.966702] CPU: 3 PID: 1 Comm: systemd-shutdow Not tainted 6.3.0-rc5-next-20230406-00019-g9d08a3c17f54-dirty #134 > [ 26.977315] Hardware name: Qualcomm SA8775P Ride (DT) > [ 26.982505] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 26.989651] pc : arm_smmu_device_shutdown+0x88/0x1d8 > [ 26.994773] lr : arm_smmu_device_shutdown+0x70/0x1d8 > [ 26.999875] sp : ffff80000805bbf0 > [ 27.003283] x29: ffff80000805bbf0 x28: ffff0e69400a0000 x27: 0000000000000000 > [ 27.010608] x26: ffffd064f8130f38 x25: 0000000000000001 x24: ffffd064f8eac028 > [ 27.017932] x23: ffff0e6940eeb490 x22: ffffd064f8f24f80 x21: ffff0e6940eeb410 > [ 27.025254] x20: ffff0e6940808c80 x19: ffff0e6940eeb410 x18: 0000000000000006 > [ 27.032579] x17: 0000000000000001 x16: 0000000000000014 x15: ffff80000805b5c0 > [ 27.039903] x14: 0000000000000000 x13: ffffd064f8ac19a8 x12: 0000000000000606 > [ 27.047226] x11: 0000000000000202 x10: ffffd064f8b199a8 x9 : ffffd064f8ac19a8 > [ 27.054549] x8 : 00000000ffffefff x7 : ffffd064f8b199a8 x6 : 80000000fffff000 > [ 27.061872] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000 > [ 27.069195] x2 : 0000000000000000 x1 : ffff80000a380000 x0 : 0000000000000001 > [ 27.076520] Call trace: > [ 27.079041] arm_smmu_device_shutdown+0x88/0x1d8 > [ 27.083787] platform_shutdown+0x24/0x34 > [ 27.087825] device_shutdown+0x150/0x258 > [ 27.091859] kernel_restart+0x40/0xc0 > [ 27.095632] __do_sys_reboot+0x1f0/0x274 > [ 27.099664] __arm64_sys_reboot+0x24/0x30 > [ 27.103786] invoke_syscall+0x48/0x114 > [ 27.107644] el0_svc_common+0x40/0xf4 > [ 27.111410] do_el0_svc+0x3c/0x9c > [ 27.114822] el0_svc+0x2c/0x84 > [ 27.117969] el0t_64_sync_handler+0xf4/0x120 > [ 27.122357] el0t_64_sync+0x190/0x194 > [ 27.126126] Code: f9400404 b50008e4 f9400681 52800020 (b9000020) > [ 27.132385] ---[ end trace 0000000000000000 ]--- > Adding Shazad Eric: This is supposedly gone in the latest meta but I thought you're already on the most recent release? Shazad, what version exactly should Eric test this on? Bart > [1] https://git.codelinaro.org/clo/la/kernel/ark-5.14/-/blob/ES2/arch/arm64/boot/dts/qcom/lemans.dtsi#L3498 > > > + #iommu-cells = <2>; > > + #global-interrupts = <2>; > > + > > + interrupts = <GIC_SPI 920 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 921 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 925 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 926 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 927 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 928 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 950 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 951 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 953 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 954 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 955 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 956 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 957 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 958 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 885 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 886 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 887 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 888 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 820 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 823 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 841 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 842 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 843 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 845 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 847 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 849 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 802 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 803 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 804 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 805 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 807 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 808 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 809 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 810 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 811 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 812 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 813 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 814 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 837 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 838 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 839 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 854 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 855 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 790 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 791 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 792 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 793 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 794 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 795 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 796 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 639 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, > > + <GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>; > > + }; > > + > > intc: interrupt-controller@17a00000 { > > compatible = "arm,gic-v3"; > > reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ > > -- > > 2.37.2 > > > > -- > Eric Chanudet >
On 4/11/2023 5:20 PM, Bartosz Golaszewski wrote: > On Mon, Apr 10, 2023 at 10:11 PM Eric Chanudet <echanude@redhat.com> wrote: >> >> On Thu, Apr 06, 2023 at 10:07:21PM +0200, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> >>> >>> Add the PCIe SMMU node for sa8775p platforms. >>> >>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> >>> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>> --- >>> arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ >>> 1 file changed, 74 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi >>> index 2343df7e0ea4..9ab630c7d81b 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 { >>> <GIC_SPI 891 IRQ_TYPE_LEVEL_HIGH>; >>> }; >>> >>> + pcie_smmu: iommu@15200000 { >>> + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; >>> + reg = <0x0 0x15200000 0x0 0x800000>; >> >> Testing on the board, applying on next-20230406: >> [ 1.041869] arm-smmu 15200000.iommu: SMMU address space size (0x80000) differs from mapped region size (0x800000)! >> >> In the downstream sources, the size is 0x80000[1]. >> >> On reboot, I also get a synchronous abort, but the second line, from the >> following output on the serial, could indicate the hypervisor is behind >> it: >> >> [ 26.906206] arm-smmu 15200000.iommu: disabling translation >> 3 33.244434 Injecting instruction/data abort to VM 3, original ESR_EL2 = 0x93800047, fault VA = 0xffff80000a380000, fault IPA = 0x15200000, ELR_EL2 = 0xffffd064f70c9de8 >> [ 26.942083] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP >> [ 26.948506] Modules linked in: nvmem_qcom_spmi_sdam qcom_pon spi_geni_qcom nvmem_reboot_mode crct10dif_ce i2c_qcom_geni phy_qcom_qmp_ufs gpucc_sa8775p ufs_qcom socinfo fuse ipv6 >> [ 26.966702] CPU: 3 PID: 1 Comm: systemd-shutdow Not tainted 6.3.0-rc5-next-20230406-00019-g9d08a3c17f54-dirty #134 >> [ 26.977315] Hardware name: Qualcomm SA8775P Ride (DT) >> [ 26.982505] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) >> [ 26.989651] pc : arm_smmu_device_shutdown+0x88/0x1d8 >> [ 26.994773] lr : arm_smmu_device_shutdown+0x70/0x1d8 >> [ 26.999875] sp : ffff80000805bbf0 >> [ 27.003283] x29: ffff80000805bbf0 x28: ffff0e69400a0000 x27: 0000000000000000 >> [ 27.010608] x26: ffffd064f8130f38 x25: 0000000000000001 x24: ffffd064f8eac028 >> [ 27.017932] x23: ffff0e6940eeb490 x22: ffffd064f8f24f80 x21: ffff0e6940eeb410 >> [ 27.025254] x20: ffff0e6940808c80 x19: ffff0e6940eeb410 x18: 0000000000000006 >> [ 27.032579] x17: 0000000000000001 x16: 0000000000000014 x15: ffff80000805b5c0 >> [ 27.039903] x14: 0000000000000000 x13: ffffd064f8ac19a8 x12: 0000000000000606 >> [ 27.047226] x11: 0000000000000202 x10: ffffd064f8b199a8 x9 : ffffd064f8ac19a8 >> [ 27.054549] x8 : 00000000ffffefff x7 : ffffd064f8b199a8 x6 : 80000000fffff000 >> [ 27.061872] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000 >> [ 27.069195] x2 : 0000000000000000 x1 : ffff80000a380000 x0 : 0000000000000001 >> [ 27.076520] Call trace: >> [ 27.079041] arm_smmu_device_shutdown+0x88/0x1d8 >> [ 27.083787] platform_shutdown+0x24/0x34 >> [ 27.087825] device_shutdown+0x150/0x258 >> [ 27.091859] kernel_restart+0x40/0xc0 >> [ 27.095632] __do_sys_reboot+0x1f0/0x274 >> [ 27.099664] __arm64_sys_reboot+0x24/0x30 >> [ 27.103786] invoke_syscall+0x48/0x114 >> [ 27.107644] el0_svc_common+0x40/0xf4 >> [ 27.111410] do_el0_svc+0x3c/0x9c >> [ 27.114822] el0_svc+0x2c/0x84 >> [ 27.117969] el0t_64_sync_handler+0xf4/0x120 >> [ 27.122357] el0t_64_sync+0x190/0x194 >> [ 27.126126] Code: f9400404 b50008e4 f9400681 52800020 (b9000020) >> [ 27.132385] ---[ end trace 0000000000000000 ]--- >> > > Adding Shazad > > Eric: This is supposedly gone in the latest meta but I thought you're > already on the most recent release? > > Shazad, what version exactly should Eric test this on? > > Bart > Hi Bart, We should use r00004.1 to verify this. Adding Parikshit to confirm on the same. -Shazad >> [1] https://git.codelinaro.org/clo/la/kernel/ark-5.14/-/blob/ES2/arch/arm64/boot/dts/qcom/lemans.dtsi#L3498 >> >>> + #iommu-cells = <2>; >>> + #global-interrupts = <2>; >>> + >>> + interrupts = <GIC_SPI 920 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 921 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 925 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 926 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 927 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 928 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 950 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 951 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 953 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 954 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 955 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 956 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 957 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 958 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 885 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 886 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 887 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 888 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 820 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 823 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 841 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 842 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 843 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 845 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 847 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 849 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 802 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 803 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 804 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 805 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 807 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 808 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 809 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 810 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 811 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 812 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 813 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 814 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 837 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 838 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 839 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 854 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 855 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 790 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 791 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 792 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 793 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 794 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 795 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 796 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 639 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>; >>> + }; >>> + >>> intc: interrupt-controller@17a00000 { >>> compatible = "arm,gic-v3"; >>> reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ >>> -- >>> 2.37.2 >>> >> >> -- >> Eric Chanudet >>
On Tue, Apr 11, 2023 at 09:53:53PM +0530, Shazad Hussain wrote: > On 4/11/2023 5:20 PM, Bartosz Golaszewski wrote: > > On Mon, Apr 10, 2023 at 10:11 PM Eric Chanudet <echanude@redhat.com> wrote: > > > > > > On Thu, Apr 06, 2023 at 10:07:21PM +0200, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > > > > > Add the PCIe SMMU node for sa8775p platforms. > > > > > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > > > --- > > > > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 74 +++++++++++++++++++++++++++ > > > > 1 file changed, 74 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > > > > index 2343df7e0ea4..9ab630c7d81b 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 { > > > > <GIC_SPI 891 IRQ_TYPE_LEVEL_HIGH>; > > > > }; > > > > > > > > + pcie_smmu: iommu@15200000 { > > > > + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; > > > > + reg = <0x0 0x15200000 0x0 0x800000>; > > > > > > Testing on the board, applying on next-20230406: > > > [ 1.041869] arm-smmu 15200000.iommu: SMMU address space size (0x80000) differs from mapped region size (0x800000)! > > > > > > In the downstream sources, the size is 0x80000[1]. > > > > > > On reboot, I also get a synchronous abort, but the second line, from the > > > following output on the serial, could indicate the hypervisor is behind > > > it: > > > > > > [ 26.906206] arm-smmu 15200000.iommu: disabling translation > > > 3 33.244434 Injecting instruction/data abort to VM 3, original ESR_EL2 = 0x93800047, fault VA = 0xffff80000a380000, fault IPA = 0x15200000, ELR_EL2 = 0xffffd064f70c9de8 > > > [ 26.942083] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP > > > [ 26.948506] Modules linked in: nvmem_qcom_spmi_sdam qcom_pon spi_geni_qcom nvmem_reboot_mode crct10dif_ce i2c_qcom_geni phy_qcom_qmp_ufs gpucc_sa8775p ufs_qcom socinfo fuse ipv6 > > > [ 26.966702] CPU: 3 PID: 1 Comm: systemd-shutdow Not tainted 6.3.0-rc5-next-20230406-00019-g9d08a3c17f54-dirty #134 > > > [ 26.977315] Hardware name: Qualcomm SA8775P Ride (DT) > > > [ 26.982505] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > > > [ 26.989651] pc : arm_smmu_device_shutdown+0x88/0x1d8 > > > [ 26.994773] lr : arm_smmu_device_shutdown+0x70/0x1d8 > > > [ 26.999875] sp : ffff80000805bbf0 > > > [ 27.003283] x29: ffff80000805bbf0 x28: ffff0e69400a0000 x27: 0000000000000000 > > > [ 27.010608] x26: ffffd064f8130f38 x25: 0000000000000001 x24: ffffd064f8eac028 > > > [ 27.017932] x23: ffff0e6940eeb490 x22: ffffd064f8f24f80 x21: ffff0e6940eeb410 > > > [ 27.025254] x20: ffff0e6940808c80 x19: ffff0e6940eeb410 x18: 0000000000000006 > > > [ 27.032579] x17: 0000000000000001 x16: 0000000000000014 x15: ffff80000805b5c0 > > > [ 27.039903] x14: 0000000000000000 x13: ffffd064f8ac19a8 x12: 0000000000000606 > > > [ 27.047226] x11: 0000000000000202 x10: ffffd064f8b199a8 x9 : ffffd064f8ac19a8 > > > [ 27.054549] x8 : 00000000ffffefff x7 : ffffd064f8b199a8 x6 : 80000000fffff000 > > > [ 27.061872] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000 > > > [ 27.069195] x2 : 0000000000000000 x1 : ffff80000a380000 x0 : 0000000000000001 > > > [ 27.076520] Call trace: > > > [ 27.079041] arm_smmu_device_shutdown+0x88/0x1d8 > > > [ 27.083787] platform_shutdown+0x24/0x34 > > > [ 27.087825] device_shutdown+0x150/0x258 > > > [ 27.091859] kernel_restart+0x40/0xc0 > > > [ 27.095632] __do_sys_reboot+0x1f0/0x274 > > > [ 27.099664] __arm64_sys_reboot+0x24/0x30 > > > [ 27.103786] invoke_syscall+0x48/0x114 > > > [ 27.107644] el0_svc_common+0x40/0xf4 > > > [ 27.111410] do_el0_svc+0x3c/0x9c > > > [ 27.114822] el0_svc+0x2c/0x84 > > > [ 27.117969] el0t_64_sync_handler+0xf4/0x120 > > > [ 27.122357] el0t_64_sync+0x190/0x194 > > > [ 27.126126] Code: f9400404 b50008e4 f9400681 52800020 (b9000020) > > > [ 27.132385] ---[ end trace 0000000000000000 ]--- > > > > > > > Adding Shazad > > > > Eric: This is supposedly gone in the latest meta but I thought you're > > already on the most recent release? > > > > Shazad, what version exactly should Eric test this on? > > > > Bart > > > > Hi Bart, We should use r00004.1 to verify this. Adding Parikshit to > confirm on the same. I do not have a system with that version flashed on yet. The one I had must have been on r00003.4. I'll redo the test on an upgraded system. > > -Shazad > > > > [1] https://git.codelinaro.org/clo/la/kernel/ark-5.14/-/blob/ES2/arch/arm64/boot/dts/qcom/lemans.dtsi#L3498 > > > > > > > + #iommu-cells = <2>; > > > > + #global-interrupts = <2>; > > > > + > > > > + interrupts = <GIC_SPI 920 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 921 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 925 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 926 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 927 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 928 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 950 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 951 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 953 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 954 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 955 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 956 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 957 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 958 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 885 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 886 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 887 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 888 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 820 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 823 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 841 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 842 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 843 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 845 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 847 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 849 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 802 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 803 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 804 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 805 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 807 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 808 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 809 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 810 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 811 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 812 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 813 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 814 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 837 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 838 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 839 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 854 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 855 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 790 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 791 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 792 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 793 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 794 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 795 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 796 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 639 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, > > > > + <GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>; > > > > + }; > > > > + > > > > intc: interrupt-controller@17a00000 { > > > > compatible = "arm,gic-v3"; > > > > reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ > > > > -- > > > > 2.37.2 > > > > > > > > > > -- > > > Eric Chanudet > > > >
diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 2343df7e0ea4..9ab630c7d81b 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 { <GIC_SPI 891 IRQ_TYPE_LEVEL_HIGH>; }; + pcie_smmu: iommu@15200000 { + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; + reg = <0x0 0x15200000 0x0 0x800000>; + #iommu-cells = <2>; + #global-interrupts = <2>; + + interrupts = <GIC_SPI 920 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 921 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 925 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 926 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 927 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 928 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 950 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 951 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 952 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 953 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 954 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 955 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 956 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 957 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 958 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 885 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 886 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 887 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 888 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 820 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 823 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 841 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 842 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 843 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 844 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 845 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 847 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 849 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 802 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 803 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 804 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 805 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 806 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 807 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 808 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 809 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 810 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 811 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 812 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 813 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 814 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 837 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 838 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 839 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 854 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 855 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 790 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 791 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 792 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 793 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 794 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 795 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 796 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 639 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */