]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ionic-ptp'
authorDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2021 21:18:33 +0000 (14:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2021 21:18:33 +0000 (14:18 -0700)
commit632f611cd6db326b911746ecd834e35bab8a0d44
tree91d198f149dbd33a9f9b5ca6bf9f135cc3ee2004
parentf5aeb8ba02359fda880c98f18ca5fe36bf6cff7f
parent0029e4cc4fb037b2c90bf8cb01361066afbd3b7e
Merge branch 'ionic-ptp'

Shannon Nelson says:

====================
ionic: add PTP and hw clock support

This patchset adds support for accessing the DSC hardware clock and
for offloading PTP timestamping.

Tx packet timestamping happens through a separate Tx queue set up with
expanded completion descriptors that can report the timestamp.

Rx timestamping can happen either on all queues, or on a separate
timestamping queue when specific filtering is requested.  Again, the
timestamps are reported with the expanded completion descriptors.

The timestamping offload ability is advertised but not enabled until an
OS service asks for it.  At that time the driver's queues are reconfigured
to use the different completion descriptors and the private processing
queues as needed.

Reading the raw clock value comes through a new pair of values in the
device info registers in BAR0.  These high and low values are interpreted
with help from new clock mask, mult, and shift values in the device
identity information.

First we add the ability to detect new queue features, then the handling
of the new descriptor sizes.  After adding the new interface structures,
we start adding the support code, saving the advertising to the stack
for last.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>