pcie nvme ssd on tx2 not working

Hello,

I have a Samsung 960 EVO NVMe SSD plugged into my tx2 with a PCIe adapter. Without the drive plugged in, everything is fine, but when I plug it in the desktop does not show up and I can’t access the drive.

CONFIG_BLOCK_DEV_NVME is enabled in the kernel.

Here is the output of dmesg | grep nvme:

[   11.702601] nvme 0000:01:00.0: enabling device (0000 -> 0002)
[   42.820415] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[   73.025023] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  104.003925] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  134.015327] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  165.003961] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  195.008179] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  225.024128] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  256.003980] nvme 0000:01:00.0: Timeout I/O 0 QID 2
[  286.016282] nvme 0000:01:00.0: Timeout I/O 0 QID 2

what PCI adapter?
are you using M.2 nvme?

IIRC, you may also have to rebuild kernel with CONFIG_PCI_TEGRA as builtin instead of module.
If

gunzip -c /proc/config.gz | grep CONFIG_PCI_TEGRA

shows

CONFIG_PCI_TEGRA=m

you may try this.
If it rather shows:

CONFIG_PCI_TEGRA=y

then it’s ok, forget this advice.