* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (25 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore added an attachment on Kernel.org Bugzilla:
Created attachment 283451
kernel dmesg
File: dmesg (text/plain)
Size: 45.85 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283451
---
kernel dmesg
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (24 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore added an attachment on Kernel.org Bugzilla:
Created attachment 283453
cat of /proc/modules when stuck on initramfs
File: modules (text/plain)
Size: 1.39 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283453
---
cat of /proc/modules when stuck on initramfs
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (23 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore added an attachment on Kernel.org Bugzilla:
Created attachment 283455
cpu info
File: cpuinfo (text/plain)
Size: 4.56 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283455
---
cpu info
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (2 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (22 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore added an attachment on Kernel.org Bugzilla:
Created attachment 283457
lsmod on Manjaro
File: lsmod (text/plain)
Size: 3.95 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283457
---
lsmod on Manjaro
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (3 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (21 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore added an attachment on Kernel.org Bugzilla:
Created attachment 283459
lspci -vvv on Manjaro
File: lspci (text/plain)
Size: 25.38 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283459
---
lspci -vvv on Manjaro
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (4 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
` (20 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore writes via Kernel.org Bugzilla:
Another thing to add is that 5.1-rc1 is where the bug started.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c6
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (5 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
` (19 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: David Lindstrom via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
David Lindstrom writes via Kernel.org Bugzilla:
This bug is also present on the Intel NUC7CJYH board, which uses the RTS5229 PCI Express Card reader.
Kernel >= 5.1 fails to detect any SD card. Nothing shows up when running lsblk.
Also tried
# udevadm monitor
while inserting a card. Still no output.
Downgrading the kernel to < 5.1 solves the problem.
I did a tracing of kernel mmc events on kernel 5.0.13 and 5.2.2, whilst inserting a card, see the attachments.
According to the trace, all mmc requests return cmd_err=-110 on kernel 5.2.2.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c7
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (6 preceding siblings ...)
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
@ 2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
` (18 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: David Lindstrom via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
David Lindstrom added an attachment on Kernel.org Bugzilla:
Created attachment 283931
MMC trace on SD card insertion, kernel 5.0.13
SD card is detected correctly on kernel 5.0.13
Obtained using:
echo 1 > /sys/kernel/debug/tracing/events/mmc/enable
cat /sys/kernel/debug/tracing/trace_pipe > mmc_trace.txt
File: mmc_trace-kernel-5.0.13.txt (text/plain)
Size: 129.50 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283931
---
MMC trace on SD card insertion, kernel 5.0.13
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (7 preceding siblings ...)
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
@ 2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (17 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: David Lindstrom via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
David Lindstrom added an attachment on Kernel.org Bugzilla:
Created attachment 283933
MMC trace on SD card insertion, kernel 5.2.2
SD card is not detected on kernel 5.2.2
Obtained using:
echo 1 > /sys/kernel/debug/tracing/events/mmc/enable
cat /sys/kernel/debug/tracing/trace_pipe > mmc_trace.txt
Mmc requests return cmd_err -110
File: mmc_trace-kernel-5.2.2 (text/plain)
Size: 32.22 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=283933
---
MMC trace on SD card insertion, kernel 5.2.2
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (8 preceding siblings ...)
2025-01-22 15:45 ` David Lindstrom via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` josiahspore via Bugspray Bot
` (16 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore writes via Kernel.org Bugzilla:
Did a git bisect and found the culprit.
bede03a579b3b4a036003c4862cc1baa4ddc351f is the first bad commit
commit bede03a579b3b4a036003c4862cc1baa4ddc351f
Author: RickyWu <ricky_wu@realtek.com>
Date: Tue Feb 19 20:49:58 2019 +0800
misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260
this enables and adds OCP function for Realtek A series cardreader chips
and fixes some OCP flow in rts5260.c
Signed-off-by: RickyWu <ricky_wu@realtek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
:040000 040000 65bfdc473b7b85cb423ff528309fc92d73eae5b4 1292d8564f678027d0e5c77550e37d696b134b28 M drivers
Just revert that and you'll be golden.
rts522a,rts524a,rts525a,rts5260
So somehow OCP got enabled for rts5229 unless a means rts522x. I guess they need to make sure its not enabled for 5229.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c10
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (9 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` josiahspore via Bugspray Bot
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
` (15 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: josiahspore via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
josiahspore writes via Kernel.org Bugzilla:
I wounder if this has anything to do with that not working.
[ 2.614469] mmc0: cannot verify signal voltage switch
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c11
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (10 preceding siblings ...)
2025-01-22 15:45 ` josiahspore via Bugspray Bot
@ 2025-01-22 15:45 ` Scott Brown via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (14 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Scott Brown via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Scott Brown writes via Kernel.org Bugzilla:
Condition described in this bug is still present on NUC7PJYH with Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader. Now on kernel version 5.6.12.
The title is a bit misleading as the reader is detected in e.g. lspci, just card insertion doesn't cause anything to happen, nothing in dmesg, nothing in lsblk, as described above.
There was apparently commit bede03a579b3b4a036003c4862cc1baa4ddc351f singled out above. Is no one working on reverting this for the RTS5229? Can we get this assigned?
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c12
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (11 preceding siblings ...)
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (13 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
This bug is a year old now, so here's some more diagnostics that may also act as a ping for the developer who created the regression to fix it, please.
lspci on Ubuntu 20.04 running on Intel NUC6CAYH. Kernel is 5.4.0-39-generic.
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
Subsystem: Intel Corporation RTS5229 PCI Express Card Reader
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 255
Region 0: Memory at 91300000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 <64us
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis+, NROPrPrP-, LTR-
10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS-, TPHComp-, ExtTPHComp-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
AtomicOpsCtl: ReqEn-
LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 00000000 00000000 00000000 00000000
Capabilities: [140 v1] Device Serial Number 00-00-00-01-00-4c-e0-00
Kernel modules: rtsx_pci
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c13
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (12 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (12 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
I've reverted* bede03a579b3b4a036003c4862cc1baa4ddc351f and built the 5.4.0-40 kernel**.
The RTS5229 card reader in my NUC6CAYH now works with both SD and MMC cards.
* The commit does not revert cleanly because of some later changes. The manual fix up is not too difficult, however.
** Actually, the build fails but after the modules have been built so the rtsx_pci.ko driver module is available in the build directory. I installed it by hand and then ran depmod manually. The build system is a maze of voodoo that I am still trying to untangle to get a full set of deb files produced. Nevertheless, my testing strongly suggests that commit bede03a579b3b4a036003c4862cc1baa4ddc351f is the culprit.
I've also reverted the commit and built the resultant kernel on my (non-debian/ubuntu powered) laptop, which also has a card reader (RTL8411B PCI Express Card Reader) that needs this driver. That continues to work after he reversion.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c14
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (13 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (11 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
I've done more investigating of this regression and I've narrowed it down to rtsx_pci_init_ocp() in drivers/misc/cardreader/rtsx_pcr.c. It is called by rtsx_pci_init_hw() (from the same source file. If a comment out that call, build and install the resultant kernel, the rts5229 reader and the card inserted in are detected and work fine. The machine is an Intel NUC Tall Arches Canyon NUC6CAYH Celeron J3455. I can't take this diagnosis any further because, as far as I can see, the only change the patch identified as the culprit (see comment 10 above) makes to rtsx_pci_init_ocp(), shouldn't be executed for the rts5229. So far, I've built and installed 5.7.12 and 5.4.54 the latter of which I am currently running on the machine. I think I tried an unpatched 5.7 series kernel earlier in my investagations and the card reader did not work. To be sure, I'll build an older 5.4 kernel that more closely matches the one currently included in Ubuntu 20.04, and check whether that works when rtsx_pc
i_init_ocp() is not called.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c15
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (14 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Yannis via Bugspray Bot
` (10 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
Following on from comment 15, I've patched and tested 5.4.44 (which Ubuntu's latest kernel seems to be based on) and the card reader works fine.
Despite saying that I could take this no further, I did push on a little further and I've isolated the code that causes the rts5229 to no longer work since bede03a579b3 was applied. I've also reported the bug to LKML - see https://marc.info/?l=linux-kernel&m=159639774221968
Since reverting bede03a579b3 on recent kernels needs manual intervention, I've devised a simple patch (against linux-5.7.12). It applies correctly to 5.8.0 too but with offsets. If it doesn't apply properly on other kernels between 5.1-rc1 and 5.7.12, it is simple enough to apply manually.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c16
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (15 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Yannis via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (9 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Yannis via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Yannis writes via Kernel.org Bugzilla:
I have tested the patch proposed in https://marc.info/?l=linux-kernel&m=159665699504104&w=2 on the Intel NUC7CJYH (RTS5529 is the onboard card reader) and I can now read/write on SD cards again.
This is under Ubuntu 20.04 with a standard Ubuntu 5.4.0-42-generic kernel.
Thank you for the fix Chris.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c17
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (16 preceding siblings ...)
2025-01-22 15:45 ` Yannis via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
` (8 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
Kernels 5.9.3, 5.8.18 and 5.4.74 have been released today and they contain the patch that enables the card reader on the Intel NUC boxes. Hopefully the patch will make its way through to distro kernels in the not too distant future.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c18
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (17 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Scott Brown via Bugspray Bot
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
` (7 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Scott Brown via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Scott Brown writes via Kernel.org Bugzilla:
My results in dmesg when inserting an SD card on kernel 5.8.18-200.fc32.x86_64 on a NUC7PJYH:
mmc1: cannot verify signal voltage switch
mmc1: error -110 whilst initialising SD card
mmc1: cannot verify signal voltage switch
mmc1: error -110 whilst initialising SD card
mmc1: cannot verify signal voltage switch
mmc1: error -110 whilst initialising SD card
That's more than what happened before (when dmesg would show nothing) but I guess maybe the complete fix wasn't pulled in to the Fedora build, or some other issue still exists. Not sure.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c19
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (18 preceding siblings ...)
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
@ 2025-01-22 15:45 ` Scott Brown via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (6 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Scott Brown via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Scott Brown writes via Kernel.org Bugzilla:
Same as above on kernel 5.9.8-100.fc32.x86_64.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c20
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (19 preceding siblings ...)
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` Yannis via Bugspray Bot
` (5 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton writes via Kernel.org Bugzilla:
Sorry, I can't help to debug that because the card reader works fine on my NUC6CAYH. All I can say is that error 110 is a timeout.
It's interesting that at comment 17 above, Yannis reported that the patch worked on the same hardware platform. However, that was on an Ubuntu 5.4.x kernel. I'd be tempted to raise this issue on with the Fedora support people.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c21
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (20 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` Yannis via Bugspray Bot
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
` (4 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Yannis via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Yannis writes via Kernel.org Bugzilla:
Hi,
Since my comment above, I've moved to Ubuntu 20.10 which uses kernel 5.8. It looks like it's going to be a couple of weeks before Ubuntu reaches 5.8.18 so I can't confirm 100% that the problem is fixed yet.
However, as the kernel code change is the same as Chris' patch I can't see why it wouldn't work.
Scott, Chris' patch just prevents the SD card reader from being powered down and this is working in your case. The error message seems to point to an incompatibility between your card and the reader. I haven't had this problem with the NUC but other, older, machines have trouble reading my high speed/capacity cards.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c22
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (21 preceding siblings ...)
2025-01-22 15:45 ` Yannis via Bugspray Bot
@ 2025-01-22 15:45 ` Scott Brown via Bugspray Bot
2025-01-22 15:45 ` Doug Miles via Bugspray Bot
` (3 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Scott Brown via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Scott Brown writes via Kernel.org Bugzilla:
I see. The two cards I have tested with are a 64GB ADATA MicroSDXC rated USH-1 Class 10 bought in 2014 and a 32GB ADATA MicroSDXC rated UHS-1 Class 10 V10 A1 bought in 2018, each in a micro-to-full SD adapter. I will see if I can scare up some other cards to test with.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c23
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (22 preceding siblings ...)
2025-01-22 15:45 ` Scott Brown via Bugspray Bot
@ 2025-01-22 15:45 ` Doug Miles via Bugspray Bot
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
` (2 subsequent siblings)
26 siblings, 0 replies; 29+ messages in thread
From: Doug Miles via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Doug Miles writes via Kernel.org Bugzilla:
Bumping this, because it seems to have died on the vine and is still an issue in kernel 6.2, as far as I can tell.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c24
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (23 preceding siblings ...)
2025-01-22 15:45 ` Doug Miles via Bugspray Bot
@ 2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
2025-01-22 15:45 ` i.chryssochoos via Bugspray Bot
2025-01-22 15:45 ` Michael Garofalo via Bugspray Bot
26 siblings, 0 replies; 29+ messages in thread
From: Chris Clayton via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Chris Clayton added an attachment on Kernel.org Bugzilla:
Created attachment 304518
attachment-15581-0.html
I no longer have the hardware, so cant help any further.
Chris
On Sat, 1 Jul 2023, 14:22 , <bugzilla-daemon@kernel.org> wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=204003
>
> Doug Miles (dougmiles42@gmail.com) changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> CC| |dougmiles42@gmail.com
>
> --- Comment #24 from Doug Miles (dougmiles42@gmail.com) ---
> Bumping this, because it seems to have died on the vine and is still an
> issue
> in kernel 6.2, as far as I can tell.
>
> --
> You may reply to this email to add a comment.
>
> You are receiving this mail because:
> You are on the CC list for the bug.
File: attachment-15581-0.html (text/html)
Size: 1.47 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=304518
---
attachment-15581-0.html
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (24 preceding siblings ...)
2025-01-22 15:45 ` Chris Clayton via Bugspray Bot
@ 2025-01-22 15:45 ` i.chryssochoos via Bugspray Bot
2025-01-22 15:45 ` Roger Heflin via Bugspray Bot
2025-01-22 15:45 ` Michael Garofalo via Bugspray Bot
26 siblings, 1 reply; 29+ messages in thread
From: i.chryssochoos via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
i.chryssochoos writes via Kernel.org Bugzilla:
Hi,
I don't have access to 6.2. I'm currently on Ubuntu 22.04 with kernel
5.15.0-76-generic (on the same box as back in 2020) and behavior is
mixed:
I tried a Samsung Evo 256GB (U3, V30 etc.) and had an error:
[5189171.233955] mmc1: cannot verify signal voltage switch
[5189171.568328] mmc1: error -110 whilst initialising SD card
Switching to a 10+ year old 8GB SDHC got things working:
[5189234.395708] mmc1: new high speed SDHC card at address 0007
[5189234.412143] mmcblk1: mmc1:0007 SD08G 7.50 GiB
Reinserting the 256GB card worked:
[5189290.073393] mmc1: cannot verify signal voltage switch
[5189290.191013] mmc1: new ultra high speed SDR104 SDXC card at address
59b4
[5189290.191462] mmcblk1: mmc1:59b4 EE4S5 239 GiB
After a warm reboot (card left in slot during this), it's still
recognized without the voltage switch issue message being printed:
[2.053896] mmc1: new ultra high speed SDR104 SDXC card at address 59b4
[2.057427] mmcblk1: mmc1:59b4 EE4S5 239 GiB
All in all, the problem of the reader not working at all is (still)
fixed but it looks like some hardware registers or similar are not
properly initialized at boot? Maybe using an older/simpler/etc. card
brings them to a working state?
Happy to supply more details etc.
Yannis
On Sat, 2023-07-01 at 15:29 +0000, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=204003
>
> --- Comment #25 from Chris Clayton (chris2553@googlemail.com) ---
> I no longer have the hardware, so cant help any further.
>
> Chris
>
> On Sat, 1 Jul 2023, 14:22 , <bugzilla-daemon@kernel.org> wrote:
>
> > https://bugzilla.kernel.org/show_bug.cgi?id=204003
> >
> > Doug Miles (dougmiles42@gmail.com) changed:
> >
> > What |Removed |Added
> >
> > -------------------------------------------------------------------
> > ---------
> > CC|
> > |dougmiles42@gmail.com
> >
> > --- Comment #24 from Doug Miles (dougmiles42@gmail.com) ---
> > Bumping this, because it seems to have died on the vine and is
> > still an
> > issue
> > in kernel 6.2, as far as I can tell.
> >
> > --
> > You may reply to this email to add a comment.
> >
> > You are receiving this mail because:
> > You are on the CC list for the bug.
>
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c26
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 ` i.chryssochoos via Bugspray Bot
@ 2025-01-22 15:45 ` Roger Heflin via Bugspray Bot
0 siblings, 0 replies; 29+ messages in thread
From: Roger Heflin via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Roger Heflin writes via Kernel.org Bugzilla:
(In reply to i.chryssochoos from comment #26)
> Hi,
> I don't have access to 6.2. I'm currently on Ubuntu 22.04 with kernel
> 5.15.0-76-generic (on the same box as back in 2020) and behavior is
> mixed:
>
> I tried a Samsung Evo 256GB (U3, V30 etc.) and had an error:
> [5189171.233955] mmc1: cannot verify signal voltage switch
> [5189171.568328] mmc1: error -110 whilst initialising SD card
>
> Switching to a 10+ year old 8GB SDHC got things working:
> [5189234.395708] mmc1: new high speed SDHC card at address 0007
> [5189234.412143] mmcblk1: mmc1:0007 SD08G 7.50 GiB
>
> Reinserting the 256GB card worked:
> [5189290.073393] mmc1: cannot verify signal voltage switch
> [5189290.191013] mmc1: new ultra high speed SDR104 SDXC card at address
> 59b4
> [5189290.191462] mmcblk1: mmc1:59b4 EE4S5 239 GiB
>
> After a warm reboot (card left in slot during this), it's still
> recognized without the voltage switch issue message being printed:
> [2.053896] mmc1: new ultra high speed SDR104 SDXC card at address 59b4
> [2.057427] mmcblk1: mmc1:59b4 EE4S5 239 GiB
>
> All in all, the problem of the reader not working at all is (still)
> fixed but it looks like some hardware registers or similar are not
> properly initialized at boot? Maybe using an older/simpler/etc. card
> brings them to a working state?
>
> Happy to supply more details etc.
>
> Yannis
I can confirm that this is still a bug on 6.4.7 (close to current).
Mine fails with Lexar UHS-II cards. The 2 cards work fine on slow usb sd card readers. Older SD cards do work on both of these readers. The issue seems to be the newer cards that have this issue.
Errors are this:
160866.008169] mmc0: cannot verify signal voltage switch
[160866.441037] mmc0: error -110 whilst initialising SD card
I have at least 2 different machines that have these cards in them, and this behavior is on both.
I can collect for this issue.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c27
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: RTS5229 built in card reader not detected after Linux 5.0.x
2025-01-22 15:45 RTS5229 built in card reader not detected after Linux 5.0.x josiahspore via Bugspray Bot
` (25 preceding siblings ...)
2025-01-22 15:45 ` i.chryssochoos via Bugspray Bot
@ 2025-01-22 15:45 ` Michael Garofalo via Bugspray Bot
26 siblings, 0 replies; 29+ messages in thread
From: Michael Garofalo via Bugspray Bot @ 2025-01-22 15:45 UTC (permalink / raw)
To: linux-mmc, ulf.hansson
Michael Garofalo writes via Kernel.org Bugzilla:
I can still confirm this issue of the device not being detected, on Linux 6.12.10-arch1-1 from Arch Linux, on my ThinkPad T14 Gen 1 AMD, with a similar model card reader that utilizes the same 'rtsx_pci_sdmmc' driver, the RTS522A.
My card is not detected until I unload and reload the 'rtsx_pci_sdmmc' driver. After doing so, I get the same 'cannot verify voltage switch' message, though my card is then detected.
It then remains detected as inserted forever, even if the card is removed, until the drivers are unloaded and reloaded once again.
My logs, if useful (187 is when I reloaded the module):
$ sudo dmesg -w | grep -iE 'mmc|rtsx'
[ 1.144983] rtsx_pci 0000:04:00.0: enabling device (0000 -> 0002)
[ 187.573380] mmc0: cannot verify signal voltage switch
[ 187.690136] mmc0: new ultra high speed SDR50 SDHC card at address aaaa
[ 187.720150] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
[ 187.735364] mmcblk0: p1
My PCI device id:
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
I'd be happy to provide more info on this if useful.
Appologies if I've done something wrong here, this is my first attempt at trying to use this Bugzilla.
View: https://bugzilla.kernel.org/show_bug.cgi?id=204003#c28
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 29+ messages in thread