Skip to content

hw/sd: Add support for eMMC cards

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19hw/sd/sdcard: Introduce set_csd/set_cid handlershw/sd/sd.c include/hw/sd/sd.h+7 -20 replies
2/19hw/sd/sdcard: Cover more SDCardStateshw/sd/sd.c+11 -00 replies
3/19hw/sd/sdcard: Basis for eMMC supporthw/sd/sd.c include/hw/sd/sd.h+37 -00 replies
4/19hw/sd/sdcard: Register generic command handlershw/sd/sd.c+22 -00 replies
5/19hw/sd/sdcard: Register unimplemented command handlershw/sd/sd.c+6 -00 replies
6/19hw/sd/sdcard: Add emmc_cmd_SET_RELATIVE_ADDR() handlerhw/sd/sd.c+15 -00 replies
7/19hw/sd/sdcard: Add emmc_cmd_SEND_OP_COND handler (CMD1)hw/sd/sd.c+7 -00 replies
8/19hw/sd/sdcard: Fix SET_BLOCK_COUNT command argument on eMMC (CMD23)hw/sd/sd.c+9 -00 replies
9/19hw/sd/sdcard: Add mmc_cmd_PROGRAM_CID handler (CMD26)hw/sd/sd.c+7 -30 replies
10/19hw/sd/sdcard: Implement eMMC sleep state (CMD5)hw/sd/sd.c+45 -20 replies
11/19hw/sd/sdcard: Add experimental 'x-aspeed-emmc-kludge' propertyhw/sd/sd.c+3 -00 replies
12/19hw/sd/sdcard: Adapt sd_cmd_ALL_SEND_CID handler for eMMC (CMD2)hw/sd/sd.c+6 -00 replies
13/19hw/sd/sdcard: Adapt sd_cmd_APP_CMD handler for eMMC (CMD55)hw/sd/sd.c+4 -10 replies
14/19hw/sd/sdcard: Add emmc_cmd_SEND_EXT_CSD handler (CMD8)hw/sd/sd.c+91 -00 replies
15/19hw/sd/sdcard: add emmc_cmd_SEND_TUNING_BLOCK handler (CMD21)hw/sd/sd.c hw/sd/sdmmc-internal.h+44 -00 replies
16/19hw/sd/sdcard: Add mmc SWITCH function support (CMD6)hw/sd/sd.c+52 -00 replies
17/19hw/sd/sdcard: Support boot area in emmc imagehw/sd/sd.c include/hw/sd/sd.h+40 -00 replies
18/19hw/sd/sdcard: Subtract bootarea size from blkhw/sd/sd.c+4 -00 replies
19/19hw/sd/sdcard: Add boot config supporthw/sd/sd.c+10 -00 replies

Reviews trailers per patch

3 of 19 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/19
2/19
3/19
4/19
5/19
6/19R-b
7/19
8/19R-b
9/19
10/19
11/19
12/19R-b
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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 00/19] hw/sd: Add support for eMMC cards

Trying to land what Vincent Palatin started 13 years ago!
https://lore.kernel.org/qemu-devel/[email protected]/
with fixes from Sai, Joel and Cédric.

I reviewed Cédric patches but still plan to review the EXT_CSD layout and Joel "boot config" patches.

In order to avoid deviation with the spec, the experimental 'x-aspeed-emmc-kludge' property is used.

Based-on: <[email protected]>

Full series for testing:
https://gitlab.com/philmd/qemu/-/tags/emmc-v4

Including Aspeed branch from Cédric on top (aspeed-9.1):
https://gitlab.com/philmd/qemu/-/tags/aspeed_emmc-v4

Cédric Le Goater (5):
hw/sd/sdcard: Basis for eMMC support
hw/sd/sdcard: Add emmc_cmd_SET_RELATIVE_ADDR() handler hw/sd/sdcard: Fix SET_BLOCK_COUNT command argument on eMMC (CMD23) hw/sd/sdcard: Adapt sd_cmd_ALL_SEND_CID handler for eMMC (CMD2) hw/sd/sdcard: Adapt sd_cmd_APP_CMD handler for eMMC (CMD55)

Joel Stanley (3):
hw/sd/sdcard: Support boot area in emmc image
hw/sd/sdcard: Subtract bootarea size from blk
hw/sd/sdcard: Add boot config support

Luc Michel (1):
hw/sd/sdcard: Implement eMMC sleep state (CMD5)

Philippe Mathieu-Daudé (6):
hw/sd/sdcard: Introduce set_csd/set_cid handlers hw/sd/sdcard: Cover more SDCardStates
hw/sd/sdcard: Register generic command handlers hw/sd/sdcard: Register unimplemented command handlers hw/sd/sdcard: Add mmc_cmd_PROGRAM_CID handler (CMD26) hw/sd/sdcard: Add experimental 'x-aspeed-emmc-kludge' property

Sai Pavan Boddu (3):
hw/sd/sdcard: Add emmc_cmd_SEND_OP_COND handler (CMD1) hw/sd/sdcard: add emmc_cmd_SEND_TUNING_BLOCK handler (CMD21) hw/sd/sdcard: Add mmc SWITCH function support (CMD6)

Vincent Palatin (1):
hw/sd/sdcard: Add emmc_cmd_SEND_EXT_CSD handler (CMD8)

 hw/sd/sdmmc-internal.h |   3 +
 include/hw/sd/sd.h     |   6 +
 hw/sd/sd.c             | 419 ++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 420 insertions(+), 8 deletions(-)
Signature · 1 line
2.41.0