Skip to content

hw/sd: Fix broken ssi-sd implementation since v9.1.0

Bin Meng qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/sd: Fix incorrect idle state reporting in R1 response for SPI modehw/sd/sd.c+1 -21 reply
2/2hw/sd: Fix ACMD41 state machine in SPI modehw/sd/sd.c+12 -111 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] hw/sd: Fix broken ssi-sd implementation since v9.1.0

The U-Boot community reported a CI failure [1] where the sifive_unleashed target failed to boot from an SD card after upgrading from QEMU v8.2.0 to v9.2.3.

At that time, the issue was traced to commit da954d0e ("hw/sd/sdcard: Add spi_cmd_SEND_CSD/CID handlers (CMD9 & CMD10)") which was introduced in v9.1.0.

Testing with the latest QEMU mainline shows that the problem still persists, although the underlying cause has changed due to refactoring since then.

This series fixes the broken ssi-sd model. After applying these patches, U-Boot successfully boots again on the sifive_unleashed target using QEMU’s sifive_u machine.

[1] https://gitlab.com/qemu-project/qemu/-/issues/2945

Bin Meng (2):
hw/sd: Fix incorrect idle state reporting in R1 response for SPI mode hw/sd: Fix ACMD41 state machine in SPI mode

 hw/sd/sd.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
Signature · 1 line
2.34.1