Jump to content

Legacy Processor() keyword detected. Use Device() keyword instead.


8 posts in this topic

Recommended Posts

Hey everyone,

 

Could someone help me out with DSDT on which I am working now, fixed all the issues except this warning:

Legacy Processor() keyword detected. Use Device() keyword instead.

 

Trying to figure out how to fix it properly, but no success.

 

    Scope (_SB)
    {
        Processor (PR00, 0x01, 0x00001810, 0x06){}
        Processor (PR01, 0x02, 0x00001810, 0x06){}
        Processor (PR02, 0x03, 0x00001810, 0x06){}
        Processor (PR03, 0x04, 0x00001810, 0x06){}
        Processor (PR04, 0x05, 0x00001810, 0x06){}
        Processor (PR05, 0x06, 0x00001810, 0x06){}
        Processor (PR06, 0x07, 0x00001810, 0x06){}
        Processor (PR07, 0x08, 0x00001810, 0x06){}
        Processor (PR08, 0x09, 0x00001810, 0x06){}
        Processor (PR09, 0x0A, 0x00001810, 0x06){}
        Processor (PR10, 0x0B, 0x00001810, 0x06){}
        Processor (PR11, 0x0C, 0x00001810, 0x06){}
        Processor (PR12, 0x0D, 0x00001810, 0x06){}
        Processor (PR13, 0x0E, 0x00001810, 0x06){}
        Processor (PR14, 0x0F, 0x00001810, 0x06){}
        Processor (PR15, 0x10, 0x00001810, 0x06){}
    }

    Scope (_SB.PR00)
    {

 

Screenshot 2020-02-03 at 17.35.54.png

Edited by pompey

Scope (\_SB)
    {
        Scope (\_PR)
        {
            Name (_HID, "ACPI0004" /* Module Device */)  // _HID: Hardware ID
            Name (_UID, "SCK0_CPU0_23")  // _UID: Unique ID
            Processor (CP00, 0x00, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP01, 0x01, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP02, 0x02, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP03, 0x03, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP04, 0x04, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP05, 0x05, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP06, 0x06, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP07, 0x07, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP08, 0x08, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP09, 0x09, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0A, 0x0A, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0B, 0x0B, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0C, 0x0C, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0D, 0x0D, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0E, 0x0E, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0F, 0x0F, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0G, 0x10, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0H, 0x11, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0I, 0x12, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0J, 0x13, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0K, 0x14, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0L, 0x15, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0M, 0x16, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Processor (CP0N, 0x17, 0x00000410, 0x06)
            {
                Name (_PXM, 0x00)  // _PXM: Device Proximity
            }

            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                Return (0x0F)
            }

            Scope (CP00)
            {
                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Local0 = Package (0x02)
                        {
                            "plugin-type", 
                            0x01
                        }
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
        }


 I hope it can help you 

Scope (_PR)
    {
    }

    Scope (_SB)
    {
        Device (PAGD)
        {
            Name (_HID, "ACPI000C")  // _HID: Hardware ID
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                If (_OSI ("Processor Aggregator Device"))
                {
                    Return (0x0F)
                }
                Else
                {
                    Return (Zero)
                }
            }

            Name (_PUR, Package (0x02)  // _PUR: Processor Utilization Request
            {
                One, 
                Zero
            })
        }
    }
 

24 minutes ago, Rocky12 said:

this is not your untouched dsdt when i apply the patch to it give 77 different other errors

 

try this dsdt just as reference

 

Sorry mate, here is the untouched one

System DSDT-untouched.dsl

 

In the previous one, I fixed all the errors and warnings, so only the "Legacy Processor() keyword detected. Use Device() keyword instead" issues are left

Edited by pompey
×
×
  • Create New...