From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU6fq-0003YE-63 for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:45:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU6fn-0003Vg-Pp for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:45:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU6fn-0003VW-Iy for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:45:11 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU6fn-0002oO-2S for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:45:11 -0500 From: Glauber Costa Date: Tue, 26 Feb 2008 16:56:43 -0300 Message-Id: <1204055805-32349-14-git-send-email-gcosta@redhat.com> In-Reply-To: <1204055805-32349-13-git-send-email-gcosta@redhat.com> References: <1204055805-32349-1-git-send-email-gcosta@redhat.com> <1204055805-32349-2-git-send-email-gcosta@redhat.com> <1204055805-32349-3-git-send-email-gcosta@redhat.com> <1204055805-32349-4-git-send-email-gcosta@redhat.com> <1204055805-32349-5-git-send-email-gcosta@redhat.com> <1204055805-32349-6-git-send-email-gcosta@redhat.com> <1204055805-32349-7-git-send-email-gcosta@redhat.com> <1204055805-32349-8-git-send-email-gcosta@redhat.com> <1204055805-32349-9-git-send-email-gcosta@redhat.com> <1204055805-32349-10-git-send-email-gcosta@redhat.com> <1204055805-32349-11-git-send-email-gcosta@redhat.com> <1204055805-32349-12-git-send-email-gcosta@redhat.com> <1204055805-32349-13-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH 13/15] provide _MAT to acpi processor Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net Cc: marcelo@kvack.org, glommer@gmail.com, qemu-devel@nongnu.org, Glauber Costa , chrisw@sous-sol.org Signed-off-by: Glauber Costa --- bios/acpi-dsdt.dsl | 154 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 140 insertions(+), 14 deletions(-) diff --git a/bios/acpi-dsdt.dsl b/bios/acpi-dsdt.dsl index 194a051..7dffb6d 100755 --- a/bios/acpi-dsdt.dsl +++ b/bios/acpi-dsdt.dsl @@ -35,20 +35,146 @@ DefinitionBlock ( } Processor (CPU0, 0x00, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU1, 0x01, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU2, 0x02, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU3, 0x03, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU4, 0x04, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU5, 0x05, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU6, 0x06, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU7, 0x07, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU8, 0x08, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPU9, 0x09, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPUA, 0x0a, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPUB, 0x0b, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPUC, 0x0c, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPUD, 0x0d, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} - Processor (CPUE, 0x0e, 0x0000b010, 0x06) {Method (_STA) { Return(0xF)}} + Processor (CPU1, 0x01, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x01, 0x01, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x2)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU2, 0x02, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x02, 0x02, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x4)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU3, 0x03, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x03, 0x03, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x8)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU4, 0x04, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x04, 0x04, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x10)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU5, 0x05, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x05, 0x05, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x20)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU6, 0x06, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x06, 0x06, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x40)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU7, 0x07, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x07, 0x07, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x80)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU8, 0x08, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x08, 0x08, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x100)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPU9, 0x09, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x09, 0x09, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x200)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPUA, 0x0a, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x0A, 0x0A, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x400)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPUB, 0x0b, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x0B, 0x0B, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x800)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPUC, 0x0c, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x0C, 0x0C, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x1000)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPUD, 0x0d, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x0D, 0x0D, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x2000)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } + Processor (CPUE, 0x0e, 0x0000b010, 0x06) { + Name (TMP, Buffer(0x8) {0x0, 0x8, 0x0E, 0x0E, 0x1, 0x0, 0x0, 0x0}) + Method(_MAT, 0) { + If (And(\_PR.PRU, 0x4000)) { Return(TMP) } + Else { Return(0x0) } + } + Method (_STA) { + Return(0xF) + } + } } Scope (\) -- 1.4.2