tools/power turbostat: Add support for Hygon Fam 18h (Dhyana) RAPL
Commit 9392bd98 ("tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL") and the commit 3316f99a ("tools/power turbostat: Also read package power on AMD F17h (Zen)") add AMD Fam 17h RAPL support. Hygon Family 18h(Dhyana) support RAPL in bit 14 of CPUID 0x80000007 EDX, and has MSRs RAPL_PWR_UNIT/CORE_ENERGY_STAT/PKG_ENERGY_STAT. So add Hygon Dhyana Family 18h support for RAPL. Already tested on Hygon multi-node systems and it shows correct per-core energy usage and the total package power. Signed-off-by: NPu Wen <puwen@hygon.cn> Reviewed-by: NCalvin Walton <calvin.walton@kepstin.ca> Signed-off-by: NLen Brown <len.brown@intel.com>
Showing
想要评论请 注册 或 登录