summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorKarthik Poosa <karthik.poosa@intel.com>2026-10-15 12:44:23 +0530
committerDave Airlie <airlied@redhat.com>2026-11-09 19:17:56 +1000
commitdbd199c775cbedbd1acaff96e1d7f4c398e558d9 (patch)
tree76ff15b8416ca75e219d5d97fdea8fa7be5461c1 /rust/kernel
parentf2a144e9891b397aebcfc0e88906c29bc079322d (diff)
drm/xe/hwmon: Handle unavailable memory controller sensors
Skip memory controller sensors that report invalid readings when computing the average temperature in get_mc_temp(). Return -ENXIO when no valid sensor data is available, and allow the helper to be used as an availability probe by making the output parameter optional. Signed-off-by: Karthik Poosa <karthik.poosa@intel.com> Fixes: 3a0cb885e111 ("drm/xe/hwmon: Expose memory controller temperature") Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20261015071434.1063785-6-karthik.poosa@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 99ceaebb888944d00932063a649ebb41bd8af1d2) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions