Re: [PATCH net-next] octeontx2-af: cn10k: devlink params to configure TIM

From: Shijith Thotton <sthotton@marvell.com>
Date: 2021-11-29 08:17:29

quoted
Added devlink parameters to configure the source clock of TIM block.
Supported clocks are TENNS, GPIOS, GTI, PTP, SYNC, BTS, EXT_MIO and
EXT_GTI.

To adjust a given clock, the required delta can be written to the
corresponding tim_adjust_<clock> parameter and tim_adjust_timers
parameter can be used to trigger the adjustment. tim_capture_<clock>
parameter can be used to verify the adjusted values for a clock.

Example using tenns clock source:
To adjust a clock source
 # devlink dev param set pci/0002:01:00.0 name tim_adjust_tenns \
        value "1000" cmode runtime

To trigger adjustment
 # devlink dev param set pci/0002:01:00.0 name tim_adjust_timers \
        value 1 cmode runtime
PTP subsystem exists.
TIM is a hardware block in Octeon TX2 DPU, which is used to generate events
like timeout (used in packet processing). TIM input needs to be configured with a
clock source for its working, but TIM does not act as a clock source. Supported
clocks for input are TENNS, GPIOS, GTI, PTP, SYNC, BTS and MIO. Devlink
parameters added in this patch are to configure TIM and won't be changing the
clock sources. 

We won't be able to use PTP subsystem here as the changes are specific to TIM.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help