Bug 264670 - 13.1-RELEASE fails to detect card slots in SD card reader
Summary: 13.1-RELEASE fails to detect card slots in SD card reader
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-06-14 14:08 UTC by Mike Clarke
Modified: 2022-11-17 14:55 UTC (History)
2 users (show)

See Also:


Attachments
Example dmesg output when running under 13.1-RELEASE (11.99 KB, application/x-troff-man)
2022-06-14 14:08 UTC, Mike Clarke
no flags Details
Example dmesg output when running under 13.0-Release (12.94 KB, text/plain)
2022-06-14 14:15 UTC, Mike Clarke
no flags Details
Example dmesg output when running under 13.1-RELEASE (11.99 KB, text/plain)
2022-06-14 14:18 UTC, Mike Clarke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Clarke 2022-06-14 14:08:40 UTC
Created attachment 234679 [details]
Example dmesg output when running under 13.1-RELEASE

I have an Akasa AK-ICR-01B card reader using a Realtek RTS5130 chip connected to a USB 2 header on the motherboard

With previous versions of FreeBSD over the last twelve years the reader's four card slots were detected at boot time and device nodes were created for da0, da1, da2 and da3. Since upgrading from 13.0 to 13.1-RELEASE the slots are no longer detected unless there is a card already present in at least one slot.

When running 13.0, camcontrol devlist displayed the following details for the reader:

<Generic- Compact Flash 1.00>      at scbus6 target 0 lun 0 (da0,pass6)
<Generic- SM/xD-Picture 1.00>      at scbus6 target 0 lun 1 (da1,pass7)
<Generic- SD/MMC 1.00>             at scbus6 target 0 lun 2 (da2,pass8)
<Generic- MS/MS-Pro 1.00>          at scbus6 target 0 lun 3 (da3,pass9)

But with 13.1 none of that appears and I get the following console error messages at boot time unless there's already a card in the reader:

(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain
Comment 1 Mike Clarke 2022-06-14 14:15:27 UTC
Created attachment 234680 [details]
Example dmesg output when running under 13.0-Release

This shows the card slots being recognised and device nodes being created
Comment 2 Mike Clarke 2022-06-14 14:18:31 UTC
Created attachment 234681 [details]
Example dmesg output when running under 13.1-RELEASE
Comment 3 iio7 2022-11-17 00:12:49 UTC
I am facing the same bug, however I do have output from camcontrol and dmesg.

Unfortunately I don't know the brand of my card reader, but it's working on the same box when I boot Linux.

With FreeBSD 13.1, have I to insert the SD card BEFORE I boot, otherwise it will not be detected when inserted.

I do however have output when I use camcontrol:

# camcontrol devlist
<Generic- SD/MMC 1.00>             at scbus7 target 0 lun 0 (da0,pass6)
<Generic- Compact Flash 1.01>      at scbus7 target 0 lun 1 (da1,pass7)
<Generic- SM/xD Picture 1.02>      at scbus7 target 0 lun 2 (da2,pass8)
<Generic- MS/MS-Pro 1.03>          at scbus7 target 0 lun 3 (da3,pass9)

In dmesg:

ugen0.4: <Generic Mass Storage Device> at usbus0
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus0
da0: <Generic- SD/MMC 1.00> Removable Direct Access SCSI device
da1: <Generic- Compact Flash 1.01> Removable Direct Access SCSI device
da2: <Generic- SM/xD Picture 1.02> Removable Direct Access SCSI device
da3: <Generic- MS/MS-Pro 1.03> Removable Direct Access SCSI device

Monitoring dmesg and /var/log/messages when I insert the SD card, nothing happens.

Anything I can do to help troubleshoot?

Kind regards.
Comment 4 Mike Clarke 2022-11-17 14:54:47 UTC
(In reply to iio7 from comment #3)
That certainly sounds very much the same problem. My card reader is branded 'Akasa' on the front but the only way I could determine what chip it used was to remove it from the PC drive bay and open it up to see what was on the circuit board.

As with you it will detect a card if it is inserted before booting the PC. After doing this it will detect cards inserted in any slot.