Code Monkey home page Code Monkey logo

Comments (20)

patrykk avatar patrykk commented on July 23, 2024 1

ok, so probably you are right with RTL9210B-CG. This device works without UAS. The second one unfortunately not.
Openwrt usb_storage module ignore parameters when you load module with modprobe or modprobe.conf defined parameters. The workaround looks like :
a) remove file: /etc/modules.d/usb-storage-uas
b) add to the rc.local:

echo -n "quirks=0bda:9210:u" > /sys/module/usb_storage/parameters/quirks 
usbreset 0bda:9210
echo "0bda 9210" > /sys/module/usb_storage/drivers/usb:usb-storage/new_id

performance:

Run status group 0 (all jobs):
   READ: bw=67.4MiB/s (70.6MB/s), 67.4MiB/s-67.4MiB/s (70.6MB/s-70.6MB/s), io=8084MiB (8476MB), run=120000-120000msec
  WRITE: bw=67.4MiB/s (70.6MB/s), 67.4MiB/s-67.4MiB/s (70.6MB/s-70.6MB/s), io=8085MiB (8478MB), run=120000-120000msec

from openwrt.

github-actions avatar github-actions commented on July 23, 2024

Invalid Version reported. r26186-064d4a8083 r25210-b0b8fd436f
Is this from a clean repository?

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

Is this from a clean repository?

Yes

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

kmod-iosched-bfq will sync more often and likely help with fake NCQ over USB

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

kmod-iosched-bfq will sync more often and likely help with fake NCQ over USB

Hi, thanks for advice but it will not solve root cause and probably will improve only stability a little bit.

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

Uninstall uas driver, no ncq no tears

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

Uninstall uas driver, no ncq no tears

Without uas I cant detect these disks. Is there other kernel drivers which supports these device classes ?

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

usb-storage driver must support each and every uac disk.

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

usb-storage driver must support each and every uac disk.

When I remove uas :

root@router3:~# lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/2p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 20000M/x2
    |__ Port 001: Dev 002, If 0, Class=[unknown], **Driver=[none],** 5000M/x2
root@router3:~# lsusb 
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.30 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.30 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 0bda:9210 Realtek RTL9210B-CG

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

same enclosure has problems...
raspberrypi/linux#4130

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

same enclosure has problems... raspberrypi/linux#4130

Here we speak about two enclosures. I think the case which you paste is different.

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

Realtek RTL9210B-CG

yeah, totally different, just strange you dont enjoy your wildly enhanced uas mode.

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

rebuild uas with patch.
https://patchwork.kernel.org/project/linux-usb/patch/[email protected]/

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

Alternatively try with some "rolling" linux distribution just to confirm that there is no UAS for this device and it works.

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

Alternatively try with some "rolling" linux distribution just to confirm that there is no UAS for this device and it works.

linux-6.9.1]$ grep -R 0x9210 * -A 2 -B 2 | grep 0bda -A 2 -B 2
--
drivers/usb/storage/uas-detect.h-	 */
drivers/usb/storage/uas-detect.h-	if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bda &&
drivers/usb/storage/uas-detect.h:			le16_to_cpu(udev->descriptor.idProduct) == 0x9210 &&
drivers/usb/storage/uas-detect.h-			(udev->manufacturer && !strcmp(udev->manufacturer, "HIKSEMI")) &&
$

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

It has to be backporyed in this case...

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

but its nothing new, As you can see, newest kernel contain only detect function in the uas driver and doesn't have any exception. It's not only one chip which have this problem. More less it looks like problem with USB host driver.

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

The newest kernel disables uas for particulat usb target, whose problem exhibits independently of host.

from openwrt.

patrykk avatar patrykk commented on July 23, 2024

OK. So I don't understood why it not happen on the 3 tested x86 hosts where any exceptions hasn't been added.

from openwrt.

brada4 avatar brada4 commented on July 23, 2024

It is happening on raspberry if you google. I am baffled why storage driver does not attach without uas though.

from openwrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.