Message ID | 160056199852.9912.5581183514421117508.sendpatchset@octo (mailing list archive) |
---|---|
Headers | show |
Series | r8a77961 CMT test setup using UIO | expand |
Hi Magnus, On Sun, Sep 20, 2020 at 3:04 AM Magnus Damm <damm@opensource.se> wrote: > r8a77961 CMT test setup using UIO > > [PATCH 1/2] r8a77961 CMT0 device exposed via UIO > [PATCH 2/2] UIO CMT test program > > These two patches contain kernel and user space modificatons to allow some > basic testing from user space of the CMT0 device included on the r8a77961 SoC. > > For the kernel, simply apply the kernel patch (including a few debug printouts) > and make sure to extend your kernel config with CONFIG_UIO_PDRV_GENIRQ=y. > > The following log shows how to execute the test program on the target: > > # ./uio-cmt-test > found matching UIO device at /sys/class/uio/uio0/ > CLKE > CMCSR > CMCOR > [ 12.284451] irqhandler 20 > waiting 10s > UIO write > CLKE > UIO read > got CMT IRQ > CLKE > # I guess you could test this device using the sh_cmt driver, and a generic userspace timer test program (from tools/testing/selftests/?), too? Gr{oetje,eeting}s, Geert