The NVMe firmware distributed with the macOS 13 developer beta does not
authorkettenis <kettenis@openbsd.org>
Sun, 12 Jun 2022 16:00:12 +0000 (16:00 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 12 Jun 2022 16:00:12 +0000 (16:00 +0000)
commit2ec5c6354d84dc370e72495a16755f036c4cc365
tree011478d880f51fffdc72655252e2f1c19b88d485
parent8aadf3cace8735051afe3549e8c91537b0d3c9ef
The NVMe firmware distributed with the macOS 13 developer beta does not
like some of the shortcuts we've taken in the code that talks to RTKit.
In particular it does not like our NAK of the request for ioreport buffers.
So allocate the requested buffers and ACK the request instead.

However, the hardware implements a address filter between the coprocessor
that the firmware runs on and main memory.  So we have to add a mapping
into this address filter such that the firmware can access these buffers.
Support for this address filter is implemented in a new aplsart(4) driver.

ok dlg@
sys/arch/arm64/conf/GENERIC
sys/arch/arm64/conf/RAMDISK
sys/arch/arm64/conf/files.arm64
sys/arch/arm64/dev/aplns.c
sys/arch/arm64/dev/aplsart.c [new file with mode: 0644]
sys/arch/arm64/dev/aplsmc.c
sys/arch/arm64/dev/rtkit.c
sys/arch/arm64/dev/rtkit.h