diff options
| author | Raag Jadav <[email protected]> | 2024-08-23 03:45:48 +0000 |
|---|---|---|
| committer | Anshuman Gupta <[email protected]> | 2024-08-28 06:36:07 +0000 |
| commit | 727eb1e3f014e66dcdec53afc6f5bfe0d8c0871d (patch) | |
| tree | 278ed71d7eb26c8af9007c5c977dabfb05d9a4ec /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/i915: Do not attempt to load the GSC multiple times (diff) | |
| download | kernel-727eb1e3f014e66dcdec53afc6f5bfe0d8c0871d.tar.gz kernel-727eb1e3f014e66dcdec53afc6f5bfe0d8c0871d.zip | |
drm/i915/hwmon: expose fan speed
Add hwmon support for fan1_input attribute, which will expose fan speed
in RPM. With this in place we can monitor fan speed using lm-sensors tool.
$ sensors
i915-pci-0300
Adapter: PCI adapter
in0: 653.00 mV
fan1: 3833 RPM
power1: N/A (max = 43.00 W)
energy1: 32.02 kJ
v2: Handle overflow, add mutex protection and ABI documentation
Aesthetic adjustments (Riana)
v3: Change rotations data type, ABI date and version
v4: Fix wakeref leak
Drop switch case and simplify hwm_fan_xx() (Andi)
v5: Rework time calculation, aesthetic adjustments (Andy)
v6: Drop redundant overflow logic (Andy)
Split fan_input_read() into dedicated helper (Badal)
v7: Fix undefined reference to __udivdi3 for i386 (Andy)
Signed-off-by: Raag Jadav <[email protected]>
Reviewed-by: Riana Tauro <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Reviewed-by: Badal Nilawar <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
