lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 4 Aug 2021 07:16:46 -0700
From:   Richard Cochran <richardcochran@...il.com>
To:     Jonathan Lemon <jonathan.lemon@...il.com>
Cc:     davem@...emloft.net, kuba@...nel.org, kernel-team@...com,
        netdev@...r.kernel.org
Subject: Re: [PATCH net-next v4] ptp: ocp: Expose various resources on the
 timecard.

On Tue, Aug 03, 2021 at 08:33:27PM -0700, Jonathan Lemon wrote:
> The OpenCompute timecard driver has additional functionality besides
> a clock.  Make the following resources available:
> 
>  - The external timestamp channels (ts0/ts1)
>  - devlink support for flashing and health reporting
>  - GPS and MAC serial ports
>  - board serial number (obtained from i2c device)
> 
> Also add watchdog functionality for when GNSS goes into holdover.
> 
> The resources are collected under a timecard class directory:
> 
>   [jlemon@...ecard ~]$ ls -g /sys/class/timecard/ocp1/
>   total 0
>   -r--r--r--. 1 root 4096 Aug  3 19:49 available_clock_sources
>   -rw-r--r--. 1 root 4096 Aug  3 19:49 clock_source
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 device -> ../../../0000:04:00.0/
>   -r--r--r--. 1 root 4096 Aug  3 19:49 gps_sync
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 i2c -> ../../xiic-i2c.1024/i2c-2/
>   drwxr-xr-x. 2 root    0 Aug  3 19:49 power/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 pps ->
>   ../../../../../virtual/pps/pps1/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ptp -> ../../ptp/ptp2/
>   -r--r--r--. 1 root 4096 Aug  3 19:49 serialnum
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 subsystem ->
>   ../../../../../../class/timecard/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ttyGPS -> ../../tty/ttyS7/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ttyMAC -> ../../tty/ttyS8/
>   -rw-r--r--. 1 root 4096 Aug  3 19:39 uevent

I like this user friendly grouping.

Acked-by: Richard Cochran <richardcochran@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ