netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/2] ptp: Alibaba CIPU PTP clock driver
@ 2025-10-30 12:13 Wen Gu
  2025-10-30 12:13 ` [PATCH net-next v5 1/2] ptp: introduce Alibaba CIPU PHC driver Wen Gu
  2025-10-30 12:13 ` [PATCH net-next v5 2/2] ptp: add sysfs documentation for " Wen Gu
  0 siblings, 2 replies; 19+ messages in thread
From: Wen Gu @ 2025-10-30 12:13 UTC (permalink / raw)
  To: richardcochran, andrew+netdev, davem, edumazet, kuba, pabeni
  Cc: xuanzhuo, dust.li, netdev, linux-kernel, guwen

This adds a driver for Alibaba CIPU PTP clock.

The CIPU, an underlying infrastructure of Alibaba Cloud, synchronizes
time with atomic clocks via the network and provides microsecond or
sub-microsecond precision timestamps for VMs and bare metals on cloud.

User space processes, such as chrony, running in VMs or on bare metals
can get the high precision time through the ptp device exposed by this
driver.

In addition, this driver exposes sysfs files for obtaining device
attributes and event statistics, as described in the documentation.

---
v5->v4:
- add documentation describing sysfs files.

v4->v3:
https://lore.kernel.org/netdev/20250812115321.9179-1-guwen@linux.alibaba.com/
- use disable_* variant helpers as suggested by Paolo.
- minor nit: make PTP_CIPU_REG macro one line.

v3->v2:
https://lore.kernel.org/netdev/20250717075734.62296-1-guwen@linux.alibaba.com/
- follow the sysfs convention of one value per file;
- rename enum constants for brevity;
- improve macros for printing;
- add more comments;

v2->v1:
https://lore.kernel.org/netdev/20250627072921.52754-1-guwen@linux.alibaba.com/
- add Kconfig dependency on CONFIG_PCI to fix kernel test
  robot's complaint.

v1:
https://lore.kernel.org/netdev/20250625132549.93614-1-guwen@linux.alibaba.com/

Wen Gu (2):
  ptp: introduce Alibaba CIPU PHC driver
  ptp: add sysfs documentation for Alibaba CIPU PHC driver

 .../ABI/testing/sysfs-ptp-devices-cipu        | 227 +++++
 MAINTAINERS                                   |   8 +
 drivers/ptp/Kconfig                           |  12 +
 drivers/ptp/Makefile                          |   1 +
 drivers/ptp/ptp_cipu.c                        | 946 ++++++++++++++++++
 5 files changed, 1194 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-ptp-devices-cipu
 create mode 100644 drivers/ptp/ptp_cipu.c

-- 
2.43.5


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-12-22 12:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-30 12:13 [PATCH net-next v5 0/2] ptp: Alibaba CIPU PTP clock driver Wen Gu
2025-10-30 12:13 ` [PATCH net-next v5 1/2] ptp: introduce Alibaba CIPU PHC driver Wen Gu
2025-10-31 23:58   ` Jakub Kicinski
2025-11-05 10:22     ` Wen Gu
2025-11-06  0:24       ` Jakub Kicinski
2025-11-27  5:48         ` Wen Gu
2025-11-27 16:36           ` Jakub Kicinski
2025-11-28  6:22             ` Wen Gu
2025-11-28 18:24               ` Jakub Kicinski
2025-12-01  6:04                 ` Wen Gu
2025-12-12  6:50                   ` Wen Gu
2025-12-12 22:50                     ` Jakub Kicinski
2025-12-14 14:03                       ` Wen Gu
2025-12-16 21:58                         ` Jakub Kicinski
2025-12-17 12:40                           ` Wen Gu
2025-12-22  7:18                           ` Wen Gu
2025-12-18 12:28         ` David Woodhouse
2025-12-22 12:44           ` Wen Gu
2025-10-30 12:13 ` [PATCH net-next v5 2/2] ptp: add sysfs documentation for " Wen Gu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).