improve tsc frequency calibration
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 6 repliesIn review
v3 changes from the cover letter
- implement in .c files instead of exporting an inline arch function
- rename arch function from rte_rdtsc_arch_hz to get_tsc_freq_arch
- integrate x86 implementation in the series
- fix private EAL include in PPC implementation (not tested)
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | timer: honor arch-specific TSC frequency querylib/ lib/ lib/ +4 more | +38 | 0 replies | |
| 2/4 | eal/armv8: implement arch-specific TSC freq querylib/ | +38 | 0 replies | |
| 3/4 | eal/ppc64: implement arch-specific TSC freq querylib/ | +46 | 0 replies | |
| 4/4 | eal/x86: implement arch-specific TSC freq querylib/ | +141 | 4 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Jianbo Liu | Harry van Haaren | Bruce Richardson | Jerin Jacob |
|---|---|---|---|---|
| Series | T-b | |||
| 1/4 | ||||
| 2/4 | A-b | |||
| 3/4 | ||||
| 4/4 | A-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 0/4] improve tsc frequency calibration
v3 changes:
- implement in .c files instead of exporting an inline arch function
- rename arch function from rte_rdtsc_arch_hz to get_tsc_freq_arch
- integrate x86 implementation in the series
- fix private EAL include in PPC implementation (not tested)
From: Gowrishankar Muthukrishnan <[email protected]>
Some architecture like armv8 provides an architecture specific function to get the rdtsc frequency. The existing rdtsc calibration scheme uses OS serivce like sleep(1) to calibrate the frequency which may not produce the accurate result. Introducing an architecture specific hook to get the rdtsc frequency if architecture provides it. If not, use the exiting the calibrate scheme to get the rdtsc frequency.
Jerin Jacob (3):
timer: honor arch-specific TSC frequency query eal/armv8: implement arch-specific TSC freq query eal/ppc64: implement arch-specific TSC freq query
Sergio Gonzalez Monroy (1):
eal/x86: implement arch-specific TSC freq query
lib/librte_eal/bsdapp/eal/Makefile | 1 +
lib/librte_eal/common/arch/arm/rte_cycles.c | 45 +++++++
.../ppc_64/rte_cycles.c} | 78 ++---------
.../{eal_common_timer.c => arch/x86/rte_cycles.c} | 143 ++++++++++++++-------
lib/librte_eal/common/eal_common_timer.c | 5 +-
lib/librte_eal/common/eal_private.h | 11 ++
lib/librte_eal/linuxapp/eal/Makefile | 1 +
7 files changed, 170 insertions(+), 114 deletions(-)
create mode 100644 lib/librte_eal/common/arch/arm/rte_cycles.c
copy lib/librte_eal/common/{eal_common_timer.c => arch/ppc_64/rte_cycles.c} (50%)
copy lib/librte_eal/common/{eal_common_timer.c => arch/x86/rte_cycles.c} (50%)Signature · 1 line
2.14.1