* [PATCH] Revert "usb: storage: Add quirk for Samsung Fit flash"
@ 2022-09-13 10:37 sunghwan jung
0 siblings, 0 replies; 3+ messages in thread
From: sunghwan jung @ 2022-09-13 10:37 UTC (permalink / raw)
To: stern; +Cc: gregkh, linux-usb, usb-storage, linux-kernel, sunghwan jung
This reverts commit 86d92f5465958752481269348d474414dccb1552, which fix the timeout issue for "Samsung Fit Flash".
But the commit affects not only "Samsung Fit Flash" but also other usb storages that use the same controller and causes severe performance regression.
# hdparm -t /dev/sda (without the quirk)
Timing buffered disk reads: 622 MB in 3.01 seconds = 206.66 MB/sec
# hdparm -t /dev/sda (with the quirk)
Timing buffered disk reads: 220 MB in 3.00 seconds = 73.32 MB/sec
The commit author mentioned that "Issue was reproduced after device has bad block", so this quirk should be applied when we have the timeout issue with a device that has bad blocks.
We revert the commit so that we apply this quirk by adding kernel paramters using a bootloader or other ways when we really need it, without the performance regression with devices that don't have the issue.
---
drivers/usb/storage/unusual_devs.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index 4993227ab293..20dcbccb290b 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -1275,12 +1275,6 @@ UNUSUAL_DEV( 0x090a, 0x1200, 0x0000, 0x9999,
USB_SC_RBC, USB_PR_BULK, NULL,
0 ),
-UNUSUAL_DEV(0x090c, 0x1000, 0x1100, 0x1100,
- "Samsung",
- "Flash Drive FIT",
- USB_SC_DEVICE, USB_PR_DEVICE, NULL,
- US_FL_MAX_SECTORS_64),
-
/* aeb */
UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff,
"Feiya",
--
2.37.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Revert "usb: storage: Add quirk for Samsung Fit flash"
@ 2022-09-13 10:50 sunghwan jung
2022-09-13 11:05 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: sunghwan jung @ 2022-09-13 10:50 UTC (permalink / raw)
To: stern; +Cc: gregkh, linux-usb, usb-storage, linux-kernel, sunghwan jung
This reverts commit 86d92f5465958752481269348d474414dccb1552, which fix the timeout issue for "Samsung Fit Flash".
But the commit affects not only "Samsung Fit Flash" but also other usb storages that use the same controller and causes severe performance regression.
# hdparm -t /dev/sda (without the quirk)
Timing buffered disk reads: 622 MB in 3.01 seconds = 206.66 MB/sec
# hdparm -t /dev/sda (with the quirk)
Timing buffered disk reads: 220 MB in 3.00 seconds = 73.32 MB/sec
The commit author mentioned that "Issue was reproduced after device has bad block", so this quirk should be applied when we have the timeout issue with a device that has bad blocks.
We revert the commit so that we apply this quirk by adding kernel paramters using a bootloader or other ways when we really need it, without the performance regression with devices that don't have the issue.
Signed-off-by: sunghwan jung <onenowy@gmail.com>
---
drivers/usb/storage/unusual_devs.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index 4993227ab293..20dcbccb290b 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -1275,12 +1275,6 @@ UNUSUAL_DEV( 0x090a, 0x1200, 0x0000, 0x9999,
USB_SC_RBC, USB_PR_BULK, NULL,
0 ),
-UNUSUAL_DEV(0x090c, 0x1000, 0x1100, 0x1100,
- "Samsung",
- "Flash Drive FIT",
- USB_SC_DEVICE, USB_PR_DEVICE, NULL,
- US_FL_MAX_SECTORS_64),
-
/* aeb */
UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff,
"Feiya",
--
2.37.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "usb: storage: Add quirk for Samsung Fit flash"
2022-09-13 10:50 [PATCH] Revert "usb: storage: Add quirk for Samsung Fit flash" sunghwan jung
@ 2022-09-13 11:05 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2022-09-13 11:05 UTC (permalink / raw)
To: sunghwan jung; +Cc: stern, linux-usb, usb-storage, linux-kernel
On Tue, Sep 13, 2022 at 07:50:59PM +0900, sunghwan jung wrote:
> This reverts commit 86d92f5465958752481269348d474414dccb1552, which fix the timeout issue for "Samsung Fit Flash".
>
> But the commit affects not only "Samsung Fit Flash" but also other usb storages that use the same controller and causes severe performance regression.
Please wrap your changelog text at 72 columns like your editor asked you
to when you made the commit.
Also, this is v2, please mark it as such and properly describe what
changed from v1 in the properly location as the documentation asks you
to.
Please fix up and send v3.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-13 11:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13 10:50 [PATCH] Revert "usb: storage: Add quirk for Samsung Fit flash" sunghwan jung
2022-09-13 11:05 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2022-09-13 10:37 sunghwan jung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox