Skip to content

Beefier command queue recovery #6221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Conversation

P33M
Copy link
Contributor

@P33M P33M commented Jun 13, 2024

This seems to reliably terminate IO to cards that went away. Sometimes the removal check can take 10 seconds, but this doesn't seem to generate any more side effects in the block layer.

@P33M P33M marked this pull request as ready for review June 13, 2024 15:01
P33M added 2 commits June 17, 2024 14:53
If the controller is being reset, then the CQE needs to be reset as well.

For removable cards, CQHCI_SSC1 must specify a polling mode (CBC=0)
otherwise it's possible that the controller stops emitting periodic
CMD13s on card removal, without raising an error status interrupt.

Signed-off-by: Jonathan Bell <[email protected]>
Recovery claims the MMC card so the card-detect work gets significantly
delayed - leading to lots of error recovery loops that can never do
anything but fail.

Explicitly detect the card after CQE has halted and bail if it's not
there.

Also ratelimit a not-very-descriptive warning - one occurrence in dmesg
is enough to signal that something is amiss.

Signed-off-by: Jonathan Bell <[email protected]>
@pelwell pelwell merged commit 22b6295 into raspberrypi:rpi-6.6.y Jun 17, 2024
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 18, 2024
kernel: configs: Enable BLK_DEV_RBD
See: raspberrypi/linux#6226

kernel: Beefier command queue recovery
See: raspberrypi/linux#6221

kernel: ax25: Fix refcount imbalance on inbound connections
See: raspberrypi/linux#6213

kernel: Add SunFounder PiPower 3 dtoverlay
See: raspberrypi/linux#6227

kernel: Follow pwm_apply_might_sleep() rename in gpio-pwm and ir-rx51
See: raspberrypi/linux#6223
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jun 18, 2024
kernel: configs: Enable BLK_DEV_RBD
See: raspberrypi/linux#6226

kernel: Beefier command queue recovery
See: raspberrypi/linux#6221

kernel: ax25: Fix refcount imbalance on inbound connections
See: raspberrypi/linux#6213

kernel: Add SunFounder PiPower 3 dtoverlay
See: raspberrypi/linux#6227

kernel: Follow pwm_apply_might_sleep() rename in gpio-pwm and ir-rx51
See: raspberrypi/linux#6223
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants