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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D929EC433F5 for ; Sat, 25 Sep 2021 13:28:46 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D49D60FDC for ; Sat, 25 Sep 2021 13:28:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D49D60FDC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AB3783537; Sat, 25 Sep 2021 15:28:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MSDlmfM5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F82E834B8; Sat, 25 Sep 2021 15:28:15 +0200 (CEST) Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3183083536 for ; Sat, 25 Sep 2021 15:27:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x931.google.com with SMTP id f24so8573196uav.8 for ; Sat, 25 Sep 2021 06:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5HkQGruqK0U07NKtP6uEZPa1ZpcVZK/x9tnNsaHwIDc=; b=MSDlmfM5U+Q3Xnyhq2zEDNx9/jbNGL6r2CMYVmMrWCE8ZN8GC8z1baU5Dy+s1DIiQp ZrK/RLKQiUvdY/BEI3ct5NjfRDSV5hIudgOakLTASAULbar5wSyPeu6b5ApkRBvY6aNM xnL6bcYsiIDF91RPVT7Fu6XZQR9iApytqlwUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5HkQGruqK0U07NKtP6uEZPa1ZpcVZK/x9tnNsaHwIDc=; b=exUOT1x4l5tH9cggDkxAEtRNxJENql+Fewvq6VEZ5aC1ZsPZ7NeJK8VmTobptEwWyd fcxUbvQPE7fIwVvUmvzB976MUC4IQTRKYz8aAZS8ATIWVHLpQ+KzkOL8F64DJ23eBNQw bFkGiX6RyipGOsiVVFwTyzY8cC3yE8kARIjP/+aXlPX6Ycy662yV980Eknb0843PjEkH 1vO07M1fbm0eotYK09sjmMgOWZZB3OV9GWysg6vXgWu2iQtgYR4YUySzWPV6foEhGeLL CuJWAk1dmHOWym9GnI3A3568DMxr2wCHeMVN9OxF2s/pte87vBa9ybCp5luLQ6//x+T0 eNDg== X-Gm-Message-State: AOAM533MR7EUN+psqnXZyEU8/6pxiJ/2l520YQ8wTJ8xov8RckKbyB99 gs3+O+LoJNC7WyUWTcrKj4QKLAW/YOTG5viMliGEDQaYfGs= X-Google-Smtp-Source: ABdhPJz1ToCg7dKVyxukJ1Qy2CNr91cbR3GfzKrfp6Uxzf2Q+3EnUTNbruNwahcZ6/FqTjwWufCvIOHnBkY6tLnkomo= X-Received: by 2002:ab0:6d8b:: with SMTP id m11mr13458854uah.35.1632576477829; Sat, 25 Sep 2021 06:27:57 -0700 (PDT) MIME-Version: 1.0 References: <20210918135437.36667-1-kettenis@openbsd.org> <20210918135437.36667-4-kettenis@openbsd.org> <56146d936d16f96c@bloch.sibelius.xs4all.nl> In-Reply-To: From: Simon Glass Date: Sat, 25 Sep 2021 07:27:46 -0600 Message-ID: Subject: Re: [PATCH 3/5] misc: Add Apple DART driver To: Mark Kettenis Cc: Mark Kettenis , U-Boot Mailing List , Oliver Graute , Stephan Gerhold , Masami Hiramatsu , Priyanka Jain , Leo Liang , Padmarao Begari , Michael Walle , Kishon Vijay Abraham I , Heinrich Schuchardt , Bin Meng , Asherah Connor , Michal Simek , Wasim Khan , Heiko Schocher , Igor Opaniuk , Ye Li , Stefan Roese , AKASHI Takahiro , Weijie Gao , Vabhav Sharma , Andy Shevchenko , Pratyush Yadav Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Mon, 20 Sept 2021 at 19:11, Simon Glass wrote: > > Hi Mark, > > On Mon, 20 Sept 2021 at 02:33, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Sun, 19 Sep 2021 21:16:00 -0600 > > > > > > Hi Mark, > > > > > > On Sat, 18 Sept 2021 at 07:55, Mark Kettenis wrote: > > > > > > > > The DART is an IOMMU that is used on Apple's M1 SoC. This driver > > > > supports the DART in bypass mode as well as in a mode where it > > > > creates a 1:1 mapping of a subset of RAM as not all DARTs support > > > > bypass mode. The USB3 ports integrated on the SoC use a DART > > > > that supports bypass mode. The 1:1 mapping will be used in the > > > > future to support other devices such as the PCIe host bridge > > > > of the M1 SoC. > > > > > > > > Signed-off-by: Mark Kettenis > > > > --- > > > > drivers/misc/Kconfig | 7 ++ > > > > drivers/misc/Makefile | 1 + > > > > drivers/misc/apple_dart.c | 171 ++++++++++++++++++++++++++++++++++++++ > > > > 3 files changed, 179 insertions(+) > > > > create mode 100644 drivers/misc/apple_dart.c > > > > > Tested on: Macbook Air M1 Tested-by: Simon Glass