20 Sep, 2016

1 commit

  • Remove ptp from Makefile to move the test to selftests. Update ptp Makefile
    to work under selftests. ptp will not be run as part of selftests suite and
    will not be included in install targets. They can be built separately for
    now.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     

18 Mar, 2016

1 commit

  • Pul documentation update from Jon Corbet:
    "Another relatively boring cycle for the docs tree: typo fixes,
    translation updates, etc"

    * tag 'docs-for-linus' of git://git.lwn.net/linux:
    modsign: Fix documentation on module signing enforcement parameter.
    Doc: nfs: Fix typos in Documentation/filesystems/nfs
    Documentation: kselftest: Remove duplicate word
    doc: fix grammar
    Documentation: Howto: Fixed subtitles style
    Doc: ARM: Fix a typo in clksrc-change-registers.awk
    Documentation/ko_KR: update maintainer information
    Documentation: Fix int/unsigned int comparison
    Documentation: Chinese translation of arm64/silicon-errata.txt
    Documentation:Update Documentation/zh_CN/arm64/booting.txt
    Documentation: HOWTO: remove obsolete info about regression postings
    Doc: ja_JP: Fix a typo in HOWTO
    Doc: i2c: Fix typo in Documentation/i2c
    Doc: DocBook: Fix a typo in device-drivers.tmpl
    Remove "arch" usage in Documentation/features/list-arch.sh
    README: cosmetic fixes
    Documentation/CodingStyle: add space before parenthesis in example macro
    SubmittingPatches: fix spelling of "git send-email"

    Linus Torvalds
     

04 Mar, 2016

1 commit

  • Currently, network /system cross-timestamping is performed in the
    PTP_SYS_OFFSET ioctl. The PTP clock driver reads gettimeofday() and
    the gettime64() callback provided by the driver. The cross-timestamp
    is best effort where the latency between the capture of system time
    (getnstimeofday()) and the device time (driver callback) may be
    significant.

    The getcrosststamp() callback and corresponding PTP_SYS_OFFSET_PRECISE
    ioctl allows the driver to perform this device/system correlation when
    for example cross timestamp hardware is available. Modern Intel
    systems can do this for onboard Ethernet controllers using the ART
    counter. There is virtually zero latency between captures of the ART
    and network device clock.

    The capabilities ioctl (PTP_CLOCK_GETCAPS), is augmented allowing
    applications to query whether or not drivers implement the
    getcrosststamp callback, providing more precise cross timestamping.

    Cc: Prarit Bhargava
    Cc: Richard Cochran
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: Andy Lutomirski
    Cc: kevin.b.stanton@intel.com
    Cc: kevin.j.clarke@intel.com
    Cc: hpa@zytor.com
    Cc: jeffrey.t.kirsher@intel.com
    Cc: netdev@vger.kernel.org
    Acked-by: Richard Cochran
    Signed-off-by: Christopher S. Hall
    [jstultz: Commit subject tweaks]
    Signed-off-by: John Stultz

    Christopher S. Hall
     

18 Feb, 2016

1 commit

  • Signed int - unsigned int comparison fixed in mpssd, prctl, ptp, and
    timers in Documentation. In places where 'int argc' and 'const char
    **argv' are not used, they are replaced with void

    Documentation/mic/mpssd/mpssd.c: Fixed comparison in sum_iovec_len and
    disp_iovec

    Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c: main signature
    changed to void, as parameters 'argc' and 'argv' are never used

    Documentation/prctl/disable-tsc-on-off-stress-test.c: main signature
    changed to void

    Documentation/prctl/disable-tsc-test.c: main signature changed to void

    Documentation/ptp/testptp.c: Sign comparison fix
    Documentation/timers/hpet_example.c: Sign comparision fix

    Signed-off-by: Mahesh Khanwalkar
    Signed-off-by: Jonathan Corbet

    Mahesh Khanwalkar
     

30 Sep, 2015

1 commit

  • When compiling Documentation/ptp/testptp.c the following compiler
    warnings are printed out:

    Documentation/ptp/testptp.c: In function ‘main’:
    Documentation/ptp/testptp.c:367:11: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 3 has type ‘__s64’ [-Wformat=]
    event.t.sec, event.t.nsec);
    ^
    Documentation/ptp/testptp.c:505:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
    (pct+2*i)->sec, (pct+2*i)->nsec);
    ^
    Documentation/ptp/testptp.c:507:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
    (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
    ^
    Documentation/ptp/testptp.c:509:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
    (pct+2*i+2)->sec, (pct+2*i+2)->nsec);

    This happens because __s64 is by default defined as "long" on ppc64,
    not as "long long". However, to fix these warnings, it's possible to
    define the __SANE_USERSPACE_TYPES__ so that __s64 gets defined to
    "long long" on ppc64, too.

    Signed-off-by: Thomas Huth
    Acked-by: Richard Cochran
    Signed-off-by: David S. Miller

    Thomas Huth
     

25 Oct, 2014

1 commit

  • This patch brings back the makefile called testptp.mk which was removed
    in commit adb19fb66eee (Documentation: add makefiles for more targets).

    While the idea of that commit was to improve build coverage of the
    examples, the new Makefile is unable to cross compile the testptp program.
    In contrast, the deleted makefile was able to do this just fine.

    This patch fixes the regression by restoring the original makefile.

    Signed-off-by: Richard Cochran
    Acked-by: Peter Foley
    Signed-off-by: David S. Miller

    Richard Cochran
     

26 Sep, 2014

3 commits


17 Jun, 2014

1 commit


28 Mar, 2014

2 commits


27 Mar, 2014

2 commits


22 Mar, 2014

1 commit


05 Feb, 2014

1 commit


24 Sep, 2013

1 commit


24 May, 2011

1 commit

  • This patch adds an infrastructure for hardware clocks that implement
    IEEE 1588, the Precision Time Protocol (PTP). A class driver offers a
    registration method to particular hardware clock drivers. Each clock is
    presented as a standard POSIX clock.

    The ancillary clock features are exposed in two different ways, via
    the sysfs and by a character device.

    Signed-off-by: Richard Cochran
    Acked-by: Arnd Bergmann
    Acked-by: David S. Miller
    Signed-off-by: John Stultz

    Richard Cochran