Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: block: Don't do single-sector reads during recovery
commit 676ce1112f4e1023ed5e49501b6279190bdcb152 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5019 If an SD card has degraded performance such that IO operations time out then the MMC block layer will leak SG DMA mappings in the swiotlb during recovery. It retries the same SG and this causes the leak, as it is mapped twice - once in sdhci_pre_req() and again during single-block reads in sdhci_prepare_data(). Resetting the card (including power-cycling if a regulator for vmmc is present) ought to be enough to recover a stuck state, so for now don't try single-block reads in the recovery path. Signed-off-by: Jonathan Bell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
- Loading branch information