From 6db9f9f58a095ee9a70c8edb6563aaf7027cb278 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Mon, 27 Apr 2020 16:32:13 +0800 Subject: acpi: refactor the ACPI PM device Add the AML support to generate the S1 table instead of hard coding. Also use the IO allocater to allocate the IO resouce for ACPI PM. BUG=None TEST=boot crosvm by command "crosvm run -s crosvm.sock -m 4096 --cpus 4 --rwdisk rootfs.img -p "root=/dev/vda rootfstype=ext4" vmlinux". Check the S1 capability by "#echo standby > /sys/power/state" from guest side. Linux guest is suspended. And resume linux guest by "#crosvm resume crosvm.sock" from host side. Change-Id: I75b484c44db05f98d49557ba694a1531b57871c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2119571 Reviewed-by: Tomasz Jeznach Tested-by: kokoro Commit-Queue: Chuanxiao Dong --- devices/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'devices/Cargo.toml') diff --git a/devices/Cargo.toml b/devices/Cargo.toml index 629f29b..0ffab50 100644 --- a/devices/Cargo.toml +++ b/devices/Cargo.toml @@ -12,6 +12,7 @@ x = ["gpu_display/x"] gfxstream = ["gpu"] [dependencies] +acpi_tables = {path = "../acpi_tables" } audio_streams = "*" bit_field = { path = "../bit_field" } bitflags = "1" -- cgit 1.4.1