Skip to content
Commit 0caf5dd0 authored by Ricardo Neri's avatar Ricardo Neri Committed by Greg Kroah-Hartman
Browse files

thermal: intel: hfi: Disable an HFI instance when all its CPUs go offline



[ Upstream commit 1c53081d ]

In preparation to support hibernation, add functionality to disable an HFI
instance during CPU offline. The last CPU of an instance that goes offline
will disable such instance.

The Intel Software Development Manual states that the operating system must
wait for the hardware to set MSR_IA32_PACKAGE_THERM_STATUS[26] after
disabling an HFI instance to ensure that it will no longer write on the HFI
memory. Some processors, however, do not ever set such bit. Wait a minimum
of 2ms to give time hardware to complete any pending memory writes.

Signed-off-by: default avatarRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: 97566d09 ("thermal: intel: hfi: Add syscore callbacks for system-wide PM")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent de791353
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment