- Joined
- Sep 29, 2018
- Messages
- 23
- Motherboard
- dell 0N5KHN intel QM57
- CPU
- i5-520m (igpu disabled by manifacturer)
- Graphics
- NVIDIA NVS 3100M 512mb
I'm currently patching the DSDT of a Intel Compute Card with a core m3-7y30. the computer runs laggy sometimes after boot and keeps running sluggish until a reboot fixes it. I applied the i2c devices patch from Rehabman repo, and MacIasl (iasl 6.2a spec) is returning error 6126: syntax error, unexpected PARSEOP_SCOPE, expecting $end and premature End-Of-File.
if I compile it with iasl 4.0 spec I get hundreds of error regarding i2c devices.
the error can be fixed by removing the unused "}" between I2C0 and I2C1 scopes:
now iasl 6.2a returns the same errors for 3 line in the I2C1 scope, error code 6126: unexpected PARSEOP_CLOSE_PAREN, expecting "{".
the scope:
how can I fix that?
thanks
if I compile it with iasl 4.0 spec I get hundreds of error regarding i2c devices.
the error can be fixed by removing the unused "}" between I2C0 and I2C1 scopes:
Code:
Scope (_SB.PCI0.I2C0)
{
Name (_HID, "INT3442") // _HID: Hardware ID
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision
{
Return (LHRV (SB10))
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Return (LCRS (SMD0, SB00, SIR0))
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (LSTA (SMD0))
}
}
} //<--the unused bracket
Scope (_SB.PCI0.I2C1)
{
Device (TPL1)
{
Name (HID2, Zero)
Name (SBFB, ResourceTemplate)
{
I2cSerialBusV2 (0x004C, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C1",
0x00, ResourceConsumer, _Y3B, Exclusive,)
}
Name (SBFG, ResourceTemplate)
{
GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x0000,
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,)
{ // Pin list
0x0000
}
}
Name (SBFI, ResourceTemplate)
{
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y3C)
{
0x00000000,
}
}
CreateWordField (SBFB, \_SB.PCI0.I2C1.TPL1._Y3B._ADR, BADR) // _ADR: Address
CreateDWordField (SBFB, \_SB.PCI0.I2C1.TPL1._Y3B._SPE, SPED) // _SPE: Speed
CreateDWordField (SBFI, \_SB.PCI0.I2C1.TPL1._Y3C._INT, INT2) // _INT: Interrupts
CreateWordField (SBFG, 0x17, INT1)
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
If (LLess (OSYS, 0x07DC))
{
SRXO (GPLI, One)
}
Store (GNUM (GPLI), INT1)
Store (INUM (GPLI), INT2)
If (LEqual (SDM1, Zero))
{
SHPO (GPLI, One)
}
If (LEqual (SDS1, One))
{
Store ("ATML3432", _HID)
Store (Zero, HID2)
Store (0x4C, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x02))
{
Store ("ATML2952", _HID)
Store (Zero, HID2)
Store (0x4A, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x03))
{
Store ("ELAN2097", _HID)
Store (One, HID2)
Store (0x10, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x04))
{
Store ("NTRG0001", _HID)
Store (One, HID2)
Store (0x07, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x05))
{
Store ("NTRG0002", _HID)
Store (One, HID2)
Store (0x64, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x06))
{
Store ("WCOM508E", _HID)
Store (One, HID2)
Store (0x0A, BADR)
If (LEqual (TPLS, Zero))
{
Store (0x00061A80, SPED)
}
If (LEqual (TPLS, One))
{
Store (0x000F4240, SPED)
}
Return (Zero)
}
If (LEqual (SDS1, 0x07))
{
Store ("CUST0000", _HID)
Store (TPLH, HID2)
Store (TPLB, BADR)
If (LEqual (TPLS, Zero))
{
Store (0x000186A0, SPED)
}
If (LEqual (TPLS, One))
{
Store (0x00061A80, SPED)
}
If (LEqual (TPLS, 0x02))
{
Store (0x000F4240, SPED)
}
Return (Zero)
}
}
Name (_HID, "XXXX0000") // _HID: Hardware ID
Name (_CID, "PNP0C50") // _CID: Compatible ID
Name (_S0W, 0x04) // _S0W: S0 Device Wake State
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg0, HIDG))
{
Return (HIDD (Arg0, Arg1, Arg2, Arg3, HID2))
}
If (LEqual (Arg0, TP7G))
{
Return (TP7D (Arg0, Arg1, Arg2, Arg3, SBFB, SBFG))
}
Return (Buffer (One))
{
0x00
}
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LNotEqual (SDS1, Zero))
{
Return (0x0F)
}
Return (Zero)
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (LLess (OSYS, 0x07DC))
{
Return (SBFI)
}
If (LEqual (SDM1, Zero))
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
Return (ConcatenateResTemplate (SBFB, SBFI))
}
}
Device (IMP3)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "IMPJ0003") // _HID: Hardware ID
Name (_CID, "IMPJ0003") // _CID: Compatible ID
Name (_UID, One) // _UID: Unique ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LEqual (HAID, One))
{
Return (0x0F)
}
Return (Zero)
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (SBUF, ResourceTemplate) ()
{
I2cSerialBusV2 (0x006E, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C1",
0x00, ResourceConsumer, , Exclusive,)
}
Return (SBUF)
}
}
}
now iasl 6.2a returns the same errors for 3 line in the I2C1 scope, error code 6126: unexpected PARSEOP_CLOSE_PAREN, expecting "{".
the scope:
Code:
Scope (_SB.PCI0.I2C1)
{
Device (TPL1)
{
Name (HID2, Zero)
Name (SBFB, ResourceTemplate)//<--first error
{
I2cSerialBusV2 (0x004C, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C1",
0x00, ResourceConsumer, _Y3B, Exclusive,)
}
Name (SBFG, ResourceTemplate)//<--second error
{
GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x0000,
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,)
{ // Pin list
0x0000
}
}
Name (SBFI, ResourceTemplate)<--third error
{
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y3C)
{
0x00000000,
}
}
CreateWordField (SBFB, \_SB.PCI0.I2C1.TPL1._Y3B._ADR, BADR) // _ADR: Address
CreateDWordField (SBFB, \_SB.PCI0.I2C1.TPL1._Y3B._SPE, SPED) // _SPE: Speed
CreateDWordField (SBFI, \_SB.PCI0.I2C1.TPL1._Y3C._INT, INT2) // _INT: Interrupts
CreateWordField (SBFG, 0x17, INT1)
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
If (LLess (OSYS, 0x07DC))
{
SRXO (GPLI, One)
}
Store (GNUM (GPLI), INT1)
Store (INUM (GPLI), INT2)
If (LEqual (SDM1, Zero))
{
SHPO (GPLI, One)
}
If (LEqual (SDS1, One))
{
Store ("ATML3432", _HID)
Store (Zero, HID2)
Store (0x4C, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x02))
{
Store ("ATML2952", _HID)
Store (Zero, HID2)
Store (0x4A, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x03))
{
Store ("ELAN2097", _HID)
Store (One, HID2)
Store (0x10, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x04))
{
Store ("NTRG0001", _HID)
Store (One, HID2)
Store (0x07, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x05))
{
Store ("NTRG0002", _HID)
Store (One, HID2)
Store (0x64, BADR)
Store (0x00061A80, SPED)
Return (Zero)
}
If (LEqual (SDS1, 0x06))
{
Store ("WCOM508E", _HID)
Store (One, HID2)
Store (0x0A, BADR)
If (LEqual (TPLS, Zero))
{
Store (0x00061A80, SPED)
}
If (LEqual (TPLS, One))
{
Store (0x000F4240, SPED)
}
Return (Zero)
}
If (LEqual (SDS1, 0x07))
{
Store ("CUST0000", _HID)
Store (TPLH, HID2)
Store (TPLB, BADR)
If (LEqual (TPLS, Zero))
{
Store (0x000186A0, SPED)
}
If (LEqual (TPLS, One))
{
Store (0x00061A80, SPED)
}
If (LEqual (TPLS, 0x02))
{
Store (0x000F4240, SPED)
}
Return (Zero)
}
}
Name (_HID, "XXXX0000") // _HID: Hardware ID
Name (_CID, "PNP0C50") // _CID: Compatible ID
Name (_S0W, 0x04) // _S0W: S0 Device Wake State
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg0, HIDG))
{
Return (HIDD (Arg0, Arg1, Arg2, Arg3, HID2))
}
If (LEqual (Arg0, TP7G))
{
Return (TP7D (Arg0, Arg1, Arg2, Arg3, SBFB, SBFG))
}
Return (Buffer (One))
{
0x00
}
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LNotEqual (SDS1, Zero))
{
Return (0x0F)
}
Return (Zero)
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (LLess (OSYS, 0x07DC))
{
Return (SBFI)
}
If (LEqual (SDM1, Zero))
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
Return (ConcatenateResTemplate (SBFB, SBFI))
}
}
Device (IMP3)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "IMPJ0003") // _HID: Hardware ID
Name (_CID, "IMPJ0003") // _CID: Compatible ID
Name (_UID, One) // _UID: Unique ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LEqual (HAID, One))
{
Return (0x0F)
}
Return (Zero)
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (SBUF, ResourceTemplate) ()
{
I2cSerialBusV2 (0x006E, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C1",
0x00, ResourceConsumer, , Exclusive,)
}
Return (SBUF)
}
}
}
how can I fix that?
thanks