Hi Magnus, On Sun, Sep 20, 2020 at 3:04 AM Magnus Damm <damm@xxxxxxxxxxxxx> 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 -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds