Called method may not always return a value как исправить

DSDT.aml file for Lenovo T510-4313 I've posted a guide for installing OSX 10.6.8 on a Lenovo T510 Thinkpad here: http://www.insanelym...howtopic=274162 This post details the modifications I've made to the DSDT file to better work with OSX This DSDT file was saved and decompiled by using an Ubuntu...

DSDT.aml file for Lenovo T510-4313

I’ve posted a guide for installing OSX 10.6.8 on a Lenovo T510 Thinkpad here:

http://www.insanelym…howtopic=274162

This post details the modifications I’ve made to the DSDT file to better work with OSX

This DSDT file was saved and decompiled by using an Ubuntu Live CD, and then edited with DSDTSE.

See the tutorial here: http://aserebln.blog…epare-dsdt.html

And the software here: http://www.osx86.es/?p=610

Most edits came from this guide for a T60 Thinkpad:

http://forum.thinkpa…php?f=5&t=85344

Here’s what is changed in the DSDT file, one fix at a time. The lines that discribe the fixes are commented out with /* */ so that you can see where the new code was added.

Compile Error:

First, lets remove all compile warnings and errors, to clean up the code. There is an «*» hidden in the DSDT code, which isn’t allowed by the IASL compiler. So first we remove that.

Replace this:

Device (WMI1)
{
Name (_HID, "*pnp0c14")
Name (_UID, "MXM2")

With this:

Device (WMI1)
{
/* Fix - Remove * from "*pnp0c14" to prevent compile error */
Name (_HID, "pnp0c14")
Name (_UID, "MXM2")

Compile Warnings:

Next we want to get rid of the compile warnings. This is optional, because the DSDT file will still function fine, even with warnings

Example compile warning

5366: If (LFLS ()) Warning  1093 - Called method may not always return a value ^

Many of the Methods in the DSDT don’t return a value if none of the code is specifically applied. All we need to do is add a line «Return (Zero)» at the end of the Method, before the final «}». For example:

Method (LFLS, 0, NotSerialized)
{
Name (TMPB, Buffer (0x02)
{
	0x00, 0x00
})
CreateByteField (TMPB, 0x00, LPCT)
CreateByteField (TMPB, 0x01, SSUM)
TPHY (0x00)
Store (PH02, LPCT)
If (LPCT)
{
	Store (0x00, SSUM)
	Add (SSUM, PH01, SSUM)
	Add (SSUM, PH02, SSUM)
	Add (SSUM, PH03, SSUM)
	Add (SSUM, PPRQ, SSUM)
	Add (SSUM, PPLO, SSUM)
	Add (SSUM, PPRP, SSUM)
	Add (SSUM, PPOR, SSUM)
	Add (SSUM, TPRS, SSUM)
	Add (SSUM, TPMV, SSUM)
	Add (SSUM, MOR, SSUM)
	Add (SSUM, RSV0, SSUM)
	If (SSUM) {}
	Else
	{
		Return (0x00)
	}

	Return (0x02)
}
/* Fix - Remove LFLS Compile Warnings */
Return (Zero)
/* Fix End */
}

Do the same for Methods _Q15, _Q16, MXDS, _DSM (apply this fix for the methods referenced in the warnings that compiler returns)

Display Brightness:

Above «Device (LNKA)» add code to enable the brightness slider in the System Preferences

/* Fix - Enable Brightness Slider */
Device (PNLF)
{
	Name (_HID, EisaId ("APP0002"))
	Name (_CID, "backlight")
	Name (_UID, 0x0A)
	Name (_STA, 0x0B)
}
/* Fix End */

Device (LNKA)

Keyboard:

Enable Fn Keys on the keyboard, including shutdown menu when you press the power button

Device (KBD)
{
Name (_HID, EisaId ("PNP0303"))
Name (_CID, EisaId ("PNP030B")) /* Fix */
/* Fix - Enable Fn Keys on Keyboard */
Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x02)
	{
		"AAPL,has-embedded-fn-keys",
		Buffer (0x04)
		{
			0x01, 0x00, 0x00, 0x00
		}
	 }, Local0)
	 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	 Return (Local0)
}
/* Fix End */

Video:

Video Injection to enable brightness. Don’t forget to comment out the original _DSM method below, after you add a new one

Device (VID)
{
Name (_ADR, 0x00)
Name (_SUN, 0x0B) /* Fix */
OperationRegion (VPCG, PCI_Config, 0x00, 0x0100)
Field (VPCG, DWordAcc, NoLock, Preserve)
{
	Offset (0x64),
	VPWR,   8
}

Name (_S3D, 0x03)
Method (_INI, 0, NotSerialized)
{
	VUPS (0x02)
	Store (VCDL, VQDL)
	Store (VCDC, VQDC)
	Store (VCDT, VQD0)
	Store (VCDD, VQD1)
}

/* Fix - Video Driver Injection to Enable LCD Brightness */
Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x06)
	{		   					
		"AAPL,backlight-control",
		Buffer (0x04)
		{
			0x01, 0x00, 0x00, 0x00								
		},						
		"@0,backlight-control",
		Buffer (0x04)
		{
	   	  0x01, 0x00, 0x00, 0x00
		},
		"@0,pwm-info",
		Buffer (0x14)
		{
	   	 0x01, 0x14, 0x00, 0x64, 0xA8, 0x61, 0x00, 0x00,
	   	 0x1C, 0x02, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00,
	   	 0x00, 0x04, 0x00, 0x00
		}
	}, Local0)
  	 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  	 Return (Local0)
}
/* Fix End */

…
Method (_STA, 0, NotSerialized)
{
	If (_SB.PCI0.VID.ISOP ())
	{
		Return (0x0F)
	}

	If (And (RISA (0x118E), 0x02))
	{
		Return (0x0F)
	}
	Else
	{
		Return (0x00)
	}
}

/* Fix - Disable _DSM here for Video Injection Above
Method (_DSM, 4, NotSerialized)
{
	If (CMPB (Arg0, Buffer (0x10)
	{
		0xF8, 0xD8, 0x86, 0xA4, 0xDA, 0x0B, 0x1B, 0x47,
		0xA7, 0x2B, 0x60, 0x42, 0xA6, 0xB5, 0xBE, 0xE0
	}))
	{
		Return (NVOP (Arg0, Arg1, Arg2, Arg3))
	}
	Return (_SB.PCI0.VID._DSM (Arg0, Arg1, Arg2, Arg3))
}
Fix End */

Sleep:

Sleep works fine, including when you close the lid, except for the fact that one of the USB devices immediately wakes the machine. If the lid is closed, the computer goes to sleep and wakes back up in an endless cycle. This code fixes it. Add within the «Device (EHC2)» section, before «Device (URTH)»

(from http://osx86.co/f36/…dsdt-fix-t3849/)

Device (EHC2)
...
  /* Fix - Prevent EHC2 (Bluetooth, Camera, and Fingerprint) waking from Sleep */
  Method (_DSM, 4, NotSerialized)
  {
  Store (Package (0x02)
  {
	 "AAPL,clock-id",
	 Buffer (0x01)
	 {
		0x02
	 }
  }, Local0)
  DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  Return (Local0)
  }
  /* Fix End */

  Device (URTH)

Shutdown:

Shut down almost works, but the system fan and power button LED are not powered down, unless you use this code. Take a look at my DSDT file to see where it goes.

(from http://www.insanelym…ic=246491&st=20)

/* Fix - Shutdown */
OperationRegion (PMRS, SystemIO, 0x1030, 0x13)
Field (PMRS, ByteAcc, NoLock, Preserve)
  {
  , 4,
  SLPE, 1,
  }
/* Fix End */
Method (_PTS, 1, NotSerialized)
  {
  /* Fix - Shutdown cont */
  If (LEqual (Arg0, 0x05))
  {
  Store (Zero, SLPE)
  Sleep(0x10)
  }
  Else
  {
  /* Fix End  (also extra bracket below) */
  Store (0x01, Local0)
…
  _SB.PCI0.LPC.EC.HKEY.WGPS (Arg0)
  }
  } /* Fix */
}

Enable PCI root auto-detection for the bootloader:

Device (PCI0)
{
  Name (_BBN, 0x00)
  Name (_ADR, 0x00)
  /* Fix - UID for PCI root auto-detection */
  Name (_UID, Zero)
  /* Fix End */

HPET Fixes:

Note part is commented out, the other part is added

Device (HPET)
{
  Name (_HID, EisaId ("PNP0103"))
  Name (_CID, EisaId ("PNP0C01")) /* Fix minor */
  Method (_STA, 0, NotSerialized)
  {
  /* Fix - HPET fix
  If (LAnd (WNTF, LNot (WXPF)))
  {
	 Return (0x00)
  }
  Else
  {
  */	
  Return (0x0F)
  /* }

  Return (0x00)
  Fix End */
  }

  Name (_CRS, ResourceTemplate ()
  {
  /* Fix - HPET fix */
  IRQNoFlags ()
	 {0}
  IRQNoFlags ()
	 {2}
  IRQNoFlags ()
	 {8}
  /* Fix End */
  Memory32Fixed (ReadOnly,
	 0xFED00000,		 // Address Base
	 0x00000400,		 // Address Length
  )
  })
  }

RTC:

Comment out the IRQNoFlags

Device (RTC)
{
  Name (_HID, EisaId ("PNP0B00"))
  Name (_CRS, ResourceTemplate ()
  {
  IO (Decode16,
	 0x0070,			 // Range Minimum
	 0x0070,			 // Range Maximum
	 0x01,			   // Alignment
	 0x02,			   // Length
	 )
  /* Fix - RTC fix
  IRQNoFlags ()
	 {8}
  Fix End */
  })
}

AC Adapter:

Recognize AC adapter (not technically necessary when using VoodooBattery.kext, but a good idea anyway)

Device (AC)
{
  Name (_HID, "ACPI0003")
  Name (_UID, 0x00)
  /* Fix - Enable AppleACAdapter driver */
  Name (_PRW, Package (0x02)
  {
  0x18,
  0x03
  })
  /* Fix End */
  Name (_PCL, Package (0x01)

Minor Fixes:

Device (PIC)
{
  Name (_HID, EisaId ("PNP0000"))
  Name (_CRS, ResourceTemplate ()
  {
  IO (Decode16,
	 0x0020,			 // Range Minimum
	 0x0020,			 // Range Maximum
	 0x01,			   // Alignment
	 0x02,			   // Length
	 )
  IO (Decode16,
	 0x00A0,			 // Range Minimum
	 0x00A0,			 // Range Maximum
	 0x01,			   // Alignment
	 0x02,			   // Length
	 )
  IO (Decode16,
	 0x04D0,			 // Range Minimum
	 0x04D0,			 // Range Maximum
	 0x01,			   // Alignment
	 0x02,			   // Length
	 )
  /* Fix minor
  IRQNoFlags ()
	 {2} */
  })
}
Device (TIMR)
{
  Name (_HID, EisaId ("PNP0100"))
  Name (_CRS, ResourceTemplate ()
  {
  IO (Decode16,
	 0x0040,			 // Range Minimum
	 0x0040,			 // Range Maximum
	 0x01,			   // Alignment
	 0x04,			   // Length
	 )
  /* Fix minor
  IRQNoFlags ()
	 {0} */
  })
}

DTGP:

Finally, you must add this method, which enables several of the other fixes above. Put it before «Name (WAKI,»

/* Fix - DTGP method  - supporting other fixes */
Method (DTGP, 5, NotSerialized)
{
  If (LEqual (Arg0, Buffer (0x10)
  {
  /* 0000 */	0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  /* 0008 */	0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  }))
  {
  If (LEqual (Arg1, One))
  {
	 If (LEqual (Arg2, Zero))
	 {
		Store (Buffer (One)
		{
		   0x03
		}, Arg4)
		Return (One)
	 }

	 If (LEqual (Arg2, One))
	 {
		Return (One)
	 }
  }
  }

  Store (Buffer (One)
  {
  0x00
  }, Arg4)
  Return (Zero)
}
/* Fix End */

Name (WAKI, Package (0x02)

This should help you with custom DSDTs for other Thinkpad models as well. Goodluck!

T510 DSDT.zip

  • #1

Hi,

I have problems with sleep mode, sometimes my pc reboot when I click sleep, sometimes I get «hibernate image is too old» message. I tried to erase the image etc. but nothing work «every day».

I think this is related to the DSDT compile warnings. Every solution to fix them I found didn’t work.

I’m from Germany, sorry my english is not very well.

My hardware:

  • Motherboard: Asus P5Q Premium (P45, ICH10R)
    Processor: Intel Core2Quad Q9550
    Memory: 4GB OCZ DDR2-1066
    Graphics Card: NVIDIA GeForce 8800GT 1GB VRAM
    Sound Card: Creative X-Fi Xtreme Music PCIe(CA0106 Chipset)

Everything work, except the sound card I have only 2 channels, but this is not necessary.

I hope someone could help me, I don’t understand the DSDT file really.

Here are the warnings:

Code:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20091214 [Dec 16 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 4.0

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10125:         Method (VGET, 1, NotSerialized)
Warning  1088 -                                                Not all control paths return a value ^  (VGET)

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10170:         Method (TGET, 1, NotSerialized)
Warning  1088 -                                                Not all control paths return a value ^  (TGET)

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10232:         Method (FGET, 1, NotSerialized)
Warning  1088 -                                                Not all control paths return a value ^  (FGET)

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10268:             Store (VGET (Local0), Local1)
Warning  1093 -                                            Called method may not always return a value ^ 

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10310:             Store (TGET (Local0), Local1)
Warning  1093 -                                            Called method may not always return a value ^ 

/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10343:             Store (FGET (Local0), Local1)
Warning  1093 -                                            Called method may not always return a value ^ 

ASL Input:  /Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl - 11079 lines, 354509 bytes, 5080 keywords
AML Output: /Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/./dsdt.aml - 40690 bytes, 1062 named objects, 4018 executable opcodes

Compilation complete. 0 Errors, 6 Warnings, 0 Remarks, 70 Optimizations

Here are the parts of dsdt.dsl that couses the warnings:

Line 10125 ff.:

Code:

Method (VGET, 1, NotSerialized)
        {
            If (LEqual (Arg0, Zero))
            {
                Return (^^SIOR.HWV0 ())
            }

            If (LEqual (Arg0, One))
            {
                Return (^^SIOR.HWV3 ())
            }

            If (LEqual (Arg0, 0x02))
            {
                Return (^^SIOR.HWV4 ())
            }

            If (LEqual (Arg0, 0x03))
            {
                Return (^^SIOR.HWV1 ())
            }
        }

Line 10170 ff.:

Code:

Method (TGET, 1, NotSerialized)
        {
            If (LEqual (Arg0, Zero))
            {
                Return (^^SIOR.HWT1 ())
            }

            If (LEqual (Arg0, One))
            {
                Return (^^SIOR.HWT0 ())
            }
        }

Line 10232 ff.:

Code:

Method (FGET, 1, NotSerialized)
        {
            If (LEqual (Arg0, Zero))
            {
                Return (^^SIOR.HWF1 ())
            }

            If (LEqual (Arg0, One))
            {
                Return (^^SIOR.HWF0 ())
            }

            If (LEqual (Arg0, 0x02))
            {
                Return (^^SIOR.HWF3 ())
            }

            If (LEqual (Arg0, 0x03))
            {
                Return (^^SIOR.HWF4 ())
            }

            If (LEqual (Arg0, 0x04))
            {
                Return (^^SIOR.HWF2 ())
            }
        }

Line 10268 ff.:

Code:

Method (RVLT, 1, NotSerialized)
        {
            And (Arg0, 0xFFFF, Local0)
            Store (VGET (Local0), Local1)
            Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), Zero)), 
                Local2)
            Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), One)), 
                Local3)
            Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), 0x02)), 
                Local4)
            Multiply (Local1, Add (Local2, Local3), Local5)
            Divide (Local5, Local3, , Local5)
            Add (Local5, Local4, Local5)
            Return (Local5)
        }

Line 10310 ff.:

Code:

Method (RTMP, 1, NotSerialized)
        {
            And (Arg0, 0xFFFF, Local0)
            Store (TGET (Local0), Local1)
            Return (Local1)

Line 10343 ff.:

Code:

Method (RFAN, 1, NotSerialized)
        {
            And (Arg0, 0xFFFF, Local0)
            Store (FGET (Local0), Local1)
            Return (Local1)

  • #2

I have an Asus P5Q SE and work fine. Could you post your file DSDT.aml to compare with me?

Sorry my bad english, I am spanish

  • #3

Here is my DSDT.aml

  • DSDT.aml

    39.7 KB

    · Views: 488

  • #4

  • dsdt.ZoCK3R1608.zip

    16 KB

    · Views: 447

  • #5

Thx^^

I used yout DSDT file few weeks and it works perfectly. Big Thx!
Sleep and Shutdown works without Panic now :-D

  • #6

Hi to all!

I recently built a Hackintosh. The system configuration is :

Motherboard : ASUS P5Q
CPU : Intel Q9450 Quad
RAM : 2x2GB (4GB) Corsair at 800MHz
HDD : Intel X-25M Postville SSD 40GB
GPU : NVIDIA GT220 512MB DDR2

I installed using iBoot and Mac OS X Retail Install DVD (bought it for €32 here in Greece). Installation went ok. Installed Multibeast (Easybeast) with the least choices. My onboard network adapter was working ok until I updated Mac OS X Snow Leopard to version 10.6.7. Now networking does not work. :(

Shutdown —> Works
Restart —> Works
Sleep —> Not Working (I really need it)
Onboard Sound —> Not working
NVIDIA GT220 —> Working with Quartz Extreme enabled
HDMI of GT220 —> Working but I cannot passthrough audio from there (I really need it! Its gonna be my HTPC machine)

Can you please help me to solve those problems? :(
I am not familiar with DSDT files, so… where can I start? Can I «insert» my DSDT file in this installation or I have to install right from the start ?

Thanks and… sorry for my bad English too! :) I’m from Greece!

:)

Thank you guys!

  • #7

ultraxmode said:

Hi to all!

I recently built a Hackintosh. The system configuration is :

Motherboard : ASUS P5Q
CPU : Intel Q9450 Quad
RAM : 2x2GB (4GB) Corsair at 800MHz
HDD : Intel X-25M Postville SSD 40GB
GPU : NVIDIA GT220 512MB DDR2

I installed using iBoot and Mac OS X Retail Install DVD (bought it for €32 here in Greece). Installation went ok. Installed Multibeast (Easybeast) with the least choices. My onboard network adapter was working ok until I updated Mac OS X Snow Leopard to version 10.6.7. Now networking does not work. :(

Shutdown —> Works
Restart —> Works
Sleep —> Not Working (I really need it)
Onboard Sound —> Not working
NVIDIA GT220 —> Working with Quartz Extreme enabled
HDMI of GT220 —> Working but I cannot passthrough audio from there (I really need it! Its gonna be my HTPC machine)

Can you please help me to solve those problems? :(
I am not familiar with DSDT files, so… where can I start? Can I «insert» my DSDT file in this installation or I have to install right from the start ?

Thanks and… sorry for my bad English too! :) I’m from Greece!

:)

Thank you guys!

ive got the exactly same mobo and my onboard sound and ethernet working.
check in the bios if you have enabled the ethernet then install the kext i attachet to this post ( thanks to marionez) best way to import is kexthelper. For the sound i used the other kext i attached ALC1200_1063 (thanks to marionez too)
this two worked for me… but please help me i cant restart and shut down how did you fix that? can you post your dsdt?
edit: the sound is for the onboard soundcard on asus p5q

  • ALC1200_1063.zip

    1.7 MB

    · Views: 283

  • AttansicL1eEthernet_0418_64.zip

    56.3 KB

    · Views: 241

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.

Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

ACER Aspire 5520G ACPI & other problem

Т.к. почти все проблемы решил в других топиках по сабжу, то в этом топике упор на ACPI (чтоб не сорить в чужих =))
БЫЛО:

Код: Выделить всё

[root@fbook ~/acpi]# iasl acer-aspire-5520g_orig.asl
<skip>
acer-aspire-5520g_orig.asl   224:     Method (_WAK, 1, NotSerialized)
Warning  1079 -                                   ^ Reserved method must return a value (_WAK)

acer-aspire-5520g_orig.asl   834:                     Name (_T_0, 0x00)
Error    4081 -                           Use of reserved word ^  (_T_0)

acer-aspire-5520g_orig.asl   840:                             Name (_T_1, 0x00)
Error    4081 -                                   Use of reserved word ^  (_T_1)

acer-aspire-5520g_orig.asl   879:                             Name (_T_2, 0x00)
Error    4081 -                                   Use of reserved word ^  (_T_2)

acer-aspire-5520g_orig.asl   926:                         Name (_T_3, 0x00)
Error    4081 -                               Use of reserved word ^  (_T_3)

acer-aspire-5520g_orig.asl   952:             Method (Z004, 0, NotSerialized)
Warning  1086 -     Not all control paths return a value ^  (Z004)

acer-aspire-5520g_orig.asl  1569:                     Name (_T_0, 0x00)
Error    4081 -                           Use of reserved word ^  (_T_0)

acer-aspire-5520g_orig.asl  1625:             Method (_WED, 1, NotSerialized)
Warning  1086 -     Not all control paths return a value ^  (_WED)

acer-aspire-5520g_orig.asl  1625:             Method (_WED, 1, NotSerialized)
Warning  1079 -      Reserved method must return a value ^  (_WED)

acer-aspire-5520g_orig.asl  1631:                         Return (Z004 ())
Warning  1091 -          Called method may not always return a value ^

acer-aspire-5520g_orig.asl  1669:             Method (WMBD, 3, NotSerialized)
Warning  1086 -     Not all control paths return a value ^  (WMBD)

acer-aspire-5520g_orig.asl  2324:                 Name (_HID, "*pnp0c14")
Error    4001 -                   String must be entirely alphanumeric ^  (*pnp0c14)

acer-aspire-5520g_orig.asl  2337:                 Method (WMNV, 3, NotSerialized)
Warning  1086 -         Not all control paths return a value ^  (WMNV)

acer-aspire-5520g_orig.asl  2441:                 Name (_HID, "*pnp0c14")
Error    4001 -                   String must be entirely alphanumeric ^  (*pnp0c14)

acer-aspire-5520g_orig.asl  2941:                     Method (_EJ0, 0, NotSerialized)
Warning  1076 -            Reserved method has too few arguments ^  (_EJ0 requires 1)

ASL Input:  acer-aspire-5520g_orig.asl - 7105 lines, 241244 bytes, 2967 keywords
Compilation complete. 7 Errors, 8 Warnings, 0 Remarks, 719 Optimizations

СТАЛО (временно):

Код: Выделить всё

[root@fbook ~/acpi]# iasl acer-aspire-5520g.asl
<skip>
ASL Input:  acer-aspire-5520g.asl - 7110 lines, 241499 bytes, 2972 keywords
AML Output: /tmp/acpidump.aml - 24477 bytes 876 named objects 2096 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 729 Optimizations

собственно интересует исправление ворнинга в последнем методе. что это такое я знаю. но в гуглеманах встречал только в виде:

или

а если и в таком виде, как у меня, то только в контексте ошибок =)
пока поставил просто единичку не вникая))) но это не дело. может кто знает что да как?

з.ы. окончательный дифф выложу позже.

…no lords, no gods, no masters…


Хостинговая компания Host-Food.ru

Хостинг HostFood.ru

 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/


Аватара пользователя

Pattern

сержант
Сообщения: 180
Зарегистрирован: 2007-08-30 23:45:54
Откуда: Санкт-Петербург
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

Pattern » 2008-07-24 0:53:03

А на сам ASL можно глянуть? Имхо, компилятор ругается не на сам метод, а на что то другое

Your bunny wrote: its not a bug, this is a feature, actually… ;)


Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

freak » 2008-07-24 1:00:24

Pattern писал(а):А на сам ASL можно глянуть? Имхо, компилятор ругается не на сам метод, а на что то другое

конечно

Вложения
acer-aspire-5520g_orig.asl.gz
(20.33 КБ) 35 скачиваний

…no lords, no gods, no masters…


Аватара пользователя

Pattern

сержант
Сообщения: 180
Зарегистрирован: 2007-08-30 23:45:54
Откуда: Санкт-Петербург
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

Pattern » 2008-07-24 1:01:34

Спасибо, посмотрю — скажу свои мысли

Your bunny wrote: its not a bug, this is a feature, actually… ;)


Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

freak » 2008-07-24 1:10:11

только что смотрел свой топик и заметил это:

ппц)))))
значит правильные сделал выводы не сильно вникая в маны)) ужс)

…no lords, no gods, no masters…


Аватара пользователя

Pattern

сержант
Сообщения: 180
Зарегистрирован: 2007-08-30 23:45:54
Откуда: Санкт-Петербург
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

Pattern » 2008-07-24 1:23:35

Тэкс, ну во первых, так как это метод, он не может выглядеть так

это не определение имени, для метода должна быть такая запись

Ну а что конкретно там должно быть….. Тебе по длинее или по короче? ;-)
в общем — это ман

6.3.3 _EJx (Eject)
These control methods are optional and are supplied for devices that support a software-controlled VCR-style ejection mechanism or that require an action be performed such as isolation of power/data lines before the device can be removed from the system. To support warm (system is in a sleep state) and hot (system is in S0) removal, an _EJx control method is listed for each sleep state from which the device supports removal, where x is the sleeping state supported. For example, _EJ0 indicates the device supports hot removal; _EJ1–EJ4 indicate the device supports warm removal.
For hot removal, the device must be immediately ejected when OSPM calls the _EJ0 control method. The _EJ0 control method does not return until ejection is complete. After calling _EJ0, OSPM verifies the device no longer exists to determine if the eject succeeded. For _HID devices, OSPM evaluates the _STA method. For _ADR devices, OSPM checks with the bus driver for that device.
For warm removal, the _EJ1–_EJ4 control methods do not cause the device to be immediately ejected. Instead, they set proprietary registers to prepare the hardware to eject when the system goes into the given sleep state. The hardware ejects the device only after OSPM has put the system in a sleep state by writing to the SLP_EN register. After the system resumes, OSPM calls _STA to determine if the eject succeeded.
The _EJx control methods take one parameter to indicate whether eject should be enabled or disabled:
1–Hot eject or mark for ejection
0–Cancel mark for ejection (EJ0 will never be called with this value)
A device object may have multiple _EJx control methods. First, it lists an EJx control method for the preferred sleeping state to eject the device. Optionally, the device may list an EJ4 control method to be used when the system has no power (for example, no battery) after the eject. For example, a hot-docking notebook might list _EJ0 and _EJ4.

А это 2 вида примера

Код: Выделить всё

Name(_ADR,0x000200 02)
Method(_EJ0, 1) { // Remove all power to device}

очень похоже на твой пример

Код: Выделить всё

Method(_EJ0, 1) // Successful ejection sequence
{
    Store(Zero, ^^S3LE) // Turn off Ejection Progress LED
}

Собственно, в твоём конкретном случае этот код

Код: Выделить всё

                    Method (_EJ0, 0, NotSerialized)
                    {
                        Return (0x01)
                    }

нужно поменять на следующую запись

Попробуй, должно помочь

Your bunny wrote: its not a bug, this is a feature, actually… ;)


Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

freak » 2008-07-24 1:39:46

Pattern писал(а):это не определение имени, для метода должна быть такая запись

я знаю. просто обрезал. суть в аргументах.

Pattern писал(а):Ну а что конкретно там должно быть….. Тебе по длинее или по короче? ;-)
в общем — это ман

ну что-то вроде я читал. суть в откл.питания для хотплагии)))

Pattern писал(а):Method (_EJ0, 0)
{
Return (0x01)
}

так пробовал. ругается. при чем см.выше. ругается на маркер «0».
я поставил пока «1», но боюсь))

The _EJx control methods take one parameter to indicate whether eject should be enabled or disabled:
1–Hot eject or mark for ejection
0–Cancel mark for ejection (EJ0 will never be called with this value)

1 — можно выдергивать))
0 — низя! но блин при этом никогда не вызывается с этим значением! ппц. накрутили код. думаю простым изменением 0 -> 1 не прокатит. разве что только компилятору)) тут надо глобально вникать((

…no lords, no gods, no masters…


paradox

проходил мимо
Сообщения: 11620
Зарегистрирован: 2008-02-21 18:15:41

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

paradox » 2008-07-24 1:48:58

тут надо глобально вникать((

вово
лучше пофиксите весь acpi
чем asl для каждого компа менять
заипетесь))


Аватара пользователя

Pattern

сержант
Сообщения: 180
Зарегистрирован: 2007-08-30 23:45:54
Откуда: Санкт-Петербург
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

Pattern » 2008-07-24 2:03:11

paradox писал(а):лучше пофиксите весь acpi
чем asl для каждого компа менять
заипетесь))

Ну с чего то же надо начинать =)
freak, ну если компилятор требует

то поставь ты ему эту единицу и голову не ломай. Тем более, если при правильной записи, если он ругается на 0, а всего он может иметь 2 значения: 0 и 1, то ничего не остаётся, как поставить 1 =)
Не думаю, что что то очень мегастрашное случится =)

Your bunny wrote: its not a bug, this is a feature, actually… ;)


Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

freak » 2008-07-24 8:11:25

Pattern писал(а):freak, ну если компилятор требует

то поставь ты ему эту единицу и голову не ломай. Тем более, если при правильной записи, если он ругается на 0, а всего он может иметь 2 значения: 0 и 1, то ничего не остаётся, как поставить 1 =)
Не думаю, что что то очень мегастрашное случится =)

ну я пока и поставил «1». вот только мегастрашное то, что этот маркер говорит о готовности к горячему отключению. как бы менять на противоположный….. вдруг флешку спалю?))
а вообще, пришла тут мысль, в одном из топиков я упоминал о постоянном горении индикатора обращения к диску при подключении SD-флешки. хотя даже не монтировал ее. и судя по ману за это тоже отвечают _EJx.

…no lords, no gods, no masters…


Аватара пользователя

Pattern

сержант
Сообщения: 180
Зарегистрирован: 2007-08-30 23:45:54
Откуда: Санкт-Петербург
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

Pattern » 2008-07-24 11:26:39

Очень даже может быть. Но на самом деле надо смотреть ASL с dmesg’ом и анализировать, где какой девайс прописан в ASL’е. Например, в моём такая запись

Код: Выделить всё

        Device (LID)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Method (_LID, 0, NotSerialized)
            {
                Return (LNot (_SB.PCI0.SMB.GM3C))
            }
        }

определяет дисплей ноута. Вот и тебе нужно определить, где у тебя описание SD. Однако это достаточно муторная работка

Your bunny wrote: its not a bug, this is a feature, actually… ;)


Аватара пользователя

freak

сержант
Сообщения: 183
Зарегистрирован: 2008-07-16 9:30:18
Откуда: UA
Контактная информация:

Re: ACER Aspire 5520G ACPI & other problem

Непрочитанное сообщение

freak » 2008-07-24 11:36:30

Pattern писал(а):Очень даже может быть. Но на самом деле надо смотреть ASL с dmesg’ом и анализировать, где какой девайс прописан в ASL’е. Например, в моём такая запись

Код: Выделить всё

        Device (LID)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Method (_LID, 0, NotSerialized)
            {
                Return (LNot (_SB.PCI0.SMB.GM3C))
            }
        }

определяет дисплей ноута. Вот и тебе нужно определить, где у тебя описание SD. Однако это достаточно муторная работка

я уже понял, что муторная. но за меня никто не сделает. «ответа комьюнити 3 года ждут» (с) ))
ничего. потихоньку доковыряю =)

…no lords, no gods, no masters…


@ZombieTheBest hi, I run the ./Deploy.sh -d , the log show complete DSDT.dsl and SSDT-1.dsl errors. How to fix it ?

1. DSDT.dsl error:
patch complete: 8 patches, 8 changes, 0 rejects
patched result written to ‘/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl’

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20160422-64(RM)
Copyright (c) 2000 — 2016 Intel Corporation

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 4026: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 11172: Store (STSX, Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 11275: Method (THDS, 1, Serialized)
Warning 3115 — Not all control paths return a value ^ (THDS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12384: Store (DAT1, Local1)
Warning 3144 — Method Local is set but never used ^ (Local1)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12556: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12669: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12718: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12728: Store (D0D3, Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12759: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12813: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12826: Method (_PS2, 0, Serialized) // _PS2: Power State 2
Warning 3115 — Not all control paths return a value ^ (_PS2)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12839: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13067: Method (SPPS, 2, Serialized)
Warning 3115 — Not all control paths return a value ^ (SPPS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13250: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13295: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13365: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13528: Method (RDCA, 5, Serialized)
Warning 3115 — Not all control paths return a value ^ (RDCA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13636: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13670: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13688: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13695: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13699: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13704: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13711: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13720: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13782: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13816: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13834: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13841: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13845: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13850: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13857: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13866: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13928: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13962: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13980: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13987: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13991: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13996: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14003: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14012: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14126: Store (PMEC, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14138: Store (PMEC, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14357: Device (I2C0)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14418: Device (I2C1)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14479: Device (I2C2)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14540: Device (I2C3)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14601: Device (I2C4)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14662: Device (I2C5)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14723: Device (SPI0)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14783: Device (SPI1)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14843: Device (UA00)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14923: Device (UA01)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15003: Device (UA02)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15172: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15278: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15375: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15474: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16308: Store (CLR, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16413: Store (D0D3, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16426: Store (D0D3, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16585: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16592: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16595: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16691: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16698: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16701: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16768: Method (XDSM, 4, NotSerialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17022: Add (One, ShiftLeft (Local2, One, Local2), Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17545: Method (SPL1, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (SPL1)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17583: Method (GUAM, 1, Serialized)
Warning 3115 — Not all control paths return a value ^ (GUAM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17751: If (CondRefOf (_OSI, Local0))
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18511: Store (_SB.STDC (_SB.PCI0.GPCB (), Zero, TBTD (TBSE), TBTF (TBSE), 0x05), Local7)
Warning 3122 — Called method may not always return a value ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18692: Method (_E42, 0, NotSerialized) // _Exx: Edge-Triggered GPE
Warning 3115 — Not all control paths return a value ^ (_E42)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18981: Method (STDC, 5, Serialized)
Warning 3115 — Not all control paths return a value ^ (STDC)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 19474: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 19803: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20131: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20459: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20789: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21118: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21446: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21774: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21941: Scope (_SB.PCI0.RP09.PXSX)
Error 6085 — Object not found or not accessible from scope ^ (_SB.PCI0.RP09.PXSX)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21941: Scope (_SB.PCI0.RP09.PXSX)
Error 6116 — Forward references from Scope operator not allowed ^ (_SB.PCI0.RP09.PXSX)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22104: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22433: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22761: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23089: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23417: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23745: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24073: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24401: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24729: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25057: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25385: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25713: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 28845: If (LOr (^^PCI0.RP09.SSD0.PAHC (), ^^PCI0.RP09.SSD0.PNVM ()))
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.PAHC)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 28845: If (LOr (^^PCI0.RP09.SSD0.PAHC (), ^^PCI0.RP09.SSD0.PNVM ()))
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.PNVM)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 29062: If (^^PCI0.RP09.SSD0.WIST ())
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.WIST)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 30357: Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
Warning 3115 — Not all control paths return a value ^ (_CRS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 30357: Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
Warning 3107 — Reserved method must return a value ^ (Buffer required for _CRS)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31018: Divide (Arg2, 0x04, Local3, Local4)
Warning 3144 — Method Local is set but never used ^ (Local4)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31439: If (CondRefOf (_OSI, Local0))
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31542: Store (DCLS, Local1)
Warning 3144 — Method Local is set but never used ^ (Local1)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31546: Store (^^^LID0._LID (), Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 32289: Acquire (PATM, 0x0064)
Warning 3130 — Result is not used, possible operator timeout will be missed ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 32986: Divide (Local0, 0x64, Local5, Local3)
Warning 3144 — Method Local is set but never used ^ (Local5)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 33860: Store (ECGC (), Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 34155: If (And (Local0, One, Local1))
Warning 3144 — Method Local is set but never used ^ (Local1)

ASL Input: /Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl — 34292 lines, 1058092 bytes, 16579 keywords

Compilation complete. 5 Errors, 105 Warnings, 180 Remarks, 238 Optimizations, 2 Constants Folded
[ Note ] syscl_SSD was not applied as it was causing errors..

2. SSDT-1.dsl errors
patch complete: 2 patches, 1 changes, 0 rejects
patched result written to ‘/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl’

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20160422-64(RM)
Copyright (c) 2000 — 2016 Intel Corporation

Compiler aborting due to parser-detected syntax error(s)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 101: }
Error 6126 — syntax error, unexpected ‘}’ ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 122: If (LGreater (DFUD, Zero))
Error 6126 — syntax error, unexpected PARSEOP_IF ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 123: {
Error 6126 — syntax error, unexpected ‘{‘ ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 127: }
Error 6126 — syntax error, unexpected ‘}’ ^

/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 157:
Error 6126 — syntax error, unexpected $end and premature End-Of-File

ASL Input: /Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl — 157 lines, 6080 bytes, 77 keywords

Compilation complete. 5 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
[ Note ] rename_DSM was not applied as it was causing errors..

This is my ACPI/origin :
origin.zip

View previous topic :: View next topic  
Author Message
_Stevie_
n00b
n00b

Joined: 20 Jan 2008
Posts: 7

PostPosted: Wed Feb 06, 2008 6:51 pm    Post subject: Reply with quote

^^^^^^^^^^^^^^^^

this is spam, delete account
Back to top

View user's profile Send private message

_Stevie_
n00b
n00b

Joined: 20 Jan 2008
Posts: 7

PostPosted: Thu Feb 07, 2008 3:48 am    Post subject: Reply with quote

hi mimosinnet!

unfortuneately the «package return fix» does only work for

the first function.

im still not able to solve these:

Code:
Intel ACPI Component Architecture

ASL Optimizing Compiler version 20061109 [May 16 2007]

Copyright (C) 2000 — 2006 Intel Corporation

Supports ACPI Specification Revision 3.0a

dsdt.dsl   218:         Method (_L10, 0, NotSerialized)

Warning  1086 —                    ^ Not all control paths return a value (_L10)

dsdt.dsl  2886:                     Method (NVIF, 3, NotSerialized)

Warning  1086 —                                ^ Not all control paths return a value (NVIF)

dsdt.dsl  3067:                     Method (_EJ0, 0, NotSerialized)

Warning  1076 —                                ^ Reserved method has too few arguments (_EJ0 requires 1)

dsdt.dsl  4544:                 Store (_SB.PCI0.LPC0.PMRD (0xFA), Local0)

Warning  1098 —                 Statement is unreachable ^

ASL Input:  dsdt.dsl — 4971 lines, 163408 bytes, 2323 keywords

AML Output: dsdt.aml — 17714 bytes 583 named objects 1740 executable opcodes

Compilation complete. 0 Errors, 4 Warnings, 0 Remarks, 544 Optimizations

here the code:

http://ubuntuusers.de/paste/31886/

Back to top

View user's profile Send private message

mimosinnet
l33t
l33t

Joined: 10 Aug 2006
Posts: 705
Location: Barcelona, Spain

PostPosted: Sat Feb 16, 2008 9:29 am    Post subject: Reply with quote

Steve,

If I understand correctly, for the first error «Not all control paths return a value» in the code, you included the return lines shown below (the ones without numbers) and the warning still appears. If this is the case, I am very sorry I do not know what else you should do.

Code:
213        Method (_L10, 0, NotSerialized)

  214        {

  215            Store (0xB0, DBUG)

  216            Acquire (_GPE.GLCK, 0xFFFF)

  217            Store (_SB.PCI0.LPC0.PMRD (0xAB), Local0)

  218            Store (_SB.PCI0.LPC0.PMRD (0xAF), Local4)

  219            And (Local4, 0x04, Local7)

[…]

  247                Else

  248                {

  249                   _SB.Z004 (0x51)

  250                }

                       Return (Package (0x02)

                       {

                        0x00,

                        0x00

                        })

  251            }

Back to top

View user's profile Send private message

_Stevie_
n00b
n00b

Joined: 20 Jan 2008
Posts: 7

PostPosted: Sat Feb 16, 2008 4:50 pm    Post subject: Reply with quote

hi mimosinnet!

Yup thats right, I think theres a different fix needed there.

But thanks for your help!

Best,

Stevie

Back to top

View user's profile Send private message

sonicbhoc
Veteran
Veteran

Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Mar 19, 2008 2:45 pm    Post subject: Reply with quote

Hey, my computer displays 2 batteries and I only have 1 installed. The second battery indicator is useless and is always wrong…
_________________
I’m too lazy to keep this stupid signature up to date, so here’s something more interesting:

My friend Hetdegon can draw if you ask me.

Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top

View user's profile Send private message

boda2004
n00b
n00b

Joined: 28 Mar 2006
Posts: 10

PostPosted: Sat Mar 29, 2008 2:02 pm    Post subject: Reply with quote

sonicbhoc wrote:
Hey, my computer displays 2 batteries and I only have 1 installed. The second battery indicator is useless and is always wrong…



Hope that will help.

Back to top

View user's profile Send private message

P0w3r3d
n00b
n00b

Joined: 13 Jan 2005
Posts: 54

PostPosted: Wed Apr 09, 2008 3:40 pm    Post subject: Reply with quote

hi , I got this output when tried to compile my DSDT (on HAIER H53):

Quote:

Intel ACPI Component Architecture

ASL Optimizing Compiler version 20060912 [Apr 6 2008]

Copyright (C) 2000 — 2006 Intel Corporation

Supports ACPI Specification Revision 3.0a

dsdt.dsl 20: Name (_T00, 0x00)

Warning 1097 — ^ Unknown reserved name (_T00)

dsdt.dsl 142: Return (WBYT (Local1, Local0, Local2))

Error 4059 — Called method returns no value ^

dsdt.dsl 158: Return (WWRD (Local1, Local0, Local2))

Error 4059 — Called method returns no value ^

dsdt.dsl 1160: Return (NXTD)

Warning 1098 — Statement is unreachable ^

dsdt.dsl 2347: Acquire (MUT0, 0x0FFF)

Warning 1103 — Possible operator timeout is ignored ^

dsdt.dsl 4012: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4026: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4041: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4056: Acquire (MUTE, 0x0FFF)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4070: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4085: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

dsdt.dsl 4100: Acquire (MUTE, 0x03E8)

Warning 1103 — ^ Possible operator timeout is ignored

ASL Input: dsdt.dsl — 7380 lines, 219425 bytes, 3063 keywords

Compilation complete. 2 Errors, 10 Warnings, 0 Remarks, 878 Optimizations

any idea about those errors? I can’t find clues

Back to top

View user's profile Send private message

kreon28
Apprentice
Apprentice

Joined: 08 Jul 2006
Posts: 165

PostPosted: Sun May 11, 2008 12:29 pm    Post subject: Reply with quote

In a Wiki chapter I found out that I can use windows dsdt.dsl :

Quote:
Hopefully you ended up with a fully readable dsdt.dsl file that you could move into your Gentoo install.

That’s great but where should I move that file, just to let Gentoo use it instead of my old broken file?

Back to top

View user's profile Send private message

thegigistouch
n00b
n00b

Joined: 11 Jun 2008
Posts: 1
Location: Strasbourg, France

PostPosted: Wed Jun 11, 2008 3:41 pm    Post subject: Reply with quote

Hi everybody,

I’ve got an HP Compaq 6715 b (ATI SB 600 chip, ATI Express 1200, Sempron 3300+) and installing linux on this is making me totally crazy!

I tried many distribs, and it’s all the time the same problem…

When I boot without any parameter, the screen goes black and the system hang while booting.

With acpi=off, the system boots quickly (about 1 min 30) and everyhting is working great, without power management (fans don’t stop turning loudly).

With noapic or noapic nolapic the system work great, the power management is great, but the system is veeeeryyyy slooooow (about 4 minutes to start up). The Gnome applet showing cpu frequency seems to work correctly too (from 800 mhz = 40 % to 2 ghz = 100%).

I’ve got a buggy DSDT:

Code:

dsdt.dsl  2188:                             Return (C15F (0x00, Arg0))

Error    4059 —         Called method returns no value ^

dsdt.dsl  2287:                             Return (C15F (0x01, Arg0))

Error    4059 —         Called method returns no value ^

dsdt.dsl  2310:                             Return (C15F (0x02, Arg0))

Error    4059 —         Called method returns no value ^

dsdt.dsl  2333:                             Return (C15F (0x03, Arg0))

Error    4059 —         Called method returns no value ^

dsdt.dsl  2356:                             Return (C15F (0x04, Arg0))

Error    4059 —         Called method returns no value ^

dsdt.dsl  7036:                         Wait (_SB.C161, 0x10)

Warning  1103 —        Possible operator timeout is ignored ^

dsdt.dsl 10472:                         If (LEqual (C315 (0x00), 0x01))

Warning  1091 —                                        ^ Called method may not always return a value

dsdt.dsl 10496:                         If (LEqual (C315 (0x01), 0x01))

Warning  1091 —                                        ^ Called method may not always return a value

dsdt.dsl 11652:             Method (C315, 1, NotSerialized)

Warning  1086 —                        ^ Not all control paths return a value (C315)

ASL Input:  dsdt.dsl — 14466 lines, 531038 bytes, 6816 keywords

Compilation complete. 5 Errors, 4 Warnings, 0 Remarks, 2375 Optimizations

Could you please help me to debug this, I’m a totaly n00b in ASL, and totaly desperate about having a working system…

Don’t hesitate to ask me for more informations!

Thanks for helping! :D

thegigistouch

Back to top

View user's profile Send private message

twalter
Tux’s lil’ helper
Tux's lil' helper

Joined: 07 Apr 2004
Posts: 103
Location: Churchill, Canada

PostPosted: Thu Jul 31, 2008 10:40 pm    Post subject: Re: stores to undefined variables Reply with quote

eccerr0r wrote:
Anyone know what to do to fix sillyness like:

Code:
ouka.dsl   332:             Store (Local0, Local0)

Error    4049 —                         ^ Method local variable is not initialized (Local0)

This of course makes absolutely no sense… Has anyone figured out a way to figure out what this statement was initially trying to accomplish? Or what to do to fix something like this?

(This showed up on my Abit IS7 and Foxconn G9657MA motherboards, eerily similar errors. Both use Award BIOS I think.)

My Foxconn’s WOL doesn’t work (there seems to be another warning related to that) as well as hangs randomly on boot while detecting ACPI… wonderring if this is related…

It looks as if they were trying to push a value on the stack, doesn’t it?. It should be safe to comment it out, as local variables are destroyed on exit and I typically find these at the end of methods. (According to the spec from Intel which, I might add, is 631 pages of incomprehensible @!#$%!! :evil: It’s either poorly written or really well obfuscated.) My mobo uses an Award BIOS as well so I’ll assume that’s the common link. It may be possible to follow the methods backwards and see if they are expecting a return (as opposed to twiddling a local variable the way you would a global.)

— Todd

Back to top

View user's profile Send private message

kernelhacker
n00b
n00b

Joined: 18 Feb 2004
Posts: 27

PostPosted: Mon Sep 15, 2008 9:34 pm    Post subject: buggy dsdt on clevo 570ru notebook Reply with quote

I’ve got a rather buggy dsdt here with my Cybersystem Notebook which is a clevo 570ru barebone. At first compilation failed with a LOT of errors:

Code:
Maximum error count (200) exceeded

ASL Input:  d — 6335 lines, 222080 bytes, 2313 keywords

Compilation complete. 201 Errors, 0 Warnings, 0 Remarks, 2 Optimizations

Maximum error count (200) exceeded

Segmentation fault



changing

Code:
External (^CPU0._PPC)



to

Code:
    External (CPU0._PPC)



reduced the errors to «only» 12. But now i’m helpless :-(

Maybe someone can help me, the original dsdt.dsl file is here: http://www.stefanpokorny.de/dsdt.dsl and my patched version is here: http://www.stefanpokorny.de/dsdt.dsl.patched.

Output from «iasl -tc dsdt.dsl.patched» is here:

Code:
Intel ACPI Component Architecture

ASL Optimizing Compiler version 20080701 [Sep 15 2008]

Copyright (C) 2000 — 2008 Intel Corporation           

Supports ACPI Specification Revision 3.0a             

dsdt.dsl.patched   574:                     If (LGreater (^CPU0._PPC, Zero))

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   576:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)   

dsdt.dsl.patched   576:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   578:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 — Object not found or not accessible from scope ^  (^CPU0._PPC)   

dsdt.dsl.patched   578:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                  Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   583:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 — Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   583:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                  Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   585:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   585:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   603:                     Store (Local0, ^CPU0._PPC)

Error    4063 —       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   614:                         Store (Local0, ^CPU0._PPC)

Error    4063 —           Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   618:                         Store (Zero, ^CPU0._PPC)

Error    4063 —         Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched  6289:             Method (WMBB, 3, NotSerialized)

Warning  1086 —                                ^ Not all control paths return a value (WMBB)

ASL Input:  dsdt.dsl.patched — 6335 lines, 222079 bytes, 2313 keywords

Compilation complete. 12 Errors, 1 Warnings, 0 Remarks, 47 Optimizations

Any help is appreciated!

Thanks,

Stefan
_________________
signature temporarily disabled

Back to top

View user's profile Send private message

kernelhacker
n00b
n00b

Joined: 18 Feb 2004
Posts: 27

PostPosted: Sun Jan 04, 2009 10:07 am    Post subject: Re: buggy dsdt on clevo 570ru notebook Reply with quote

kernelhacker wrote:
I’ve got a rather buggy dsdt here with my Cybersystem Notebook which is a clevo 570ru barebone. At first compilation failed with a LOT of errors:

Code:
Maximum error count (200) exceeded

ASL Input:  d — 6335 lines, 222080 bytes, 2313 keywords

Compilation complete. 201 Errors, 0 Warnings, 0 Remarks, 2 Optimizations

Maximum error count (200) exceeded

Segmentation fault



changing

Code:
External (^CPU0._PPC)



to

Code:
    External (CPU0._PPC)



reduced the errors to «only» 12. But now i’m helpless :-(

Maybe someone can help me, the original dsdt.dsl file is here: http://www.stefanpokorny.de/dsdt.dsl and my patched version is here: http://www.stefanpokorny.de/dsdt.dsl.patched.

Output from «iasl -tc dsdt.dsl.patched» is here:

Code:
Intel ACPI Component Architecture

ASL Optimizing Compiler version 20080701 [Sep 15 2008]

Copyright (C) 2000 — 2008 Intel Corporation           

Supports ACPI Specification Revision 3.0a             

dsdt.dsl.patched   574:                     If (LGreater (^CPU0._PPC, Zero))

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   576:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)   

dsdt.dsl.patched   576:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   578:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 — Object not found or not accessible from scope ^  (^CPU0._PPC)   

dsdt.dsl.patched   578:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                  Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   583:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 — Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   583:                         Add (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                  Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   585:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —      Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   585:                         Subtract (^CPU0._PPC, One, ^CPU0._PPC)

Error    4063 —                       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   603:                     Store (Local0, ^CPU0._PPC)

Error    4063 —       Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   614:                         Store (Local0, ^CPU0._PPC)

Error    4063 —           Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched   618:                         Store (Zero, ^CPU0._PPC)

Error    4063 —         Object not found or not accessible from scope ^  (^CPU0._PPC)

dsdt.dsl.patched  6289:             Method (WMBB, 3, NotSerialized)

Warning  1086 —                                ^ Not all control paths return a value (WMBB)

ASL Input:  dsdt.dsl.patched — 6335 lines, 222079 bytes, 2313 keywords

Compilation complete. 12 Errors, 1 Warnings, 0 Remarks, 47 Optimizations

Any help is appreciated!

Thanks,

Stefan

Bump

Anybody here who can help me with this?

Thanks,

Stefan
_________________
signature temporarily disabled

Back to top

View user's profile Send private message

jetblack
Guru
Guru

Joined: 15 Jan 2003
Posts: 340
Location: Evanston, IL, USA

PostPosted: Mon Jan 12, 2009 12:12 am    Post subject: Reply with quote

I’m a little out of practice, but it looks like your 11 errors are still related to that ^CPU0._PPC call. I think I’d try replacing the remaining ^CPU0._PPC references with CPU0._PPC, especially since you’ve redefined the function call). That’s probably why it’s saying it can’t find the function now. I’d see if that gets you down to the one warning about the WMBB call. I think you’re ok at that point. All the warning is saying is that not all of the branches in the WMBB function return values. If the function doesn’t hit those branches, it should be fine.
Back to top

View user's profile Send private message

jetblack
Guru
Guru

Joined: 15 Jan 2003
Posts: 340
Location: Evanston, IL, USA

PostPosted: Mon Jan 12, 2009 12:21 am    Post subject: Reply with quote

Also, if you want to get rid of the warning, I’d throw in some «Return (Zero)» statements in this block of the WMBB function:

Code:

If (LEqual (Arg1, 0x02)) {}

                If (LEqual (Arg1, 0x03)) {}

                If (LEqual (Arg1, 0x04)) {}

                If (LEqual (Arg1, 0x05)) {}

                If (LEqual (Arg1, 0x06)) {}

                If (LEqual (Arg1, 0x07)) {}

                If (LEqual (Arg1, 0x08)) {}

                If (LEqual (Arg1, 0x09)) {}

That should at least clear up the warning. To be fair, though, I haven’t really looked at what that function is supposed to be doing. I’m assuming, though, that if they didn’t bother putting return values in those branches at all, then they can’t be too big of a deal.

Back to top

View user's profile Send private message

kernelhacker
n00b
n00b

Joined: 18 Feb 2004
Posts: 27

PostPosted: Mon Jan 12, 2009 11:07 am    Post subject: Reply with quote

jetblack wrote:
I’m a little out of practice, but it looks like your 11 errors are still related to that ^CPU0._PPC call. I think I’d try replacing the remaining ^CPU0._PPC references with CPU0._PPC, especially since you’ve redefined the function call). That’s probably why it’s saying it can’t find the function now. I’d see if that gets you down to the one warning about the WMBB call. I think you’re ok at that point. All the warning is saying is that not all of the branches in the WMBB function return values. If the function doesn’t hit those branches, it should be fine.

I tried some things, but changing ^CPU0 to CPU0 was probably not a good idea. I guess i just created a new error, which inhibited the detection of the old errors.

The first error is

Code:

ACPI Error (nsaccess-0531): ACPI path has too many parent prefixes (^) — reached beyond root node [20080701]                                                   



and is followed by this one

Code:

Maximum error count (200) exceeded

dsdt.dsl    24:     External (^CPU0._PPC)

Error    4014 —  From ACPI CA Subsystem ^  (AE_NOT_FOUND Failure from lookup %s

)                                                                             



and a lot of these

Code:

dsdt.dsl    26:     Mutex (MUTX, 0x00)

Error    4062 —               ^ Object does not exist (MUTX)

Unfortunately i have absolutely no idea, what to do. I wrote to the clevo support, but they did not even answer. I just can’t believe, that nearly every board has buggy dsdt tables….

Thanks for your help!

Stefan
_________________
signature temporarily disabled

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Sun Feb 08, 2009 5:03 am    Post subject: Reply with quote

I have a Clevo M570RU Laptop as well.

Here is mine if anyone has any ideas? I have over 200 of them. Just about all of them are error 4062 but I can’t seem to find anything on that.

because the files are quite long I’ll upload them to the net. I don’t see an attachment button for the forum. I hope I’m not going blind…

dsdt.dsl (216KB)—> http://www.sendspace.com/file/88f6mf

compile errors (21KB)—> http://www.sendspace.com/file/2wq5wc

here is a quick excerpt of the compile errors.

Code:
Intel ACPI Component Architecture

ASL Optimizing Compiler version 20060912 [Jan 25 2008]

Copyright (C) 2000 — 2006 Intel Corporation

Supports ACPI Specification Revision 3.0a

ACPI Error (nsaccess-0531): ACPI path has too many parent prefixes (^) — reached beyond root node [20060912]

Maximum error count (200) exceeded

dsdt.dsl    23:     External (^CPU0._PPC)

Error    4014 —  From ACPI CA Subsystem ^  (AE_NOT_FOUND Failure from lookup %s

)

dsdt.dsl    25:     Mutex (MUTX, 0x00)

Error    4062 —               ^ Object does not exist (MUTX)

dsdt.dsl    26:     OperationRegion (PRT0, SystemIO, 0x80, 0x04)

Error    4062 —   Object does not exist ^  (PRT0)

dsdt.dsl    27:     Field (PRT0, DWordAcc, Lock, Preserve)

Error    4062 —               ^ Object does not exist (PRT0)

dsdt.dsl    29:         P80H,   32

Error    4062 —            ^ Object does not exist (P80H)

dsdt.dsl    32:     Method (P8XH, 2, Serialized)

Error    4062 —                ^ Object does not exist (P8XH)

dsdt.dsl    36:             Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)

Error    4062 —          Object does not exist ^  (P80D)

dsdt.dsl    36:             Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)

Error    4062 —                                    Object does not exist ^  (P80D)

dsdt.dsl    41:             Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)

Error    4062 —          Object does not exist ^  (P80D)

dsdt.dsl    42:                 ), P80D)

Error    4062 — Object does not exist ^  (P80D)

dsdt.dsl    47:             Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)

Error    4062 —          Object does not exist ^  (P80D)

dsdt.dsl    48:                 ), P80D)

Error    4062 — Object does not exist ^  (P80D)

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Tue Feb 10, 2009 8:26 pm    Post subject: Reply with quote

OK I changed all ^CPU0._PPC calls to CPU0.PPC and now only get 12 errors. the new list is below.

It looks like kernelhacker is having the same issue I am. Although I’m not suprised. He has the same laptop it looks like lol. Damn Clevo and their buggy DSDT lol.

edited dsdt —> http://www.sendspace.com/file/9wgvv4

new errors —

Code:

Intel ACPI Component Architecture

ASL Optimizing Compiler version 20060912 [Jan 25 2008]

Copyright (C) 2000 — 2006 Intel Corporation

Supports ACPI Specification Revision 3.0a

dsdt.dsl   573:                     If (LGreater (CPU0._PPC, Zero))

Error    4063 —                                           ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   575:                         Subtract (CPU0._PPC, One, CPU0._PPC)

Error    4063 —                                           ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   575:                         Subtract (CPU0._PPC, One, CPU0._PPC)

Error    4063 —             Object not found or not accessible from scope ^  (CPU0._PPC)

dsdt.dsl   577:                         Add (CPU0._PPC, One, CPU0._PPC)

Error    4063 —                                      ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   577:                         Add (CPU0._PPC, One, CPU0._PPC)

Error    4063 —        Object not found or not accessible from scope ^  (CPU0._PPC)

dsdt.dsl   582:                         Add (CPU0._PPC, One, CPU0._PPC)

Error    4063 —                                      ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   582:                         Add (CPU0._PPC, One, CPU0._PPC)

Error    4063 —        Object not found or not accessible from scope ^  (CPU0._PPC)

dsdt.dsl   584:                         Subtract (CPU0._PPC, One, CPU0._PPC)

Error    4063 —                                           ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   584:                         Subtract (CPU0._PPC, One, CPU0._PPC)

Error    4063 —             Object not found or not accessible from scope ^  (CPU0._PPC)

dsdt.dsl   602:                     Store (Local0, CPU0._PPC)

Error    4063 —                                            ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl   613:                         Store (Local0, CPU0._PPC)

Error    4063 —  Object not found or not accessible from scope ^  (CPU0._PPC)

dsdt.dsl   617:                         Store (Zero, CPU0._PPC)

Error    4063 —                                              ^ Object not found or not accessible from scope (CPU0._PPC)

dsdt.dsl  6288:             Method (WMBB, 3, NotSerialized)

Warning  1086 —                        ^ Not all control paths return a value (WMBB)

ASL Input:  dsdt.dsl — 6334 lines, 222048 bytes, 2313 keywords

Compilation complete. 12 Errors, 1 Warnings, 0 Remarks, 47 Optimizations

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Tue Feb 10, 2009 10:23 pm    Post subject: Reply with quote

OK I now have the following report.

Code:
Intel ACPI Component Architecture

ASL Optimizing Compiler version 20060912 [Jan 25 2008]

Copyright (C) 2000 — 2006 Intel Corporation

Supports ACPI Specification Revision 3.0a

ASL Input:  dsdt.dsl2 — 6339 lines, 222212 bytes, 2314 keywords

AML Output: dsdt.aml — 22841 bytes 664 named objects 1650 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 59 Optimizations

weeeeee!!!!!

I replaced all ^CPU0._PPC with _PR_.CPU0._PPC

and then added a Return function for the WMBB warning.

here is my fixed dsdt (untested) —> http://www.sendspace.com/file/srkcob

laptop Sager NP5790 (a.k.a. CLEVO M570RU)

here is the bios image I am using as well. ver- 1.00.12aSL ; current as of 15JAN2009 —> http://www.sendspace.com/file/5xc9k9

I have not yet tried it but will edit this post when I do.

Last edited by kodiakmax on Wed Feb 11, 2009 7:10 pm; edited 1 time in total

Back to top

View user's profile Send private message

riczan
Tux’s lil’ helper
Tux's lil' helper

Joined: 09 Feb 2005
Posts: 134
Location: Sicily. Nothing personal…

PostPosted: Wed Feb 11, 2009 3:15 am    Post subject: Reply with quote

Help, I also have a sager 5793, same bugs and same fix.

However, when I replace the dsdt in the kernel (I’m using the hex file method), after booting up I get the same errors.

Also if I check the current /proc/acpi/dsdt file I see that it is not patched!!! what is going on?

dmesg reports that I’m using the new dsdt:

Code:

ACPI: Override [DSDT-CRESTLNE], this is unsafe: tainting kernel

ACPI: Table DSDT replaced by host OS



Also dmesg says that,

Code:

DSDT override uses original SSDTs unless acpi_no_auto_ssdt



I’ve tried with and without this flag and I get the same result.

this is very strange. What did I do wrong.

For the hex method there are 3 flags that must be set. All the guides said that

CONFIG_ACPI_CUSTOM_DSDT=y

CONFIG_ACPI_CUSTOM_DSDT_FILE=»/usr/src/dsdts/mydsdt.hex»

CONFIG_STANDALONE=n

The last option in gentoo looks like this:

# CONFIG_STANDALONE is not set

is this the same as =n, could this be the problem. However, I don’t get compilation errors and the dsdt seems to be loaded but is not working…

Please help, I feel we are so close now.
_________________
SAGER 5793

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Wed Feb 11, 2009 7:09 pm    Post subject: Reply with quote

Well, I’m having problems compiling mine into the kernel. So I’m going to try the initramfs method. Probably better that way anyway, so I can test different changes to the dsdt more easily.
Back to top

View user's profile Send private message

riczan
Tux’s lil’ helper
Tux's lil' helper

Joined: 09 Feb 2005
Posts: 134
Location: Sicily. Nothing personal…

PostPosted: Wed Feb 11, 2009 8:04 pm    Post subject: Reply with quote

did you have the flags set as I described above?

First you need to unset the STANDALONE option. You find it in device drivers/general setup/

only then you will see the other option in the acpi menu.

I’m using 2.6.28-tuxonice-r1 sources. Let me know if the initrd method works. I haven’t tried it because I think the kernel needs to be patched, so I would need a vanilla kernel (I think).

Good luck,

anyone else? suggestions are wellcomed…
_________________
SAGER 5793

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Wed Feb 11, 2009 9:26 pm    Post subject: Reply with quote

Yes I did try the following kernel options

CONFIG_ACPI_CUSTOM_DSDT=y

CONFIG_ACPI_CUSTOM_DSDT_FILE=»/home/kodiakmax/iasl/work/dsdt.hex»

CONFIG_STANDALONE=n

However, When I reboot I do not get a dmesg output notifying me that custom dsdt is in use.

I have now just tried the initramfs support with the following patch —> http://gaugusch.at/kernel.shtml

I then enabled the following kernel option

CONFIG_ACPI_CUSTOM_DSDT_INITRD=y

I then used this script —> http://gaugusch.at/acpi-dsdt-initrd-patches/initrd-add-dsdt

to append the dsdt to the initramfs, when I reboot again there is still no dmesg notifying me of a custom dsdt in use.

Quote:
I haven’t tried it because I think the kernel needs to be patched, so I would need a vanilla kernel (I think).



You shouldn’t need vanilla kernel sources for this patch. Just follow steps 9b on page1 of this thread if interested. Use the patch for kernel 2.6.28 with the link I provided above.

Although with neither method working for me, take my advice with a grain of salt! lol

Back to top

View user's profile Send private message

riczan
Tux’s lil’ helper
Tux's lil' helper

Joined: 09 Feb 2005
Posts: 134
Location: Sicily. Nothing personal…

PostPosted: Wed Feb 11, 2009 9:45 pm    Post subject: Reply with quote

Are you sure your dmesg before and after are identical? Did you compare line by line? I find it hard to believe that there are absolutely no changes… you should at least get somehting saying that you are using a custom dsdt… or failed to use custom dsd or something.

did you recompiled the kernel?

did you updated your grub?

I also want to report that I tried the acpi_os_name=»Windows 2001 SP2″ with no apparent effect. (I read the dsdt.dsl to get the «Windows 2001 SP2»).

Finally, I contacted Sager customer service just for the sake of it, requesting a BIOS upgrade :). They told me to disable the robson option in the bios… I don’t see how that is related but you may want to try that. (I think this is the automatic response to the word «Linux»)

I have it on because that enables the AHCI support for hardrives but I will disable it and see what happens on a gentoo bootup CD. I don’t know if that will brake my current linux installation (that’s why I want to try the CD first)

You can try that too.

Don’t give up. Since this is not a threat, just a discussion, perhaps we would get more help on a different forum.

I’ll see were I go with the initrd but your tests don’t seem very encouraging.

good luck
_________________
SAGER 5793

Back to top

View user's profile Send private message

kodiakmax
n00b
n00b

Joined: 28 Jan 2009
Posts: 27

PostPosted: Thu Feb 12, 2009 12:33 am    Post subject: Reply with quote

I have had the robson disabled for quite some time now. So, that’s not it for me. The BIOS image in my post above is the most current straight from sager tech support. Clevo’s most current BIOS image is actually 1.00.11 So, sager has done something to it. However, I am unable to find out what.

I too find it very strange that I can’t get the custom dsdt loaded with either the kernel or initramfs method.

here is a quick output after kernel reconfig and reboot. This time I tried both .hex method and initramfs method together.

Code:
DarkComet kodiakmax # zcat /proc/config.gz > /usr/src/config                                                           

DarkComet kodiakmax # cat /usr/src/config |grep DSDT

CONFIG_ACPI_CUSTOM_DSDT_FILE=»/home/kodiakmax/iasl/work/dsdt.hex»

CONFIG_ACPI_CUSTOM_DSDT=y

CONFIG_ACPI_CUSTOM_DSDT_INITRD=y

DarkComet kodiakmax # cat /usr/src/config |grep STANDALONE

# CONFIG_STANDALONE is not set

DarkComet kodiakmax # dmesg |grep DSDT

DarkComet kodiakmax # dmesg |grep dsdt

DarkComet kodiakmax # dmesg |grep ACPI

[    1.106890] ACPI Error (psargs-0358): [^CPU0._PPC] Namespace lookup failure, AE_NOT_FOUND

[    1.106895] ACPI Error (psparse-0524): Method parse/execution failed [_PR_.POWC] (Node ffff88015fa2e400), AE_NOT_FOUND

[    1.106946] ACPI Error (psparse-0524): Method parse/execution failed [_SB_.AC__._PSR] (Node ffff88015fa2e800), AE_NOT_FOUND

[    1.106974] ACPI Exception (ac-0135): AE_NOT_FOUND, Error reading AC Adapter state [20080926]

[    1.125262] ACPI: Battery Slot [BAT0] (battery present)

[    1.128255] ACPI: Power Button (FF) [PWRF]

[    1.131254] ACPI: Power Button (CM) [PWB]

[    1.134263] ACPI: Sleep Button (CM) [SLPB]

[    1.134928] ACPI: Lid Switch [LID]

[    1.135497] ACPI: SSDT 9FED71FD, 027A (r1  PmRef  Cpu0Ist     3000 INTL 20050624)

[    1.135890] ACPI: SSDT 9FED6CCE, 04AA (r1  PmRef  Cpu0Cst     3001 INTL 20050624)

[    1.138586] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])

[    1.138622] processor ACPI_CPU:00: registered as cooling_device0

[    1.138625] ACPI: Processor [CPU0] (supports 8 throttling states)

[    1.138987] ACPI: SSDT 9FED7477, 00C8 (r1  PmRef  Cpu1Ist     3000 INTL 20050624)

[    1.139275] ACPI: SSDT 9FED7178, 0085 (r1  PmRef  Cpu1Cst     3000 INTL 20050624)

[    1.140104] ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])

[    1.140137] processor ACPI_CPU:01: registered as cooling_device1

[    1.140140] ACPI: Processor [CPU1] (supports 8 throttling states)

[    1.159797] ACPI: Thermal Zone [THRM] (52 C)

[   11.686372] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)

[   12.218194] ACPI: I/O resource 0000:00:1f.3 [0x1c00-0x1c1f] conflicts with ACPI region SMBI [0x1c00-0x1c0f]

[   12.218196] ACPI: Device needs an ACPI driver

[   13.233337] nvidia 0000:01:00.0: power state changed by ACPI to D0

DarkComet kodiakmax #

My grub does not really require updating as my /boot is not on a seperate partition. However, I did edit the grub.conf to use the modded initramfs. The modded initramfs does include the DSDT.aml in it’s file list as well verified through the following command

Code:
DarkComet kodiakmax # cd /boot

DarkComet kodiakmax # zcat initramfs*28-sabayon-dsdt |cpio -t > zcat.log

DarkComet kodiakmax # cat zcat.log |grep DSDT

DSDT.aml

DarkComet kodiakmax #

Back to top

View user's profile Send private message

riczan
Tux’s lil’ helper
Tux's lil' helper

Joined: 09 Feb 2005
Posts: 134
Location: Sicily. Nothing personal…

PostPosted: Thu Feb 12, 2009 3:39 pm    Post subject: Reply with quote

I see the light at the end of the tunnel…

I rebooted with the gentoo CD and dmesg reports no errors!!! The /proc/acpi/ac_adapter directory is not empty anymore!!!

This is good news… but I’m not sure how to interpret this yet. Is my current kernel buggy? or is it a option in the .config that I’m missing?

I’ll try both aproaches and I’ll report back. It will take me some time to go through all the config file… can some one suggest what could be the possible relevant sections that should be identical? (other than the obvious ACPI section).

But this is good, if I don’t get it we can always use the genkernel and have full ACPI functionality… of course, if I wanted a genkernel I would be using ubuntu instead.

cheers

Unfortunately I don’t see the kernel version in the dmesg of the gentoo boot CD. But I see some obvious differences already,

gentoo CD:

Code:

ACPI: DMI System Vendor: SAGER

ACPI: DMI Product Name: M570RU

ACPI: DMI Product Version: CLEVO:M570RU-1.00.12S

ACPI: DMI Board Name: SANTA ROSA

ACPI: DMI BIOS Vendor: Phoenix

ACPI: DMI BIOS Date: 01/14/2009



my current 2.6.28-tuxonice-r1

Code:

DMI present

That’s it :(

This looks more like a flag I’m missing.

I also checked the dsdt.dsl file used by the gentoo CD and the «bad» code is there External (^CPU0._PPC) and yet, the gentooCD kernel has no problem with that… this makes me very suspicious of the whole compiling of the dsdt.dsl to check for errors.

enough for now.
_________________
SAGER 5793

Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Other Discussion and Support
  • Tutorials
  • HOWTO Fix A Buggy DSDT File

  1. Re: HOWTO Fix A Buggy DSDT File

    Quote Originally Posted by eloralon
    View Post

    Hello experts,

    I have an HP Envy 14T-2000 (Beatsaudio) and have extracted it’s dsdt. When I try to compile it I get the following error and warnings:

    19 Error Name already exists in scope (TNOT)
    2316 Remark Initializer list shorter than declared package length
    4520 Warning Not all control paths return a value (_HID)
    4520 Warning Reserved method must return a value (Integer/String required for _HID)
    4579 Warning Not all control paths return a value (_CID)
    4579 Warning Reserved method must return a value (Integer/String/Package required for _CID)
    5052 Warning Not all control paths return a value (_BST)
    14218 Warning Not all control paths return a value (_CRS)
    14218 Warning Reserved method must return a value (Buffer required for _CRS)

    Can you please help fix the above errors so I can compile and use it on my Ubuntu 11.04 installation?

    I have attached the DSDT file for easy reference.

    Thank you.

    Fixed. Should have Provided me with the .aml instead.

    Code:

    Intel ACPI Component Architecture
    ASL Optimizing Compiler version 20110922-32 [Sep 22 2011]
    Copyright (c) 2000 - 2011 Intel Corporation
    
    ASL Input:     DSDT.dsl - 14398 lines, 576367 bytes, 6723 keywords
    AML Output:    dsdt.aml - 62775 bytes, 1191 named objects, 5532 executable opcod
    es
    Hex Dump:      DSDT.hex - 596705 bytes
    
    Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 29 Optimizations


  2. Re: HOWTO Fix A Buggy DSDT File

    Quote Originally Posted by mathfeel
    View Post

    For my DSDT file, when recompiling, at first I get a series of error like this:

    Code:

    dsdt.dsl  8236:                             Name (_PLD, Buffer (0x10)
    Error    4080 -              Invalid object type for reserved name ^  (found BUFFER, requires Package)

    I changed s/Buffer/Package/ in each line and the Errors are gone.

    All that remains are these Warnings:

    Code:

    # iasl -tc dsdt.dsl
    
    Intel ACPI Component Architecture
    ASL Optimizing Compiler version 20100528 [Jun 23 2011]
    Copyright (c) 2000 - 2010 Intel Corporation
    Supports ACPI Specification Revision 4.0a
    
    dsdt.dsl  4421:                                     If (LFLS ())
    Warning  1093 -                                            ^ Called method may not always return a value
    
    dsdt.dsl  4524:                                 If (LFLS ())
    Warning  1093 -                                        ^ Called method may not always return a value
    
    dsdt.dsl  4547:                                 If (LFLS ())
    Warning  1093 -                                        ^ Called method may not always return a value
    
    dsdt.dsl  4612:                                     If (LFLS ())
    Warning  1093 -                                            ^ Called method may not always return a value
    
    dsdt.dsl  4624:                                     If (LFLS ())
    Warning  1093 -                                            ^ Called method may not always return a value
    
    dsdt.dsl  4644:                     Method (LFLS, 0, NotSerialized)
    Warning  1088 -                                ^ Not all control paths return a value (LFLS)
    
    dsdt.dsl  9060:                         Store (_SB.PCI0.LPC.EC.SLBN (), Local0)
    Warning  1093 -        Called method may not always return a value ^ 
    
    dsdt.dsl  9385:             Method (SLBN, 0, NotSerialized)
    Warning  1088 -                        ^ Not all control paths return a value (SLBN)
    
    dsdt.dsl  9854:             Method (_Q15, 0, NotSerialized)
    Warning  1088 -                        ^ Not all control paths return a value (_Q15)
    
    ASL Input:  dsdt.dsl - 13834 lines, 450481 bytes, 5744 keywords
    AML Output: dsdt.aml - 50486 bytes, 1110 named objects, 4634 executable opcodes

    which I am not sure how to fix. Please help!

    This is for a Lenovo ThinkPAD x201 Tablet.

    Fixed.

    Code:

    Intel ACPI Component Architecture
    ASL Optimizing Compiler version 20110922-32 [Sep 22 2011]
    Copyright (c) 2000 - 2011 Intel Corporation
    
    ASL Input:     dsdt.dsl - 13839 lines, 450520 bytes, 5746 keywords
    AML Output:    dsdt.aml - 50490 bytes, 1110 named objects, 4636 executable opcod
    es
    Hex Dump:      dsdt.hex - 480046 bytes
    
    Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 2799 Optimizations


  3. Re: HOWTO Fix A Buggy DSDT File

    Quote Originally Posted by guandalino
    View Post

    Laptop: HP Pavilion dv6 6008el (2Ghz Intel Core i7 2630QM, 8Gb DDR3, Radeon HD 6490 1Gb, 500Gb sata 7200rpm).

    My laptop doesn’t boot — blank screen — if acpi=off is not specified in grub, that way disabling ACPI entirely (unacceptable). Ubuntu 10.04 LTS and 10.10 aren’t affected, Natty 11.04 is. I followed debug instructions on LessWatts and discovered DSDT table is broken, please help!

    HTML Code:

    DSDT.dsl    37:     External (TNOT)
    Error    4057 -                   ^ Name already exists in scope (TNOT)
    
    DSDT.dsl 11050:     Method (PAPR, 0, NotSerialized)
    Warning  1088 -                ^ Not all control paths return a value (PAPR)
    
    DSDT.dsl 12566:     Method (_CRS, 0, NotSerialized)
    Warning  1088 -                ^ Not all control paths return a value (_CRS)
    
    DSDT.dsl 12566:     Method (_CRS, 0, NotSerialized)
    Warning  1081 -                ^ Reserved method must return a value (Buffer required for _CRS)

    Thanks

    Fixed.

    Code:

    Intel ACPI Component Architecture
    ASL Optimizing Compiler version 20110922-32 [Sep 22 2011]
    Copyright (c) 2000 - 2011 Intel Corporation
    
    ASL Input:     DSDT.dsl - 12753 lines, 424443 bytes, 5911 keywords
    AML Output:    DSDT.aml - 50369 bytes, 1037 named objects, 4874 executable opcod
    es
    Hex Dump:      DSDT.hex - 478905 bytes
    
    Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 20 Optimizations


  4. Re: HOWTO Fix A Buggy DSDT File

    Hi. Asus MB E35M1-M with AMD Zacate APU and + 2 network cards. 10.04.03 server sometimes throw out messages in console «irq 19: nobody cared» and become laggy till reboot it. Even with «irqpoll» option its just happen less frequently. I try a couple of kernels. Last one is 2.6.38-11 lucid. Compiling DSDT cause lot of errors. Help please!


  5. Re: HOWTO Fix A Buggy DSDT File

    Upload the aml file please.


  6. Re: HOWTO Fix A Buggy DSDT File

    this is an amazing thread… my gratitude…

    I’ve fixed a couple of bugs in my dsdt, would anyone be able to check my other bugs… (uploading aml)…

    many thanks,
    mike


  7. Re: HOWTO Fix A Buggy DSDT File

    almost finished just a couple more to go…


  8. Re: HOWTO Fix A Buggy DSDT File

    finished… (par one bug, which i found info on here), but i’ll just leave that one as i don’t think it’ll affect anything much…

    attached is my final dsdt… maybe it will be helpful for anyone with hp g6 to diff… if anyone can give the start to finish a quick diff to check my changes would be appreciated…

    cheers,
    mike


  9. Re: HOWTO Fix A Buggy DSDT File

    Quote Originally Posted by guandalino
    View Post

    Laptop: HP Pavilion dv6 6008el (2Ghz Intel Core i7 2630QM, 8Gb DDR3, Radeon HD 6490 1Gb, 500Gb sata 7200rpm).

    My laptop doesn’t boot — blank screen — if acpi=off is not specified in grub, that way disabling ACPI entirely (unacceptable). Ubuntu 10.04 LTS and 10.10 aren’t affected, Natty 11.04 is. I followed debug instructions on LessWatts and discovered DSDT table is broken, please help!

    [HTML]
    DSDT.dsl 37: External (TNOT)
    Error 4057 — ^ Name already exists in scope (TNOT)

    can you tell what brand is your bios ? because I have the same error on lenovo g470 :

    Code:

    DSDT.dsl    36:     External (TNOT)
    Error    4057 -  Name already exists in scope ^  (TNOT)

  10. Re: HOWTO Fix A Buggy DSDT File

    Hi,

    Could someone help me fix my DSDT table ? I’m stuck with the warning and remarks, I’ve fixed the 2 errors (Min/Max error using Max — Min + 1 equation).
    I’ve got an Acer 4820TG with 1.25 bios, maybe someone as already fixed the dsdt table.
    Particularities of this model : ATI switchable graphic between Intel GPU and ATI GPU.
    System : ArchLinux.

    I’ve attached my dsdt.aml (and .dsl if you need it) to the post.

    Thx,
    Qiou.


Bookmarks

Bookmarks


Posting Permissions


Description


Rafael Fonseca



2015-08-10 12:40:13 UTC

Created attachment 1061026 [details]
Output from test on ppc64

Description of problem: running the tests fails in the ppc64 architecture. The output is: 

# ./run-misc-tests.sh /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin/ 20150717
+ BINDIR=/builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin/
+ VERSION=20150717
+ /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl -h
Supports ACPI Specification Revision 6.0

Usage: iasl [Options] [Files]
Options:

General:
  -@ <file>         Specify command file
  -I <dir>          Specify additional include directory
  -T <sig>|ALL|*    Create table template file for ACPI <Sig>
  -p <prefix>       Specify path/filename prefix for all output files
  -v                Display compiler version
  -vo               Enable optimization comments
  -vs               Disable signon

Help:
  -h                This message
  -hc               Display operators allowed in constant expressions
  -hf               Display help for output filename generation
  -hr               Display ACPI reserved method names
  -ht               Display currently supported ACPI table names

Preprocessor:
  -D <symbol>       Define symbol for preprocessor use
  -li               Create preprocessed output file (*.i)
  -P                Preprocess only and create preprocessor output file (*.i)
  -Pn               Disable preprocessor

Errors, Warnings, and Remarks:
  -va               Disable all errors/warnings/remarks
  -ve               Report only errors (ignore warnings and remarks)
  -vi               Less verbose errors and warnings for use with IDEs
  -vr               Disable remarks
  -vw <messageid>   Disable specific warning or remark
  -w1 -w2 -w3       Set warning reporting level
  -we               Report warnings as errors

AML Code Generation (*.aml):
  -oa               Disable all optimizations (compatibility mode)
  -of               Disable constant folding
  -oi               Disable integer optimization to Zero/One/Ones
  -on               Disable named reference string optimization
  -cr               Disable Resource Descriptor error checking
  -in               Ignore NoOp operators
  -r <revision>     Override table header Revision (1-255)

Optional Source Code Output Files:
  -sc -sa           Create source file in C or assembler (*.c or *.asm)
  -ic -ia           Create include file in C or assembler (*.h or *.inc)
  -tc -ta -ts       Create hex AML table in C, assembler, or ASL (*.hex)
  -so               Create offset table in C (*.offset.h)

Optional Listing Files:
  -l                Create mixed listing file (ASL source and AML) (*.lst)
  -lm               Create hardware summary map file (*.map)
  -ln               Create namespace file (*.nsp)
  -ls               Create combined source file (expanded includes) (*.src)

Data Table Compiler:
  -G                Compile custom table that contains generic operators
  -vt               Create verbose template files (full disassembly)

AML Disassembler:
  -d  <f1 f2 ...>   Disassemble or decode binary ACPI tables to file (*.dsl)
                      (Optional, file type is automatically detected)
  -da <f1 f2 ...>   Disassemble multiple tables from single namespace
  -db               Do not translate Buffers to Resource Templates
  -dc <f1 f2 ...>   Disassemble AML and immediately compile it
                      (Obtain DSDT from current system if no input file)
  -df               Force disassembler to assume table contains valid AML
  -dl               Emit legacy ASL code only (no C-style operators)
  -e  <f1 f2 ...>   Include ACPI table(s) for external symbol resolution
  -fe <file>        Specify external symbol declaration file
  -in               Ignore NoOp opcodes
  -vt               Dump binary table data in hex format within output file

Debug Options:
  -bf               Create debug file (full output) (*.txt)
  -bs               Create debug file (parse tree only) (*.txt)
  -bp <depth>       Prune ASL parse tree
  -bt <type>        Object type to be pruned from the parse tree
  -f                Ignore errors, force creation of AML output file(s)
  -m <size>         Set internal line buffer size (in Kbytes)
  -n                Parse only, no output generation
  -ot               Display compile times and statistics
  -x <level>        Set debug level for trace output
  -z                Do not insert new compiler ID for DataTables
++ uname -m
+ m=ppc64
+ case $m in
+ BITS=64
++ stat --format=%Y /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl
++ cut '-d ' -f1
+ FDATE=1439193928
++ date --date=@1439193928 '+%b %_d %Y'
+ WHEN='Aug 10 2015'
+ sed -e 's/XXXXXXXXXXX/Aug 10 2015/' -e s/YYYY/64/ -e s/VVVVVVVV/20150717/ ../badcode.asl.result
+ sed -e 's/XXXXXXXXXXX/Aug 10 2015/' -e s/YYYY/64/ -e s/VVVVVVVV/20150717/ ../grammar.asl.result
+ cd misc
+ tee badcode
+ /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl -f badcode.asl
badcode.asl     25:     Mutex (MTX1, 32)
Error    6125 -                      ^ SyncLevel must be in the range 0-15

badcode.asl     29:     Name (BIG, 0x1234567887654321)
Warning  3038 -                                    ^ 64-bit integer in 32-bit table, truncating (DSDT version < 2)

badcode.asl     33:     Name (PKG1, Package(5) {0,1})
Remark   2063 -                            ^ Initializer list shorter than declared package length

badcode.asl     37:     Name (PATH, Buffer() {"_SB_.PCI2._CRS"})
Warning  3046 -                                ^ Invalid or unknown escape sequence

badcode.asl     41:     Name (ESC1, "abcdefgx00hijklmn")
Warning  3055 -                                ^ Invalid Hex/Octal Escape - Non-ASCII or NULL

badcode.asl     49:         FLD1, 8
Error    6030 -               ^ Access width of Field Unit extends beyond region limit

badcode.asl     55:     Field (OPR2, DWordAcc, NoLock, Preserve)
Error    6100 -                  ^ Host Operation Region requires ByteAcc access

badcode.asl     60:     Field (OPR3, WordAcc, NoLock, Preserve)
Error    6099 -                  ^ Host Operation Region requires BufferAcc access

badcode.asl     67:     Method (MTH1, 0, NotSerialized, 32)
Error    6125 -     SyncLevel must be in the range 0-15 ^ 

badcode.asl     71:         Store (Arg3, Local0)
Warning  3144 -                              ^ Method Local is set but never used (Local0)

badcode.asl     71:         Store (Arg3, Local0)
Error    6006 -                      ^ Method argument is not initialized (Arg3)

badcode.asl     71:         Store (Arg3, Local0)
Remark   2087 -                      ^ Not a parameter, used as local only (Arg3)

badcode.asl     72:         Store (Local1, Local2)
Warning  3144 -                                ^ Method Local is set but never used (Local2)

badcode.asl     72:         Store (Local1, Local2)
Error    6066 -                        ^ Method local variable is not initialized (Local1)

badcode.asl     76:         Subtract (MTX1, 4, Local3)
Warning  3144 - Method Local is set but never used ^  (Local3)

badcode.asl     76:         Subtract (MTX1, 4, Local3)
Error    6058 -            Invalid type ^  ([Mutex|Reference] found, Subtract operator requires [Integer|String|Buffer])

badcode.asl     80:         CreateField (BUF1, 0, Subtract (4, 4), FLD1)
Remark   2089 -                             Object is not referenced ^  (Name is within method [MTH1])

badcode.asl     80:         CreateField (BUF1, 0, Subtract (4, 4), FLD1)
Error    6083 -                  Operand evaluates to zero ^ 

badcode.asl     84:         Acquire (MTX1, 100)
Warning  3130 -                             ^ Result is not used, possible operator timeout will be missed

badcode.asl     85:         Wait (EVT1, 1)
Warning  3130 -                        ^ Result is not used, possible operator timeout will be missed

badcode.asl     89:         Add (INT1, 8)
Error    6114 -                    ^ Result is not used, operator has no effect

badcode.asl     94:         Store (5, INT1)
Warning  3134 -                   ^ Statement is unreachable

badcode.asl     97:     Method (MTH2)
Remark   2119 -                   ^ Control Method marked Serialized (Due to use of Switch operator)

badcode.asl     97:     Method (MTH2)
Warning  3115 -                   ^ Not all control paths return a value (MTH2)

badcode.asl    101:         Switch (ToInteger (INT1))
Error    6078 -                            ^ No Case statements under Switch

badcode.asl    120:         Store (MTH2 (), Local0)
Warning  3144 -                                 ^ Method Local is set but never used (Local0)

badcode.asl    120:         Store (MTH2 (), Local0)
Warning  3122 -                      ^ Called method may not always return a value

badcode.asl    126:     Method (MTH5) {Store (MTH4(), Local0)}
Warning  3144 -        Method Local is set but never used ^  (Local0)

badcode.asl    126:     Method (MTH5) {Store (MTH4(), Local0)}
Error    6080 -  Called method returns no value ^ 

badcode.asl    132:         Name (_HID, "*PNP0C0A")     // Illegal leading asterisk
Error    6061 -        Invalid leading asterisk ^  (*PNP0C0A)

badcode.asl    136:         Name (_HID, "PNP")          // Too short, must be 7 or 8 chars
Error    6033 -                            ^ _HID string must be exactly 7 or 8 characters (PNP)

badcode.asl    140:         Name (_HID, "MYDEVICE01")   // Too long, must be 7 or 8 chars
Error    6033 -                                   ^ _HID string must be exactly 7 or 8 characters (MYDEVICE01)

badcode.asl    144:         Name (_HID, "acpi0001")     // non-hex chars must be uppercase
Error    6034 -                                 ^ _HID prefix must be all uppercase or decimal digits (acpi0001)

badcode.asl    148:         Name (_HID, "PNP-123")      // HID must be alphanumeric
Error    6002 -                                ^ String must be entirely alphanumeric (PNP-123)

badcode.asl    152:         Name (_HID, "")             // Illegal Null HID
Error    6091 -                         ^ Invalid zero-length (null) string

badcode.asl    153:         Name (_CID, "")             // Illegal Null CID
Error    6091 -                         ^ Invalid zero-length (null) string

badcode.asl    158:     Name (_PRW, 4)
Error    6105 -                    ^ Invalid object type for reserved name (_PRW: found Integer, Package required)

badcode.asl    159:     Name (_FDI, Buffer () {0})
Error    6105 -                            ^ Invalid object type for reserved name (_FDI: found Buffer, Package required)

badcode.asl    164:     Method (_OSC, 5)
Remark   2146 -                   ^ Method Argument is never used (Arg0)

badcode.asl    164:     Method (_OSC, 5)
Remark   2146 -                   ^ Method Argument is never used (Arg1)

badcode.asl    164:     Method (_OSC, 5)
Remark   2146 -                   ^ Method Argument is never used (Arg2)

badcode.asl    164:     Method (_OSC, 5)
Remark   2146 -                   ^ Method Argument is never used (Arg3)

badcode.asl    164:     Method (_OSC, 5)
Remark   2146 -                   ^ Method Argument is never used (Arg4)

badcode.asl    164:     Method (_OSC, 5)
Warning  3101 -                   ^ Reserved method has too many arguments (_OSC requires 4)

badcode.asl    164:     Method (_OSC, 5)
Warning  3107 -                   ^ Reserved method must return a value (Buffer required for _OSC)

badcode.asl    170:     Name (_L01, 1)
Error    6103 -                 ^ Reserved name must be a control method (with zero arguments)

badcode.asl    171:     Name (_E02, 2)
Error    6103 -                 ^ Reserved name must be a control method (with zero arguments)

badcode.asl    172:     Name (_Q03, 3)
Error    6103 -                 ^ Reserved name must be a control method (with zero arguments)

badcode.asl    173:     Name (_ON,  0)
Error    6103 -                ^ Reserved name must be a control method (with zero arguments)

badcode.asl    174:     Name (_INI, 1)
Error    6103 -                 ^ Reserved name must be a control method (with zero arguments)

badcode.asl    175:     Name (_PTP, 2)
Error    6103 -                 ^ Reserved name must be a control method (with arguments)

badcode.asl    184:         Method (_E1D)
Error    6032 -                       ^ Name conflicts with a previous GPE method (_L1D)

badcode.asl    191:     Method (_FDM, 1)
Remark   2146 -                   ^ Method Argument is never used (Arg0)

badcode.asl    193:         Return (Buffer(1){0x33})
Warning  3104 -                         ^ Reserved method should not return a value (_FDM)

badcode.asl    197:         Return ("Unexpected Return Value")
Warning  3104 -  Reserved method should not return a value ^  (_Q22)

badcode.asl    203:     Device (EC)
Warning  3141 -                 ^ Missing dependency (Device object requires a _HID or _ADR in same scope)

badcode.asl    205:         Method (_REG, 2)
Remark   2146 -                       ^ Method Argument is never used (Arg0)

badcode.asl    205:         Method (_REG, 2)
Remark   2146 -                       ^ Method Argument is never used (Arg1)

badcode.asl    205:         Method (_REG, 2)
Warning  3079 -                       ^ _REG has no corresponding Operation Region

badcode.asl    219:             StartDependentFn (0, 0)
Error    6019 -                                  ^ Dependent function macros cannot be nested

badcode.asl    225:     })
Error    6070 -        ^ Missing EndDependentFn() macro in dependent resource list

badcode.asl    242:             0x00002000,         // Length
Error    6049 -                         ^ Length is larger than Min/Max window

badcode.asl    247:             0x00001001,         // Range Minimum
Error    6001 -                         ^ Must be a multiple of alignment/granularity value

badcode.asl    248:             0x00002002,         // Range Maximum
Error    6001 -                         ^ Must be a multiple of alignment/granularity value

badcode.asl    255:             0xFFFF,             // Address
Warning  3060 -                     ^ Maximum 10-bit ISA address (0x3FF)

badcode.asl    264:             0x05                // Access Size
Error    6042 -                   ^ Invalid AccessSize (Maximum is 4 - QWord access)

badcode.asl    268:         QWordSpace (0xB0, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5,
Error    6139 -     Constant out of range ^  (0xB0, allowable: 0xC0-0xFF)

badcode.asl    279:             0x0200,             // Range Minimum
Error    6051 -                     ^ Address Min is greater than Address Max

badcode.asl    291:             0x00001002,         // Length
Error    6049 -                         ^ Length is larger than Min/Max window

badcode.asl    296:             0x00000010,
Error    6048 -                         ^ Granularity must be zero or a power of two minus one

badcode.asl    305:             0x0000000000000B02, // Range Minimum
Error    6001 -                                 ^ Must be a multiple of alignment/granularity value

badcode.asl    315:             0x00000000002FFFFE, // Range Maximum
Error    6001 -                                 ^ Must be a multiple of alignment/granularity value (-1)

badcode.asl    326:             0x00000000,         // Length
Error    6043 -                         ^ Invalid combination of Length and Min/Max fixed flags

badcode.asl    335:             0x00000100,         // Length
Error    6043 -                         ^ Invalid combination of Length and Min/Max fixed flags

badcode.asl    344:             0x00000200,         // Length
Error    6043 -                         ^ Invalid combination of Length and Min/Max fixed flags

badcode.asl    349:             0x0000000F,         // Granularity
Error    6047 -                         ^ Granularity must be zero for fixed Min/Max

badcode.asl    358:         DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
Error    6090 -                                    ^ Min/Max/Length/Gran are all zero, but no resource tag

badcode.asl    368:         EndDependentFn ()
Error    6071 -                            ^ Missing StartDependentFn() macro in dependent resource list

badcode.asl    388:         CreateWordField (RSC3, DWI1._LEN, LEN)
Warning  3128 -              ResourceTag larger than Field ^  (Size mismatch, Tag: 32 bits, Field: 16 bits)

badcode.asl    388:         CreateWordField (RSC3, DWI1._LEN, LEN)
Remark   2089 -                        Object is not referenced ^  (Name is within method [REM1])

badcode.asl    389:         CreateByteField (RSC3, DWI1._MIN, MIN)
Warning  3128 -              ResourceTag larger than Field ^  (Size mismatch, Tag: 32 bits, Field: 8 bits)

badcode.asl    389:         CreateByteField (RSC3, DWI1._MIN, MIN)
Remark   2089 -                        Object is not referenced ^  (Name is within method [REM1])

badcode.asl    390:         CreateBitField (RSC3, DWI1._RNG, RNG1)
Warning  3128 -             ResourceTag larger than Field ^  (Size mismatch, Tag: 2 bits, Field: 1 bit)

badcode.asl    390:         CreateBitField (RSC3, DWI1._RNG, RNG1)
Remark   2089 -                        Object is not referenced ^  (Name is within method [REM1])

badcode.asl    394:         CreateQWordField (RSC3, DWI1._MAX, MAX)
Warning  3129 -              ResourceTag smaller than Field ^  (Size mismatch, Tag: 32 bits, Field: 64 bits)

badcode.asl    394:         CreateQWordField (RSC3, DWI1._MAX, MAX)
Remark   2089 -                         Object is not referenced ^  (Name is within method [REM1])

badcode.asl    395:         CreateBitField (RSC3, DWI1._GRA, GRA)
Warning  3128 -             ResourceTag larger than Field ^  (Size mismatch, Tag: 32 bits, Field: 1 bit)

badcode.asl    395:         CreateBitField (RSC3, DWI1._GRA, GRA)
Remark   2089 -                       Object is not referenced ^  (Name is within method [REM1])

badcode.asl    396:         CreateField (RSC3, DWI1._MIF, 5, MIF)
Warning  3129 -         ResourceTag smaller than Field ^  (Size mismatch, Tag: 1 bit, Field: 5 bits)

badcode.asl    396:         CreateField (RSC3, DWI1._MIF, 5, MIF)
Remark   2089 -                       Object is not referenced ^  (Name is within method [REM1])

badcode.asl    397:         CreateField (RSC3, DWI1._RNG, 3, RNG2)
Warning  3129 -         ResourceTag smaller than Field ^  (Size mismatch, Tag: 2 bits, Field: 3 bits)

badcode.asl    397:         CreateField (RSC3, DWI1._RNG, 3, RNG2)
Remark   2089 -                        Object is not referenced ^  (Name is within method [REM1])

badcode.asl    404:         Store (40, Local0)
Warning  3144 -                            ^ Method Local is set but never used (Local0)


Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20150717-64
Copyright (c) 2000 - 2015 Intel Corporation

Ignoring all errors, forcing AML file generation

ASL Input:     badcode.asl - 409 lines, 11588 bytes, 81 keywords
AML Output:    badcode.aml - 1195 bytes, 61 named objects, 20 executable opcodes

Compilation complete. 46 Errors, 28 Warnings, 19 Remarks, 16 Optimizations, 1 Constants Folded
+ diff badcode badcode.asl.result
+ '[' 1 -eq 0 ']'
+ exit 1

Version-Release number of selected component (if applicable): 20150717-1
 

How reproducible: run run-misc-tests.sh on ppc64. 


Additional info: badcode file generated is attached.


Comment 1


Al Stone



2015-09-11 15:40:13 UTC

Created attachment 1072596 [details]
Fix little-endian assumption in method name check

This patch fixes the issue; verified with a scratch build that passes the test case:

http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2743354

The issue was that a routine was looking at the first character of a name to determine if it is an underscore or not.  If so, it's a predefined name, and the routine skips checking the number of arguments in a method call (which makes sense since they can be highly variable).  However, on ppc64 the check for an underscore fails since it looks at the wrong end of the integer holding the four bytes of method name.  This causes the check on number of arguments to be made, which then fails, and additional remarks are printed out that are false positives.  The patch fixes the check for underscore so that now the expected test results match the results we actually get.


Comment 3


Fedora Update System



2015-09-12 21:25:15 UTC

acpica-tools-20150818-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.nIf you want to test the update, you can install it with n su -c 'yum --enablerepo=updates-testing update acpica-tools'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15643


Comment 4


Fedora Update System



2015-09-13 04:20:18 UTC

acpica-tools-20150818-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.nIf you want to test the update, you can install it with n su -c 'yum --enablerepo=updates-testing update acpica-tools'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15642


Comment 5


Fedora Update System



2015-11-04 20:55:23 UTC

acpica-tools-20150818-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Comment 6


Fedora Update System



2015-11-04 22:24:03 UTC

acpica-tools-20150818-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

pro100senya

0 / 0 / 0

Регистрация: 03.01.2016

Сообщений: 5

1

12.12.2014, 17:24. Показов 21501. Ответов 2

Метки нет (Все метки)


C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
        public bool IsPrime(int x)
        {
            if (x <= 1)
                return true;
            for (int i = 2; i <= x / i; i++)
            {
                if ((x % i) == 0)
                {
                    return false;
                }
                return true;
 
            }
        }

Error 2 ‘ClassChkName.ChkNum.IsPrime(int)’: not all code paths return a value
ребят кто знает как исправить отпишите плз

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



Монфрид

1239 / 1049 / 293

Регистрация: 07.03.2012

Сообщений: 3,245

12.12.2014, 17:27

2

pro100senya,

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public bool IsPrime(int x)
        {
            bool res=false;
            if (x <= 1)
                res= true;
            for (int i = 2; i <= x / i; i++)
            {
                if ((x % i) == 0)
                {
                    res= false;
                    break;
                }
                res= true;
            }
            return res;
        }



0



745 / 486 / 187

Регистрация: 30.12.2012

Сообщений: 1,278

Записей в блоге: 2

12.12.2014, 17:31

3

pro100senya, ошибка говорит сама за себя. Не все ветви кода возвращают значение. Нужно вернуть какое-нибудь значение в конце функции, после цикла for.



0



Понравилась статья? Поделить с друзьями:
  • Callclassinstaller registerdevice failure 0xe0000235 как исправить
  • Callback request failed due to an internal server error
  • Callback message error issuing replication 8453 0x2105 replication access was denied
  • Callback invoke error 2 rage mp
  • Callback invoke error 10 gta 5