Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2513

General discussion • Re: No disk created for nvme on pcie ASM1806 switch port 0, on raspberry pi 5

$
0
0
Good news! Thanks to P33M on github, After add

Code:

dtoverlay=pciex1-compat-pi5,no-mip,mmio-hi
to dtoverlay config, the disk on port 0 can be recognized.

Two other problems were found

After multiple restarts, there is a probability that IO errors will occur during mounting, as shown below

1. After multiple restarts, there is a probability that IO errors will occur during mounting, as shown below

Code:

qizhou@raspberrypi:~ $ sudo mount /dev/nvme0n1p1 /mnt/nv/mount: /mnt/nv: can't read superblock on /dev/nvme0n1p1.       dmesg(1) may have more information after failed mount system call.qizhou@raspberrypi:~ $ dmesg | tail -15[    6.703743] tun: Universal TUN/TAP device driver, 1.6[    9.795552] macb 1f00100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off[   11.549243] Bluetooth: RFCOMM TTY layer initialized[   11.549261] Bluetooth: RFCOMM socket layer initialized[   11.549271] Bluetooth: RFCOMM ver 1.11[   93.161628] nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0xffff[   93.161638] nvme nvme0: Does your device have a faulty power saving mode enabled?[   93.161641] nvme nvme0: Try "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off" and report a bug[   93.445704] nvme0n1: I/O Cmd(0x2) @ LBA 250069504, 32 blocks, I/O Error (sct 0x3 / sc 0x71) [   93.445712] I/O error, dev nvme0n1, sector 250069504 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0[   93.458190] nvme 0001:03:00.0: Unable to change power state from D3cold to D0, device inaccessible[   93.509648] nvme nvme0: Disabling device after reset failure: -19[   93.522190] Buffer I/O error on dev nvme0n1p1, logical block 15629216, async page read[   93.522198] Buffer I/O error on dev nvme0n1p1, logical block 15629217, async page read[   93.522358] EXT4-fs (nvme0n1p1): unable to read superblock
2. The read speed is too slow, only 20MB/S. The write speed is normal(400MB/s)

Code:

qizhou@raspberrypi:~ $ sudo mount /dev/nvme1n1p1 /mnt/nv/qizhou@raspberrypi:~ $ ls /mnt/nv/lost+foundqizhou@raspberrypi:~ $ sudo dd if=/dev/zero of=/mnt/nv/test.img bs=1M count=8192 status=progress 8254390272 bytes (8.3 GB, 7.7 GiB) copied, 20 s, 413 MB/s8192+0 records in8192+0 records out8589934592 bytes (8.6 GB, 8.0 GiB) copied, 20.8722 s, 412 MB/sqizhou@raspberrypi:~ $ syncqizhou@raspberrypi:~ $ echo 3 | sudo tee /proc/sys/vm/drop_caches 3qizhou@raspberrypi:~ $ sudo dd if=/mnt/nv/test.img of=/dev/null bs=1M status=progress 286261248 bytes (286 MB, 273 MiB) copied, 12 s, 23.8 MB/s^C283+0 records in282+0 records out295698432 bytes (296 MB, 282 MiB) copied, 12.4535 s, 23.7 MB/s

Statistics: Posted by atmgnd — Tue Apr 29, 2025 1:07 pm



Viewing all articles
Browse latest Browse all 2513

Trending Articles