2022-08-30 09:35:36

by Tom Hu

[permalink] [raw]
Subject: [PATCH] usb: Improves USB2.0 write performance

USB external storage device(0x0b05:1932), use gnome-disk-utility tools
to test usb write < 30MB/s. if does not to load module of uas for this device
, can increase the write speed from 20MB/s to more than 40MB/s.

Signed-off-by: Hu Xiaoying <[email protected]>
---
drivers/usb/storage/unusual_uas.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h
index 4051c8cd0cd8..3925c7c67915 100644
--- a/drivers/usb/storage/unusual_uas.h
+++ b/drivers/usb/storage/unusual_uas.h
@@ -62,6 +62,13 @@ UNUSUAL_DEV(0x0984, 0x0301, 0x0128, 0x0128,
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
US_FL_IGNORE_UAS),

+/* Reported-by: Tom Hu <[email protected]> */
+UNUSUAL_DEV(0x0b05, 0x1932, 0x0000, 0x9999,
+ "ASUS",
+ "External HDD",
+ USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+ US_FL_IGNORE_UAS),
+
/* Reported-by: David Webb <[email protected]> */
UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
"Seagate",
--
2.25.1


2022-08-30 15:10:28

by Alan Stern

[permalink] [raw]
Subject: Re: [PATCH] usb: Improves USB2.0 write performance

On Tue, Aug 30, 2022 at 04:43:25PM +0800, Hu Xiaoying wrote:
> USB external storage device(0x0b05:1932), use gnome-disk-utility tools
> to test usb write < 30MB/s. if does not to load module of uas for this device
> , can increase the write speed from 20MB/s to more than 40MB/s.
>
> Signed-off-by: Hu Xiaoying <[email protected]>

This email address "@gmail.com" is different from the address you used
when you submitted the patch "@kylinos.cn". The two addresses must be
the same.

> ---

You should put here (just after the "---" line) a description of how
this patch version is different from all the earlier versions. Do that
and submit it as [PATCH v4], and make sure you explain how it is
different from versions 1, 2, and 3.

There are lots of examples of patches like this in the mailing list
archives. Look at some of them to see what they do.

Alan Stern

> drivers/usb/storage/unusual_uas.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h
> index 4051c8cd0cd8..3925c7c67915 100644
> --- a/drivers/usb/storage/unusual_uas.h
> +++ b/drivers/usb/storage/unusual_uas.h
> @@ -62,6 +62,13 @@ UNUSUAL_DEV(0x0984, 0x0301, 0x0128, 0x0128,
> USB_SC_DEVICE, USB_PR_DEVICE, NULL,
> US_FL_IGNORE_UAS),
>
> +/* Reported-by: Tom Hu <[email protected]> */
> +UNUSUAL_DEV(0x0b05, 0x1932, 0x0000, 0x9999,
> + "ASUS",
> + "External HDD",
> + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
> + US_FL_IGNORE_UAS),
> +
> /* Reported-by: David Webb <[email protected]> */
> UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
> "Seagate",
> --
> 2.25.1
>