mdimatul
Posts: 4
Joined: Sat Jul 13, 2019 5:34 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Sat Jul 13, 2019 7:18 pm

Hi, I've been following this thread closely because I'm noticing slow reads on my drive as well.

Current setup:
  • RPi 4 4GB model B, heatsink, passive cooling at the moment
  • Official RPi4 power source (5V, 3.0A)
  • OS: Raspbian Buster
  • Attached SSD: Samsung Evo 860 1TB formatted with ext4, in Sabrent SATA to USB3 enclosure, attached directly to PI (trying a powered hub later on)
My buffered reads have always been on the 100-200kB/s range since I first ran hdparm, and this was before I even stumbled on this thread:

Code: Select all

pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1912 MB in  2.00 seconds = 956.04 MB/sec
 Timing buffered disk reads:   6 MB in 30.89 seconds = 198.91 kB/sec
pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1862 MB in  2.00 seconds = 931.50 MB/sec
 Timing buffered disk reads:   6 MB in 30.67 seconds = 200.34 kB/sec

My VL805 firmware:

Code: Select all

pi@raspberrypi:~/vl805_update_0137a8 $ sudo ./vl805
VL805 FW version: 00013701
I've tried turning off ASPM as per this thread and still get the same results.

I've attached my lsusb output.
Attachments
lsusb.out.tar.gz
(2.09 KiB) Downloaded 8 times

Rile
Posts: 1
Joined: Sun Jul 14, 2019 12:36 am

Re: Raspberry Pi 4 - new VLI firmware issues

Sun Jul 14, 2019 12:39 am

lucabelluccini wrote:
Wed Jul 03, 2019 11:52 pm
Hello,
I've not updated yet to the new firmware, but I've faced really slow performances with my USB 3.0 to SATA adapter on the RPi4.
I've managed to make it work enabling USB storage quirks in the "cmdline.txt".

Check step 6.3 of this Github gist
Thank you!
Looks like that solved my freezing issues!
I have one of those USB3.0/SATA adapters.

konradsa
Posts: 4
Joined: Tue Mar 10, 2015 11:20 am

Re: Raspberry Pi 4 - new VLI firmware issues

Sun Jul 14, 2019 1:37 am

Just to report my experience, I have the same issue with an attached USB3 4 TB harddisk.

With new VLI firmware:
pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 1908 MB in 2.00 seconds = 954.67 MB/sec
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 4 MB in 24.79 seconds = 165.24 kB/sec
Going back to old firmware:
pi@raspberrypi:~/vl805_update_0137a8 $ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 1946 MB in 2.00 seconds = 972.92 MB/sec
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 398 MB in 3.00 seconds = 132.61 MB/sec

mdimatul
Posts: 4
Joined: Sat Jul 13, 2019 5:34 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Sun Jul 14, 2019 4:35 am

mdimatul wrote:
Sat Jul 13, 2019 7:18 pm
Hi, I've been following this thread closely because I'm noticing slow reads on my drive as well.

Current setup:
  • RPi 4 4GB model B, heatsink, passive cooling at the moment
  • Official RPi4 power source (5V, 3.0A)
  • OS: Raspbian Buster
  • Attached SSD: Samsung Evo 860 1TB formatted with ext4, in Sabrent SATA to USB3 enclosure, attached directly to PI (trying a powered hub later on)
My buffered reads have always been on the 100-200kB/s range since I first ran hdparm, and this was before I even stumbled on this thread:

Code: Select all

pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1912 MB in  2.00 seconds = 956.04 MB/sec
 Timing buffered disk reads:   6 MB in 30.89 seconds = 198.91 kB/sec
pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1862 MB in  2.00 seconds = 931.50 MB/sec
 Timing buffered disk reads:   6 MB in 30.67 seconds = 200.34 kB/sec

My VL805 firmware:

Code: Select all

pi@raspberrypi:~/vl805_update_0137a8 $ sudo ./vl805
VL805 FW version: 00013701
I've tried turning off ASPM as per this thread and still get the same results.

I've attached my lsusb output.
Update: my issue doesn't appear related to the VLI firmware (was seeing slowness even on the 137001 firmware) but rather my Sabrent enclosure which uses the JMicron controller (thanks to lucabelluccini's post earlier in this thread).

Reference: https://gist.github.com/lucabelluccini/ ... 13f6de3eae

Procedure:

Code: Select all

pi@raspberrypi:~ $ sudo lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Need to get the ID of the SATA controller which in this case is 152d:1561.

Added the following to /boot/cmdline.txt:

Code: Select all

usb-storage.quirks=152d:1561:u
Now my hdparm test looks much better:

Code: Select all

pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1822 MB in  2.00 seconds = 911.10 MB/sec
 Timing buffered disk reads: 1034 MB in  3.01 seconds = 344.03 MB/sec

G160
Posts: 19
Joined: Sun Dec 23, 2012 1:32 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Sun Jul 14, 2019 7:19 am

mdimatul wrote:
Sun Jul 14, 2019 4:35 am
mdimatul wrote:
Sat Jul 13, 2019 7:18 pm
Hi, I've been following this thread closely because I'm noticing slow reads on my drive as well.

Current setup:
  • RPi 4 4GB model B, heatsink, passive cooling at the moment
  • Official RPi4 power source (5V, 3.0A)
  • OS: Raspbian Buster
  • Attached SSD: Samsung Evo 860 1TB formatted with ext4, in Sabrent SATA to USB3 enclosure, attached directly to PI (trying a powered hub later on)
My buffered reads have always been on the 100-200kB/s range since I first ran hdparm, and this was before I even stumbled on this thread:

Code: Select all

pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1912 MB in  2.00 seconds = 956.04 MB/sec
 Timing buffered disk reads:   6 MB in 30.89 seconds = 198.91 kB/sec
pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1862 MB in  2.00 seconds = 931.50 MB/sec
 Timing buffered disk reads:   6 MB in 30.67 seconds = 200.34 kB/sec

My VL805 firmware:

Code: Select all

pi@raspberrypi:~/vl805_update_0137a8 $ sudo ./vl805
VL805 FW version: 00013701
I've tried turning off ASPM as per this thread and still get the same results.

I've attached my lsusb output.
Update: my issue doesn't appear related to the VLI firmware (was seeing slowness even on the 137001 firmware) but rather my Sabrent enclosure which uses the JMicron controller (thanks to lucabelluccini's post earlier in this thread).

Reference: https://gist.github.com/lucabelluccini/ ... 13f6de3eae

Procedure:

Code: Select all

pi@raspberrypi:~ $ sudo lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Need to get the ID of the SATA controller which in this case is 152d:1561.

Added the following to /boot/cmdline.txt:

Code: Select all

usb-storage.quirks=152d:1561:u
Now my hdparm test looks much better:

Code: Select all

pi@raspberrypi:~ $ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   1822 MB in  2.00 seconds = 911.10 MB/sec
 Timing buffered disk reads: 1034 MB in  3.01 seconds = 344.03 MB/sec
Don't wanna be the bearer of bad news, but although this seems to fix things, I tried this a few weeks back and still had problems.
The problems weren't evident until I tried copying huge (50-100GB) files to and from the SSD....it would eventually hang and the file transfer would stop.

I recommend you try it, id be interested to see your results.

mdimatul
Posts: 4
Joined: Sat Jul 13, 2019 5:34 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Tue Jul 16, 2019 1:01 am

G160 wrote:
Sun Jul 14, 2019 7:19 am
Don't wanna be the bearer of bad news, but although this seems to fix things, I tried this a few weeks back and still had problems.
The problems weren't evident until I tried copying huge (50-100GB) files to and from the SSD....it would eventually hang and the file transfer would stop.

I recommend you try it, id be interested to see your results.
Not an exhaustive test but I tried the following which seemed successful:

Code: Select all

pi@raspberrypi:/mnt/teradrive $ sudo dd if=/dev/zero of=/mnt/teradrive/bigfile2 bs=10M count=12500 status=progress
130851799040 bytes (131 GB, 122 GiB) copied, 589 s, 222 MB/s
12500+0 records in
12500+0 records out
131072000000 bytes (131 GB, 122 GiB) copied, 589.966 s, 222 MB/s
pi@raspberrypi:/mnt/teradrive $ sudo dd if=/mnt/teradrive/bigfile2 of=/dev/null bs=10M count=12500 status=progress
130946170880 bytes (131 GB, 122 GiB) copied, 397 s, 330 MB/s
12500+0 records in
12500+0 records out
131072000000 bytes (131 GB, 122 GiB) copied, 397.364 s, 330 MB/s
I've also been copying files to and from over NFS and didn't experience too many issues.

hp1337
Posts: 3
Joined: Mon Jun 18, 2012 5:45 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Tue Jul 16, 2019 1:59 am

I'll add my experience for the benefit of others.

My setup:
Orico USB->SATA enclosure with an old 120gb Samsung SSD
lsusb = "Bus 003 Device 005: ID 357d:7788 Sharkoon QuickPort XT"

1. Stock firmware, Not using "usb-storage.quirks"
Unusable, multiple UAS errors in dmesg

2. Stock firmware, using "usb-storage.quirks"
100MB/sec

I haven't bothered trying the new firmware yet.
Last edited by hp1337 on Wed Jul 17, 2019 2:48 pm, edited 1 time in total.

trejan
Posts: 566
Joined: Tue Jul 02, 2019 2:28 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Tue Jul 16, 2019 2:10 am

hp1337 wrote:
Tue Jul 16, 2019 1:59 am
2. Stock firmware, using "usb-storage.quirks", not using lspci tweak
Usable but only 35MB/sec

3. Stock firmware, using "usb-storage.quirks", and using lspci tweak
100MB/sec (probably limited by old drive as on my laptop this is the max speed too)
Eh? You sure this is right? If you mean the "setpci -s 01:00.0 0xD4.B=0x41" change then it shouldn't have any effect on the stock firmware. The change is altering the link control register to disable ASPM L1 whilst leaving ASPM L0s enabled. The 013701 firmware is advertising no ASPM support in the link capability register so that change does nothing.

hp1337
Posts: 3
Joined: Mon Jun 18, 2012 5:45 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Wed Jul 17, 2019 2:47 pm

trejan wrote: Eh? You sure this is right? If you mean the "setpci -s 01:00.0 0xD4.B=0x41" change then it shouldn't have any effect on the stock firmware. The change is altering the link control register to disable ASPM L1 whilst leaving ASPM L0s enabled. The 013701 firmware is advertising no ASPM support in the link capability register so that change does nothing.

D'oh, you're right. I tried again and the "lspci" tweak makes no difference. I get 105MB/sec with or without it. I edited my original post to reflect this.

In addition, I tried a newer SSD in my enclosure and was able to get up o 255MB/sec.

g1gsw
Posts: 15
Joined: Sun Jun 24, 2012 6:02 pm
Location: SW Wales

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Jul 26, 2019 12:03 pm

I have a USB 3.0 CiT case for an old 2.5 inch hdd and get the same issues plus it is not seen on both ports on my Pi4 with the new firmware but reverting back to the old firmware it sees it on both ports and is really fast. Adding usb-storage.quirks=152d:0578:u to the cmdline.txt makes a vast improvement to the speed as well. I have a fan shim so the temperature is not to much of a problem until the issues are sorted.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23631
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Jul 26, 2019 12:44 pm

VLI are investigating the issues mentioned above, thanks to everyone for trying it out.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

dmelgar
Posts: 1
Joined: Mon Jul 29, 2019 3:58 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Mon Jul 29, 2019 4:01 pm

Late to the party, but the firmware update didn't work for me. Attempting to mount a SSD via USB3. I don't have the brands accessible off hand.
Mounts ok, initial reads seem to be ok, but when trying to copy a 22GB file, it starts out ok but then hangs.
Went back to old firmware, reads ok.

User avatar
RPIgoodSBC
Posts: 116
Joined: Tue Mar 20, 2018 11:37 am

Re: Raspberry Pi 4 - new VLI firmware issues

Mon Jul 29, 2019 8:09 pm

I am using now like host raspbian system (boot usb from) this enclosure...ORICO 2139-C3 USB-C interface and is working very good on stock firmware.
For this helps someone to choose a case external SSD.

https://www.amazon.es/ORICO-Transparent ... B07B2SQLZV

Code: Select all

sudo dd if=/dev/zero of=/testfile bs=16M count=64 oflag=direct && sync ; sudo rm -f /testfile
64+0 registros leídos
64+0 registros escritos
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 4,1777 s, 257 MB/s

Code: Select all

sudo lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 2109:0715 VIA Labs, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 045e:0800 Microsoft Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


This SSD case has a VIA controller VL716-Q4 I can see it because the case is transparent and works fine on Rpi4.

https://www.via-labs.com/product_show.php?id=68

SSD is a Samsung 850 EVO 120Gb.

theincogtion
Posts: 4
Joined: Fri Jan 06, 2017 9:54 am

Re: Raspberry Pi 4 - new VLI firmware issues

Tue Jul 30, 2019 8:12 pm

jdb wrote:
Sat Jul 06, 2019 1:54 pm
The "data mismatch" issue has been identified - there will be an updated vl805 utility distributed at some point in the future.
I am still not able to update getting "data missmatch" is the new utility already out or is there any workaround?

JackD12001
Posts: 4
Joined: Thu Jul 04, 2019 1:00 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Aug 09, 2019 2:23 pm

I have been using the new firmware for a couple of weeks with usb-storage.quirks and it has been very stable thus far.
I am getting around 127MB/sec and fast uploads through the ethernet have caused no instabilities in my experience.
I am also using the drive as root and booting has been fine.

Ochi
Posts: 1
Joined: Sun Aug 11, 2019 6:22 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Sun Aug 11, 2019 6:34 pm

Hello,

I have just tried updating from firmware version 013701 to 0137a8 and performance is not good for me. However, I don't have problems with USB storage devices, but rather with audio processing.

I'm experimenting with the Pi for audio routing using JACK and REAPER on Arch Linux ARM. The audio I/O happens through a Focusrite Scarlett 6i6 audio interface connected via USB.

Using the old firmware, I'm able to get very stable realtime performance even when using multiple tracks with effects in REAPER. CPU usage hovers around 40% and is stable. Using the new firmware, however, the base CPU usage is a little higher, and spikes from time to time which causes audio frames to drop which is not acceptable in said realtime application.

I've tried switching back and forth between versions and it always happens with the new firmware. If you have any hints what I could try to improve performance, let me know. For the time being, I will otherwise keep the old firmware which works fine for me.

By the way, I have a large heatsink on the Pi which keeps it well below 60°C even under full load, so heat should not be a problem even though I'm running it with "force_turbo" which seems to be necessary to get the necessary performance for my use case.

theincogtion
Posts: 4
Joined: Fri Jan 06, 2017 9:54 am

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Aug 16, 2019 12:11 pm

Any news about the firmware? Where can I get informed about new releases?

g1gsw
Posts: 15
Joined: Sun Jun 24, 2012 6:02 pm
Location: SW Wales

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Aug 16, 2019 12:27 pm

theincogtion wrote:
Fri Aug 16, 2019 12:11 pm
Any news about the firmware? Where can I get informed about new releases?
Yes I agree any news and where will it be posted about when ready?

trejan
Posts: 566
Joined: Tue Jul 02, 2019 2:28 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Aug 16, 2019 12:36 pm

theincogtion wrote:
Fri Aug 16, 2019 12:11 pm
Any news about the firmware? Where can I get informed about new releases?
Still waiting for VLI as they provide the firmware.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2090
Joined: Thu Jul 11, 2013 2:37 pm

Re: Raspberry Pi 4 - new VLI firmware issues

Fri Sep 06, 2019 2:36 pm

Locking this thread as there's a new version that needs testing -> https://www.raspberrypi.org/forums/view ... 8&t=250990
Rockets are loud.
https://astro-pi.org

Return to “Troubleshooting”