From patchwork Tue Feb 28 20:21:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 13155193 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 77319C64EC7 for ; Tue, 28 Feb 2023 20:23:08 +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=ucRIWbydObn3MCJWFbtCbN8yQUpaw+IiegNRWmE1OtA=; b=Nf+hyFKxbXz4Q9 yQZoJV7eHedFCiv9WFo9ae1LIIIwxClxHyAay6YYX6GCNBxasxWDUSDOwdIFxdD+4MRrVK7jClnYd xyP7dyL9qYI0X/lQ5lyJZoKuuIlrgdGyyfFxGSF6I3eRQKRMQEwlqxfnYX5OlSV6yDXpUm311MA9e ZKZez+OKlbedf+R9rwJ6IGbrKxjXC7FXqGKAX/2LjIa20BhTxoNbNopyh2p+xww6UbrbkJi8UZJjc pcKtvgtuGS3i3vAn3HiCpU3ZCRJfg4PJspKiJuDRPprEC9cw5gYjka/x7kcXqh76FHQp3Ue9UanWO sbNWIWAQWreOz5SygD8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pX6Tw-00EBUO-Rn; Tue, 28 Feb 2023 20:21:53 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pX6Ts-00EBTi-Vx for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2023 20:21:50 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 24B58320027A; Tue, 28 Feb 2023 15:21:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 28 Feb 2023 15:21:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1677615700; x=1677702100; bh=80HN6tNx1o zGuvhWGo3Rdaml7NQ1ggVCX7mzw8UAeq4=; b=VNnIAw7Z+so5a+07y3LSfMCrG8 olIHuKQ4ehz/JcEbUxjawVcyh+XebLoflCRa79c8n+jkl55K82TIVT+2E//jm2hn tZLek8JsY5s2X+I2cF67j1aFGlXTr1IiWoFDP79zM65tkJ1wfNYocD1uCYIcT6Jl a1yin/aBCTZGVaKY0bQgSHdQ31qfOaEYh84SMC7LNsceMz7MKOZPnnVroGVMzDEZ GkRB66Y4Ky9mr5jrrKhudFc0uqLgs+reaDq9PfwWPp/+Jchu2g7ELabZ+k6I00sR AEi3ewVJWl+woqSSSGg2JNJK5+17zit7YCiFdCux4DEtl3d1Gs5pwk2d/bIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1677615700; x=1677702100; bh=80HN6tNx1ozGuvhWGo3Rdaml7NQ1ggVCX7m zw8UAeq4=; b=gP+yMM/OKUfYKb9I4a53t7ZaW01eyg/xajf+r8BWcDUAWw08xNp //DaQKJsfU60GlTj60fCm666+lUHKf1SLnqF32wdjoK5qs5ZjBBvrMd2zN8tT/kt QXxex/eqRN4q9/wdPue2nlbQDO8nOGVc7ygdjPxLeSPgKu8e133soWl6LlZNrm2e Pl1XgNDXTwFp7TrEZhI57Nde2+P7cAvoaLqd9BWSUh6YxsyHaurQBuCOlR+LtxDd Sgy4/5jZFX69fnKHaOd4LgiaO3olY6u0F8mJXVwC6+lNeZf6EmePksBdVEPAysH9 U6wlHViFIjyhtsIW73kxuX8XOjgUIDFNxbg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelfedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufhvvghnucfr vghtvghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtthgvrh hnpeeludffieehueevtdffvedtueelleejuddugfettdevhfefffdvgffhjeehgfelleen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnh esshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Feb 2023 15:21:38 -0500 (EST) From: Sven Peter To: Hector Martin , Sven Peter Cc: Rob Herring , Krzysztof Kozlowski , Alyssa Rosenzweig , Joerg Roedel , Will Deacon , Robin Murphy , linux-arm-kernel@lists.infradead.org, asahi@lists.linux.dev, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] Apple M1 USB4/Thunderbolt DART support Date: Tue, 28 Feb 2023 21:21:28 +0100 Message-Id: <20230228202132.4919-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230228_122149_407673_DCF6C6E0 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. 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, The M1 SoCs have a second slightly different variant of the regular DART used for the USB4 PCIe ports. It supports 64 instead of 16 streams which requires a minor change to the MMIO layout. There seems to be no way to tell them apart from the regular DARTs by just looking at the DART_PARAMs register so we have to add a new compatible for those. Change since v1: - apple,t8103-usb4-dart instead of apple,t8103-dart-usb4 as the compatible - collected Hector's tags Best, Sven Sven Peter (4): dt-bindings: iommu: dart: Add t8103-usb4-dart compatible iommu: dart: Add flag to override bypass support iommu: dart: Write to all DART_T8020_STREAM_SELECT iommu: dart: Add support for t8103 USB4 DART .../devicetree/bindings/iommu/apple,dart.yaml | 1 + drivers/iommu/apple-dart.c | 42 ++++++++++++++++++- 2 files changed, 41 insertions(+), 2 deletions(-)