qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ACPI support
@ 2005-11-08 17:39 Shahar Livne
  0 siblings, 0 replies; 4+ messages in thread
From: Shahar Livne @ 2005-11-08 17:39 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Hi there,

I use qemu for development of embedded systems. Lately I had a need to check
ACPI related kernel module, but I have seen that there isn't any support in
the version 0.7.1 that I use.
I have checked also 0.7.2 and found no support.
A patch that I have found on www.h7.dion.ne.jp/~<http://www.h7.dion.ne.jp/~>
*qemu*-win/ for x86_64 by F.Navara seemed like close enough.
I have applied it (after adaptation, since it didn't go smooth for 0.7.1 or
0.7.2).

The system booted, but running dmesg | grep ACPI inside the embedded system
on the qemu gave:

ACPI: RSDP (v000 QEMU ) @ 0x000e0000
ACPI: Invalid RSDT checksum
ACPI: Subsystem revision 20050211
ACPI: Interpreter disabled.

I use the i386 emulation, and the kernel running inside is 2.6.11

Has someone any experience with ACPI in qemu?

Thanks,

Shahar Livne
LivneX - Open Source Development and Services
http://livnex.com

[-- Attachment #2: Type: text/html, Size: 1453 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Qemu-devel] ACPI support
@ 2005-11-08 18:12 Yu, Ke
  2005-11-09  7:40 ` Shahar Livne
  0 siblings, 1 reply; 4+ messages in thread
From: Yu, Ke @ 2005-11-08 18:12 UTC (permalink / raw)
  To: qemu-devel

This is an interesting topic, however, not an easy task :) 

The patch is for APIC support, and only contains one ACPI MADT entry, which is far from full ACPI support. So you may like to call it an APIC patch rather than ACPI patch. 

If you want to test power management of embedded system with qemu, IMHO, there will be a lot of work to do:
* Implement ACPI hardware in QEMU, which includes
   - General ACPI hardware in chipset
  -  Specific ACPI hardware in every device
* Add ACPI table in BIOS. 

Best Regards
Yu Ke
----------------
Intel Opensource Technology Center

________________________________________
From: qemu-devel-bounces+ke.yu=intel.com@nongnu.org [mailto:qemu-devel-bounces+ke.yu=intel.com@nongnu.org] On Behalf Of Shahar Livne
Sent: 2005年11月9日 1:40
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] ACPI support

Hi there,

I use qemu for development of embedded systems. Lately I had a need to check ACPI related kernel module, but I have seen that there isn't any support in the version 0.7.1 that I use.
I have checked also 0.7.2 and found no support.
A patch that I have found on www.h7.dion.ne.jp/~qemu-win/ for x86_64 by F.Navara seemed like close enough. 
I have applied it (after adaptation, since it didn't go smooth for 0.7.1 or 0.7.2).

The system booted, but running dmesg | grep ACPI inside the embedded system on the qemu gave:

ACPI: RSDP (v000 QEMU                                                  ) @ 0x000e0000
ACPI: Invalid RSDT checksum
ACPI: Subsystem revision 20050211
ACPI: Interpreter disabled.

I use the i386 emulation, and the kernel running inside is 2.6.11

Has someone any experience with ACPI in qemu?

Thanks,

Shahar Livne
LivneX - Open Source Development and Services
http://livnex.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ACPI support
  2005-11-08 18:12 [Qemu-devel] ACPI support Yu, Ke
@ 2005-11-09  7:40 ` Shahar Livne
  0 siblings, 0 replies; 4+ messages in thread
From: Shahar Livne @ 2005-11-09  7:40 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2758 bytes --]

Thanks!

Actually, I don't need the whole ACPI mechanism working.
On the real target, I want to use the power button to initiate a reboot.
Such a thing can be done with something like:
cat /proc/acpi/event | grep specific_event > /dev/null && reboot

In the qemu, I never get to load the relevant kernel modules (like button.ko),
since the ACPI is disabled due to the mentioned checksum failure.

If it is only some small adaptation of the mentioned patch with checksum
calculation for RSDT and updating acpi.S than I would gladly do it (do you
have any hints?). Otherwise - I just give up on this now, and use the real
hardware.

Cheers,
Shahar Livne
LivneX - Open Source Development and Services
http://livnex.com


On 11/8/05, Yu, Ke <ke.yu@intel.com> wrote:
>
> This is an interesting topic, however, not an easy task :)
>
> The patch is for APIC support, and only contains one ACPI MADT entry,
> which is far from full ACPI support. So you may like to call it an APIC
> patch rather than ACPI patch.
>
> If you want to test power management of embedded system with qemu, IMHO,
> there will be a lot of work to do:
> * Implement ACPI hardware in QEMU, which includes
> - General ACPI hardware in chipset
> - Specific ACPI hardware in every device
> * Add ACPI table in BIOS.
>
> Best Regards
> Yu Ke
> ----------------
> Intel Opensource Technology Center
>
> ________________________________________
> From: qemu-devel-bounces+ke.yu=intel.com@nongnu.org [mailto:
> qemu-devel-bounces+ke.yu=intel.com@nongnu.org] On Behalf Of Shahar Livne
> Sent: 2005年11月9日 1:40
> To: qemu-devel@nongnu.org
> Subject: [Qemu-devel] ACPI support
>
> Hi there,
>
> I use qemu for development of embedded systems. Lately I had a need to
> check ACPI related kernel module, but I have seen that there isn't any
> support in the version 0.7.1 that I use.
> I have checked also 0.7.2 and found no support.
> A patch that I have found on www.h7.dion.ne.jp/~qemu-win/<http://www.h7.dion.ne.jp/~qemu-win/>for x86_64 by
> F.Navara seemed like close enough.
> I have applied it (after adaptation, since it didn't go smooth for 0.7.1or
> 0.7.2).
>
> The system booted, but running dmesg | grep ACPI inside the embedded
> system on the qemu gave:
>
> ACPI: RSDP (v000 QEMU ) @ 0x000e0000
> ACPI: Invalid RSDT checksum
> ACPI: Subsystem revision 20050211
> ACPI: Interpreter disabled.
>
> I use the i386 emulation, and the kernel running inside is 2.6.11
>
> Has someone any experience with ACPI in qemu?
>
> Thanks,
>
> Shahar Livne
> LivneX - Open Source Development and Services
> http://livnex.com
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>

[-- Attachment #2: Type: text/html, Size: 3528 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Qemu-devel] ACPI support
@ 2005-11-09 10:14 Yu, Ke
  0 siblings, 0 replies; 4+ messages in thread
From: Yu, Ke @ 2005-11-09 10:14 UTC (permalink / raw)
  To: qemu-devel


To support the ACPI event, qemu should at least have General-Purpose Event (GPE) register and SCI interrupt (see ACPI 2.0 spec, ch 5.6).  It may not be as simple as calculating checksum and updating acpi.S, so I guess you have to use real hardware currently. 

If there are more and more usage models for ACPI in qemu, I guess people will consider adding ACPI support in qemu :) 

Best Regards
Yu Ke 

Intel, Open Source Technology Center

________________________________________
From: qemu-devel-bounces+ke.yu=intel.com@nongnu.org [mailto:qemu-devel-bounces+ke.yu=intel.com@nongnu.org] On Behalf Of Shahar Livne
Sent: 2005年11月9日 15:41
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] ACPI support

Thanks!

Actually, I don't need the whole ACPI mechanism working.
On the real target, I want to use the power button to initiate a reboot.
Such a thing can be done with something like:
cat /proc/acpi/event | grep specific_event > /dev/null && reboot

In the qemu, I never get to load the relevant kernel modules (like button.ko), since the ACPI is disabled due to the mentioned checksum failure.

If it is only some small adaptation of the mentioned patch with checksum calculation for RSDT and updating acpi.S than I would gladly do it (do you have any hints?). Otherwise - I just give up on this now, and use the real hardware.

Cheers,
Shahar Livne
LivneX - Open Source Development and Services
http://livnex.com

On 11/8/05, Yu, Ke <ke.yu@intel.com> wrote:
This is an interesting topic, however, not an easy task :)

The patch is for APIC support, and only contains one ACPI MADT entry, which is far from full ACPI support. So you may like to call it an APIC patch rather than ACPI patch.

If you want to test power management of embedded system with qemu, IMHO, there will be a lot of work to do:
* Implement ACPI hardware in QEMU, which includes
   - General ACPI hardware in chipset 
  -  Specific ACPI hardware in every device
* Add ACPI table in BIOS.

Best Regards
Yu Ke
----------------
Intel Opensource Technology Center

________________________________________
From: qemu-devel-bounces+ke.yu= intel.com@nongnu.org [mailto:qemu-devel-bounces+ke.yu=intel.com@nongnu.org] On Behalf Of Shahar Livne
Sent: 2005年11月9日 1:40 
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] ACPI support

Hi there,

I use qemu for development of embedded systems. Lately I had a need to check ACPI related kernel module, but I have seen that there isn't any support in the version 0.7.1 that I use.
I have checked also 0.7.2 and found no support.
A patch that I have found on www.h7.dion.ne.jp/~qemu-win/ for x86_64 by F.Navara seemed like close enough.
I have applied it (after adaptation, since it didn't go smooth for 0.7.1 or 0.7.2).

The system booted, but running dmesg | grep ACPI inside the embedded system on the qemu gave:

ACPI: RSDP (v000 QEMU ) @ 0x000e0000
ACPI: Invalid RSDT checksum
ACPI: Subsystem revision 20050211
ACPI: Interpreter disabled.

I use the i386 emulation, and the kernel running inside is 2.6.11

Has someone any experience with ACPI in qemu? 

Thanks,

Shahar Livne
LivneX - Open Source Development and Services
http://livnex.com

_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-09 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-08 18:12 [Qemu-devel] ACPI support Yu, Ke
2005-11-09  7:40 ` Shahar Livne
  -- strict thread matches above, loose matches on Subject: below --
2005-11-09 10:14 Yu, Ke
2005-11-08 17:39 Shahar Livne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).