[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 575094: hw/sd: Fix 2 GiB card CSD register va
From: |
Peter Maydell |
Subject: |
[Qemu-commits] [qemu/qemu] 575094: hw/sd: Fix 2 GiB card CSD register values |
Date: |
Tue, 17 Nov 2020 08:15:46 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 575094b786e999e5fbd04c0456f518a5ebefab5b
https://github.com/qemu/qemu/commit/575094b786e999e5fbd04c0456f518a5ebefab5b
Author: Bin Meng <bin.meng@windriver.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M hw/sd/sd.c
Log Message:
-----------
hw/sd: Fix 2 GiB card CSD register values
Per the SD spec, to indicate a 2 GiB card, BLOCK_LEN shall be 1024
bytes, hence the READ_BL_LEN field in the CSD register shall be 10
instead of 9.
This fixes the acceptance test error for the NetBSD 9.0 test of the
Orange Pi PC that has an expanded SD card image of 2 GiB size.
Fixes: 6d2d4069c47e ("hw/sd: Correct the maximum size of a Standard Capacity SD
Memory Card")
Reported-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-Id: <20201025152357.11865-1-bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Commit: f45fc83bc0a540676d592b59aef610b0b2ee59f6
https://github.com/qemu/qemu/commit/f45fc83bc0a540676d592b59aef610b0b2ee59f6
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M hw/sd/sd.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sdmmc-20201117' into
staging
SD/MMC patches
- Correctly handle 2 GB SCSD Memory Cards (Bin Meng)
CI jobs result:
. https://cirrus-ci.com/build/4688743904837632
. https://gitlab.com/philmd/qemu/-/pipelines/216829732
. https://travis-ci.org/github/philmd/qemu/builds/744026099
# gpg: Signature made Tue 17 Nov 2020 10:51:13 GMT
# gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>"
[full]
# Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE
* remotes/philmd-gitlab/tags/sdmmc-20201117:
hw/sd: Fix 2 GiB card CSD register values
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/6b728efcb01f...f45fc83bc0a5