[PATCH v1] drm/xe/hwmon: expose fan speed

Andi Shyti andi.shyti at linux.intel.com
Mon Feb 10 16:15:04 UTC 2025


Hi Raag,

On Mon, Feb 10, 2025 at 03:35:15PM +0530, Raag Jadav wrote:
> 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.
> 
> Signed-off-by: Raag Jadav <raag.jadav at intel.com>

I think you've got the hang of it by now :-)

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>

> +#define   FAN_SPEED_CONTROL			0x7D
> +#define     FSC_READ_NUM_FANS			0x4
> +

I don't really like the alignment here, I'd have preferred:

	...	0x7D
	...	0x04

with the '0'. But you are being consistent with the header's
style, so it's OK.

Thanks,
Andi


More information about the Intel-xe mailing list