# Re: \[PATCH 2/2\] counter: microchip-tcb-capture: Add DMA support for TC\_RAB register reads

- From: David Lechner \<dlechner@baylibre.com\>
- Date: 2025-05-29 15:33:22 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2025/05/3073396
- Thread: https://ratatoskr.run/linux-arm-kernel/2025/05/3071280/t.md

```text
On 5/28/25 1:13 AM, Dharma Balasubiramani wrote:
> Add optional DMA-based data transfer support to read the TC_RAB register,
> which provides the next unread captured value from either RA or RB. This
> improves performance and offloads CPU when mchp,use-dma-cap is enabled in
> the device tree.

It looks like this is using DMA to read a single register in the implementation
of a sysfs read. Do you have measurements to show the performance difference?
I find it hard to believe that this would actually make a significant difference
compared to the overhead of the read syscall to read the sysfs attribute.


```
