From 23e681750f3a76a58fe592423b7a7a008530cc14 Mon Sep 17 00:00:00 2001 From: Alex Kozyrev Date: Thu, 9 Aug 2018 11:27:49 -0400 Subject: [PATCH] Enabling PTP clock support in Linux Kernel configs The IEEE 1588 standard defines a method to precisely synchronize distributed clocks over Ethernet networks. The standard defines a Precision Time Protocol (PTP), which can be used to achieve synchronization within a few dozen microseconds. In addition, with the help of special hardware time stamping units, it can be possible to achieve synchronization to within a few hundred nanoseconds. Story: 2002935 Task: 22922 Change-Id: Ibb4e9b8f61198c88d3aaec02f441574b580afdd7 Signed-off-by: Alex Kozyrev --- kernel/kernel-rt/centos/build_srpm.data | 2 +- .../kernel-3.10.0-x86_64-rt.config.tis_extra | 18 ++++++++++++------ kernel/kernel-std/centos/build_srpm.data | 2 +- .../kernel-3.10.0-x86_64.config.tis_extra | 18 ++++++++++++------ 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/kernel/kernel-rt/centos/build_srpm.data b/kernel/kernel-rt/centos/build_srpm.data index 540aa5a4c..699bea4d8 100644 --- a/kernel/kernel-rt/centos/build_srpm.data +++ b/kernel/kernel-rt/centos/build_srpm.data @@ -1,4 +1,4 @@ COPY_LIST="files/*" -TIS_PATCH_VER=42 +TIS_PATCH_VER=43 BUILD_IS_BIG=10 BUILD_IS_SLOW=12 diff --git a/kernel/kernel-rt/centos/patches/kernel-3.10.0-x86_64-rt.config.tis_extra b/kernel/kernel-rt/centos/patches/kernel-3.10.0-x86_64-rt.config.tis_extra index 2756308bb..642ab74c1 100644 --- a/kernel/kernel-rt/centos/patches/kernel-3.10.0-x86_64-rt.config.tis_extra +++ b/kernel/kernel-rt/centos/patches/kernel-3.10.0-x86_64-rt.config.tis_extra @@ -105,6 +105,17 @@ CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_MD5=y CONFIG_CRYPTO_SHA1=y +#Enable Intel RDT +CONFIG_KERNFS=y +CONFIG_INTEL_RDT_A=y + +#Enable PTP clock support +CONFIG_PPS=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_PCH=y +CONFIG_PTP_1588_CLOCK_KVM=y +CONFIG_DP83640_PHY=y + # Remove unneeded stuff (including stuff exposed # by saying y to new options above. CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=n @@ -375,7 +386,6 @@ CONFIG_I2C_DIOLAN_U2C=n CONFIG_I2C_PARPORT_LIGHT=n CONFIG_PPS_CLIENT_LDISC=n CONFIG_PPS_CLIENT_GPIO=n -CONFIG_PTP_1588_CLOCK_PCH=n CONFIG_CHARGER_SMB347=n CONFIG_SENSORS_ABITUGURU=n CONFIG_SENSORS_ABITUGURU3=n @@ -932,6 +942,7 @@ CONFIG_SND=n CONFIG_IR_GPIO_CIR=n CONFIG_BLK_DEV_NBD=m CONFIG_AIC94XX_DEBUG=n +CONFIG_GPIO_BT8XX=n # Disable transparent huge pages CONFIG_TRANSPARENT_HUGEPAGE=n @@ -940,8 +951,3 @@ CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=n # Make performance default governor CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=n CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y - -CONFIG_GPIO_BT8XX=n - -CONFIG_KERNFS=y -CONFIG_INTEL_RDT_A=y diff --git a/kernel/kernel-std/centos/build_srpm.data b/kernel/kernel-std/centos/build_srpm.data index 065981e7c..0de47ad03 100644 --- a/kernel/kernel-std/centos/build_srpm.data +++ b/kernel/kernel-std/centos/build_srpm.data @@ -1,4 +1,4 @@ COPY_LIST="files/*" -TIS_PATCH_VER=35 +TIS_PATCH_VER=36 BUILD_IS_BIG=10 BUILD_IS_SLOW=12 diff --git a/kernel/kernel-std/centos/patches/kernel-3.10.0-x86_64.config.tis_extra b/kernel/kernel-std/centos/patches/kernel-3.10.0-x86_64.config.tis_extra index b31cefe35..c080c2b64 100644 --- a/kernel/kernel-std/centos/patches/kernel-3.10.0-x86_64.config.tis_extra +++ b/kernel/kernel-std/centos/patches/kernel-3.10.0-x86_64.config.tis_extra @@ -105,6 +105,17 @@ CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_MD5=y CONFIG_CRYPTO_SHA1=y +#Enable Intel RDT +CONFIG_KERNFS=y +CONFIG_INTEL_RDT_A=y + +#Enable PTP clock support +CONFIG_PPS=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_PTP_1588_CLOCK_PCH=y +CONFIG_PTP_1588_CLOCK_KVM=y +CONFIG_DP83640_PHY=y + # Remove unneeded stuff (including stuff exposed # by saying y to new options above. CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=n @@ -379,7 +390,6 @@ CONFIG_I2C_DIOLAN_U2C=n CONFIG_I2C_PARPORT_LIGHT=n CONFIG_PPS_CLIENT_LDISC=n CONFIG_PPS_CLIENT_GPIO=n -CONFIG_PTP_1588_CLOCK_PCH=n CONFIG_CHARGER_SMB347=n CONFIG_SENSORS_ABITUGURU=n CONFIG_SENSORS_ABITUGURU3=n @@ -784,6 +794,7 @@ CONFIG_CRYPTO_USER_API_SKCIPHER=n CONFIG_CRYPTO_DEV_PADLOCK=n CONFIG_BLK_DEV_NBD=m CONFIG_AIC94XX_DEBUG=n +CONFIG_GPIO_BT8XX=n # Turn on kernel preemption CONFIG_PREEMPT=y @@ -800,8 +811,3 @@ CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=n # Make performance default governor CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=n CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y - -CONFIG_GPIO_BT8XX=n - -CONFIG_KERNFS=y -CONFIG_INTEL_RDT_A=y