lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <498d31c3-1756-4274-906e-ada5135e4e54@microchip.com>
Date: Thu, 6 Feb 2025 17:32:39 +0000
From: <Dharma.B@...rochip.com>
To: <csokas.bence@...lan.hu>, <linux-arm-kernel@...ts.infradead.org>,
	<linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <kamel.bouhara@...tlin.com>, <wbg@...nel.org>
Subject: Re: [PATCH v3 0/2] microchip-tcb-capture: Add Capture, Compare,
 Overflow etc. events

Hi Bence,

Thanks for your patch.

On 05/02/25 4:20 pm, Bence Csókás wrote:
> The TCB has three R/W-able "general purpose" hardware registers:
> RA, RB and RC. The hardware is capable of:
> * sampling Counter Value Register (CV) to RA/RB on a trigger edge
> * sending an interrupt of this change
> * sending an interrupt on CV change due to trigger
> * triggering an interrupt on CV compare to RC
> * stop counting after sampling to RB
> 
> To enable using these features in user-space, an interrupt handler
> was added, generating the necessary counter events. On top, RA/B/C
> registers are added as Count Extensions.

I did a quick test on the SAMA5D4 Xplained board and observed that the 
interrupt count increments on overflow.

By the way, I came across William's response to your question, and from 
that discussion, I gather that you're working on a SAMA5D2 board. Are 
you seeing the count value increase after writing this:

echo increase > /sys/bus/counter/devices/counter0/count0/function

cat /sys/bus/counter/devices/counter0/count0/count

> 
> Bence Csókás (2):
>    counter: microchip-tcb-capture: Add IRQ handling
>    counter: microchip-tcb-capture: Add capture extensions for registers
>      RA-RC
> 
>   drivers/counter/microchip-tcb-capture.c | 125 ++++++++++++++++++++++++
>   1 file changed, 125 insertions(+)
> 


-- 
With Best Regards,
Dharma B.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ