Description of problem: backport HFI driver from upstream kernel. https://docs.kernel.org/x86/intel-hfi.html# The Intel Hardware Feedback Interface (HFI) provides information about the performance and energy efficiency of each CPU in the system. It uses a table that is shared between hardware and the operating system. The contents of the table may be updated as a result of changes in the operating conditions of the system (e.g., reaching a thermal limit) or the action of external factors (e.g., changes in the thermal design power). The information that HFI provides are specified as numeric, unit-less capabilities relative to other CPUs in the system. These capabilities have a range of [0-255] where higher numbers represent higher capabilities. Energy efficiency and performance are reported in separate capabilities. If either the performance or energy capabilities efficiency of a CPU are 0, the hardware recommends to not schedule any tasks on such CPU for performance, energy efficiency or thermal reasons, respectively. The kernel or user space may use the information from the HFI to modify task placement and/or adjust power limits. How reproducible: check driver loaded successfully and use intel-speed-select tool(above 1.12 version) to check if HFI work as expected. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Intel_SIG: commit 345be4275cad thermal: netlink: Fix parameter type of Intel_SIG: commit e4b1eb24ce5a thermal: netlink: Add a new event to notify Intel_SIG: commit c95aa2bab974 thermal: intel: hfi: INTEL_HFI_THERMAL Intel_SIG: commit bd30cdfd9bd7 thermal: intel: hfi: Notify user space for Intel_SIG: commit ab09b0744a99 thermal: intel: hfi: Enable notification interrupt. Intel_SIG: commit 4a960e8941bd x86/Documentation: Describe the Intel Hardware Intel_SIG: commit 2d74e6319abe thermal: intel: hfi: Handle CPU hotplug Intel_SIG: commit 1cb19cabeb0e thermal: intel: hfi: Minimally initialize Intel_SIG: commit 7b8f40b3de75 x86/cpu: Add definitions for the Intel Intel_SIG: commit 9223d0dccb8f thermal: Move therm_throt there from Intel_SIG: commit 4f432e8bb15b x86/mce: Get rid of mcheck_intel_therm_init
patch merged