mbox series

[0/2] Add FDT table support with acpi ged pm register

Message ID 20240906021943.150494-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series Add FDT table support with acpi ged pm register | expand

Message

Bibo Mao Sept. 6, 2024, 2:19 a.m. UTC
ACPI ged is used for power management on LoongArch virt platform, in
general it is parsed from acpi table. However if system boot directly from
elf kernel, no UEFI bios is provided and acpi table cannot be used also.

Here acpi ged pm register is exposed with FDT table, it is compatbile
with syscon method in FDT table, only that acpi ged pm register is accessed
with 8-bit mode, rather in 32-bit mode.

Bibo Mao (2):
  acpi: ged: Add macro for acpi ged sleep register
  hw/loongarch/virt: Add FDT table support with acpi ged pm register

 hw/acpi/generic_event_device.c         |  6 ++--
 hw/loongarch/virt.c                    | 39 ++++++++++++++++++++++++++
 include/hw/acpi/generic_event_device.h |  3 ++
 3 files changed, 45 insertions(+), 3 deletions(-)


base-commit: e638d685ec2a0700fb9529cbd1b2823ac4120c53

Comments

Jason A. Donenfeld Sept. 6, 2024, 4:03 a.m. UTC | #1
This series appears to work in my testing.

Tested-by: Jason A. Donenfeld <Jason@zx2c4.com>
gaosong Sept. 9, 2024, 1:36 a.m. UTC | #2
在 2024/9/6 上午10:19, Bibo Mao 写道:
> ACPI ged is used for power management on LoongArch virt platform, in
> general it is parsed from acpi table. However if system boot directly from
> elf kernel, no UEFI bios is provided and acpi table cannot be used also.
> 
> Here acpi ged pm register is exposed with FDT table, it is compatbile
> with syscon method in FDT table, only that acpi ged pm register is accessed
> with 8-bit mode, rather in 32-bit mode.
> 
> Bibo Mao (2):
>    acpi: ged: Add macro for acpi ged sleep register
>    hw/loongarch/virt: Add FDT table support with acpi ged pm register
> 
>   hw/acpi/generic_event_device.c         |  6 ++--
>   hw/loongarch/virt.c                    | 39 ++++++++++++++++++++++++++
>   include/hw/acpi/generic_event_device.h |  3 ++
>   3 files changed, 45 insertions(+), 3 deletions(-)
> 
> 
> base-commit: e638d685ec2a0700fb9529cbd1b2823ac4120c53
> 
Reviewed-by: Song Gao <gaosong@loongson.cn>
Tested-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao