mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wen Gu <guwen@linux.alibaba.com>
To: Jakub Kicinski <kuba@kernel.org>, Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <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
Subject: Re: [PATCH net-next v5 1/2] ptp: introduce Alibaba CIPU PHC driver
Date: Mon, 22 Dec 2025 15:18:19 +0800	[thread overview]
Message-ID: <957500e7-5753-488d-872d-4dbbdcac0bb2@linux.alibaba.com> (raw)
In-Reply-To: <20251216135848.174e010f@kernel.org>



On 2025/12/17 05:58, Jakub Kicinski wrote:
> On Sun, 14 Dec 2025 22:03:57 +0800 Wen Gu wrote:
>> If you're suggesting creating a new subsystem, I think we should first
>> answer this question: why can't it be part of the current ptp subsystem,
>> and what are the differences between the drivers under `drivers/ptp`
>> and those in the new subsystem?
> 
> I can't explain it any better than I already did here:
> https://lore.kernel.org/all/20251127083610.6b66a728@kernel.org/
> 
> I talked to Thomas Gleixner (added to CC) during LPC and he seemed
> open to creating a PHC subsystem for pure time devices in virtualized
> environments. Please work with him and other vendors trying to
> upstream similar drivers.

Hi Jakub and Thomas,

I thought about it a bit more. If we create a new clock class
(say a "ptc"), its helpers and structure would likely end up being
almost identical to the current ptp ones, since the pure phc drivers
under drivers/ptp (e.g. ptp_kvm, ptp_vmw, ptp_s390, ptp_cipu) are
implemented on top of the existing ptp helpers. That would give us
two near-identical classes, which may be confusing.

Also, changing the userspace device node for existing pure phc drivers
from /dev/ptpX to something else (e.g. /dev/ptcX) seems impractical.
The same applies to ptp_cipu, since it is already used and relies on
exposing /dev/ptpX.

Given the historical baggage, it seems better to keep using the
existing ptp framework, but separate these pure phc drivers into a
new subsystem with a dedicated directory (e.g. drivers/phc/) and a
MAINTAINERS entry, moving them out of the netdev maintenance scope.
This should also address the concern that these pure phc drivers are
not a good fit to be maintained under the networking subsystem.

If this works for you, I'll send an RFC about this.

Regards.





  parent reply	other threads:[~2025-12-22  7:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2026-01-02 19:51                             ` Jakub Kicinski
2026-01-04  6:11                               ` Wen Gu
2026-01-09  9:25                                 ` David Woodhouse
2026-01-12  3:45                                   ` 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

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=957500e7-5753-488d-872d-4dbbdcac0bb2@linux.alibaba.com \
    --to=guwen@linux.alibaba.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --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

all inboxes | Powered by JetHome®