From patchwork Fri Jan 13 10:50:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Martin X-Patchwork-Id: 13100506 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 A1F69C54EBE for ; Fri, 13 Jan 2023 10:54:43 +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=oD8tM1+GqQnH5XaXMH6x8Q7/eKNAY8zFvKfEqDEXJ38=; b=Q5+d8xppkFVk9d iv5ySY8a/a/+Isv2wJHIAt72KXTDllFJADiP2AOoJZk2v9lvRalILH575mydGFtSfxx0RCchKnWR6 fdHd7H8BQx8UIl7wD0vLjij2m+yLEO89CdJGEkY2YO6YSzADYFVVCjPL6rB1wEzsnFYX+liEpUJgn rVrhGBwlZ46bXoi/2DTP8sRjnTl5T5IRNZWhlEoAUUP8f2MbbOJVGX1IA6uvsmERPJUrKlGk+Txq8 1TbvEAEC2Ji689DdYCL30NIK4yP7ErWpWoKrFH5FlX8473coglV9hyUXfWSqkWoL5pQ4Feh22TQW4 AMqjY2ZNW8Y6r6EGLBwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGHgp-001uiZ-9A; Fri, 13 Jan 2023 10:53:39 +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 1pGHes-001tn3-9c for linux-arm-kernel@lists.infradead.org; Fri, 13 Jan 2023 10:51:40 +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 1EAFD42462; Fri, 13 Jan 2023 10:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1673607087; bh=tFvGULUm14+dr5KO0r2GXMUhnj28fQz3V85nCFyfxVI=; h=From:To:Cc:Subject:Date; b=pi/O7iWY9cFHNORSpJiiy9M8zhkG/X5AazwtO9IUn/A2ItgNETQzeMzCmRn84LvZn Z6nkOcTjBgYFpR8oawFJCANiQLg/HL6Tsaof8hgr3yzjEjVuHaRDpV1u7I/TqGrRbr y5PVQU1C9egFIIp+GVlDjGUs4kwqw+4zNEJbSeUvkpKYA2qBZqc8AzacSj0cgmyGWn DEyj3f/qZ3Ijv96IbpSotKdzgrEDCf6Tqyya5SrSkBdDEf84Qd16G4kv0M7j+CJPyo KDic7lt17YwKkHWOF+C/HC0KXbvpnjcmjG70bjeJ4nmRe48MimOrd15xuhGw6rDnUF vOvHuNQAsW3bQ== 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: Fri, 13 Jan 2023 19:50:23 +0900 Message-Id: <20230113105029.26654-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-20230113_025138_532324_92F80DD7 X-CRM114-Status: GOOD ( 10.80 ) 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. v2: Addressed minor review comments (style nits and minor fixes). 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 | 557 ++++++++++++++---- 2 files changed, 448 insertions(+), 110 deletions(-) --- 2.35.1