Difference between revisions of "Tests:r-car-gen3-sdhi-dma"
(→Verifying DMA support R-Car Gen3 SoCs for the SDHI Driver) |
|||
Line 11: | Line 11: | ||
It is critical that MMC_SDHI is enabled for this testing. | It is critical that MMC_SDHI is enabled for this testing. | ||
− | ==Verifying | + | ==Verifying SDHI Driver Initialisation== |
− | + | Verify that the driver initialised the sdhi cores as described in DT. | |
+ | |||
+ | e.g. | ||
+ | <pre> | ||
+ | # dmesg | egrep "(sdhi|tmio|mmc)" | ||
+ | [ 1.740328] sh_mobile_sdhi ee100000.sd: Got CD GPIO | ||
+ | [ 1.745235] sh_mobile_sdhi ee100000.sd: Got WP GPIO | ||
+ | [ 1.750381] sh_mobile_sdhi ee160000.sd: Got CD GPIO | ||
+ | [ 1.755292] sh_mobile_sdhi ee160000.sd: Got WP GPIO | ||
+ | [ 1.845880] sh_mobile_sdhi ee100000.sd: Got CD GPIO | ||
+ | [ 1.850806] sh_mobile_sdhi ee100000.sd: Got WP GPIO | ||
+ | [ 1.949051] sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 max clock rate 99 MHz | ||
+ | [ 1.957274] sh_mobile_sdhi ee160000.sd: Got CD GPIO | ||
+ | [ 1.963337] sh_mobile_sdhi ee160000.sd: Got WP GPIO | ||
+ | [ 2.061016] sh_mobile_sdhi ee160000.sd: mmc1 base at 0xee160000 max clock rate 99 MHz | ||
+ | alarm ~ # [ 34.461032] mmc0: new high speed SDHC card at address aaaa | ||
+ | [ 34.471230] mmcblk0: mmc0:aaaa SU04G 3.69 GiB | ||
+ | [ 34.491549] mmcblk0: p1 | ||
+ | </pre> |
Revision as of 12:34, 29 June 2016
This document describes how to test the DMA support for R-Car Gen-3 SoCs in the SDHI driver.
Kernel Version and Configuration
DMA support R-Car Gen3 SoCs for the SDHI driver is currently available in a topic branch:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git topic/sdhi-gen3-dma
For the tests described here the kernel was compiled with the arm64 defconfig. MMC_SDHI was also enabled.
It is critical that MMC_SDHI is enabled for this testing.
Verifying SDHI Driver Initialisation
Verify that the driver initialised the sdhi cores as described in DT.
e.g.
# dmesg | egrep "(sdhi|tmio|mmc)" [ 1.740328] sh_mobile_sdhi ee100000.sd: Got CD GPIO [ 1.745235] sh_mobile_sdhi ee100000.sd: Got WP GPIO [ 1.750381] sh_mobile_sdhi ee160000.sd: Got CD GPIO [ 1.755292] sh_mobile_sdhi ee160000.sd: Got WP GPIO [ 1.845880] sh_mobile_sdhi ee100000.sd: Got CD GPIO [ 1.850806] sh_mobile_sdhi ee100000.sd: Got WP GPIO [ 1.949051] sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 max clock rate 99 MHz [ 1.957274] sh_mobile_sdhi ee160000.sd: Got CD GPIO [ 1.963337] sh_mobile_sdhi ee160000.sd: Got WP GPIO [ 2.061016] sh_mobile_sdhi ee160000.sd: mmc1 base at 0xee160000 max clock rate 99 MHz alarm ~ # [ 34.461032] mmc0: new high speed SDHC card at address aaaa [ 34.471230] mmcblk0: mmc0:aaaa SU04G 3.69 GiB [ 34.491549] mmcblk0: p1