Your command fixed NVME disconnects and 10gbe nic disconnects for me.
midclt call system.advanced.update '{"kernel_extra_options": "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off"}'
Now i have :
-10gbe nic via m.2 extension cable in slot 1 (maxes at 6.9gbps with iperf3) as default nic via DHCP + 2 2.5gbps with aliases (everything with MTU 9000)
-2 WD_BLACK 2TB SN850 NVMe (model : WDS200T1X0E-00AFY0) in slots 2,3
-3 Crucial T500 SSD (model : CT4000T500SSD3) in slots 4,5,6
After executing command and reboot i did not have M.2/ethernet disconnects for 24hours.
Just have to remeber to execute command again after Truenas update (truenas scale version 25.04.2.1 installed in eMMC).
The WD_BLACK(s) and the 10gbe nic disconnected all the time, now fixed.
Related threads in my case :
