summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorKarthik Poosa <karthik.poosa@intel.com>2026-10-15 12:44:20 +0530
committerDave Airlie <airlied@redhat.com>2026-11-09 19:17:55 +1000
commitc9d8ef7f6835ddfca8259c322804038799be5641 (patch)
treef0aa3cf934e819b18bbd80a89c7260113969c3ad /rust/kernel/alloc
parent94099304b80e8c6e842c2626f603930577938f3a (diff)
drm/xe/hwmon: Decode mailbox temperature as sign-magnitude
The mailbox temperature is an 8-bit sign-magnitude value (bit 7 sign, bits 6:0 magnitude, range -127..127), not two's-complement. Casting the raw byte to s8 decodes negative readings incorrectly. Add mbx_temp_decode(), store the raw byte as u8, and use it in get_mc_temp() and get_pcie_temp() so temperatures are decoded correctly. Fixes: 3a0cb885e111 ("drm/xe/hwmon: Expose memory controller temperature") Signed-off-by: Karthik Poosa <karthik.poosa@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20261015071434.1063785-3-karthik.poosa@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 1bbbd7d98fa588d5ace3d79ce56d8928f18768f5) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions