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 6103BC433EF for ; Tue, 30 Nov 2021 20:57:46 +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=n1s1FD+VzDqCpXmbe5W236Q1HT6j3jGU6Wwvvh34RMQ=; b=r9YwX+9PhJicYD 5RrJfbx3CXbHkxwoUW/iUSZcmi7Xq421VRyVNRMhJKsyCFThkM1mzT0C4N8myWQrftJqx4M5DcC6T zPPGwPHQSEKP0+vGRRwBjqyDBAN5zVvWGSJXDOOzuW0mBohAAERDo9vtY2H40tKfMQIH984ykfBZl 5SH7e4G26spyx15d9J+H9rowCGs7EuSu/7PLdaEZGIVGhqV6Lc1/5IqOSgwje01MuChMCLs5cTy39 LHqrSNxOs0ckWvhM6M/2ngI2gARWvQl36rJRJ+HVGWidvHvnlfTjUu9AxyVweH2ozrk6PY59QP7bo Z5x4i4yl25GODe7O1Cpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msAB2-006hMH-Jq; Tue, 30 Nov 2021 20:56:36 +0000 Received: from soltyk.jannau.net ([144.76.91.90]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msAAy-006hLX-P1 for linux-arm-kernel@lists.infradead.org; Tue, 30 Nov 2021 20:56:34 +0000 Received: by soltyk.jannau.net (Postfix, from userid 1000) id 6F085261BA6; Tue, 30 Nov 2021 21:56:31 +0100 (CET) Date: Tue, 30 Nov 2021 21:56:31 +0100 From: Janne Grunau To: Sven Peter Cc: iommu@lists.linux-foundation.org, Joerg Roedel , Will Deacon , Rob Herring , Hector Martin , Robin Murphy , Alyssa Rosenzweig , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/4] iommu: M1 Pro/Max DART support Message-ID: <20211130205631.GD28130@jannau.net> References: <20211117211509.28066-1-sven@svenpeter.dev> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211117211509.28066-1-sven@svenpeter.dev> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_125632_989953_BA072AF0 X-CRM114-Status: GOOD ( 19.37 ) 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 Hej, On 2021-11-17 22:15:05 +0100, Sven Peter wrote: > > This is a fairly brief series to add support for the DARTs present in the > M1 Pro/Max. They have two differences that make them incompatible with > those in the M1: > > - the physical addresses are shifted left by 4 bits and and have 2 more > bits inside the PTE entries > - the subpage protection feature is now mandatory. For Linux we can > just configure it to always allow access to the entire page. > > Note that this needs a fix to the core pagetable code. Hector already > sent a first version separately to the mailing list since the problem > is (at least in theory) also present on other SoCs using the LPAE format > with a large physical address space [1]. > > Sven > > [1] https://lore.kernel.org/linux-iommu/a2b45243-7e0a-a2ac-4e14-5256a3e7abb4@arm.com/T/#t > > Sven Peter (4): > dt-bindings: iommu: dart: add t6000 compatible > iommu/io-pgtable: Add DART subpage protection support > iommu/io-pgtable: Add DART PTE support for t6000 > iommu: dart: Support t6000 variant > > .../devicetree/bindings/iommu/apple,dart.yaml | 4 +- > drivers/iommu/apple-dart.c | 19 ++++++++- > drivers/iommu/io-pgtable-arm.c | 40 ++++++++++++++++++- > include/linux/io-pgtable.h | 2 + > 4 files changed, 61 insertions(+), 4 deletions(-) Whole series tested on M1 Max. Feel free to add Tested-by: Janne Grunau best Janne _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel