Received: by 2002:a89:28c:0:b0:1ef:fe5e:92fe with SMTP id j12csp8549lqh; Sun, 17 Mar 2024 18:32:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtqEpPHPLC9breP8frx2gYiXj+tnl1yH7dWGan/qkGWJAlCkD8Uz+OevVJqWRWlXAW85NnpZQZ0/0LEcmcLRBEdVaqkNFqQ6qpQ2mShQ== X-Google-Smtp-Source: AGHT+IFhaWong+LyJwTW6ElrUrq6B1uEzFHPNpslxvydNWesHCjg2GNdaPFLNRBewYRFWa3Iy+e5 X-Received: by 2002:a05:6a20:1450:b0:1a1:4808:7c95 with SMTP id a16-20020a056a20145000b001a148087c95mr13130408pzi.37.1710725525095; Sun, 17 Mar 2024 18:32:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710725525; cv=pass; d=google.com; s=arc-20160816; b=afQgdRs9hPVb4DqXxNMdxr7ca0nmXHTvXxPQt5a1xsRxOLqgmNUg5pCScinv2dYpmn iAEDcGcCdqaTekDwmv4kzuSrJ+x8Ql5yt20lIagGpmXQh9GHhhaS5O0eJEL0bCPBwXx0 lTk0WaI/mB8mB+++vAEcDoEkkgvnWT8KQFKVdlzozVIXwkSJXf+npzHsVJbM7be147Vp k82uy2h4blebDKnPbhq70jXSqrgt7PnP+MpDPrOyXqcbIT2fFz3ja6aiCk0xi8T4vkqo IYO5u3dTl6jBSZDDvhDENXmArwq3hB5SAQHCD35YHS6OuXJbh0Nn4YPlNNus3RZqjpU2 dK2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=odD5EBmG+OefUMAlI0CSIgIoYxKcHykFzekEg+k1uq4=; fh=+OOyjWQO0OikPF2NpBLpYwDFTW6pv3moOhRaMWgXLRA=; b=fBZBv3g94aPUyHcSyP0VELTMTTpY8BO9KAvBi9oLRRwvsHfrxkKrtJUWmczYHW9DsS EOLdOjropaVV2HJIXPu3H0349VLfF0l87mnVODmCRP9gQGirpuzwNES72ypzP0VIMxvn 8IrnVjNuBKZbx3p0IYSzbW7+pWBTzxAFj7OmLLs6oCQy+T7pN/jSqAF3FTTMLAoIzB+n tkfTbIcTyxhti9t287n7L8Fv9g0Am5MHdSdk6bFP/sbRYL5joBqcuD5vo65eObkWECVE 2YyoC2/qAruei3QWMSFWxjpHpUUZdbGUeC0YfoBw6+JNa87pxnbQJ4mSArpTF9EjXM/v 0rZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lltLGczZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105626-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h15-20020a170902680f00b001defd1c0cafsi4528030plk.111.2024.03.17.18.32.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 18:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105626-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lltLGczZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105626-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7060A282DB8 for ; Mon, 18 Mar 2024 01:32:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14AC11CD1D; Mon, 18 Mar 2024 01:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lltLGczZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2912123741; Mon, 18 Mar 2024 01:31:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710725515; cv=none; b=flsQH6mXq9ufSiAKp/oItAS9JcoUhEtiQhOXTsG5oz6I7xHOBtp4EUmDiUrHLNHnI6S5Z6x4oTPUteOTVQUPLH6ldQvb36WPvEW7lOpyRi9l2hYb2Ryb9iBPqunZDaimyyib+9PpAO7BDKcaqxWIHeySWAJ/EuZwpDqx1hbkAJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710725515; c=relaxed/simple; bh=RNW2aU4AGeGtJeBkdfUoXrquQxQjFBGeXU40AmnU96g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=egLs8SwrFJA0Vv28m5L38ccyntS0nvK66153swKzG7fz7WXuGaCzW5EDibd+DKUa2GeO62BJ36j7CXOqFuvDeXc01mvQuE7tQN3m6e7ptR9N4sXuSm2sK+EiF0Q6J+I5t6Z010EuYFs1zrm9kQf0Uapp7ec/vYlAFWv2IPnvMPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lltLGczZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83FB8C433C7; Mon, 18 Mar 2024 01:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710725514; bh=RNW2aU4AGeGtJeBkdfUoXrquQxQjFBGeXU40AmnU96g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lltLGczZUEYWiXjWPLT/E5ad6r6E4M5SzIbTQk7mPFqBHbcEXaNpK5/fD+S0+TMQY gDzown5dOEiyOzEUNzFTAH4BTO8H2XMD6PSCiuCppogyVrj7Xou/K3K7sTlsuvsvxp dHa0xQhd+Inmg5K7WOSzsaQ3vfolfw8wca1WZXpas9CWy1vdBi0uHY/FWKXn+ZvVy8 RvXkUXIoZBmuwFVZKYpFimXKlcdsdpxiJGGNJQiMgWBXe+2C2s7WXEY5/7UI20Bsbq IwC3q4QfowYGQpjwBNgb6xMmaK/ccC52x1g3PIVDMoaWXeG7CHxDQSqTEbT6C33Gqw rfmPGvQcufwyw== Date: Sun, 17 Mar 2024 20:31:51 -0500 From: Bjorn Andersson To: Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Johan Hovold Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: sc8280xp: Describe the PCIe SMMUv3 Message-ID: References: <20231219-topic-8280_smmuv3-v2-0-c67bd3226687@linaro.org> <20231219-topic-8280_smmuv3-v2-2-c67bd3226687@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231219-topic-8280_smmuv3-v2-2-c67bd3226687@linaro.org> On Sat, Mar 09, 2024 at 02:31:10PM +0100, Konrad Dybcio wrote: > SC8280XP actually has a third SMMU, which can be seen in e.g. the IORT > ACPI table and is used for the PCIe hosts. > > Unfortunately though, the secure firmware seems to be configured in a > way such that Linux can't touch it, not even read back the ID registers. > It also seems like the SMMU is configured to run in some sort of bypass > mode, completely opaque to the OS. > > Describe it so that one can configure it when running Linux as a > hypervisor (e.g with [1]) and for hardware description completeness. > > [1] https://github.com/TravMurav/slbounce > Signed-off-by: Konrad Dybcio Have this information been validated? Or are you suggesting we add it for documentation purposes? Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index a5b194813079..28edd30a9c04 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -4648,6 +4648,22 @@ cci3_i2c1_sleep: cci3-i2c1-sleep-pins { > }; > }; > > + pcie_smmu: iommu@14f80000 { > + compatible = "qcom,sc8280xp-smmu-v3", "arm,smmu-v3"; > + reg = <0 0x14f80000 0 0x80000>; > + interrupts = , > + , > + ; > + interrupt-names = "eventq", > + "gerror", > + "cmdq-sync"; > + #iommu-cells = <1>; > + dma-coherent; > + > + /* The hypervisor prevents register access from Linux */ > + status = "reserved"; > + }; > + > apps_smmu: iommu@15000000 { > compatible = "qcom,sc8280xp-smmu-500", "arm,mmu-500"; > reg = <0 0x15000000 0 0x100000>; > > -- > 2.44.0 >