• Ricardo Neri's avatar
    thermal: intel: hfi: Minimally initialize the Hardware Feedback Interface · 1cb19cab
    Ricardo Neri authored
    The Intel Hardware Feedback Interface provides guidance to the operating
    system about the performance and energy efficiency capabilities of each
    CPU in the system. Capabilities are numbers between 0 and 255 where a
    higher number represents a higher capability. For each CPU, energy
    efficiency and performance are reported as separate capabilities.
    
    Hardware computes these capabilities based on the operating conditions of
    the system such as power and thermal limits. These capabilities are shared
    with the operating system in a table resident in memory. Each package in
    the system has its own HFI instance. Every logical CPU in the package is
    represented in the table. More than one logical CPUs may be represented in
    a single table entry. When the hardware updates the table, it generates a
    package-level thermal interrupt.
    
    The size and format of the HFI table depend on the supported features and
    can only be determined at runtime. To minimally initialize the HFI, parse
    its features and allocate one instance per package of a data structure with
    the necessary parameters to read and navigate a local copy (i.e., owned by
    the driver) of individual HFI tables.
    
    A subsequent changeset will provide per-CPU initialization and interrupt
    handling.
    Reviewed-by: default avatarLen Brown <len.brown@intel.com>
    Co-developed by: Aubrey Li <aubrey.li@linux.intel.com>
    Signed-off-by: default avatarAubrey Li <aubrey.li@linux.intel.com>
    Signed-off-by: default avatarRicardo Neri <ricardo.neri-calderon@linux.intel.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    1cb19cab
Makefile 758 Bytes