netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Wen Gu <guwen@linux.alibaba.com>
Cc: richardcochran@gmail.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
	xuanzhuo@linux.alibaba.com, dust.li@linux.alibaba.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH net-next v4] ptp: add Alibaba CIPU PTP clock driver
Date: Fri, 15 Aug 2025 11:38:14 -0700	[thread overview]
Message-ID: <20250815113814.5e135318@kernel.org> (raw)
In-Reply-To: <20250812115321.9179-1-guwen@linux.alibaba.com>

On Tue, 12 Aug 2025 19:53:21 +0800 Wen Gu wrote:
> This adds a driver for Alibaba CIPU PTP clock. The CIPU, an underlying
> infrastructure of Alibaba Cloud, synchronizes time with reference clocks
> continuously and provides PTP clocks for VMs and bare metals in cloud.

> +static struct attribute *ptp_cipu_attrs[] = {
> +	&dev_attr_reg_dev_feat.attr,
> +	&dev_attr_reg_gst_feat.attr,
> +	&dev_attr_reg_drv_ver.attr,
> +	&dev_attr_reg_env_ver.attr,
> +	&dev_attr_reg_dev_stat.attr,
> +	&dev_attr_reg_sync_stat.attr,
> +	&dev_attr_reg_tm_prec_ns.attr,
> +	&dev_attr_reg_epo_base_yr.attr,
> +	&dev_attr_reg_leap_sec.attr,
> +	&dev_attr_reg_max_lat_ns.attr,
> +	&dev_attr_reg_mt_tout_us.attr,
> +	&dev_attr_reg_thresh_us.attr,
> +
> +	&dev_attr_ptp_gettm.attr,
> +	&dev_attr_ptp_gettm_inval_err.attr,
> +	&dev_attr_ptp_gettm_tout_err.attr,
> +	&dev_attr_ptp_gettm_excd_thresh.attr,
> +
> +	&dev_attr_dev_clk_abn.attr,
> +	&dev_attr_dev_clk_abn_rec.attr,
> +	&dev_attr_dev_maint.attr,
> +	&dev_attr_dev_maint_rec.attr,
> +	&dev_attr_dev_maint_tout.attr,
> +	&dev_attr_dev_busy.attr,
> +	&dev_attr_dev_busy_rec.attr,
> +	&dev_attr_dev_err.attr,
> +	&dev_attr_dev_err_rec.attr,

This driver is lacking documentation. You need to describe how the user
is expected to interact with the device and document all these sysfs
attributes.

Maybe it's just me, but in general I really wish someone stepped up
and created a separate subsystem for all these cloud / vm clocks.
They have nothing to do with PTP. In my mind PTP clocks are simple HW
tickers on which we build all the time related stuff. While this driver
reports the base year for the epoch and leap second status via sysfs.

  reply	other threads:[~2025-08-15 18:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-12 11:53 [PATCH net-next v4] ptp: add Alibaba CIPU PTP clock driver Wen Gu
2025-08-15 18:38 ` Jakub Kicinski [this message]
2025-08-15 18:43   ` David Woodhouse
2025-08-19  3:00     ` Wen Gu
2025-08-16  3:52   ` Wen Gu
2025-08-16 15:37     ` Andrew Lunn
2025-08-17  3:01       ` Wen Gu
2025-08-17 15:56         ` Andrew Lunn
2025-08-18  3:04           ` Wen Gu
2025-08-18 16:05     ` Jakub Kicinski
2025-08-21 20:05   ` Richard Cochran
2025-08-21 20:12     ` David Woodhouse
2025-08-22  2:07       ` Wen Gu
2025-08-22  7:43         ` David Woodhouse
2025-08-30  8:41           ` Wen Gu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250815113814.5e135318@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=dwmw2@infradead.org \
    --cc=edumazet@google.com \
    --cc=guwen@linux.alibaba.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=tglx@linutronix.de \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).