mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/xe/hwmon: expose fan speed
Add hwmon support for fan1_input, fan2_input and fan3_input attributes, which will expose fan speed of respective channels in RPM when supported by hardware. With this in place we can monitor fan speed using lm-sensors tool. v2: Rely on platform checks instead of mailbox error (Aravind, Rodrigo) v3: Introduce has_fan_control flag (Rodrigo) Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250312085909.755073-1-raag.jadav@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
/* Domain IDs (param2) */
|
||||
#define PCODE_MBOX_DOMAIN_HBM 0x2
|
||||
|
||||
#define FAN_SPEED_CONTROL 0x7D
|
||||
#define FSC_READ_NUM_FANS 0x4
|
||||
|
||||
#define PCODE_SCRATCH(x) XE_REG(0x138320 + ((x) * 4))
|
||||
/* PCODE_SCRATCH0 */
|
||||
#define AUXINFO_REG_OFFSET REG_GENMASK(17, 15)
|
||||
|
||||
Reference in New Issue
Block a user