Jump to content

Trying to use PCIe NVMe drive on espressobin v7


jeka

Recommended Posts

Dear community, 

 

I'm trying to add some storage to espressobin board and idea to utilize existing mini pcie socket for that was very appealing. I have bought Mini PCI-E to NVME Adapter on aliexpress (PCI-E to NVME Adapter) and Samsung PM991a 256Gb drive. 

To my surprise it is almost worked immediately - drive is detected and appeared in system as nvme device. The next step would be to check if it works and I was hit by a failure immediately, 

 

Reading from drive using dd command seems to work for first 19 Mb's seems to work, but attempt to ready anything beyond 20 Mb mark produces drive freeze and then disconnect. Drive becomes unusable until power cycle.

Command I have used: 

 

dd if=/dev/nvme0n1 of=/dev/null bs=1M status=progress count=20

 

Dmesg shows following output:

 

[  134.109735] nvme nvme0: I/O 288 QID 2 timeout, aborting
[  134.109797] nvme nvme0: I/O 289 QID 2 timeout, aborting
[  164.828756] nvme nvme0: I/O 288 QID 2 timeout, reset controller
[  195.547760] nvme nvme0: I/O 16 QID 0 timeout, reset controller
[  256.769932] nvme nvme0: Device not ready; aborting reset, CSTS=0x1
[  256.786083] blk_update_request: I/O error, dev nvme0n1, sector 40704 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  256.786183] blk_update_request: I/O error, dev nvme0n1, sector 41472 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  256.786367] nvme nvme0: Abort status: 0x371
[  256.786381] nvme nvme0: Abort status: 0x371
[  287.322517] nvme nvme0: Device not ready; aborting reset, CSTS=0x1
[  287.322547] nvme nvme0: Removing after probe failure status: -19
[  317.841253] nvme nvme0: Device not ready; aborting reset, CSTS=0x1
[  317.841505] Buffer I/O error on dev nvme0n1, logical block 5088, async page read
[  317.841524] nvme0n1: detected capacity change from 500118192 to 0

  

This output is quite similar to broken APST support  and workaround to add "nvme_core.default_ps_max_latency_us=0" to kernel parameters is usually advised. Unfortunately it didn't help in my situation.

 

Right now I'm actually out of ideas how to troubleshoot the problem further and seeking for advice from community...

 

System itself is up to date:

root@espressobin:~# uname -a
Linux espressobin 5.15.93-mvebu64 #23.02.2 SMP PREEMPT Fri Feb 17 23:51:39 UTC 2023 aarch64 GNU/Linux
root@espressobin:~# cat /etc/deb
debconf.conf    debian_version
root@espressobin:~# cat /etc/debian_version
11.6
root@espressobin:~# cat /etc/issue
Armbian 22.11.1 Bullseye \l

 

 

Link to comment
Share on other sites

There were problems with PCIe bus on A3720 and with lot of patches to pci-aardvark.c PCIe controller driver it could be more stable. About year or two ago I tested in Espressobin 3 or 4 randomly chosen PCIe-based NVMe M.2 disks which I bought in local shop and all worked fine. From your log it looks like an NVMe error, not the PCIe. So I guess it would not be related to PCIe bus (and its wiring or adapter). So try to choose different NVMe disk. Maybe you hit some NVMe related issue...

Edited by Pali
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines