From patchwork Sun Jun 12 16:00:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 1642561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LLfYs5Gymz9s75 for ; Mon, 13 Jun 2022 02:00:47 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F03FF84427; Sun, 12 Jun 2022 18:00:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D03E284427; Sun, 12 Jun 2022 18:00:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from soltyk.jannau.net (soltyk.jannau.net [144.76.91.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 85D9B84409 for ; Sun, 12 Jun 2022 18:00:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=j@jannau.net Received: from coburn.home.jannau.net (p579ad988.dip0.t-ipconnect.de [87.154.217.136]) by soltyk.jannau.net (Postfix) with ESMTPSA id CED7126EC79; Sun, 12 Jun 2022 18:00:29 +0200 (CEST) From: Janne Grunau To: u-boot@lists.denx.de Cc: Bin Meng , Mark Kettenis , Simon Glass , Tom Rini Subject: [PATCH 0/3] Improve robustness of NVMe suuport for Apple silicon devices Date: Sun, 12 Jun 2022 18:00:26 +0200 Message-Id: <20220612160029.20712-1-j@jannau.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Hej, this series has assorted fixes to improve the robustness of the NVMe support on Apple silicon devices. The main change which prompted this series is "rm: apple: nvme: Add SART support and RTKit buffer management". It fixes the RTKit driver required for the NVMe with the system-wide firmware included in the first macOS 13 beta release. The increased timeouts in RTKit are a defensive change against future changes. None of the mailbox receive calls is expected to timeout so waiting up to 1 second for a fatal error seems acceptable. cheers Janne Janne Grunau (3): arm: apple: nvme: Add SART support and RTKit buffer management MAINTAINERS: Add nvme_apple to Apple SoC section arm: apple: Increase RTKit timeouts MAINTAINERS | 1 + arch/arm/include/asm/arch-apple/rtkit.h | 22 ++- arch/arm/include/asm/arch-apple/sart.h | 22 +++ arch/arm/mach-apple/Makefile | 1 + arch/arm/mach-apple/rtkit.c | 161 ++++++++++++++--- arch/arm/mach-apple/sart.c | 230 ++++++++++++++++++++++++ drivers/nvme/nvme_apple.c | 72 +++++++- 7 files changed, 477 insertions(+), 32 deletions(-) create mode 100644 arch/arm/include/asm/arch-apple/sart.h create mode 100644 arch/arm/mach-apple/sart.c