[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250811-t8015-nvme-v1-0-ef9c200e74a7@gmail.com>
Date: Mon, 11 Aug 2025 21:50:52 +0800
From: Nick Chan <towinchenmi@...il.com>
To: Sven Peter <sven@...nel.org>, Janne Grunau <j@...nau.net>,
Alyssa Rosenzweig <alyssa@...enzweig.io>, Neal Gompa <neal@...pa.dev>,
Jassi Brar <jassisinghbrar@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Hector Martin <marcan@...can.st>,
Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>, Keith Busch <kbusch@...nel.org>,
Jens Axboe <axboe@...nel.dk>, Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>
Cc: asahi@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
iommu@...ts.linux.dev, linux-nvme@...ts.infradead.org,
Nick Chan <towinchenmi@...il.com>
Subject: [PATCH 0/9] Add support ANS2 NVMe on Apple A11
Apple A11 SoC comes with an NVMe controller that is similar to the
NVMe controller in M1, but less customized. Notably, it does not
have NVMMU or Linear SQ.
The controller is wired to an older variant of the SART address filter,
and uses an older variant of ASC mailbox, so add support for them too.
This variant of mailbox is also present on Apple T2 SoC.
This series has everything required to support NVMe on Apple A11 SoC.
However, due to RTKit protocol version support limitation, it will
only work when booted with at least iOS 14 iBoot.
Tested on A11 as well as M1 Pro (to make sure nothing broke).
Patch 1-2 adds support for the older mailbox
Patch 3-5 adds support for the older SART
Patch 6-7 adds support for the NVMe controller found in Apple A11 SoC
Patch 8-9 adds the required device tree nodes.
Signed-off-by: Nick Chan <towinchenmi@...il.com>
---
Nick Chan (9):
dt-bindings: mailbox: apple,mailbox: Add ASC mailboxes on Apple A11 and T2
soc: apple: mailbox: Add Apple A11 and T2 mailbox support
dt-bindings: iommu: apple,sart: Add Apple A11
soc: apple: sart: Make allow flags SART version dependent
soc: apple: sart: Add SARTv0 support
dt-bindings: nvme: apple,nvme-ans: Add Apple A11
nvme: apple: Add Apple A11 support
arm64: dts: apple: t8015: Fix PCIE power domains dependencies
arm64: dts: apple: t8015: Add NVMe nodes
.../devicetree/bindings/iommu/apple,sart.yaml | 1 +
.../devicetree/bindings/mailbox/apple,mailbox.yaml | 7 +
.../devicetree/bindings/nvme/apple,nvme-ans.yaml | 15 +-
arch/arm64/boot/dts/apple/t8015-pmgr.dtsi | 1 +
arch/arm64/boot/dts/apple/t8015.dtsi | 34 +++
drivers/nvme/host/apple.c | 228 ++++++++++++++-------
drivers/soc/apple/mailbox.c | 19 ++
drivers/soc/apple/sart.c | 60 +++++-
8 files changed, 282 insertions(+), 83 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250808-t8015-nvme-73a4fcda25dd
Best regards,
--
Nick Chan <towinchenmi@...il.com>
Powered by blists - more mailing lists