• Rajneesh Bhardwaj's avatar
    platform/x86: intel_pmc_core: Add PCH IP Power Gating Status · 0bdfaf42
    Rajneesh Bhardwaj authored
    This patch adds the support for reading the power gating status of various
    devices present on Sunrise Point PCH. This is intended to be used for
    debugging purpose while tuning the platform for power optimizations and
    also to understand which devices (on PCH) are blocking the system to enter
    a low power state.
    
    Power Management Controller on Sunrise Point PCH provides access to "PGD
    PFET Enable Ack Status Registers (ppfear)". This patch reads and decodes
    this register and dumps the output in formatted manner showing various
    devices present on the PCH and their "Power Gating" status.
    
    Further documentation can be found in Intel 7th Gen Core family mobile u/y
    processor io datasheet volume 2.
    
    Sample output (stripped and not in order):
    
    cat /sys/kernel/debug/pmc_core/pch_ip_power_gating_status
    PMC				State: Not Power gated
    OPI-DMI				State: Not Power gated
    XHCI				State: Power gated
    LPSS				State: Power gated
    CSME_PSF			State: Not power gated
    Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
    Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
    0bdfaf42
intel_pmc_core.h 3.41 KB