Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2200202rdb; Sun, 21 Jan 2024 11:45:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5M6zfCgtWPmPtbzb7f8L6QMZTZQydkul8JrNOSwS+dzw+UOX32QhhB37/tsZH7JpK1LKk X-Received: by 2002:a05:600c:3581:b0:40e:a3aa:a458 with SMTP id p1-20020a05600c358100b0040ea3aaa458mr1381611wmq.27.1705866308720; Sun, 21 Jan 2024 11:45:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705866308; cv=pass; d=google.com; s=arc-20160816; b=n7mYQL7SIW7SPiI9i9jwxvcaH6FjYSngWiqhOKa+dd7AiJdKLvsYR6uzwP/7jE3Jxc GZApSnzVTK77JgLtXdw97r5h/pVguD6lkJvZ4ZzGQKpRqPnAXcuhQp+JhMVAYZYRSCJt wXU990j20ZKuWV0/+1fO9TinDHzIJEq0fxhI38xam3dgpmWu4EU//u5V1J2x4B0m5FGq VDbSbyJtaeR5q4Ppc3KR6Vj5XL0HImbLo+CjNKurfh7vpWsLXqUhJ/KUoIgPDDkF2r/6 8+hzpB6GVGqlSgU9P+Pm68fTc9HWewxvPGWIMBT98oA/722TNQFg6VLKBFYaaHz9KxcI NB1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mnqLSrn4btQ3vonmmCBGbb+1ntxX94Jc7ylr8L0oA0c=; fh=iQ+c+SllObe2nukKjVVyqcjftKnOdO8TEMu9hNdEpio=; b=HOF+U8xxPFfeB8z1sB7BKaV1PLN/1sme8fvFzIQ+Shk9pg/m2L+Qh/M1yUulDfKs8Y jP6u2p35L+lZ6rLvhJRU3YR4IlYjwcvaNzxZUiYDQ4QubHREFi1DA713eoGKjSuwEs8b VCYG85MNtzjDBgd3rwILwxn+24OCmCaXdKcIsfH0ECYiMsI9TyMtzpqubZBXGMqm7Ozj E0Rj3Ku7U9o1ufJ2Nv3LJIgEkGYNlj4JrS++7HKnTNhps/OKRbBf5ulVhK6B2w50xgLP YpzthkfK0g4seOKoefBkK+C7EpUWzembUAa3khW28rL2AMfEuAbbcNLpJtOpKYWCfvhT zi4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mos0bxLS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-32159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s25-20020a1709066c9900b00a2b5c0fd5easi9673979ejr.221.2024.01.21.11.45.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 11:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mos0bxLS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-32159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3ED531F217E5 for ; Sun, 21 Jan 2024 19:45:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1321383B6; Sun, 21 Jan 2024 19:44:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mos0bxLS" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 77A543838D; Sun, 21 Jan 2024 19:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705866292; cv=none; b=EfOkIKnXZeExc2HuEIN9/XR+FNnL7WrcS8JnPWXJz3tPMXXkhQmr+YU+sz94ggC27ZEbPQRWWJu4Cjl+znwo4Ka462co/2pEbuo1Hck83JTDNvGM3qAJcLBdMlhhgn50jdBzDkiW7ANbiu32mtW7dqPUfnf+LwDFPUCbk3wvqPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705866292; c=relaxed/simple; bh=kE6KwhmEk46EdDBF8Xa0zNV1QHs6MPTb7gv5QTBEnJ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TPcDvS2gMvKAsD4menav1WIMeJzva518eHFE7cZy8ns3G/3znZfq+cG65O8siAUdNl/oPCHJ2ap6GBWd+wGWc3neXTNWiT5yT4Nn7Peb6SwAjjFq5vVcXJp7JmVECYXvS5+Es0PNVk8IH7zAjYdExeAFr99mUrv63NcPRX6AwmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mos0bxLS; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a26fa294e56so243011166b.0; Sun, 21 Jan 2024 11:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705866288; x=1706471088; darn=vger.kernel.org; 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=mnqLSrn4btQ3vonmmCBGbb+1ntxX94Jc7ylr8L0oA0c=; b=mos0bxLS68NIncICCH/I7Ov65gFkSILwtstk0vU0SrNH9vOSxuL2h/nr71hWcByVH0 sgjO147AJyT5FY96p4KcNwV7S2FZjD3mMGCCzfuDX7XKXopQd9oDfEn6FoYd09rWF+rj CsS/2Km126fKmnXXPk8BHHVTPTbb8eQRoUbt1dAI1HnqEY7XAcdoNM9qPjZneyYuzSD3 3i9St9dt59vyBDrVV2Q0MnMa/dPh3Qa5eIPTzG95kLY3oIYHefjLSO88MTCY928WuQyr Q9OEZorTVy86pKjwCXKMCEcJB++mIESPZd8I/fB2te7eoXT0nlFzR0Tf0GT4MXuDPlno j6aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705866288; x=1706471088; 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=mnqLSrn4btQ3vonmmCBGbb+1ntxX94Jc7ylr8L0oA0c=; b=TjSbbZ7jBYMSeyinvzvZygyiPsyW4y9Jd8AtrNZiq85awjG7mrKNaDVzFRnGMJj2Jz J/wUjlm2cdxC3K2IWPJ6eiofc7EwOqoGR60mgxeb2nQlgLXxTAN+NN4XOkiPM79rPBvI ZrdIseXZiAEbDkRPlzosBBm+6VY0pyXbFa9h+yVY+CRemfvlV/ANbL/sMP7+ecMpP4h/ 0Ysf+bWVJEjdZdxbrnwuQoN2r003q4uT/YH82A1GK3GoEGy+aMVDrBaGKvPHmtVq3Qmp 6w651zO9l8btEB5xo8vq72lrMjvySJpWESq+/yElLy+sqMOqTrUa0ycWIs8P6KtbtCkD kQgA== X-Gm-Message-State: AOJu0YzY+ljqD3pSd6oXnwM5Poxp3IGCEcsiE6Oc4DoyjGehy0IOOd6Z xHOtIF6fSWTjrOzLQivYIUtcCxCEhY6Lc3x8b4R7OSLqA0gsmeuGzWSl8kQqR14= X-Received: by 2002:a17:906:844c:b0:a2c:ad93:2e79 with SMTP id e12-20020a170906844c00b00a2cad932e79mr1696389ejy.15.1705866288476; Sun, 21 Jan 2024 11:44:48 -0800 (PST) Received: from localhost.localdomain (byv51.neoplus.adsl.tpnet.pl. [83.30.41.51]) by smtp.gmail.com with ESMTPSA id k6-20020a170906128600b00a2b0b0fc80esm12547134ejb.193.2024.01.21.11.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 11:44:48 -0800 (PST) From: Adam Skladowski To: Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krishna Manikandan , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] arm64: dts: qcom: msm8976: Add IOMMU nodes Date: Sun, 21 Jan 2024 20:40:59 +0100 Message-Id: <20240121194221.13513-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240121194221.13513-1-a39.skl@gmail.com> References: <20240121194221.13513-1-a39.skl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the nodes describing the apps and gpu iommu and its context banks that are found on msm8976 SoCs. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index d2bb1ada361a..118174cfd4d3 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -808,6 +808,86 @@ tcsr: syscon@1937000 { reg = <0x01937000 0x30000>; }; + apps_iommu: iommu@1e20000 { + compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01e20000 0x20000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_APSS_TCU_CLK>; + clock-names = "iface", "bus"; + + qcom,iommu-secure-id = <17>; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + /* VFE */ + iommu-ctx@15000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x15000 0x1000>; + qcom,ctx-asid = <20>; + interrupts = ; + }; + + /* VENUS NS */ + iommu-ctx@16000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x16000 0x1000>; + qcom,ctx-asid = <21>; + interrupts = ; + }; + + /* MDP0 */ + iommu-ctx@17000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x17000 0x1000>; + qcom,ctx-asid = <22>; + interrupts = ; + }; + }; + + gpu_iommu: iommu@1f08000 { + compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01f08000 0x8000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_GFX3D_TCU_CLK>; + clock-names = "iface", "bus"; + + power-domains = <&gcc OXILI_GX_GDSC>; + + qcom,iommu-secure-id = <18>; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + /* gfx3d user */ + iommu-ctx@0 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x0 0x1000>; + qcom,ctx-asid = <0>; + interrupts = ; + }; + + /* gfx3d secure */ + iommu-ctx@1000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x1000 0x1000>; + qcom,ctx-asid = <2>; + interrupts = ; + }; + + /* gfx3d priv */ + iommu-ctx@2000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x2000 0x1000>; + qcom,ctx-asid = <1>; + interrupts = ; + }; + }; + spmi_bus: spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0200f000 0x1000>, -- 2.43.0