On 23/07/2025 17:30, Philippe Mathieu-Daudé wrote:
Hi Ben,
On 23/7/25 16:55, Ben Dooks wrote:
I am currently trying to track down two errors with mmc-spi.
The first looks like u-boot is sending a couple of CMDs (9, 10)
in the wrong state (currently this works however with a real SD
card) so I have a tmp-fix in to just ignore the two checks in
these and u-boot is now working.
I'm also getting multiple versions of linux failing with QEMU10
on Debian/testing and my own close to the current git tree with
Linux and CMD13...
[ 0.579845] EXT4-fs (mmcblk0): INFO: recovery required on readonly
filesystem
[ 0.580222] EXT4-fs (mmcblk0): write access will be enabled during
recovery
ssi_sd: error: Unexpected response to cmd 13, arglen=16
ssi_sd: error: Unexpected response to cmd 13, arglen=16
ssi_sd: error: Unexpected response to cmd 13, arglen=16
ssi_sd: error: Unexpected response to cmd 13, arglen=16
CMD13's arg len should be 2 in SSI mode.
Then the system stops working.
Systems are riscv sifive_u and my own cva6 machine
Do you mind sharing a reproducer?
Currently buildroot riscv64 with the sifive_u machine is the
test case.
It looks to be a qemu issue, v8.x works, v9.0 works and v9.1
does not. Currently doing a bisect to see if there's an obvious
issue to point at.
Even better if contributed as a functional test :)
(see tests/functional/test_arm_sx1.py for example).
I'll see, but I am off next week at FOSSY and then not sure if
this project will be continued.
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
https://www.codethink.co.uk/privacy.html