thermal: intel: Don't set HFI status bit to 1
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 14 Dec 2022 02:06:51 +0000 (18:06 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Dec 2022 13:50:15 +0000 (14:50 +0100)
commit904f309ae7edaadc9fd0ee04be8281d7781d97e4
tree3d92c319483b29d6628ee215d7587d1b93440ffc
parent75b15aa0d83ec835082129b62e8cb9a44703ad72
thermal: intel: Don't set HFI status bit to 1

When CPU doesn't support HFI (Hardware Feedback Interface), don't include
BIT 26 in the mask to prevent clearing. otherwise this results in:
    unchecked MSR access error: WRMSR to 0x1b1
      (tried to write 0x0000000004000aa8)
      at rIP: 0xffffffff8b8559fe (throttle_active_work+0xbe/0x1b0)

Fixes: 6fe1e64b6026 ("thermal: intel: Prevent accidental clearing of HFI status")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/therm_throt.c