Bug 216588 - RTL9210(B) falsely detected as rotational disk
Summary: RTL9210(B) falsely detected as rotational disk
Status: NEW
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: SCSI (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Default virtual assignee for Drivers/USB
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-14 23:36 UTC by Elias
Modified: 2022-10-23 21:23 UTC (History)
3 users (show)

See Also:
Kernel Version: 6.0.1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Elias 2022-10-14 23:36:50 UTC
Hi, using an Realtek RTL9210B in an NVME M.2 to USB enclosure, the kernel does not detect that it is a non rotational disk.

`/sys/block/sdX/queue/rotational` is set to `1`, which is false, since this is no and can never be an HDD (adapter is for SSDs only).

On another adapter with JMS583 chipset it already works and correctly detects queue/rotational -> 0.
Only on the Realtek one it is wrong.
Comment 1 Alan Stern 2022-10-15 12:53:48 UTC
This bug should be assigned to the SCSI or block subsystem, not the USB subsystem.  USB is not responsible for determining whether a disk drive is rotational.  All it does is transfer commands from those higher layers to the drive and transfer the results from the drive back to the higher layers.
Comment 2 Elias 2022-10-21 22:57:18 UTC
Thanks Alan for the hint, I changed it. But unfortunately I can't change the Assignee, which is still on drivers_usb.
Comment 3 Martin K. Petersen 2022-10-22 03:41:48 UTC
I propose you create a udev rule to override what the device firmware erroneously reports.
Comment 4 Elias 2022-10-22 07:26:04 UTC
(In reply to Martin K. Petersen from comment #3)
> I propose you create a udev rule to override what the device firmware
> erroneously reports.

The whole point of such an adapter is to make the disk portable, which makes it possible to quickly connect it to many different machines (where some aren't mine).

Creating a udev rule on every new machine is:
1.) annoying
2.) not possible since I don't always have root access

This is only a workaround limited to own personal machines. But it would be much more useful if it was auto detected ootb correctly, hence this bug report.

Note You need to log in before you can comment on or make changes to this bug.