Jump to content

AMD Radeon RX Vega 64


apfelnico
 Share

5 posts in this topic

Recommended Posts

What is the correct name of the framebuffer from the following video card: AMD Radeon RX Vega 64?

 

How do I get the latest Metal Support (Supports, Function set macOS GPUFamily1 v3)?

 

macOS 10.13.1

 

The best way to find out, is to try to do some reading from the most prominent thread about Vega: http://www.insanelymac.com/forum/topic/325120-vega-frontier-edition-on-high-sierra/

Link to comment
Share on other sites

Sorry, but that's not helpful. Did not you read this thread? There are no answers to my questions. My two cards are also running. Also I have an SSDT to it. Metal is succinctly "supported". But that is no support for the current Metal2.

 

Edit: Japura, Iriri or Kamarang?

    Scope (\_SB.PCI2.BR2A.GFX0)
    {
        OperationRegion (PCIS, PCI_Config, Zero, 0x0100)
        Field (PCIS, AnyAcc, NoLock, Preserve)
        {
            PVID,   16, 
            PDID,   16
        }

        Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
        {
            Return (GPRW (0x69, 0x04))
        }

        Device (GFXA)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Device (GFX0)
            {
                Name (_ADR, Zero)  // _ADR: Address
                OperationRegion (PCIB, PCI_Config, Zero, 0x0100)
                Field (PCIB, AnyAcc, NoLock, Preserve)
                {
                    Offset (0x10), 
                    BAR0,   32, 
                    BAR1,   32, 
                    BAR2,   64, 
                    BAR4,   32, 
                    BAR5,   32
                }

                Method (_INI, 0, NotSerialized)  // _INI: Initialize
                {
                    If (LEqual (BAR5, Zero))
                    {
                        Store (BAR2, Local0)
                    }
                    Else
                    {
                        Store (BAR5, Local0)
                    }

                    OperationRegion (GREG, SystemMemory, And (Local0, 0xFFFFFFF0), 0x8000)
                    Field (GREG, AnyAcc, NoLock, Preserve)
                    {
                        Offset (0x6800), 
                        GENA,   32, 
                        GCTL,   32, 
                        LTBC,   32, 
                        Offset (0x6810), 
                        PSBL,   32, 
                        SSBL,   32, 
                        PTCH,   32, 
                        PSBH,   32, 
                        SSBH,   32, 
                        Offset (0x6848), 
                        FCTL,   32, 
                        Offset (0x6EF8), 
                        MUMD,   32
                    }

                    Store (Zero, FCTL)
                    Store (Zero, PSBH)
                    Store (Zero, SSBH)
                    Store (Zero, LTBC)
                    Store (One, GENA)
                    Store (Zero, MUMD)
                }

                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x14)
                        {
                            "AAPL,slot-name", 
                            Buffer (0x07)
                            {
                                "Slot-1"
                            }, 

                            "CFG,CFG_USE_AGDC", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "PP,PP_DisableAutoWattman", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "@0,AAPL,boot-display", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "@0,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@1,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@2,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@3,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "model", 
                            Buffer (0x13)
                            {
                                "AMD Radeon Vega 64"
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

            Device (HDAU)
            {
                Name (_ADR, One)  // _ADR: Address
                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x0C)
                        {
                            "built-in", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "AAPL,slot-name", 
                            Buffer (0x07)
                            {
                                "Slot-1"
                            }, 

                            "layout-id", 
                            Buffer (0x04)
                            {
                                 0x01, 0x00, 0x00, 0x00                         
                            }, 

                            "name", 
                            Buffer (0x0D)
                            {
                                "AMD HD-Audio"
                            }, 

                            "model", 
                            Buffer (0x0D)
                            {
                                "AMD HD-Audio"
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
        }
    }

Link to comment
Share on other sites

  • 2 weeks later...

 

Sorry, but that's not helpful. Did not you read this thread? There are no answers to my questions. My two cards are also running. Also I have an SSDT to it. Metal is succinctly "supported". But that is no support for the current Metal2.

 

Edit: Japura, Iriri or Kamarang?

    Scope (\_SB.PCI2.BR2A.GFX0)
    {
        OperationRegion (PCIS, PCI_Config, Zero, 0x0100)
        Field (PCIS, AnyAcc, NoLock, Preserve)
        {
            PVID,   16, 
            PDID,   16
        }

        Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
        {
            Return (GPRW (0x69, 0x04))
        }

        Device (GFXA)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Device (GFX0)
            {
                Name (_ADR, Zero)  // _ADR: Address
                OperationRegion (PCIB, PCI_Config, Zero, 0x0100)
                Field (PCIB, AnyAcc, NoLock, Preserve)
                {
                    Offset (0x10), 
                    BAR0,   32, 
                    BAR1,   32, 
                    BAR2,   64, 
                    BAR4,   32, 
                    BAR5,   32
                }

                Method (_INI, 0, NotSerialized)  // _INI: Initialize
                {
                    If (LEqual (BAR5, Zero))
                    {
                        Store (BAR2, Local0)
                    }
                    Else
                    {
                        Store (BAR5, Local0)
                    }

                    OperationRegion (GREG, SystemMemory, And (Local0, 0xFFFFFFF0), 0x8000)
                    Field (GREG, AnyAcc, NoLock, Preserve)
                    {
                        Offset (0x6800), 
                        GENA,   32, 
                        GCTL,   32, 
                        LTBC,   32, 
                        Offset (0x6810), 
                        PSBL,   32, 
                        SSBL,   32, 
                        PTCH,   32, 
                        PSBH,   32, 
                        SSBH,   32, 
                        Offset (0x6848), 
                        FCTL,   32, 
                        Offset (0x6EF8), 
                        MUMD,   32
                    }

                    Store (Zero, FCTL)
                    Store (Zero, PSBH)
                    Store (Zero, SSBH)
                    Store (Zero, LTBC)
                    Store (One, GENA)
                    Store (Zero, MUMD)
                }

                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x14)
                        {
                            "AAPL,slot-name", 
                            Buffer (0x07)
                            {
                                "Slot-1"
                            }, 

                            "CFG,CFG_USE_AGDC", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "PP,PP_DisableAutoWattman", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "@0,AAPL,boot-display", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "@0,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@1,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@2,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "@3,name", 
                            Buffer (0x0D)
                            {
                                "ATY,Kamarang"
                            }, 

                            "model", 
                            Buffer (0x13)
                            {
                                "AMD Radeon Vega 64"
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

            Device (HDAU)
            {
                Name (_ADR, One)  // _ADR: Address
                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x0C)
                        {
                            "built-in", 
                            Buffer (One)
                            {
                                 0x00                                           
                            }, 

                            "AAPL,slot-name", 
                            Buffer (0x07)
                            {
                                "Slot-1"
                            }, 

                            "layout-id", 
                            Buffer (0x04)
                            {
                                 0x01, 0x00, 0x00, 0x00                         
                            }, 

                            "name", 
                            Buffer (0x0D)
                            {
                                "AMD HD-Audio"
                            }, 

                            "model", 
                            Buffer (0x0D)
                            {
                                "AMD HD-Audio"
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
        }
    }

This is my way to Inject FB Name “Kamarang”on the Vega 64 with DSDT。Add a new device“LTRE” to replace the “pci-bridge”。I tried to inject it with SSDT,but at last I failed.

post-2105175-0-12792100-1512880705_thumb.png

                Device (PEGP)
                {
                    Name (_ADR, Zero)  // _ADR: Address
                    Device (LTRE)
                    {
                        Name (_ADR, Zero)  // _ADR: Address
                        Device (GFX0)
                        {
                            Name (_ADR, Zero)  // _ADR: Address
                            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                            {
                                If (LEqual (Arg2, Zero))
                                {
                                    Return (Buffer (One)
                                    {
                                         0x03                                           
                                    })
                                }

                                Return (Package (0x10)
                                {
                                    "AAPL,slot-name", 
                                    Buffer (0x07)
                                    {
                                        "Slot-1"
                                    }, 

                                    "@0,name", 
                                    Buffer (0x0D)
                                    {
                                        "ATY,Kamarang"
                                    }, 

                                    "@1,name", 
                                    Buffer (0x0D)
                                    {
                                        "ATY,Kamarang"
                                    }, 

                                    "@2,name", 
                                    Buffer (0x0D)
                                    {
                                        "ATY,Kamarang"
                                    }, 

                                    "@3,name", 
                                    Buffer (0x0D)
                                    {
                                        "ATY,Kamarang"
                                    }, 

                                    "device_type", 
                                    Buffer (0x13)
                                    {
                                        "ATY,KamarangParent"
                                    }, 

                                    "model", 
                                    Buffer (0x13)
                                    {
                                        "Radeon Pro Vega 64"
                                    }, 

                                    "hda-gfx", 
                                    Buffer (0x0A)
                                    {
                                        "onboard-2"
                                    }
                                })
                            }
                        }
                    }
                }
            }

Link to comment
Share on other sites

What is the correct name of the framebuffer from the following video card: AMD Radeon RX Vega 64?

 

How do I get the latest Metal Support (Supports, Function set macOS GPUFamily1 v3)?

 

macOS 10.13.1

 

The Metal status saying 'Supported' vs GPUFamily1 v3 may be cosmetic.

 

With my RX480 supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily1_v3 returns TRUE no matter if the system report says 'Supported' or 'GPUFamily1 v3'.

It also indicates it supports MTLFeatureSet_macOS_ReadWriteTextureTier2, which is a Metal2 specific feature set.

 

The only time I've ever gotten the system report to say GPUFamily1 v3 is if my IGPU is also active. I've never managed it with the RX480 being the only graphics adapter listed in the system report. Maybe there is a way, but I gave up looking once I realized the Metal APIs were saying Metal2 was supported.

Link to comment
Share on other sites

 Share

×
×
  • Create New...