-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
bcm23835-sdhost driver causes swiotlb allocation errors on Pi 4 #6589
Comments
pelwell
added a commit
to pelwell/linux
that referenced
this issue
Jan 10, 2025
Make sure the sdhost driver doesn't use requests bigger than SWIOTLB can handle. Copied from [1]. Link: raspberrypi#6589 Signed-off-by: Phil Elwell <[email protected]> [1] d4dd9bc ("mmc: bcm2835: Take SWIOTLB memory size limitation into account")
To avoid making the perfect the enemy of the good, #6603 is quick fix. Later, the entire driver will be replaced by a downstream patch to the upstream bcm2835 driver, adding the useful overclocking feature. |
pelwell
added a commit
that referenced
this issue
Jan 10, 2025
Make sure the sdhost driver doesn't use requests bigger than SWIOTLB can handle. Copied from [1]. Link: #6589 Signed-off-by: Phil Elwell <[email protected]> [1] d4dd9bc ("mmc: bcm2835: Take SWIOTLB memory size limitation into account")
pelwell
added a commit
that referenced
this issue
Jan 10, 2025
Make sure the sdhost driver doesn't use requests bigger than SWIOTLB can handle. Copied from [1]. Link: #6589 Signed-off-by: Phil Elwell <[email protected]> [1] d4dd9bc ("mmc: bcm2835: Take SWIOTLB memory size limitation into account")
pelwell
added a commit
that referenced
this issue
Jan 14, 2025
Make sure the sdhost driver doesn't use requests bigger than SWIOTLB can handle. Copied from [1]. Link: #6589 Signed-off-by: Phil Elwell <[email protected]> [1] d4dd9bc ("mmc: bcm2835: Take SWIOTLB memory size limitation into account")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
With this overlay
used on a Pi 4, and an SD card connected to gpio 22-27, any appreciable IO results in:
This also appears to leak swiotlb allocations as other peripherals requiring bounce buffers can't make forward progress (i.e. mmc0). A sentinel count on dma_map_sg / dma_unmap_sg pairings increases quickly.
This patch applied to the downstream variant of the driver prevents allocation errors. Several other changes have been made to the upstream driver around various other kernel API calls in the meantime.
Steps to reproduce the behaviour
dd if=/dev/mmcblk2 of=/dev/null bs=8M status=progress
Device (s)
Raspberry Pi 4 Mod. B
System
Linux foresee 6.6.69-v8+ #7 SMP PREEMPT Wed Jan 8 10:20:58 GMT 2025 aarch64 GNU/Linux
- top of rpi-6.6.yLogs
No response
Additional context
git log ../drivers/mmc/host/bcm2835.c
vsgit log ../drivers/mmc/host/bcm2835-sdhost.c
The text was updated successfully, but these errors were encountered: