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
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"
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
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 voidDocumentation/mic/mpssd/mpssd.c: Fixed comparison in sum_iovec_len and
disp_iovecDocumentation/prctl/disable-tsc-ctxt-sw-stress-test.c: main signature
changed to void, as parameters 'argc' and 'argv' are never usedDocumentation/prctl/disable-tsc-on-off-stress-test.c: main signature
changed to voidDocumentation/prctl/disable-tsc-test.c: main signature changed to void
Documentation/ptp/testptp.c: Sign comparison fix
Documentation/timers/hpet_example.c: Sign comparision fixSigned-off-by: Mahesh Khanwalkar
Signed-off-by: Jonathan Corbet
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
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
26 Sep, 2014
3 commits
-
Add some missing files to .gitignore.
Push Documentation/.gitignore down into subdirectories.Signed-off-by: Peter Foley
Signed-off-by: Randy Dunlap
Signed-off-by: Jiri Kosina -
Fix a few warnings that gcc emits during a default build.
Signed-off-by: Peter Foley
Signed-off-by: Randy Dunlap
Signed-off-by: Jiri Kosina -
Add a bunch of previously unbuilt source files to the Documentation build
machinery.Signed-off-by: Peter Foley
Signed-off-by: Randy Dunlap
Signed-off-by: Jiri Kosina
17 Jun, 2014
1 commit
-
clock_adjtime was included in glibc 2.14. _GNU_SOURCE must be defined
to make it available.Signed-off-by: Christian Riesch
Cc: Richard Cochran
Acked-by: Richard Cochran
Signed-off-by: David S. Miller
28 Mar, 2014
2 commits
-
Signed-off-by: Christian Riesch
Cc: Dong Zhu
Acked-by: Richard Cochran
Signed-off-by: David S. Miller -
This reverts commit 203191c386e83b8c5d95bbbaef13baa629512726.
A better version of this fix is forthcoming.
Signed-off-by: David S. Miller
27 Mar, 2014
2 commits
-
Signed-off-by: Christian Riesch
Cc: Dong Zhu
Signed-off-by: David S. Miller -
Signed-off-by: Manfred Rudigier
Signed-off-by: Christian Riesch
Acked-by: Richard Cochran
Signed-off-by: David S. Miller
22 Mar, 2014
1 commit
-
This patch adds a option to the test program that lists the
programmable pins on a PTP Hardware Clock device, assuming there
are any such pins. A second option lets the user reprogram the
auxiliary function of a single pin.Signed-off-by: Richard Cochran
Signed-off-by: David S. Miller
05 Feb, 2014
1 commit
-
Currently the trigger/event is hardcoded to 0, this patch adds
a new command line argument -i to select an arbitrary trigger/
event.Signed-off-by: Stefan Sørensen
Acked-by: Richard Cochran
Signed-off-by: David S. Miller
24 Sep, 2013
1 commit
-
This patch add a method into testptp.c to measure the time offset
between phc and system clock through the ioctl PTP_SYS_OFFSET.Signed-off-by: Dong Zhu
Signed-off-by: David S. Miller
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