[linux-yocto] [PATCH 1/2] perf/x86: Improve accuracy of perf/sched clock

2016-06-16 Thread jonathan . yong
From: Adrian Hunter When TSC is stable perf/sched clock is based on it. However the conversion from cycles to nanoseconds is not as accurate as it could be. Because CYC2NS_SCALE_FACTOR is 10, the accuracy is +/- 1/2048 The change is to calculate the maximum shift that

[linux-yocto] [PATCH 2/2] perf/x86: Fix time_shift in perf_event_mmap_page

2016-06-16 Thread jonathan . yong
From: Adrian Hunter Commit: b20112edeadf ("perf/x86: Improve accuracy of perf/sched clock") allowed the time_shift value in perf_event_mmap_page to be as much as 32. Unfortunately the documented algorithms for using time_shift have it shifting an integer, whereas to

[linux-yocto] [PATCH 0/2] Improve perf reporting on x86 for linux-yocto-4.1

2016-06-16 Thread jonathan . yong
From: "Yong, Jonathan" These 2 patches improve the perf tools reporting based on captured TSC times. These should apply to linux-yocto-4.1 standard/base. Adrian Hunter (2): perf/x86: Improve accuracy of perf/sched clock perf/x86: Fix time_shift in

[linux-yocto] [PATCH] MAINTAINERS: add new maintainer for TPM DEVICE DRIVER

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen At the moment, no one has time to pay enough attention to this subsystem so that patches get eventually merged into linux-next. Even critical bug fixes can lie for weeks. I'm happy to continue with the current maintainers if they are able

[linux-yocto] [PATCH] MAINTAINER file update for TPM 2.0 series

2016-06-13 Thread jonathan . yong
From: "Yong, Jonathan" Oops, missed this commit, this should be part of the TPM 2.0 series. For linux-yocto-4.1 standard/base. Jarkko Sakkinen (1): MAINTAINERS: add new maintainer for TPM DEVICE DRIVER MAINTAINERS | 1 + 1 file changed, 1 insertion(+) -- 2.7.3 --

[linux-yocto] [PATCH 7/8] tpm: fix missing migratable flag in sealing functionality for TPM2

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen The 'migratable' flag was not added to the key payload. This patch fixes the problem. Fixes: 0fe5480303a1 ("keys, trusted: seal/unseal with TPM 2.0 chips") Signed-off-by: Jarkko Sakkinen Acked-by: Peter

[linux-yocto] [PATCH 5/8] tpm: seal/unseal for TPM 2.0

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen Added tpm_trusted_seal() and tpm_trusted_unseal() API for sealing trusted keys. This patch implements basic sealing and unsealing functionality for TPM 2.0: * Seal with a parent key using a 20 byte auth value. * Unseal with a parent key

[linux-yocto] [PATCH 2/8] tpm: move the PPI attributes to character device directory.

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen Moved PPI attributes to the character device directory. This aligns with the sysfs guidelines and makes them race free because they are created atomically with the character device as part of device_register().The character device and the

[linux-yocto] [PATCH 3/8] tpm: introduce tpm_buf

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen This patch introduces struct tpm_buf that provides a string buffer for constructing TPM commands. This allows to construct variable sized TPM commands. For the buffer a page is allocated and mapped, which limits maximum size to PAGE_SIZE.

[linux-yocto] [PATCH 4/8] keys, trusted: move struct trusted_key_options to trusted-type.h

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen Moved struct trusted_key_options to trustes-type.h so that the fields can be accessed from drivers/char/tpm. Signed-off-by: Jarkko Sakkinen Signed-off-by: Peter Huewe (cherry picked from

[linux-yocto] [PATCH 8/8] sysfs: added __compat_only_sysfs_link_entry_to_kobj()

2016-06-13 Thread jonathan . yong
From: Jarkko Sakkinen Added a new function __compat_only_sysfs_link_group_to_kobj() that adds a symlink from attribute or group to a kobject. This needed for maintaining backwards compatibility with PPI attributes in the TPM driver. Signed-off-by: Jarkko

[linux-yocto] [PATCH 0/8] TPM 2.0 support for linux-yocto-4.1

2016-06-13 Thread jonathan . yong
From: "Yong, Jonathan" These patches introduces TPM 2.0 support, and are backported from Linus's tree. Should apply cleanly for linux-yocto-4.1 stadard/base. Jarkko Sakkinen (8): tpm, tpm_crb: fix unaligned read of the command buffer address tpm: move the PPI

[linux-yocto] [PATCH 5/6] time: Add driver cross timestamp interface for higher precision time synchronization

2016-06-13 Thread jonathan . yong
From: "Christopher S. Hall" ACKNOWLEDGMENT: cross timestamp code was developed by Thomas Gleixner . It has changed considerably and any mistakes are mine. The precision with which events on multiple networked systems can be synchronized using,

[linux-yocto] [PATCH 6/6] x86/tsc: Always Running Timer (ART) correlated clocksource

2016-06-13 Thread jonathan . yong
From: "Christopher S. Hall" On modern Intel systems TSC is derived from the new Always Running Timer (ART). ART can be captured simultaneous to the capture of audio and network device clocks, allowing a correlation between timebases to be constructed. Upon capture,

[linux-yocto] [PATCH 4/6] time: Add timekeeping snapshot code capturing system time and counter

2016-06-13 Thread jonathan . yong
From: "Christopher S. Hall" In the current timekeeping code there isn't any interface to atomically capture the current relationship between the system counter and system time. ktime_get_snapshot() returns this triple (counter, monotonic raw, realtime) in the

[linux-yocto] [PATCH 2/6] time: Add cycles to nanoseconds translation

2016-06-13 Thread jonathan . yong
From: "Christopher S. Hall" The timekeeping code does not currently provide a way to translate externally provided clocksource cycles to system time. The cycle count is always provided by the result clocksource read() method internal to the timekeeping code. The

[linux-yocto] [PATCH 1/6] ntp/pps: replace getnstime_raw_and_real with 64-bit version

2016-06-13 Thread jonathan . yong
From: Arnd Bergmann There is exactly one caller of getnstime_raw_and_real in the kernel, which is the pps_get_ts function. This changes the caller and the implementation to work on timespec64 types rather than timespec, to avoid the time_t overflow on 32-bit architectures. For

[linux-yocto] [PATCH 0/6] Always Running Timer Support for 4.1

2016-06-13 Thread jonathan . yong
From: "Yong, Jonathan" This series introduces convert_art_to_tsc, to convert ART time to TSC. The main advantage of ART is that ART can be captured simultaneous to the capture of audio and network device clocks, allowing a correlation between timebases to be constructed.

[linux-yocto] [PATCH 3/6] timekeeping: Provide internal function __ktime_get_real_seconds

2016-06-13 Thread jonathan . yong
From: DengChao In order to fix Y2038 issues in the ntp code we will need replace get_seconds() with ktime_get_real_seconds() but as the ntp code uses the timekeeping lock which is also used by ktime_get_real_seconds(), we need a version without locking. Add a new function