|
|
Subscribe / Log in / New account

platform/x86: Introduce dasharo-acpi platform driver

From:  Michał Kopeć <michal.kopec-AT-3mdeb.com>
To:  hdegoede-AT-redhat.com, ilpo.jarvinen-AT-linux.intel.com
Subject:  [PATCH v2 0/1] platform/x86: Introduce dasharo-acpi platform driver
Date:  Thu, 27 Mar 2025 17:21:12 +0100
Message-ID:  <20250327162113.571940-1-michal.kopec@3mdeb.com>
Cc:  platform-driver-x86-AT-vger.kernel.org, piotr.krol-AT-3mdeb.com, maciej.pijanowski-AT-3mdeb.com, michal.kopec-AT-3mdeb.com
Archive-link:  Article

Introduce a driver for devices running Dasharo firmware. The driver
supports thermal monitoring using a new ACPI interface in Dasharo. The
initial version supports monitoring fan speeds, fan PWM duty cycles and
system temperatures as well as determining which specific interfaces are
implemented by firmware.

It has been tested on a NovaCustom laptop running pre-release Dasharo
firmware, which implements fan and thermal monitoring for the CPU and
the discrete GPU, if present.

Changes in v2:
- Remove redundant copyright information
- Turn dasharo_fill_* functions into single dasharo_fill_feature_caps
  function
- Code style fixes
- Turn large if / else blocks into switch / case
- Fix possible positive return values in hwmon read handler
- Change while loops to for loops
- Add local variable for data->sensors[data->sensors_count] in
  dasharo_fill_feature_caps
- Replace snprintf with scnprintf per Ilpo's review
- Keep the "ok" path silent

Michał Kopeć (1):
  platform/x86: Introduce dasharo-acpi platform driver

 drivers/platform/x86/Kconfig        |  10 +
 drivers/platform/x86/Makefile       |   3 +
 drivers/platform/x86/dasharo-acpi.c | 375 ++++++++++++++++++++++++++++
 3 files changed, 388 insertions(+)
 create mode 100644 drivers/platform/x86/dasharo-acpi.c

-- 
2.49.0




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds