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: 3550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5082327wrt; Wed, 4 Jan 2023 03:03:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdlCbIn8Gie5srg+jEBOVhVZoPMfjuXzQ+RI4XmSv5a+OBADh1PWTmLnPykJaxz0ekjKyL X-Received: by 2002:a17:906:311b:b0:7c1:64dc:ac25 with SMTP id 27-20020a170906311b00b007c164dcac25mr40155115ejx.23.1672830203325; Wed, 04 Jan 2023 03:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672830203; cv=none; d=google.com; s=arc-20160816; b=tJedvKuLJuB2yT07qPqjZgTox7OTrGn/29s44KLuWKT+dQK4f6g4IEYEawCfBso3LM lEvxUVCY5DO6TE+JPG9aiSUMnAGx2i88HWGdYJpGec3Jk/8lJoEOTSL+k9yKnCzsLj+m SBUvY1B6bCMBo8diJT3IH46euSYkuSp/HjdJKuBMfiI/avXiM73mXR5PSGrY3Q8xlQ5w A/4tEwv+4WHenr9YdWZXlY9z4YC2c1ePMlJDwXCjIAug+MbjNjUlulX2I5F7TqOOf1AK hGfK9Ur21ah4W04jeju2K1ZwW7sN0r0At+SptsRwfvdQ+dyeBffrSFyivI7ucG+kPI3G l51A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+j18yxYlNormRB+RO4WMV8IC1G5euKlC6uJBkad081Y=; b=T1MMjEinitf45aYu6cQwtnIeVFmndVpOq6qIs2WpvS4ai8AMfQtEsJqBLH9OqhCh8E 5aio6j/V5TkZRv6jaeOVUInyse6gspZsFFDAOadve4gzuiiR2KT9GHDu29R50AFrNK3E YxBg/xlV0iqRekqomQfT5zN5FW3NgC5iVf8Wftzsx+uT7uApTHUbKyluK2PRvPjIqQyl 9XSBLepyAEOUTk2FiJ3fDGe83qMFlWg/x/0BPSCPNKbS0zy8gxkpUZ4f5HbGfOS9FNPz 3u/SsiO5WwApr1ZqJ8bjpNPBAx/GAUvgMeV9+U7joGFfjmjmG32y/g/jJ8QMA0TW+4Oq rSEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=SUbRwVaI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a50d64b000000b00459b51c2b25si32165201edj.438.2023.01.04.03.02.59; Wed, 04 Jan 2023 03:03:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=SUbRwVaI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234704AbjADLCd (ORCPT + 99 others); Wed, 4 Jan 2023 06:02:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbjADLCN (ORCPT ); Wed, 4 Jan 2023 06:02:13 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD78013CFC; Wed, 4 Jan 2023 03:01:43 -0800 (PST) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754089603036685147?= X-GMAIL-MSGID: =?utf-8?q?1754089603036685147?= 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(-)