Re: [PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Philippe Mathieu-Daudé
On 8/5/24 23:54, Philippe Mathieu-Daudé wrote: On 8/5/24 19:28, Jiaxun Yang wrote: 在2024年5月8日五月 下午5:48,Philippe Mathieu-Daudé写道: On 8/5/24 17:35, Philippe Mathieu-Daudé wrote: On 8/5/24 11:31, Jiaxun Yang wrote: Suspend function is emulated as what hardware actually do. Doorbell register fiel

Re: [PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Philippe Mathieu-Daudé
On 8/5/24 19:28, Jiaxun Yang wrote: 在2024年5月8日五月 下午5:48,Philippe Mathieu-Daudé写道: On 8/5/24 17:35, Philippe Mathieu-Daudé wrote: On 8/5/24 11:31, Jiaxun Yang wrote: Suspend function is emulated as what hardware actually do. Doorbell register fields are updates to include suspend value, suspend

Re: [PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Jiaxun Yang
在2024年5月8日五月 下午5:48,Philippe Mathieu-Daudé写道: > On 8/5/24 17:35, Philippe Mathieu-Daudé wrote: >> On 8/5/24 11:31, Jiaxun Yang wrote: >>> Suspend function is emulated as what hardware actually do. >>> Doorbell register fields are updates to include suspend value, >>> suspend vector is encoded in

Re: [PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Philippe Mathieu-Daudé
On 8/5/24 17:35, Philippe Mathieu-Daudé wrote: On 8/5/24 11:31, Jiaxun Yang wrote: Suspend function is emulated as what hardware actually do. Doorbell register fields are updates to include suspend value, suspend vector is encoded in firmware blob and fw_cfg is updated to include S3 bits as what

Re: [PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Philippe Mathieu-Daudé
On 8/5/24 11:31, Jiaxun Yang wrote: Suspend function is emulated as what hardware actually do. Doorbell register fields are updates to include suspend value, suspend vector is encoded in firmware blob and fw_cfg is updated to include S3 bits as what x86 did. Signed-off-by: Jiaxun Yang --- hw/

[PATCH] hw/mips/loongson3_virt: Emulate suspend function

2024-05-08 Thread Jiaxun Yang
Suspend function is emulated as what hardware actually do. Doorbell register fields are updates to include suspend value, suspend vector is encoded in firmware blob and fw_cfg is updated to include S3 bits as what x86 did. Signed-off-by: Jiaxun Yang --- hw/mips/loongson3_bootp.c | 1 + hw/mips/