Re: [dpdk-dev] [PATCH v10 2/9] eal: add power management intrinsics

2020-10-29 Thread Thomas Monjalon
27/10/2020 15:59, Liang Ma: > +static inline uint64_t > +__get_umwait_val(const volatile void *p, const uint8_t sz) > +{ > + switch (sz) { > + case sizeof(uint8_t): > + return *(const volatile uint8_t *)p; > + case sizeof(uint16_t): > + return *(const v

[dpdk-dev] [PATCH v10 2/9] eal: add power management intrinsics

2020-10-27 Thread Liang Ma
Add two new power management intrinsics, and provide an implementation in eal/x86 based on UMONITOR/UMWAIT instructions. The instructions are implemented as raw byte opcodes because there is not yet widespread compiler support for these instructions. The power management instructions provide an ar