Skip to contentSkip to conversation

problem dumping/fixing dsdt

DISCUSSION [email protected] 2 participants 2 messages Sep 22, 2002 – Sep 24, 2002 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

I tried to fix my dsdt, but it _think_, that acpidump does not handle my table well. I get a very short table, as you can see below. Since I dont have experience with stuff like this, I would like to ask, if the below results are expected.

yours
Joerg

wally:/usr/src/pacpidump/pacpidump # ./acpidump >dsdt.asl
acpidump: DSDT is corrupt

wally:/usr/src/pacpidump/pacpidump # cat dstdt.asl /*
RSD PTR: Checksum=173, OEMID=PTLTD, RsdtAddress=0x0effbfc0
*/
/*
RSDT: Length=40, Revision=1, Checksum=135,

    OEMID=PTLTD, OEM Table ID=  RSDT, OEM Revision=0x6040000,
    Creator ID= LTP, Creator Revision=0x0
 */
/*
    Entries={ 0x0efffb8c }
 */
/*
    DSDT=0xeffbfe8
    INT_MODEL=PIC
    SCI_INT=9
    SMI_CMD=0x802f, ACPI_ENABLE=0xf0, ACPI_DISABLE=0xf1, S4BIOS_REQ=0xf2
    PM1a_EVT_BLK=0x8000-0x8003
    PM1a_CNT_BLK=0x8004-0x8005
    PM2_TMR_BLK=0x8008-0x800b
    PM2_GPE0_BLK=0x8020-0x8023
    P_LVL2_LAT=90ms, P_LVL3_LAT=1900ms
    FLUSH_SIZE=0, FLUSH_STRIDE=0
    DUTY_OFFSET=0, DUTY_WIDTH=4
    DAY_ALRM=125, MON_ALRM=126, CENTURY=50
    Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4}

*/
wally:/usr/src/pacpidump/pacpidump # iasl -tc dsdt.asl

Intel ACPI Component Architecture
ASL Optimizing Compiler / AML Disassembler version 20020829 [Aug 29 2002] Copyright (C) 2000 - 2002 Intel Corporation
Supports ACPI Specification Revision 2.0a

dsdt.asl 27:
Error 1037 -^ parse error, expecting error' or PARSEOP_DEFINITIONBLOCK'

ASL Input: dsdt.asl - 27 lines, 652 bytes, 0 keywords Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 200209221029.g8MATCX10556-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org

#2 lore raw

I had the same problem with acpidump
you can use pmtools from intel acpi site

http://developer.intel.com/technology/iapc/acpi/downloads/pmtools-20010730.tar.gz
and get last (binary) iasl from same location .

tar xzvf pmtools-20010730.tar.gz
cd pmtools-20010730
make
cd acpidmp
./acpidmp DSDT > dsdt (as root!)
./iasl -d dsdt
correct dsdt.dsl
./iasl -tc -i dsdt.dsl

LINUXDIR=linux-2.4.20-pre7
cp -a dsdt.hex /usr/src/$LINUXDIR/drivers/acpi/tables/acpi_dsdt.c

and apply this patch :

drivers/acpi/osl.c renamed from drivers/acpi/osl.c.orig +5 -1
@@ -70,6 +70,7 @@
 static OSD_HANDLER acpi_irq_handler = NULL;
 static void *acpi_irq_context = NULL;
 
+extern unsigned char AmlCode[];
 
 acpi_status
 acpi_os_initialize(void)
@@ -221,7 +222,10 @@
 	if (!existing_table || !new_table)
 		return AE_BAD_PARAMETER;
 
-	*new_table = NULL;
+	if (strncmp(existing_table->signature, "DSDT", 4) == 0)
+		*new_table = (acpi_table_header*)AmlCode;
+	else
+		*new_table = NULL;
 	return AE_OK;
 }