For Nvidia Shield (2017 darcy) running Android 9.1.0
If you are currently in bootloop, download the developer or recovery image
Extract/flash using official instructions
Basically...
fastboot flash staging blob
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
Make sure you are on Android version 9.1.0
Download Magisk 25.2 apk from official repository:
On computer...
adb install Magisk-v25.2.apk
adb reboot bootloader
fastboot flash boot magisk_patched-25200_dY5W3.img
fastboot reboot
You should now be able to use Magisk.
To restore/unroot
adb reboot bootloader
fastboot flash boot boot.img
fastboot reboot