[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/15] implement method _L00 for GPE0
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 7/15] implement method _L00 for GPE0 |
Date: |
Tue, 26 Feb 2008 16:56:37 -0300 |
This corresponds to the cpu hotplug functionality
Signed-off-by: Glauber Costa <address@hidden>
---
bios/acpi-dsdt.dsl | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 114 insertions(+), 0 deletions(-)
diff --git a/bios/acpi-dsdt.dsl b/bios/acpi-dsdt.dsl
index 1dba157..194a051 100755
--- a/bios/acpi-dsdt.dsl
+++ b/bios/acpi-dsdt.dsl
@@ -588,6 +588,120 @@ DefinitionBlock (
Scope (\_GPE)
{
Method(_L00) {
+ /* Up status */
+ If (And(\_PR.PRU, 0x2)) {
+ Notify(\_PR.CPU1,1)
+ }
+
+ If (And(\_PR.PRU, 0x4)) {
+ Notify(\_PR.CPU2,1)
+ }
+
+ If (And(\_PR.PRU, 0x8)) {
+ Notify(\_PR.CPU3,1)
+ }
+
+ If (And(\_PR.PRU, 0x10)) {
+ Notify(\_PR.CPU4,1)
+ }
+
+ If (And(\_PR.PRU, 0x20)) {
+ Notify(\_PR.CPU5,1)
+ }
+
+ If (And(\_PR.PRU, 0x40)) {
+ Notify(\_PR.CPU6,1)
+ }
+
+ If (And(\_PR.PRU, 0x80)) {
+ Notify(\_PR.CPU7,1)
+ }
+
+ If (And(\_PR.PRU, 0x100)) {
+ Notify(\_PR.CPU8,1)
+ }
+
+ If (And(\_PR.PRU, 0x200)) {
+ Notify(\_PR.CPU9,1)
+ }
+
+ If (And(\_PR.PRU, 0x400)) {
+ Notify(\_PR.CPUA,1)
+ }
+
+ If (And(\_PR.PRU, 0x800)) {
+ Notify(\_PR.CPUB,1)
+ }
+
+ If (And(\_PR.PRU, 0x1000)) {
+ Notify(\_PR.CPUC,1)
+ }
+
+ If (And(\_PR.PRU, 0x2000)) {
+ Notify(\_PR.CPUD,1)
+ }
+
+ If (And(\_PR.PRU, 0x4000)) {
+ Notify(\_PR.CPUE,1)
+ }
+
+ /* Down status */
+ If (And(\_PR.PRD, 0x2)) {
+ Notify(\_PR.CPU1,3)
+ }
+
+ If (And(\_PR.PRD, 0x4)) {
+ Notify(\_PR.CPU2,3)
+ }
+
+ If (And(\_PR.PRD, 0x8)) {
+ Notify(\_PR.CPU3,3)
+ }
+
+ If (And(\_PR.PRD, 0x10)) {
+ Notify(\_PR.CPU4,3)
+ }
+
+ If (And(\_PR.PRD, 0x20)) {
+ Notify(\_PR.CPU5,3)
+ }
+
+ If (And(\_PR.PRD, 0x40)) {
+ Notify(\_PR.CPU6,3)
+ }
+
+ If (And(\_PR.PRD, 0x80)) {
+ Notify(\_PR.CPU7,3)
+ }
+
+ If (And(\_PR.PRD, 0x100)) {
+ Notify(\_PR.CPU8,3)
+ }
+
+ If (And(\_PR.PRD, 0x200)) {
+ Notify(\_PR.CPU9,3)
+ }
+
+ If (And(\_PR.PRD, 0x400)) {
+ Notify(\_PR.CPUA,3)
+ }
+
+ If (And(\_PR.PRD, 0x800)) {
+ Notify(\_PR.CPUB,3)
+ }
+
+ If (And(\_PR.PRD, 0x1000)) {
+ Notify(\_PR.CPUC,3)
+ }
+
+ If (And(\_PR.PRD, 0x2000)) {
+ Notify(\_PR.CPUD,3)
+ }
+
+ If (And(\_PR.PRD, 0x4000)) {
+ Notify(\_PR.CPUE,3)
+ }
+
Return(0x01)
}
Method(_L01) {
--
1.4.2
- [Qemu-devel] [PATCH 0/15] acpi processor hotplug, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 1/15] Make a GPE register block be acessible., Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 2/15] mark extra cpus as present, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 3/15] introduce cpu_set to qemu monitor, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 4/15] mark processors as presents, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 5/15] provide gpe _L0x methods, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 6/15] provide operation region for pio to the gpes, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 7/15] implement method _L00 for GPE0,
Glauber Costa <=
- [Qemu-devel] [PATCH 8/15] isolate cpu initialization function in hw/pc.c, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 9/15] initialize hot add system., Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 10/15] handle gpe data for pio, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 11/15] manipulate the gpe bits and send sci up the os., Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 12/15] isolate cpu thread creation in qemu-kvm.c, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 13/15] provide _MAT to acpi processor, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 14/15] start a new cpu thread, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 15/15] remove acpi_build_processor_ssdt, Glauber Costa, 2008/02/26
- [Qemu-devel] Re: [kvm-devel] [PATCH 4/15] mark processors as presents, Alexander Graf, 2008/02/26
- [Qemu-devel] Re: [kvm-devel] [PATCH 4/15] mark processors as presents, Alexander Graf, 2008/02/26