Jump to content

Can someone please help me with these 4 warning in the DSDT?


kkdesire
 Share

8 posts in this topic

Recommended Posts

Can someone please kindly help me? I try to fix these 4 warnings for the past week but still fail as a result...dsdt.aml is attached. Thanks a lot!

 

start of line 6911

Method (_CRS, 0, NotSerialized)

{

If (IGDS)

{

Return (CRS)

}

}

}

}

}

 

 

start of line 9021

Method (_DOD, 0, NotSerialized)

{

If (LNotEqual (SKUT, 0x03))

{

If (LEqual (GPUT, 0x03))

{

If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))

{

Return (Package (0x03)

{

0x0110,

0x0100,

0x0120

})

}

Else

{

Return (Package (0x03)

{

0x0110,

0x80000100,

0x80007330

})

}

}

 

 

post-710661-1318255044_thumb.png

 

dsdt.aml.zip

Link to comment
Share on other sites

here u go Return (zero) for both

		Method (_DOD, 0, NotSerialized)
	{
		If (LNotEqual (SKUT, 0x03))
		{
			If (LEqual (GPUT, 0x03))
			{
				If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
				{
					Return (Package (0x03)
					{
						0x0110, 
						0x0100, 
						0x0120
					})
				}
				Else
				{
					Return (Package (0x03)
					{
						0x0110, 
						0x80000100, 
						0x80007330
					})
				}
			}

			If (LEqual (PMDP, 0x03))
			{
				Return (Package (0x03)
				{
					0x0400, 
					0x00010100, 
					0x00010210
				})
			}

			Return (Package (0x03)
			{
				0x00010110, 
				0x00010100, 
				0x00010210
			})
		}
		Return (Zero)
	}

			Device (^^MEM2)
		{
			Name (_HID, EisaId ("PNP0C01"))
			Name (_UID, 0x02)
			Name (CRS, ResourceTemplate ()
			{
				Memory32Fixed (ReadWrite,
					0x20000000,		 // Address Base
					0x00200000,		 // Address Length
					)
				Memory32Fixed (ReadWrite,
					0x40000000,		 // Address Base
					0x00200000,		 // Address Length
					)
			})
			Method (_CRS, 0, NotSerialized)
			{
				If (IGDS)
				{
					Return (CRS)
				}
				Return (Zero)
			}
		}

might want to change Windows 2006 to Darwin for HPET to show 0x0F instead of 0x0B

		Method (_INI, 0, NotSerialized)
	{
		Store (0x07D0, OSYS)
		If (CondRefOf (_OSI, Local0))
		{
			If (_OSI ("Windows 2001"))
			{
				Store (0x07D1, OSYS)
			}

			If (_OSI ("Windows 2001 SP1"))
			{
				Store (0x07D1, OSYS)
			}

			If (_OSI ("Windows 2001 SP2"))
			{
				Store (0x07D2, OSYS)
			}

			If (_OSI ("Windows 2001.1"))
			{
				Store (0x07D3, OSYS)
			}

			If (_OSI ("Darwin"))
			{
				Store (0x07D6, OSYS)
			}

			If (_OSI ("Windows 2009"))
			{
				Store (0x07D9, OSYS)
			}

			If (_OSI ("Linux"))
			{
				Store (0x03E8, OSYS)
			}
		}

kkdesire.aml.zip

Link to comment
Share on other sites

strange it compiled fine in dsdtse .. guess its best to use dsdt editor to check it more.

try this

			Device (^^MEM2)
		{
			Name (_HID, EisaId ("PNP0C01"))
			Name (_UID, 0x02)
			Name (CRS, ResourceTemplate ()
			{
				Memory32Fixed (ReadWrite,
					0x20000000,		 // Address Base
					0x00200000,		 // Address Length
					)
				Memory32Fixed (ReadWrite,
					0x40000000,		 // Address Base
					0x00200000,		 // Address Length
					)
			})
			Method (_CRS, 0, NotSerialized)
			{
				If (IGDS)
				{
					Return (CRS)
				}
Else
{
				Return (Zero)
}
			}
		}

Link to comment
Share on other sites

  • 1 year later...

In my case i need to add like this

 

 
Device (^^MEM2)
            {
                Name (_HID, EisaId ("PNP0C01"))  // _HID: Hardware ID
                Name (_UID, 0x02)  // _UID: Unique ID
                Name (CRS, ResourceTemplate ()
                {
                    Memory32Fixed (ReadWrite,
                        0x20000000,         // Address Base
                        0x00200000,         // Address Length
                        )
                    Memory32Fixed (ReadWrite,
                        0x40000000,         // Address Base
                        0x00200000,         // Address Length
                        )
                })
                Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
                {
                    If (IGDS)
                    {
                        Return (CRS)
                    }
                    Return (Buffer (One)
                        {
                            0x00
                        })
 
                }
            }
Link to comment
Share on other sites

 Share

×
×
  • Create New...