From patchwork Wed Jan 4 11:00:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Martin X-Patchwork-Id: 13088493 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 BA5C8C4332F for ; Wed, 4 Jan 2023 11:20:38 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+dkHCgf4EzyTK42efJcAJ5/eGTIjnlJg3xfTEMEWxI8=; b=WT668FaMBzDZP3 Fc1G0hukJXPYV0AEGUpQTjlexIYxbyH6rKA5kuUhFtTtkdSNFwR4pDRsY2rpFnXiWBNaNqzPj6m5r /Wcibri/vWmPIjNG0TQ5LETYgDymyTgUBAxpOlBpG0AyOyFGTBip7i/rGdQl2iF4pZUKnfuotbwsv B9oXyyo9mPnFzwsvLq2lx0AQed4E5rcfx5w/a8l5/OFSWIRrTbrGiln4rM3cCpT3l6k9jrJW+uPeu SYL3JH7F/ov28D1n68UKsO3n/Mkx1Ex1TuUSVUiCeDXzpf8hDjqjDx/g6hvsLKkVMPPbsQLY9xXNg YocGNQdsno+7eCSqEM5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pD1nf-008hxe-B3; Wed, 04 Jan 2023 11:19:15 +0000 Received: from marcansoft.com ([212.63.210.85] helo=mail.marcansoft.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pD1Wk-008c4R-Qm for linux-arm-kernel@lists.infradead.org; Wed, 04 Jan 2023 11:01:48 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sendonly@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 4365941DF4; Wed, 4 Jan 2023 11:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1672830102; bh=g7nUA2ypvc1Zay8J+5szjWXvFzadUoopE1ZxgZRaixY=; h=From:To:Cc:Subject:Date; b=SUbRwVaI8Jj/dp61tMcU9Dj4JGwB7DpZjsOmKST3J0lgzG3eIYsoEBY81cev6g5Rw XCerjQyyAe0KMZujuXypSvG7OHY2o+6GuJ4xbFWliOuNMFJ3typMuWvwDUmlCpvlDR RYN7quLsVUBH7kXSerrDxYwY3JoymyBmV3TjY6MWeYbQ9LZxymbIwMwA3ULJTNEyMl M8AiEchCWD47JB9CAqJYb+0j3xKgX5y7FdW4NvD7G7TnBNZG6oKJgj1KMpb6u/lXHN 4GcOKk3NuUitTuOW6TwmUazPvA3MFKBgjyoB2XjCQ5QwfOzNCQ9Hm56mD9+c/Vsgeg vFLPLYqxeShyA== From: Hector Martin To: Joerg Roedel , Will Deacon , Robin Murphy Cc: Sven Peter , Alyssa Rosenzweig , Janne Grunau , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, iommu@lists.linux.dev, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin Subject: [PATCH 0/7] iommu: dart: Apple t8110 DART support Date: Wed, 4 Jan 2023 20:00:06 +0900 Message-Id: <20230104110013.24738-1-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230104_030147_269042_6B5FFFF3 X-CRM114-Status: GOOD ( 11.21 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This series adds support for the T8110 DARTs used for the Thunderbolt controllers on T600x SoCs and everywhere on T8112 SoCs. This new DART revision shuffles the registers around and removes support for multiple TTBR registers per SID (which never made sense on 16K configurations), but otherwise works much like the existing DART hardware. The pagetable format is the same as t600x, so no changes are needed there. Once reviewed, I'd like to merge patch #1 through the Asahi-SoC tree so we can start using it in device trees right away, instead of waiting for one release cycle. Patches #2 onwards should go through the IOMMU tree. Hector Martin (7): dt-bindings: iommu: dart: add t8110 compatible iommu: dart: Add suspend/resume support iommu: dart: Support >64 stream IDs iommu: dart: Support a variable number of TTBRs per stream iommu: dart: Fix DART_PARAMS1/2 bit define names iommu: dart: Support different variants with different registers iommu: dart: Add t8110 DART support .../devicetree/bindings/iommu/apple,dart.yaml | 1 + drivers/iommu/apple-dart.c | 559 ++++++++++++++---- 2 files changed, 450 insertions(+), 110 deletions(-)