Comment 2 for bug 1467014

Revision history for this message
Colin Ian King (colin-king) wrote : Re: powertat -R erroneously reports no RAPL domains

It seems that the RAPL kernel driver only supports the following CPUs:

        RAPL_CPU(0x2a, rapl_defaults_core),/* Sandy Bridge */
        RAPL_CPU(0x2d, rapl_defaults_core),/* Sandy Bridge EP */
        RAPL_CPU(0x37, rapl_defaults_atom),/* Valleyview */
        RAPL_CPU(0x3a, rapl_defaults_core),/* Ivy Bridge */
        RAPL_CPU(0x3c, rapl_defaults_core),/* Haswell */
        RAPL_CPU(0x3d, rapl_defaults_core),/* Broadwell */
        RAPL_CPU(0x3f, rapl_defaults_hsw_server),/* Haswell servers */
        RAPL_CPU(0x4f, rapl_defaults_hsw_server),/* Broadwell servers */
        RAPL_CPU(0x45, rapl_defaults_core),/* Haswell ULT */
        RAPL_CPU(0x4E, rapl_defaults_core),/* Skylake */
        RAPL_CPU(0x4C, rapl_defaults_atom),/* Braswell */
        RAPL_CPU(0x4A, rapl_defaults_atom),/* Tangier */
        RAPL_CPU(0x56, rapl_defaults_core),/* Future Xeon */
        RAPL_CPU(0x5A, rapl_defaults_atom),/* Annidale */

where as powertop directly reads the MSRs (hence powertop has to have root access rights) and it detects that the MSR_PKG_ENERGY_STATUS is readable so accesses the RAPL energy MSRs and hence can provide the RAPL stats. I'll chat to Intel about the lack of support for your processor in the RAPL driver if you can provide me with the exact CPU info.