Low USB3 speed

I mean, IPQ870x should get its actual speed out of the box, not bogged down by an inefficient cpu usage management from the firmware.

I'm not here to bash developers, u guys have done such a tremendous job of giving freedom to people like us, but these SOCs need more justice, isn't it?

Can we please stop with these magical secret sauce fixes that are not public.

Either make it public or simply not even post about it.

7 Likes

Can you kindly share it? Its an open community so please.

It says ,20 but that is across 4 cores. So 4.00 would be 100%. .20 would be .05% across all 4 cores.

How about for MT7621? Does it have fix for low USB speed now?

This "fix" was merged into rooter below
It fixes it somewhat but the usb speed issues still persist over 250-300 mbps when it should be well north of 700 when using usb3 on another device.

This will work for MT7621 devices and does even the load across the cores.

create as etc/init.d/usbspeed
set permissions

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=35

start() {
	NP=$(grep -c ^processor /proc/cpuinfo )
	if [ "$NP" -gt 1 ]; then
		INTERRUPT=$(ls /proc/irq/ | sed '/default/d')
		USB_NUMBER=$(grep "xhci-hcd" /proc/interrupts | awk -F: '{print $1}' | sed 's/^ //')

		for I in ${INTERRUPT}; do
			if [[ "${I}" = "${USB_NUMBER}" ]]; then
					echo "3" > /proc/irq/${I}/smp_affinity 2>/dev/null
				else
					echo "1" > /proc/irq/${I}/smp_affinity 2>/dev/null
				fi
		done
	fi
}
4 Likes

Thank you all! that very good for USB Disk.