From patchwork Mon Jun 20 18:36:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emma Anholt X-Patchwork-Id: 12888086 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5D813C43334 for ; Mon, 20 Jun 2022 18:36:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DA7010EEE1; Mon, 20 Jun 2022 18:36:50 +0000 (UTC) Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8149510EEC8 for ; Mon, 20 Jun 2022 18:36:47 +0000 (UTC) Received: by mail-pg1-x52f.google.com with SMTP id q140so10981898pgq.6 for ; Mon, 20 Jun 2022 11:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anholt-net.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cuXafal7oQMsPKjaUnSX0izJjoMCagq43H5IBdJoY/0=; b=HcNySfWkztX+IpyLdapmB5uQv+0HIWkTNMKKAUBo24pLvsbYdt0MhDUZ8AamP/aZZs 2GiClOnQwtLaUHbNNgwZvIlNV1NxAv09YX1qM+M8ZsC+t+woA8HTL0xrUUVHTaXgQtFA 8FBuTsB4XH9nq191ZTS4LYUooQk7H8oCGm9lmcuJSIiPLFVJ0s8wxOaDHR7c3PAHwUYk kkRkFNINd50B/k8Y+kWGdSjF7SLflNWx8DLSASQPsU02g3sr+8mEyVN+hHwDVzV9fGJ+ iLaRwn7xGaqfvxbirLEalktbZwqgl36/g2RknT6Z1hinMikKYh5wNN89zPcWPQ4H9C2P uU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cuXafal7oQMsPKjaUnSX0izJjoMCagq43H5IBdJoY/0=; b=MdtiycvJ6luWnX4NhNQoDPFahmySCZeIX0Pv1DSceYaLIZS+br2fib+uLR4Mx4LNp1 gSO2z2qhc44G/iEsvwOF0YZaOeanL+/erEPo4OrFqTRaiZ9+4QUopYWkaHquXWFfiAlh ASJZw41fo2lqGdWmdGCJpxEOTEzYxdl1ZnEVER5/mbOgqmJrTSoQygkoPvncLG6BMj0y 7v82ogboUoPQehpMWoFXp3+0GihLJC/tqn1NeHacHiPglWmzTSDrAuLnorVmnsXwEXej IMNW/2Mez3F8/c5UMcrEIwu/FBhF0Gs1UAvNlYcNts7093Wny5YNDyrNxTC6X0mtRXzG 0u8g== X-Gm-Message-State: AJIora8qeHc+cAzRJW4voEiy0OOryoVqkldMJvvsS35zjBEe2ZTQgD4U ejRSf7KMzBIC9a3p/vkPa1hyGeZzcLCFq7q1KXQ= X-Google-Smtp-Source: AGRyM1uaVMxPdAdbEkr6R5BXQkH4b9IPtINsC+QUA2arv2IQf8W7zqXF2oWl6/UIv0I4Iw1fk1cI2w== X-Received: by 2002:a65:404c:0:b0:3c6:4018:ffbf with SMTP id h12-20020a65404c000000b003c64018ffbfmr23272611pgp.408.1655750206723; Mon, 20 Jun 2022 11:36:46 -0700 (PDT) Received: from wildbow.anholt.net ([97.115.187.17]) by smtp.gmail.com with ESMTPSA id ds12-20020a17090b08cc00b001e0c1044ceasm8500041pjb.43.2022.06.20.11.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 11:36:46 -0700 (PDT) From: Emma Anholt To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Rob Clark , Jordan Crouse , Andy Gross , Bjorn Andersson , Rob Herring , Will Deacon , Robin Murphy , Joerg Roedel Subject: [PATCH v2 2/2] arm64: dts: qcom: sm8250: Enable per-process page tables. Date: Mon, 20 Jun 2022 11:36:33 -0700 Message-Id: <20220620183633.1131760-3-emma@anholt.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620183633.1131760-1-emma@anholt.net> References: <20220620183633.1131760-1-emma@anholt.net> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Baryshkov , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Emma Anholt Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is an SMMU for the adreno gpu, and adding this compatible lets the driver use per-fd page tables, which are required for security between GPU clients. Signed-off-by: Emma Anholt Reviewed-by: Dmitry Baryshkov --- v2: moved qcom,adreno-smmu earlier arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index a92230bec1dd..aae7b841b81a 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2513,7 +2513,7 @@ gpucc: clock-controller@3d90000 { }; adreno_smmu: iommu@3da0000 { - compatible = "qcom,sm8250-smmu-500", "arm,mmu-500"; + compatible = "qcom,sm8250-smmu-500", "qcom,adreno-smmu", "arm,mmu-500"; reg = <0 0x03da0000 0 0x10000>; #iommu-cells = <2>; #global-interrupts = <2>;