Part Number: SK-AM64B
Hello
I am currently measuring timestamps as shown in the diagram.
Host SD Card
| |
|--CMD24/25------>| <===send command
| |
|<------R1b---------| <====wait for response from card
| |
|--DATA----------->| <====transfer data to card(DMA/PIO)
| |
|<------DONE------| <====data written done
For the start time of the data transfer (DMA/PIO), I added a timestamp right before the following line in the sdhci_send_command()(in sdhci.c) function:
sdhci_writew(host, SDHCI_MAKE_CMD(cmd->opcode, flags), SDHCI_COMMAND);
My question is: Does the measured time include the processing time for DMA setup, register configuration, and other host-side overhead that occurs after this timestamp?
When continuously writing 16 KiB blocks to the SD card, the measured time from “start of transfer” to “data written done” is approximately 860 µs.
What I want to understand is:
How much of that 860 µs is due to the SD card’s internal processing (FTL, etc...), and how much is host-side overhead?
Should I exclude host-side processing time (such as DMA setup) from the overhead when analyzing the FTL time?
Any advice would be appreciated.
Best Regars,
H.Wad
