diff mbox series

acpi: method: add _VDM voltage domain test (mantis 2374)

Message ID 20251113065140.313511-1-ivan.hu@canonical.com
State Accepted
Headers show
Series acpi: method: add _VDM voltage domain test (mantis 2374) | expand

Commit Message

Ivan Hu Nov. 13, 2025, 6:51 a.m. UTC
BugLink: https://bugs.launchpad.net/fwts/+bug/2131193

ACPI 6.6 introduces a voltage domain method so firmware can hint which voltage
plane a processor belongs to. Add _VDM into the method table as an optional
integer-return test.

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/acpi/method/method.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 9e832c16..1df17492 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -261,6 +261,7 @@ 
  * _UPC 	 Y
  * _UPD 	 Y
  * _UPP 	 Y
+ * _VDM 	 Y
  * _VPO 	 Y
  * _WAK 	 Y
  * _WPC 	 Y
@@ -5164,6 +5165,12 @@  static int method_test_CDM(fwts_framework *fw)
 		"_CDM", NULL, 0, fwts_method_test_integer_return, NULL);
 }
 
+static int method_test_VDM(fwts_framework *fw)
+{
+	return method_evaluate_method(fw, METHOD_OPTIONAL,
+		"_VDM", NULL, 0, fwts_method_test_integer_return, NULL);
+}
+
 /*
  * Intelligent Platform Management Interface (IPMI) Specification
  */
@@ -5220,6 +5227,7 @@  static fwts_framework_minor_test method_tests[] = {
 	/* Section 6.2 Device Configurations Objects */
 
 	{ method_test_CDM, "Test _CDM (Clock Domain)." },
+	{ method_test_VDM, "Test _VDM (Voltage Domain)." },
 	{ method_test_CRS, "Test _CRS (Current Resource Settings)." },
 	{ method_test_DSD, "Test _DSD (Device Specific Data)." },
 	{ method_test_DIS, "Test _DIS (Disable)." },