From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 2673AC433EF for ; Thu, 2 Jun 2022 14:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QCoBjyzAENrgzCQGHDRxfZfYAS9VAcf5XRC/bt03uHI=; b=jtIu8ZrO84Nsnp K3JXojU7TWiwxPz50Qg6k0xJILU5hAYAuv/E6nSwNu9PAQ61gGc/nFoFuaxHqbQTC1F/XRBz8Q4yQ IK/uPuqfeK2WzltcEVc+pLdKcdPxZZL5o8fhzri7DZmMI7xiirjYN36+gjUO6mSWakC4DIwgHe1Wl CPtB1QE6uM0+1cWKs0RJ7pRkwoM3L8zs6lEvhAkSIXzBFST1C7rS7THgLKtEOUPxPrgKutDVsPQ02 7F27KcuD8revsZ/Lmlp/V+2cvgJCyoHH591KaUVkzJaeChK8QweLfq/6BexWXlBGkKSP5YdphY3T/ 3m4a/LKbNyFCBsNYjxzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwldt-003X3a-ET; Thu, 02 Jun 2022 14:17:41 +0000 Received: from mail-ot1-f49.google.com ([209.85.210.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwldq-003X2u-Vy for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 14:17:40 +0000 Received: by mail-ot1-f49.google.com with SMTP id n2-20020a9d6f02000000b0060b22af84d4so3498023otq.1 for ; Thu, 02 Jun 2022 07:17:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TCCwJv6EhxWlaEc1Brd2505WQxC3GVxol8XUS0Q3iIQ=; b=Ooow279YU0E3yxo1HvRkldaVIStXUiOSppAd/HJC7EPo6+fKTXbqDRmRLxUgyyiUq0 Rl+zkiNNttGwifYfyZohyqoB9SJKiALH03kkYwKn28R03gGsVa9OwWB5LKlSgNM1uvsX 3kARCI/jX0ZX9sWy/vH6FtWl0RcTHAhChwXJV8UJGNR0803Y/68EqDu4mYjym6JjAXM/ RD8ugX9B0p6nOTpaCdg+wRNEhRcpcCtifuqu+B9dFmgdmuNy2tnniEwGonZareCXlYr0 ErDNf+Is/3ScI/Ken8W9rzOorJr6Fna84FuMyr/q9NzEGnnobcVNaK5jd3Rbi0oqPcd7 vD4A== X-Gm-Message-State: AOAM5313R7KRi1z4Zhs1329SmbFijkYVRD4IumTttLkiHby7fnt3NnFK osWalW+/fAORRpwVBfwR3g== X-Google-Smtp-Source: ABdhPJxYVbALGE594K0AOIrngTP0BTDjw28b1fwlQJNHJriJPoZ+rLecoT8+hiuf2AyA7nCY83K4nA== X-Received: by 2002:a9d:5f16:0:b0:60b:4fbb:ac5a with SMTP id f22-20020a9d5f16000000b0060b4fbbac5amr2120193oti.189.1654179454963; Thu, 02 Jun 2022 07:17:34 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id gu23-20020a056870ab1700b000f5d765bc02sm2098115oab.8.2022.06.02.07.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 07:17:34 -0700 (PDT) Received: (nullmailer pid 2234679 invoked by uid 1000); Thu, 02 Jun 2022 14:17:33 -0000 Date: Thu, 2 Jun 2022 09:17:33 -0500 From: Rob Herring To: Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Joerg Roedel , Will Deacon , Krzysztof Kozlowski , Rob Clark , Robin Murphy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] iommu/qcom: Add support for AArch64 IOMMU pagetables Message-ID: <20220602141733.GA2227595-robh@kernel.org> References: <20220527212901.29268-1-konrad.dybcio@somainline.org> <20220527212901.29268-5-konrad.dybcio@somainline.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220527212901.29268-5-konrad.dybcio@somainline.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_071739_063643_1236B7AF X-CRM114-Status: GOOD ( 17.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 27, 2022 at 11:28:59PM +0200, Konrad Dybcio wrote: > From: AngeloGioacchino Del Regno > > Some IOMMUs associated with some TZ firmwares may support switching > to the AArch64 pagetable format by sending a "set pagetable format" > scm command indicating the IOMMU secure ID and the context number > to switch. > > Add a DT property "qcom,use-aarch64-pagetables" for this driver to > send this command to the secure world and to switch the pagetable > format to benefit of the ARM64 IOMMU pagetables, where possible. > > Note that, even though the command should be valid to switch each > context, the property is made global because: > 1. It doesn't make too much sense to switch only one or two > context(s) to AA64 instead of just the entire thing > 2. Some IOMMUs will go crazy and produce spectacular results when > trying to mix up the pagetables on a per-context basis. > > Signed-off-by: AngeloGioacchino Del Regno > Signed-off-by: Marijn Suijten > Signed-off-by: Konrad Dybcio > --- > .../devicetree/bindings/iommu/qcom,iommu.txt | 2 + Bindings should be separate patch. As you are making multiple changes, please convert this to DT schema first. > drivers/iommu/arm/arm-smmu/qcom_iommu.c | 54 +++++++++++++++---- > 2 files changed, 47 insertions(+), 9 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel