From: Michal Pecio <michal.pecio@gmail.com>
To: Ulf Hansson <ulfh@kernel.org>, linux-mmc@vger.kernel.org
Subject: [BUG] Big splat on rtsx_usb disconnection
Date: Wed, 7 Oct 2026 07:25:22 +0200 [thread overview]
Message-ID: <20261007072522.6e40ce0b.michal.pecio@gmail.com> (raw)
Hi Ulf,
I get quite a bunch of MMC warnings if I disconnect the reader with
ongoing operations, either during card initialization or otherwise.
Looks like remove() is failing to notify MMC core about teardown?
I can test patches and debug things, but not sure where to start.
Regards,
Michal
---
[88777.845834] usb 8-1: new high-speed USB device number 7 using xhci_hcd
[88777.971097] usb 8-1: New USB device found, idVendor=0bda, idProduct=0129, bcdDevice=39.60
[88777.972868] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[88777.972880] usb 8-1: Product: USB2.0-CRW
[88777.972884] usb 8-1: Manufacturer: Generic
[88777.972888] usb 8-1: SerialNumber: 20100201396000000
[88778.741563] mmc0: new UHS-I speed SDR50 SDHC card at address e624
[88778.744126] mmcblk0: mmc0:e624 SD08G 7.40 GiB
[88778.753927] mmcblk0: p1
[88778.922130] usb 8-1: USB disconnect, device number 7
[88778.924779] mmc0: card e624 removed
[88779.027940] ------------[ cut here ]------------
[88779.027949] WARNING: drivers/mmc/core/core.c:637 at mmc_wait_for_cmd+0x61/0x70, CPU#3: kworker/3:1H/137
[88779.027967] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device usbhid xhci_pci xhci_hcd rtsx_usb_sdmmc rtsx_usb mfd_core r8153_ecm cdc_ether usbnet r8152 mii ext2 ehci_pci snd_pcsp ehci_hcd usbcore usb_common serio_raw ppdev dm_mod [last unloaded: xhci_hcd]
[88779.028015] CPU: 3 UID: 0 PID: 137 Comm: kworker/3:1H Not tainted 7.3.0-rc6 #33 PREEMPT
[88779.028023] Hardware name: HP HP EliteDesk 705 G3 MT/8265, BIOS P06 Ver. 02.45 07/16/2024
[88779.028027] Workqueue: mmc_complete mmc_blk_mq_complete_work
[88779.028036] RIP: 0010:mmc_wait_for_cmd+0x61/0x70
[88779.028044] Code: c7 48 c7 43 10 00 00 00 00 89 53 1c 48 c7 43 28 00 00 00 00 48 89 5c 24 08 e8 eb fe ff ff 8b 43 20 48 81 c4 a8 00 00 00 5b c3 <0f> 0b eb c8 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 83
[88779.028049] RSP: 0018:ffffc9000161fc80 EFLAGS: 00010246
[88779.028054] RAX: 0000000000000000 RBX: ffffc9000161fd38 RCX: 0000000000000000
[88779.028059] RDX: 0000000000000000 RSI: ffffc9000161fc80 RDI: ffffc9000161fd28
[88779.028062] RBP: ffff88814d314e10 R08: ffff88811ad8c000 R09: 00000000ffffffed
[88779.028066] R10: ffff88814d3116b8 R11: fefefefefefefeff R12: 0000000000000001
[88779.028069] R13: ffff888105c56000 R14: ffff88814d314e00 R15: ffffc9000161fd9c
[88779.028072] FS: 0000000000000000(0000) GS:ffff88829c75c000(0000) knlGS:0000000000000000
[88779.028077] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[88779.028081] CR2: 00005583ac34cd20 CR3: 00000001b9422000 CR4: 00000000001506f0
[88779.028085] Call Trace:
[88779.028089] <TASK>
[88779.028097] __mmc_send_status+0x62/0x80
[88779.028105] mmc_blk_mq_rw_recovery+0x3f/0x340
[88779.028111] ? hrtimer_start_range_ns+0x6a/0xf0
[88779.028121] mmc_blk_mq_poll_completion+0x5e/0x1e0
[88779.028127] mmc_blk_mq_complete_work+0x44/0x70
[88779.028133] process_one_work+0x189/0x340
[88779.028140] worker_thread+0x19b/0x310
[88779.028146] ? rescuer_thread+0x510/0x510
[88779.028150] kthread+0xde/0x110
[88779.028157] ? kthreads_online_cpu+0x10/0x10
[88779.028164] ret_from_fork+0x17e/0x250
[88779.028172] ? kthreads_online_cpu+0x10/0x10
[88779.028178] ret_from_fork_asm+0x11/0x20
[88779.028187] </TASK>
[88779.028189] ---[ end trace 0000000000000000 ]---
[88779.028214] ------------[ cut here ]------------
[88779.028216] WARNING: drivers/mmc/core/host.c:166 at mmc_retune_release+0x19/0x20, CPU#3: kworker/3:1H/137
[88779.028227] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device usbhid xhci_pci xhci_hcd rtsx_usb_sdmmc rtsx_usb mfd_core r8153_ecm cdc_ether usbnet r8152 mii ext2 ehci_pci snd_pcsp ehci_hcd usbcore usb_common serio_raw ppdev dm_mod [last unloaded: xhci_hcd]
[88779.028265] CPU: 3 UID: 0 PID: 137 Comm: kworker/3:1H Tainted: G W 7.3.0-rc6 #33 PREEMPT
[88779.028273] Tainted: [W]=WARN
[88779.028275] Hardware name: HP HP EliteDesk 705 G3 MT/8265, BIOS P06 Ver. 02.45 07/16/2024
[88779.028278] Workqueue: mmc_complete mmc_blk_mq_complete_work
[88779.028284] RIP: 0010:mmc_retune_release+0x19/0x20
[88779.028292] Code: e0 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f 44 00 00 8b 87 e0 03 00 00 85 c0 74 0a 83 e8 01 89 87 e0 03 00 00 c3 <0f> 0b c3 0f 1f 40 00 0f 1f 44 00 00 80 7f f0 00 74 07 c7 47 f4 01
[88779.028296] RSP: 0018:ffffc9000161fd88 EFLAGS: 00010246
[88779.028301] RAX: 0000000000000000 RBX: ffff888161c9db00 RCX: 0000000000000000
[88779.028304] RDX: 00000000ffffff85 RSI: ffffc9000161fc80 RDI: ffff88811ad8c000
[88779.028308] RBP: ffff88814d314e10 R08: ffff88811ad8c000 R09: 00000000ffffffed
[88779.028311] R10: ffff88814d3116b8 R11: fefefefefefefeff R12: 0000000000000001
[88779.028314] R13: ffff888105c56000 R14: ffff88814d314e00 R15: ffffc9000161fd9c
[88779.028318] FS: 0000000000000000(0000) GS:ffff88829c75c000(0000) knlGS:0000000000000000
[88779.028322] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[88779.028326] CR2: 00005583ac34cd20 CR3: 00000001b9422000 CR4: 00000000001506f0
[88779.028329] Call Trace:
[88779.028331] <TASK>
[88779.028333] mmc_blk_mq_rw_recovery+0x269/0x340
[88779.028340] ? hrtimer_start_range_ns+0x6a/0xf0
[88779.028348] mmc_blk_mq_poll_completion+0x5e/0x1e0
[88779.028354] mmc_blk_mq_complete_work+0x44/0x70
[88779.028359] process_one_work+0x189/0x340
[88779.028365] worker_thread+0x19b/0x310
[88779.028370] ? rescuer_thread+0x510/0x510
[88779.028374] kthread+0xde/0x110
[88779.028381] ? kthreads_online_cpu+0x10/0x10
[88779.028387] ret_from_fork+0x17e/0x250
[88779.028394] ? kthreads_online_cpu+0x10/0x10
[88779.028400] ret_from_fork_asm+0x11/0x20
[88779.028408] </TASK>
[88779.028410] ---[ end trace 0000000000000000 ]---
[88779.028428] ------------[ cut here ]------------
[88779.028430] WARNING: drivers/mmc/core/core.c:637 at mmc_wait_for_cmd+0x61/0x70, CPU#3: kworker/3:1H/137
[88779.028439] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device usbhid xhci_pci xhci_hcd rtsx_usb_sdmmc rtsx_usb mfd_core r8153_ecm cdc_ether usbnet r8152 mii ext2 ehci_pci snd_pcsp ehci_hcd usbcore usb_common serio_raw ppdev dm_mod [last unloaded: xhci_hcd]
[88779.028473] Buffer I/O error on dev mmcblk0p1, logical block 65, async page read
[88779.028477] CPU: 3 UID: 0 PID: 137 Comm: kworker/3:1H Tainted: G W 7.3.0-rc6 #33 PREEMPT
[88779.028490] Tainted: [W]=WARN
[88779.028493] Hardware name: HP HP EliteDesk 705 G3 MT/8265, BIOS P06 Ver. 02.45 07/16/2024
[88779.028495] Workqueue: mmc_complete mmc_blk_mq_complete_work
[88779.028501] RIP: 0010:mmc_wait_for_cmd+0x61/0x70
[88779.028507] Code: c7 48 c7 43 10 00 00 00 00 89 53 1c 48 c7 43 28 00 00 00 00 48 89 5c 24 08 e8 eb fe ff ff 8b 43 20 48 81 c4 a8 00 00 00 5b c3 <0f> 0b eb c8 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 83
[88779.028511] RSP: 0018:ffffc9000161fc80 EFLAGS: 00010246
[88779.028516] RAX: 0000000000000000 RBX: ffffc9000161fd38 RCX: 0000000000000000
[88779.028520] RDX: 0000000000000000 RSI: ffffc9000161fc80 RDI: ffffc9000161fd28
[88779.028523] RBP: ffff88814d314e10 R08: ffff88811ad8c000 R09: 00000000ffffffed
[88779.028526] R10: ffff88814d3116b8 R11: fefefefefefefeff R12: 0000000000000001
[88779.028529] R13: ffff888105c56000 R14: ffff88814d314e00 R15: ffffc9000161fd9c
[88779.028532] FS: 0000000000000000(0000) GS:ffff88829c75c000(0000) knlGS:0000000000000000
[88779.028537] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[88779.028540] CR2: 00005583ac34cd20 CR3: 00000001b9422000 CR4: 00000000001506f0
[88779.028544] Call Trace:
[88779.028546] <TASK>
[88779.028550] __mmc_send_status+0x62/0x80
[88779.028557] mmc_blk_mq_rw_recovery+0x276/0x340
[88779.028563] ? hrtimer_start_range_ns+0x6a/0xf0
[88779.028566] Buffer I/O error on dev mmcblk0p1, logical block 64, async page read
[88779.028571] mmc_blk_mq_poll_completion+0x5e/0x1e0
[88779.028577] mmc_blk_mq_complete_work+0x44/0x70
[88779.028583] process_one_work+0x189/0x340
[88779.028589] worker_thread+0x19b/0x310
[88779.028594] ? rescuer_thread+0x510/0x510
[88779.028598] kthread+0xde/0x110
[88779.028604] ? kthreads_online_cpu+0x10/0x10
[88779.028611] ret_from_fork+0x17e/0x250
[88779.028617] ? kthreads_online_cpu+0x10/0x10
[88779.028623] ret_from_fork_asm+0x11/0x20
[88779.028631] </TASK>
[88779.028633] ---[ end trace 0000000000000000 ]---
[88779.028656] ------------[ cut here ]------------
[88779.028658] WARNING: drivers/mmc/core/core.c:2184 at mmc_detect_card_removed+0xd0/0xe0, CPU#3: kworker/3:1H/137
[88779.028667] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device usbhid xhci_pci xhci_hcd rtsx_usb_sdmmc rtsx_usb mfd_core r8153_ecm cdc_ether usbnet r8152 mii ext2 ehci_pci snd_pcsp ehci_hcd usbcore usb_common serio_raw ppdev dm_mod [last unloaded: xhci_hcd]
[88779.028704] CPU: 3 UID: 0 PID: 137 Comm: kworker/3:1H Tainted: G W 7.3.0-rc6 #33 PREEMPT
[88779.028711] Tainted: [W]=WARN
[88779.028713] Hardware name: HP HP EliteDesk 705 G3 MT/8265, BIOS P06 Ver. 02.45 07/16/2024
[88779.028716] Workqueue: mmc_complete mmc_blk_mq_complete_work
[88779.028722] RIP: 0010:mmc_detect_card_removed+0xd0/0xe0
[88779.028728] Code: e2 20 74 0e 48 89 df e8 4e fe ff ff 89 c5 85 c0 75 1f 31 ed 5b 89 e8 5d 41 5c c3 c7 83 a8 04 00 00 00 00 00 00 e9 77 ff ff ff <0f> 0b e9 49 ff ff ff 8b 93 54 03 00 00 eb 90 90 0f 1f 44 00 00 55
[88779.028732] RSP: 0018:ffffc9000161fd70 EFLAGS: 00010246
[88779.028736] RAX: ffff888105c56000 RBX: ffff88811ad8c000 RCX: 0000000000000000
[88779.028740] RDX: 00000000ffffff85 RSI: ffffc9000161fc80 RDI: ffff88811ad8c000
[88779.028743] RBP: ffff88814d314e10 R08: ffff88811ad8c000 R09: 00000000ffffffed
[88779.028746] R10: ffff88814d3116b8 R11: fefefefefefefeff R12: 0000000000000001
[88779.028749] R13: ffff888105c56000 R14: ffff88814d314e00 R15: ffffc9000161fd9c
[88779.028752] FS: 0000000000000000(0000) GS:ffff88829c75c000(0000) knlGS:0000000000000000
[88779.028756] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[88779.028760] CR2: 00005583ac34cd20 CR3: 00000001b9422000 CR4: 00000000001506f0
[88779.028763] Call Trace:
[88779.028765] <TASK>
[88779.028768] mmc_blk_mq_rw_recovery+0x287/0x340
[88779.028774] ? hrtimer_start_range_ns+0x6a/0xf0
[88779.028782] mmc_blk_mq_poll_completion+0x5e/0x1e0
[88779.028788] mmc_blk_mq_complete_work+0x44/0x70
[88779.028793] process_one_work+0x189/0x340
[88779.028798] worker_thread+0x19b/0x310
[88779.028803] ? rescuer_thread+0x510/0x510
[88779.028807] kthread+0xde/0x110
[88779.028813] ? kthreads_online_cpu+0x10/0x10
[88779.028830] ret_from_fork+0x17e/0x250
[88779.028841] ? kthreads_online_cpu+0x10/0x10
[88779.028849] ret_from_fork_asm+0x11/0x20
[88779.028858] </TASK>
[88779.028860] ---[ end trace 0000000000000000 ]---
[88779.028878] ------------[ cut here ]------------
[88779.028880] WARNING: block/blk.h:703 at blk_mq_free_request+0x77/0x80, CPU#3: kworker/3:1H/137
[88779.028890] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device usbhid xhci_pci xhci_hcd rtsx_usb_sdmmc rtsx_usb mfd_core r8153_ecm cdc_ether usbnet r8152 mii ext2 ehci_pci snd_pcsp ehci_hcd usbcore usb_common serio_raw ppdev dm_mod [last unloaded: xhci_hcd]
[88779.028927] CPU: 3 UID: 0 PID: 137 Comm: kworker/3:1H Tainted: G W 7.3.0-rc6 #33 PREEMPT
[88779.028933] Tainted: [W]=WARN
[88779.028935] Hardware name: HP HP EliteDesk 705 G3 MT/8265, BIOS P06 Ver. 02.45 07/16/2024
[88779.028938] Workqueue: mmc_complete mmc_blk_mq_complete_work
[88779.028944] RIP: 0010:blk_mq_free_request+0x77/0x80
[88779.028949] Code: 00 00 83 c0 7f 83 f8 7f 76 20 f0 ff 8b 80 00 00 00 74 03 5b 5d c3 48 89 df 5b 5d e9 c3 f6 ff ff 48 89 de e8 3b 47 01 00 eb cb <0f> 0b eb dc 0f 1f 44 00 00 0f 1f 44 00 00 41 54 4c 8d 67 58 55 53
[88779.028953] RSP: 0018:ffffc9000161fe18 EFLAGS: 00010246
[88779.028957] RAX: 000000000000007f RBX: ffff888161c9db00 RCX: 0000000000000088
[88779.028961] RDX: 0000000000000003 RSI: 0000000000000003 RDI: ffff888161c9db00
[88779.028964] RBP: ffff88812cb3a730 R08: ffff88811ad8c000 R09: 00000000ffffffed
[88779.028967] R10: ffff88814d3116b8 R11: fefefefefefefeff R12: 0000000000000002
[88779.028970] R13: 0000000000000001 R14: ffff88810017c405 R15: 0000000000000000
[88779.028973] FS: 0000000000000000(0000) GS:ffff88829c75c000(0000) knlGS:0000000000000000
[88779.028977] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[88779.028980] CR2: 00005583ac34cd20 CR3: 00000001b9422000 CR4: 00000000001506f0
[88779.028984] Call Trace:
[88779.028986] <TASK>
[88779.028988] mmc_blk_mq_post_req+0xdf/0xf0
[88779.028995] mmc_blk_mq_complete_work+0x55/0x70
[88779.029000] process_one_work+0x189/0x340
[88779.029005] worker_thread+0x19b/0x310
[88779.029010] ? rescuer_thread+0x510/0x510
[88779.029014] kthread+0xde/0x110
[88779.029020] ? kthreads_online_cpu+0x10/0x10
[88779.029027] ret_from_fork+0x17e/0x250
[88779.029033] ? kthreads_online_cpu+0x10/0x10
[88779.029039] ret_from_fork_asm+0x11/0x20
[88779.029046] </TASK>
[88779.029048] ---[ end trace 0000000000000000 ]---
reply other threads:[~2026-10-07 5:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261007072522.6e40ce0b.michal.pecio@gmail.com \
--to=michal.pecio@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulfh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox