Jump to content

SiddRamesh

Members
  • Content Count

    179
  • Joined

  • Last visited


Reputation Activity

  1. Like
    SiddRamesh reacted to Andy Vandijck in AnV is back   
    Been without a computer for 2 years.
    Had to save money to buy one
    But now I am back...
     
  2. Like
    SiddRamesh reacted to Slice in SMC keys knowledge database   
    Two keys asked by FileVault2 interface
    BBAD [flag] (bytes 00)
    BSIn [hex_] (bytes 42)
    I don't know what they mean but I see real MacBookPro has constants here.
     
    EDITED. 
    From vit9696
    BBAD, Battery Bad, Set to 1 if battery is in a bad state. For example, if it is taken out.

    BSIn, Battery System info byte. BSIn[7:0]
    0=Charging
    1=AC present
    2=AC presence changed
    3=OS Stop Charge
    4=OS Calibration Req
    5=BatteryQueryInProgress
    6=batOK
    7=adcInProgress
  3. Like
    SiddRamesh reacted to Nightf4ll in HWSensors3   
    was searching for this. maybe it would be good to put this in a readme.text in the SuperIO folder...
  4. Like
    SiddRamesh got a reaction from Gigamaxx in Tracing back the AMD GPU wakeup issue to its origin   
    I thing I got QE/CI! 
     
    But now my only concern is 30-bit colors(its present in 10.11.6), how can I achieve it !

    Sir I got QE/CI with screen 
     
    Now my only concern is, how can I unlock 30-bit color (I got it in 10.11.6) !
     
    AMD6000Controller/LVDS  -Pondweed 
     
    ​Sir its strange I've injected 2 FB patches 
     
    1. AMD FrameBuffer Utility 
     
    FB           02000000 00010000 19010100 00000000 10000505 00000000 (LVDS) 
    Patch      02000000 40000000 09010100 00000000 10010007 00000000 
     
    2. Manually Generated 
     
    FB            00040000 04030000 00010000 12040105. (DP)
    Patch       02000000 40000000 08010000 10000107
  5. Like
    SiddRamesh reacted to Slice in Tracing back the AMD GPU wakeup issue to its origin   
    Hello Mieze!
    Good work you began!
    This dump contains lspci dump and more for Polaris GPU   #35  
     
    We have three issues with Radeon drivers in HackOS
    1. Bad GPU registers initialisation. Hope you resolved this.
    2. Bad connectors in PC Videocard compared to Apple's framebuffer. If we set Inject=NO then Apple's driver calculates connectors by itself. But not enough for multimonitors.
    3. Bad AMDRadeonX4000GLDriver.bundle (not for Hack). It can't be patched by Clover because it is loaded from user space. I may propose to create better bundle with name like AMDRadeonX4001GLDriver.bundle and patch the name somewhere it used.
  6. Like
  7. Like
    SiddRamesh reacted to limurphy in [HOW TO] Modification of AMD FB + Clover injection   
    ATOM BIOS Rom:
        SubsystemVendorID: 0x104d SubsystemID: 0x908a
        IOBaseAddress: 0x0000
        Filename: BR41199.024
        BIOS Bootup Message:
    Sony/Wistron Z50CR ThamesPro DDR3                                           
     
    PCI ID: 1002:6841
    Connector at index 0
        Type [@offset 16006]: LVDS (7)
        Encoder [@offset 16010]: INTERNAL_UNIPHY (0x1e)
        i2cid [@offset 16080]: 0x96, OSX senseid: 0x7
    Connector at index 1
        Type [@offset 16016]: HDMI-A (11)
        Encoder [@offset 16020]: INTERNAL_UNIPHY1 (0x20)
        i2cid [@offset 16103]: 0x90, OSX senseid: 0x1
    Connector at index 2
        Type [@offset 16026]: VGA (1)
        Encoder [@offset 16030]: INTERNAL_KLDSCP_DAC1 (0x15)
        i2cid [@offset 16130]: 0x97, OSX senseid: 0x8
     
     
    BR41199.024 :
     
    Sony/Wistron Z50CR ThamesPro DDR3                                           
     
    Subsystem Vendor ID: 104d
           Subsystem ID: 908a
    Object Header Structure Size: 199
    Connector Object Table Offset: 34
    Router Object Table Offset: 0
    Encoder Object Table Offset: 99
    Display Path Table Offset: 12
    Connector Object Id [14] which is [LVDS]
        encoder obj id [0x1e] which is [iNTERNAL_UNIPHY (osx txmit 0x10 [duallink 0x0] enc 0x0)] linkb: false
    Connector Object Id [12] which is [HDMI_TYPE_A]
        encoder obj id [0x20] which is [iNTERNAL_UNIPHY1 (osx txmit 0x11 [duallink 0x1] enc 0x2)] linkb: false
    Connector Object Id [5] which is [VGA]
        encoder obj id [0x15] which is [iNTERNAL_KLDSCP_DAC1 (osx txmit 0x00 enc 0x10?)] linkb: false
     
     
    LVDS    :  10 00 01 07
    HDMI    :  11 02 02 01
    VGA     :  00 10 03 08
     
    LVDS   / 02000000 40000000 08010000 / + (add your code construction)
    VGA    / 10000000 10000000 00010000 / + (add your code construction)
    DP     / 00040000 04030000 00010000 / + (add your code construction)
    DVI-SL / 00020000 04020000 00010000 / + (add your code construction)
    DVI-DL / 04000000 14020000 00010000 / + (add your code construction)
    HDMI   / 00080000 04020000 00010000 / + (add your code construction)
     
    From AMD6000Controller.kext:
    Ipomoea (3)
    DP, HDMI, VGA
    orig:
    00040000040300000001000012040105
    00080000040200000001000011020403
    10000000100000000001000000000002
     
    fix:
    02000000400000000801000010000107
    00080000040200000001000011020201
    10000000100000000001000000100308
     
     
     
     
     
    DSDT.aml.zip
  8. Like
    SiddRamesh reacted to Slice in HWSensors3   
    I wish to announce HWSensors3 revision 75 is available now at sourceforge.net. The link is in my signature.
    It includes:
    FakeSMC 3.5.0
    IntelCPUMonitor supporting CPU up to Kabylake 2.
    AmdCPUMonitor
    ACPIMonitor for custom monitoring
    RadeonMonitor  supporting HD5xxx, 6xxx, 7xxx, R7 2xx, RX4xx, RX5xx and similar
    GeforceSensors supporting cards up to Pascal. It has monitoring Core, Shader and Memory clocks.
    SuperIO chip monitoring including Fintek, ITE, Winbond, Nuvoton and SMC LPC chips. 
    VoodooBatterySMC to show laptop battery voltage and current amperage dynamically.
    HWMonitorSMC application to show all these values
    as well iStatPro widget
  9. Like
    SiddRamesh reacted to Slice in HWSensors3   
    There is influence of Machine ID on GPUPM.
    But there is no influence of SMC Rev on performance.
  10. Like
    SiddRamesh reacted to toleda in Tracing back the AMD GPU wakeup issue to its origin   
    Not correct, MPB 8,3/HD 6xxxM, enables threshold GPM
    Try MPB 11,5/R9 3xxM, enables pstate GPM
     
    AMD HD 7xxx and newer use same APGM/.../GFX0 properties (ex, GFX1)
    Edit: Except HD 7650M, actually 6xxx; credit: Slice/#249
  11. Like
    SiddRamesh reacted to Slice in Clover update r4318 being detected as Osx.Malware.Proton   
    Hackintosh OS is a dangerous malware that is able to destroy your computer.
    And Clover is a biggest virus in the world!
  12. Like
    SiddRamesh reacted to Cyberdevs in Tracing back the AMD GPU wakeup issue to its origin   
    Here it is
    AMD Radeon HD 7650M SSDT.zip
  13. Like
    SiddRamesh reacted to Cyberdevs in Tracing back the AMD GPU wakeup issue to its origin   
    I'm not good with these stuff either but I can definitely try
     
    Is this your GPU?
  14. Like
    SiddRamesh reacted to Slice in Tracing back the AMD GPU wakeup issue to its origin   
    But vice versa.
    This SSDT works for me in 10.12.6.
    For HighSierra I need also to replace 4 kexts from 10.12.6 related to this card.
    Don't know about radeon 5xxx. It should work without tricks. The method needed for 6xxx and later.
  15. Like
    SiddRamesh reacted to Slice in Tracing back the AMD GPU wakeup issue to its origin   
    @Mieze
    It's fantastic work!
    Confirm working with my Radeon 6450 in Sierra.
    I just made this patch as SSDT
    SSDT-AMD.aml.zip
  16. Like
    SiddRamesh reacted to Slice in Tracing back the AMD GPU wakeup issue to its origin   
    Really 7650M is 6xxx family
    { 0x6841, CHIP_FAMILY_TURKS, "AMD Radeon HD 7650M Series",
  17. Like
    SiddRamesh reacted to fusion71au in macOS High Sierra - Final Release is out! (17A365)   
    Hi Guys,
     
    Successfully updated both my desktop systems and my Dell XPS M1530 notebook to High Sierra Release - 10.13_17A365 .
     
    1.  GA-P55aUD3 with legacy BIOS/Intel i5-750/ATI HD5770/HFS+ HDD

     
    2.  Skylake NUC6i5SYH with UEFI/Intel i5-6260U/Iris 540/APFS SSD

     
    3.  Dell XPS M1530 legacy BIOS/Intel T9300/Geforce 8600M GT/HFS+ Ext HDD

     
     
    Installation Notes "Install macOS High Sierra.app" v 13.0.64 run directly from Applications folder for upgrade install of existing GM_17A362a Updated to latest Clover r4220, Clover injected default values for FF/FFM/PF and BIOS ver/date/Board-ID data (iMac11,3, iMac17,1, MBP7,1) --> avoid error while "verifying firmware" Latest apfs.efi driver in /EFI/CLOVER/drivers64 or /EFI/CLOVER/drivers64UEFI (only needed if APFS target volume) Removed NVRAM.plist files from all EFI partitions (incl USB drives), ran sudo NVRAM -c command in terminal to reset NVRAM prior to update On my Skylake NUC, I don't need or use EmuVariableUefi-64 ---> avoid OSInstall.mpkg damaged/missing error If upgrading existing OS X on HDD, HFS+ is preserved (on SSD HFS+ will be converted automatically to APFS) Certain SATA controllers will still have issues with AppleAHCIPort v329 (eg ICH10, 5 series, 7 series, ASMedia 1061) ---> Disks may fail to initialize, not readable or hot plug may fail.  AppleAHCIPort.kext v328 with version bundle 999.1.1 survives upgrade if installed in /L/E, and is loaded in preference to v329 A windows disk present on the machine during installation is OK. Update 30 Sep 2017
    @SunKi has discovered a patch for AppleAHCIPort.kext that fixes the SATA issues described above.  This can be applied in Clover config.plist/KextsToPatch...
     
     
    Clover_v2.4k_r4221.zip
    apfs_17A365.efi.zip
  18. Like
    SiddRamesh reacted to toleda in Tracing back the AMD GPU wakeup issue to its origin   
    Outstanding work.  Suggestion, edit Post #1 dsdt patch to Device (GFX0) replacing Device (PEGP).  
     
    PEGP/AGPM - threshhold GPM:

     
    GFX0/AGPM - p-state GPM (imac18,3)

     
    Desktop/Skylake/Polaris: imac18,3/Mac-BE088AF8C5EB4FA2
     
    Otherwise,  a dummy AMD AGPM kext can be injected by adding the GFX0 (or PEGP/PEG0/H000, etc.) property to any board-id:

  19. Like
    SiddRamesh reacted to Pavo in [HOW TO] Modification of AMD FB + Clover injection   
    High Sierra Beta 7 Framebuffers
    ------------------------AMD10000Controller.kext------------------------- Exmoor (6) @ 0x10c6e0 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Kamarang (4) @ 0x10cb10 DP, DP, DP, HDMI 000400000403000000010101000000002205020200000000 000400000403000000010201000000001204010100000000 000400000403000000010300000000001000050500000000 000800000402000000010400000000002001060600000000 Japura (6) @ 0x10e1b0 LVDS, LVDS, DP, DP, DP, DP 020000000001000008010151020000002205020200000000 020000000001000008010261020000001204010100000000 000400000403000000010313000000002001050600000000 000400000403000000010423000000001000060500000000 000400000403000000010543000000001102030300000000 000400000403000000010633000000002103040400000000 Iriri (4) @ 0x1159b0 DP, DP, DP, HDMI 000400000403000000010101000000002205020200000000 000400000403000000010201000000001204010100000000 000400000403000000010300000000001000050500000000 000800000402000000010400000000002001060600000000 Baladi (6) @ 0x115f80 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD2400Controller.kext------------------------- Iago (2) @ 0x109df0 LVDS, ???? 020000004000000019000000000000000001001200000000 0010000016000000c4000000000000001000011100000000 -------------------------AMD2600Controller.kext------------------------- Hypoprion (2) @ 0x109dc0 LVDS, ???? 020000004000000019000000000000000001001200000000 0010000016000000c4000000000000001000011100000000 Lamna (2) @ 0x109df0 SDVI, DDVI 000200001400000080000000000000000001021100000000 040000001600000080000000000000000010011200000000 -------------------------AMD3800Controller.kext------------------------- Megalodon (3) @ 0x10ada0 SDVI, DDVI, SVIDEO 000200001400000000000000000000000001021100000000 040000001600000000000000000000000010011200000000 800000000200000004000000000000000010000000000000 Triakis (2) @ 0x10adf0 SDVI, DDVI 000200001400000000000000000000000001021100000000 040000001600000000000000000000000010011200000000 -------------------------AMD4600Controller.kext------------------------- Flicker (3) @ 0x107d20 DP, DP, SDVI 000400000004000000010000000000000201030500000000 000400000004000000010000000000000100020200000000 000200001402000000010000000000000010010400000000 Gliff (3) @ 0x107d70 LVDS, LVDS, DP 020000004000000019010000000000000201000300000000 020000000001000019010000000000002001020200000000 000400000406000000010000000000001000010100000000 Shrike (3) @ 0x107dc0 LVDS, LVDS, DP 020000004000000019010000000000000201000300000000 020000000001000019010000000000002001020200000000 000400000403000000010000000000001000010100000000 -------------------------AMD4800Controller.kext------------------------- Cardinal (2) @ 0x106d50 SDVI, DDVI 000200001402000000010000000000000101010400000000 040000001402000000010000000000000010020300000000 MotMot (2) @ 0x106d80 DP, DDVI 000400000401000000010000000000001000020300000000 040000001402000000010000000000000111010400000000 Quail (3) @ 0x106db0 LVDS, LVDS, DP 020000004000000019010000000000002201000700000000 020000000001000019010000000000002001030400000000 000400000403000000010000000000001000020300000000 -------------------------AMD5000Controller.kext------------------------- Douc (2) @ 0xc8680 LVDS, DP 020000000005000019030000000000002103020200000000 000400000402000000030000000000001102010100000000 Langur (3) @ 0xc86b0 DP, DP, DDVI 000400000406000000010000000000002103040200000000 000400000406000000010000000000001102010100000000 040000001402000000010000000000000204050300000000 Uakari (4) @ 0xc8700 DP, DDVI, SDVI, HDMI 000400000004000000710000000000001204040100000000 040000001400000000710000000000000112010300000000 000200001400000000710000000000000000060500000000 000800000002000000710000000000002205050400000000 Zonalis (6) @ 0xc8760 DP, DP, DP, DP, DP, DP 000400000406000000710000000000002001060600000000 000400000406000000710000000000001000050500000000 000400000406000000710000000000002103020400000000 000400000406000000710000000000001102010300000000 000400000406000000710000000000002205040200000000 000400000406000000710000000000001204030100000000 Alouatta (4) @ 0xc87f0 LVDS, DP, DP, DP 020000000001000019010000000000001204030300000000 000400000406000000710000000000001102010100000000 000400000406000000710000000000002103020200000000 000400000406000000710000000000002205040400000000 Hoolock (3) @ 0xc8850 DP, DP, DDVI 000400000406000000010000000000002103050100000000 000400000406000000010000000000001102040200000000 040000001402000000010000000000000204010300000000 Vervet (4) @ 0xc88a0 DP, DDVI, SDVI, HDMI 000400000004000000710000000000001204040200000000 040000001400000000710000000000000112010400000000 000200001400000000710000000000000000060300000000 000800000002000000710000000000002205050100000000 Baboon (3) @ 0xc8900 DDVI, HDMI, VGA 040000001400000000010000000000000102010300000000 000800000002000000710000000000002205020100000000 100000001000000000010000000000000010000200000000 Eulemur (3) @ 0xc8950 DDVI, HDMI, VGA 040000001400000000010000000000000102010400000000 000800000002000000710000000000001204040200000000 100000001000000000000000000000000010000100000000 Galago (2) @ 0xc89b0 LVDS, DP 020000000001000019030000000000002103020200000000 000400000406000000730000000000001102010100000000 Colobus (2) @ 0xc89f0 LVDS, DP 020000000001000019030000000000002103020200000000 000400000406000000730000000000001102010100000000 Mangabey (2) @ 0xc8a30 LVDS, DP 020000004000000019010000000000000000000300000000 000400000406000000730000000000001102010100000000 Nomascus (4) @ 0xc8a70 LVDS, LVDS, DP, DP 020000004000000019010000000000000000000500000000 020000000001000019030000000000001204030300000000 000400000406000000730000000000001102010100000000 000400000407000000730000000000002103020200000000 Orangutan (2) @ 0xc8ae0 LVDS, DP 020000004000000019010000000000000000000500000000 000400000406000000730000000000001102010100000000 -------------------------AMD6000Controller.kext------------------------- Pithecia (2) @ 0xe76a0 DP, DDVI 000400000403000000010000000000002103020400000000 040000001402000000010000000000000000040300000000 Bulrushes (6) @ 0xe76d0 DP, DP, DP, DP, DP, DP 000400000403000000010000000000001102010100000000 000400000403000000010000000000002103020200000000 000400000403000000010000000000001204030300000000 000400000403000000010000000000002205040400000000 000400000403000000010000000000001000050500000000 000400000403000000010000000000002001060600000000 Cattail (4) @ 0xe7760 LVDS, DP, DP, DP 020000004000000039050000000000000000000500000000 000400000403000000010000000000001102010100000000 000400000001000000091000000000002103020200000000 000400000001000000091000000000001204030300000000 Hydrilla (5) @ 0xe77c0 LVDS, DP, DP, DP, DP 020000000001000019010000000000001204030300000000 000400000403000000010000000000001102010100000000 000400000001000000091000000000002103020200000000 000400000001000000091000000000002205050400000000 000400000403000000010000000000001000040500000000 Duckweed (4) @ 0xe7840 DP, DP, HDMI, SDVI 000400000403000000010000000000001204040100000000 000400000403000000010000000000002205050200000000 000800000402000000010000000000001102030400000000 000200001402000000010000000000000000060500000000 Fanwort (4) @ 0xe78a0 LVDS, DP, DP, DP 020000004000000039050000000000000000000400000000 000400000403000000010000000000001102010100000000 000400000001000000091000000000002103020200000000 000400000001000000091000000000001204030300000000 Elodea (5) @ 0xe7900 LVDS, DP, DP, DP, DP 020000000001000019010000000000001204030300000000 000400000403000000010000000000001000050500000000 000400000403000000010000000000001102010100000000 000400000001000000091000000000002103020200000000 000400000001000000091000000000002205040400000000 Kudzu (2) @ 0xe7980 DP, HDMI 000400000403000000010000000000001204030300000000 000800000402000000010000000000001102010100000000 Gibba (5) @ 0xe79b0 DP, DP, HDMI, SDVI, DDVI 000400000403000000010000000000001204050100000000 000400000403000000010000000000002205040200000000 000800000402000000010000000000001102060400000000 000200001402000000010000000000000000030500000000 040000000402000000010000000000001102010300000000 Lotus (3) @ 0xe7a30 DP, HDMI, DP 000400000403000000010000000000001102010100000000 000800000402000000010000000000002205040400000000 000400000001000000010000000000002103020200000000 Ipomoea (3) @ 0xe7a80 DP, HDMI, VGA 000400000403000000010000000000001204010500000000 000800000402000000010000000000001102040300000000 100000001000000000010000000000000000000200000000 Muskgrass (4) @ 0xe7ad0 DP, DP, DP, HDMI 000400000403000000010100000000001102010100000000 000400000001000000091200000000002103020200000000 000400000001000000091300000000002205040400000000 000800000402000000010400000000001204030300000000 Juncus (4) @ 0xe7b30 DP, DP, DP, DP 000400000403000000010000000000001204030300000000 000400000403000000010000000000001000040500000000 000400000403000000010000000000001102010100000000 000400000403000000010000000000002103020200000000 Osmunda (4) @ 0xe7b90 LVDS, DP, DP, HDMI 020000000001000039050100000000001000050500000000 000400000403000000090200000000001102010100000000 000400000403000000090300000000002103020200000000 000800000402000000010400000000001204030300000000 Pondweed (3) @ 0xe7bf0 LVDS, DP, DP 020000000001000019010100000000001000050500000000 000400000403000000010200000000001102010100000000 000400000403000000010300000000002103020200000000 Spikerush (4) @ 0xe7c40 LVDS, DP, DP, DP 020000004000000039050100000000000000000500000000 000400000403000000010200000000001102010100000000 000400000001000000090200000000002103020200000000 000400000001000000090300000000001204030300000000 Typha (5) @ 0xe7ca0 DP, DP, DP, DP, DDVI 000400000403000000010100000000001102040100000000 000400000403000000010200000000002103050200000000 000400000001000000090300000000001000020500000000 000400000001000000090400000000002001030600000000 040000001402000000010500000000000204010300000000 -------------------------AMD7000Controller.kext------------------------- Ramen (6) @ 0xea7c0 LVDS, HDMI, DP, DP, DP, DP 020000000001000039050108000000002001050600000000 000800000402000000010200000000001000030500000000 000400000403000000010343000000001102010100000000 000400000001000000010431000000002103040300000000 000400000403000000010563000000001204020200000000 000400000001000000010651000000002205040300000000 Tako (6) @ 0xea8c0 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Namako (4) @ 0xea950 LVDS, LVDS, DP, DP 020000000001000000010151000000002205020200000000 020000000001000000010261010000001204010100000000 000400000403000000010343000000001102030300000000 000400000403000000010433000000002103040400000000 Aji (4) @ 0xeaa30 DP, DP, DDVI, HDMI 000400000403000000010101000000001204050100000000 000400000403000000010201000000002205040200000000 040000001402000000010300000000000000030600000000 000800000402000000010400000000001102010400000000 Buri (4) @ 0xeaa90 LVDS, DP, DP, HDMI 020000000001000039050100000000001000050500000000 000400000403000000090200000000001102010100000000 000400000403000000090300000000002103020200000000 000800000402000000010400000000001204030300000000 Chutoro (5) @ 0xeaaf0 LVDS, DP, DP, DP, DP 020000000001000019010100000000001204030300000000 000400000403000000010201000000001102010100000000 000400000001000000090300000000002103020200000000 000400000001000000090400000000002205040400000000 000400000403000000010500000000001000050500000000 Dashimaki (4) @ 0xeab70 DP, DP, DDVI, HDMI 000400000403000000010101000000001204020200000000 000400000403000000010200000000002205030500000000 040000001402000000010301000000000000040400000000 000800000402000000010400000000001102010100000000 Ebi (5) @ 0xeabe0 LVDS, DP, DP, DP, DP 020000000001000019010100000000001204030300000000 000400000403000000010201000000001102010100000000 000400000001000000090301000000002103020200000000 000400000001000000090401000000002205040400000000 000400000403000000010501000000001000050500000000 Gari (5) @ 0xeac60 LVDS, DP, DP, DP, DP 020000000001000019010100000000001204030300000000 000400000403000000010201000000001102010100000000 000400000001000000090300000000002103020200000000 000400000001000000090400000000002205040400000000 000400000403000000010500000000001000050500000000 Futomaki (4) @ 0xeace0 DP, DP, DDVI, HDMI 000400000403000000010101000000001204040100000000 000400000403000000010201000000002205050200000000 040000001402000000010300000000000000060600000000 000800000402000000010400000000001102010300000000 Hamachi (4) @ 0xead40 DP, DP, DDVI, HDMI 000400000403000000010101000000001204050100000000 000400000403000000010201000000002205040200000000 040000001402000000010300000000000000030600000000 000800000402000000010400000000001102010400000000 OPM (6) @ 0xeade0 DP, DP, DP, DP, DP, DP 000400000403000000010001000000001102010100000000 000400000403000000010001000000002103020200000000 000400000403000000010001000000001204030300000000 000400000403000000010001000000002205040400000000 000400000403000000010001000000001000050500000000 000400001403000000010001000000002001060600000000 Ikura (1) @ 0xeae70 HDMI 000800000402000000010100000000001204030100000000 IkuraS (6) @ 0xeae90 DP, DP, DP, DP, DP, DP 000400000403000000010143000000001102010300000000 000400000403000000010233000000002103020400000000 000400000403000000010363000000001204030100000000 000400000403000000010453000000002205040200000000 000400000403000000010523000000001000050500000000 000400000403000000010613000000002001060600000000 Junsai (6) @ 0xeaf20 DP, DP, DP, DP, DP, DP 000400000403000000010001000000001204030100000000 000400000403000000010001000000002205040200000000 000400000403000000010001000000001102010300000000 000400000403000000010001000000002103020400000000 000400000403000000010001000000001000050500000000 000400000403000000010001000000002001060600000000 Kani (1) @ 0xeafb0 HDMI 000800000402000000010100000000001204030100000000 KaniS (6) @ 0xeafd0 DP, DP, DP, DP, DP, DP 000400000403000000010143000000001102010300000000 000400000403000000010233000000002103020400000000 000400000403000000010363000000001204030100000000 000400000403000000010453000000002205040200000000 000400000403000000010523000000001000050500000000 000400000403000000010613000000002001060600000000 DashimakiS (4) @ 0xeb060 DP, DP, DDVI, HDMI 000400000403000000010101000000001204020200000000 000400000403000000010201000000002205030500000000 040000001402000000010300000000000000040400000000 000800000402000000010400000000001102010100000000 Maguro (1) @ 0xeb0c0 HDMI 000800000402000000010100000000001204030100000000 MaguroS (6) @ 0xeb0e0 DP, DP, DP, DP, DP, DP 000400000403000000010143000000001102010300000000 000400000403000000010233000000002103020400000000 000400000403000000010363000000001204030100000000 000400000403000000010453000000002205040200000000 000400000403000000010523000000001000050500000000 000400000403000000010613000000002001060600000000 -------------------------AMD8000Controller.kext------------------------- Exmoor (6) @ 0xf1220 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Baladi (6) @ 0xf13c0 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD9000Controller.kext------------------------- Exmoor (6) @ 0x139dc0 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 OPM (6) @ 0x139e50 DP, DP, DP, DP, DP, DP 000400000403000000000001000000001000010100000000 000400000403000000000001000000002001020200000000 000400000403000000000001000000001102030300000000 000400000403000000000001000000002103040400000000 000400000403000000000001000000001204050500000000 000400000403000000000001000000002205060600000000 MalteseS (1) @ 0x139f00 HDMI 000800000402000000010100000000001204030100000000 Lagotto (4) @ 0x139f20 DP, HDMI, DDVI, DDVI 000400000403000000010100000000001102040100000000 000800000402000000010200000000002103050300000000 040000000402000000010300000000000000010500000000 040000000402000000010400000000000204060600000000 GreyhoundS (1) @ 0x139f80 HDMI 000800000402000000010100000000001204030100000000 Maltese (6) @ 0x13a010 DP, DP, DP, DP, DP, DP 000400000403000000010123000000001000010300000000 000400000403000000010213000000002001020400000000 000400000403000000010343000000001102030100000000 000400000403000000010433000000002103040200000000 000400000403000000010563000000001204050500000000 000400000403000000010653000000002205060600000000 Labrador (6) @ 0x13a0d0 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010131000000002103020400000000 020000000001000000010241010000001102010300000000 000400000403000000010323000000001000030100000000 000400000001000000010411000000002001050500000000 000400000403000000010563000000001204040200000000 000400000001000000010651000000002205050500000000 Basset (4) @ 0x13a160 LVDS, LVDS, DP, DP 020000000001000000010131000000002103020200000000 020000000001000000010241010000001102010100000000 000400000403000000010323000000001000030300000000 000400000403000000010413000000002001040400000000 Greyhound (6) @ 0x13a220 DP, DP, DP, DP, DP, DP 000400000403000000010123000000001000010300000000 000400000403000000010213000000002001020400000000 000400000403000000010343000000001102030100000000 000400000403000000010433000000002103040200000000 000400000403000000010563000000001204050500000000 000400000403000000010653000000002205060600000000 Baladi (6) @ 0x13a2b0 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD9300Controller.kext------------------------- Exmoor (6) @ 0x1522f0 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 OPM (6) @ 0x152380 DP, DP, DP, DP, DP, DP 000400000403000000000001000000001000010100000000 000400000403000000000001000000002001020200000000 000400000403000000000001000000001102030300000000 000400000403000000000001000000002103040400000000 000400000403000000000001000000001204050500000000 000400000403000000000001000000002205060600000000 MalteseS (1) @ 0x152410 HDMI 000800000402000000010100000000001204030100000000 FleuveSWIP (4) @ 0x152430 DP, DP, DP, HDMI 000400000403000000010141000000001102050100000000 000400000403000000010231000000002103040200000000 000400000403000000010311000000002001030300000000 000800000402000000010400000000001204020600000000 Lagotto (4) @ 0x152490 DP, HDMI, DDVI, DDVI 000400000403000000010100000000001102040100000000 000800000402000000010200000000002103050300000000 040000000402000000010300000000000000010500000000 040000000402000000010400000000000204060600000000 GreyhoundS (1) @ 0x152500 HDMI 000800000402000000010100000000001204030100000000 Maltese (6) @ 0x1525f0 DP, DP, DP, DP, DP, DP 000400000403000000010123000000001000010300000000 000400000403000000010213000000002001020400000000 000400000403000000010343000000001102030100000000 000400000403000000010433000000002103040200000000 000400000403000000010563000000001204050500000000 000400000403000000010653000000002205060600000000 Labrador (6) @ 0x152680 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010131000000002103020400000000 020000000001000000010241010000001102010300000000 000400000403000000010323000000001000030100000000 000400000001000000010411000000002001050500000000 000400000403000000010563000000001204040200000000 000400000001000000010651000000002205050500000000 Basset (4) @ 0x152710 LVDS, LVDS, DP, DP 020000000001000000010131000000002103020200000000 020000000001000000010241010000001102010100000000 000400000403000000010323000000001000030300000000 000400000403000000010413000000002001040400000000 Greyhound (6) @ 0x1527d0 DP, DP, DP, DP, DP, DP 000400000403000000010123000000001000010300000000 000400000403000000010213000000002001020400000000 000400000403000000010343000000001102030100000000 000400000403000000010433000000002103040200000000 000400000403000000010563000000001204050500000000 000400000403000000010653000000002205060600000000 Baladi (6) @ 0x152860 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD9500Controller.kext------------------------- Orinoco (5) @ 0x121d90 DP, DP, HDMI, HDMI, DDVI 000400000403000000010101000000001204060100000000 000400000403000000010201000000002205040300000000 000800000402000000010300000000001102010200000000 000800000402000000010400000000002103050400000000 040000000400000000010500000000000000030600000000 Exmoor (6) @ 0x121e10 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Acre (3) @ 0x121f80 DP, HDMI, DDVI 000400000403000000010101000000001102020100000000 000800000402000000010200000000002103050400000000 040000000402000000010300000000000000030500000000 Huallaga (3) @ 0x121fd0 DP, DP, HDMI 000400000403000000010101000000001204040300000000 000400000403000000010201000000001102010200000000 000800000402000000010300000000002103050400000000 Palena (5) @ 0x122090 LVDS, DP, DP, DP, DP 020000000001000039050108000000002001010100000000 000400000001000000010243000000001000020200000000 000400000403000000010313000000002103030300000000 000400000403000000010453000000001102040400000000 000400000403000000010533000000001204050500000000 Guariba (6) @ 0x122110 DP, DP, DP, HDMI, DDVI, DP 000400000403000000010101000000001204060100000000 000400000403000000010201000000002205040300000000 000400000403000000010301000000001102010200000000 000800000402000000010400000000002103050400000000 040000000402000000010500000000000000030600000000 000400000001000000010601000000002001020500000000 Dayman (6) @ 0x1221a0 DP, DP, DP, HDMI, DDVI, DP 000400000403000000010101000000001204060100000000 000400000403000000010201000000002205040300000000 000400000403000000010301000000001102010200000000 000800000402000000010400000000002103050400000000 040000000402000000010500000000000000030600000000 000400000001000000010601000000002001020500000000 Baladi (6) @ 0x122230 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 OPM (5) @ 0x1222c0 DP, DP, DP, DP, DP 000400000403000000000001000000001102020200000000 000400000403000000000001000000002103030300000000 000400000403000000000001000000001204010100000000 000400000403000000000001000000001000040400000000 000400000403000000000001000000002001050500000000 -------------------------AMD9510Controller.kext------------------------- Exmoor (6) @ 0x104920 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Berbice (5) @ 0x1049b0 LVDS, DP, DP, DP, DP 020000000001000039050108000000002001010100000000 000400000001000000010243000000001000020200000000 000400000403000000010313000000002103030300000000 000400000403000000010453000000001102040400000000 000400000403000000010533000000001204050500000000 Baladi (6) @ 0x104bb0 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD9515Controller.kext------------------------- Exmoor (6) @ 0x104930 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Mazaruni (5) @ 0x1049c0 LVDS, DP, DP, DP, DP 020000000001000039050108000000002001010100000000 000400000001000000010243000000001000020200000000 000400000403000000010313000000002103030300000000 000400000403000000010453000000001102040400000000 000400000403000000010533000000001204050500000000 Longavi (5) @ 0x104b30 LVDS, DP, DP, DP, DP 020000000001000039050108000000002001010100000000 000400000001000000010243000000001000020200000000 000400000403000000010313000000002103030300000000 000400000403000000010453000000001102040400000000 000400000403000000010533000000001204050500000000 Baladi (6) @ 0x104c30 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000 -------------------------AMD9520Controller.kext------------------------- Exmoor (6) @ 0x105910 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010151000000002205020400000000 020000000001000000010261010000001204010300000000 000400000403000000010343000000001102030100000000 000400000001000000010431000000002103050500000000 000400000403000000010523000000001000040200000000 000400000001000000010611000000002001050500000000 Elqui (5) @ 0x1059a0 LVDS, LVDS, DP, DP, DP 020000000001000000010141000000001102020400000000 020000000001000000010231010000002103010300000000 000400000403000000010313000000002001030100000000 000400000403000000010413000000001204040200000000 000400000403000000010501000000001000050500000000 Caroni (5) @ 0x105b10 LVDS, LVDS, DP, DP, DP 020000000001000000010141000000001102020400000000 020000000001000000010231010000002103010300000000 000400000403000000010313000000002001030100000000 000400000403000000010413000000001204040200000000 000400000403000000010501000000001000050500000000 Florin (6) @ 0x105c00 LVDS, LVDS, DP, DP, DP, DP 020000000001000000010141000000001102020400000000 020000000001000000010231010000002103010300000000 000400000403000000010313000000002001030100000000 000400000403000000010421000000001000050500000000 000400000403000000010553000000002205040200000000 000400000403000000010661000000001204060600000000 Baladi (6) @ 0x105c90 DP, DP, DP, DP, DP, DP 000400000403000000010300000000001204030300000000 000400000403000000010100000000001102010100000000 000400000403000000010200000000002103020200000000 000400000403000000010400000000002205040400000000 000400000403000000010500000000001000050500000000 000400000403000000010600000000002001060600000000
  20. Like
    SiddRamesh reacted to Slice in Clover Change Explanations   
    Rev 4294
    New Shell is able to correctly edit plists. Most important is config.plist. TAB characters converted to double spaces on the fly
    Enter Shell
    Shell> fs0:
    fs0:> cd EFI\CLOVER
    fs0:\EFI\CLOVER> edit config.plist
    ...
    Press F2 to save the result
    Press F3 to exit from editing
    fs0:> exit
    you will return to Clover
     
    Enjoy!
  21. Like
    SiddRamesh reacted to Slice in Clover Change Explanations   
    Rev 4295
    Show kexts versions in menu to disable them.
     
    Rev 4296
    A possibility to de-init Radeon cards.
    It was very old problem since ElCapitan that AMD Radeon HD6xxx and up will not wake after sleep if used as first card.
    If the card is secondary and CSM enabled then the card works fine. So the differences is initialisation.
    The solution was found by vit9696 and used in private WhateverGreen.kext. Then Mieze proposed the solution as ACPI patch.
    Now I included this into Clover.
    You have to set in config.plist

    <key>Graphics</key> <dict> <key>RadeonDeInit</key> <true/> Related threads
    No graphics / USB / Audio after wake 
    Tracing back the AMD GPU wakeup issue to its origin
  22. Like
    SiddRamesh reacted to Cyberdevs in Tracing back the AMD GPU wakeup issue to its origin   
    No worries
     
    I know how busy you guys are with your life and work and regardless you take the time to improve our lives and give us joy with our hackintoshes, and I am personally thankful to all of you guys for the great job that you are doing for this great community. 
     
    I was just curious to know if there's another solution for that problem, It's not a big deal because I don't use that PC that much. 
  23. Like
    SiddRamesh reacted to Cyberdevs in Tracing back the AMD GPU wakeup issue to its origin   
    Which kexts should be replaced?
     
    I've been trying to get my display to work on my GA-EP45-DS3R with And Radeon 7790 I have the same problem. There is no PEGP in the DSDT to apply the patch to, the SSDT doesn't work either.
    But when the macOS Sierra loads with Lilu and WhateverGreen I see that the display is detected on PEGP\GFX0 in IOReg.
    But when I replace the AMD8000Controller.kext and AMDRadeonX4000.kext it works but there's no acceleration and the VRAM is only 7MB (This is with Lilu and WhateverGreen not the current DSDT patch method)
  24. Like
    SiddRamesh reacted to Mieze in Tracing back the AMD GPU wakeup issue to its origin   
    Introduction
     
    With Whatevergreen.kext we already have a workaround for the AMD GPU wakeup issue which first arose with the release of El Capitan, but as a workaround is just a second class solution for a problem I decided to trace back the reason for the issue to it's origin and this post is the result of my research. As I used a R9 270X to do my research, which is the only AMD GPU I have, my patch has only been verified to work properly with this chip but according to the information sources I used, I have no reason to believe it won't work on other AMD GPU's too. In case there is still some uncertainty left in a particular point, I will mention this explicitly.
     
     
    Materials Used
    The Linux kernel sources of the Radeon driver in order to get a better understanding of the GPU's internals: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/radeon?h=next-20171013 A copy of the ACPI 6.0 specs in order to find out how to dump the chip's control register space. A disassembler, e.g. objdump in Terminal or the trial version of Hopper Disassembler.  
     
    What I Did
     
    As it's been a well known fact that wakeup with AMD GPUs still works with El Capitan and Sierra provided you
    select the IGPU as primary GPU enabled CSM and use Legacy VBIOS of the AMD GPU in BIOS setup. I was wondering what is different with UEFI VBIOS and decided to I create dumps of the GPU's control register space while using Legacy VBIOS with CSM enabled and while using UEFI VBIOS with CSM disabled in order to find out. Comparing the register space contents it became obvious where the root of the problem lies and how it can be fixed with a DSDT patch.
     
     
    Technical Background
     
    Using Legacy VBIOS only the primary GPU is initialized by the VBIOS, i.e. only the IGPU is initialized while the AMD GPU is left untouched. When OS X boots up the framebuffer controller kext will find the AMD GPU in vanilla state, initialize it properly and wakeup will work as expected. That's also the reason why you have to blind boot in this configuration.
     
    Using UEFI VBIOS the AMD GPU will be initialized too, provided it has a display connected to one of it's ports. You'll see the BIOS splash screen and will be able to access the BIOS settings but unfortunately macOS's framebuffer controller kext will notice that the GPU has already been initialized and skips the basic setup so that the configuration made by the VBIOS will be used and this is the point where things start to go wrong because this configuration seems to be broken causing wakeup to fail.
     
    First of all you have to locate the AMD GPU in your DSDT. In my case it can be found at _SB.PCI0.PEG0.PEGP but it needs to be renamed to GFX0 for AppleGraphicsDevicePolicy.kext (AGDP) to work properly. This can be done manually or using a Clover patch (this is what I did) and I assume that this problem has been already solved before. The reason why I mention it explicitly here, is that you should be aware of it and don't get confused when your AMD GPU has a different name in the DSDT than in IORegistry.
     
    Second, we need to get access to the GPU's control register space. According to the Linux sources, PCI Base Address Register 2 (BAR2) is used to address the control register space on Radeon HD5000, HD6000 and HD7000 GPUs. It's a 64bit base address register but newer GPUs (BONAIRE and above, i.e. Radeon HD8000 and HD9xxx) are different as the use BAR5 instead of BAR2. Unlike BAR2, BAR5 is a 32bit base address register. On my R9 270X (PITCAIRN) BAR5 is zero so that I decided to use this as an indication to use BAR2 but I must confess that I haven't checked if it works for all supported GPUs too. In case my patch doesn't work for you, be aware that this might be a pitfall!
     
    The Radeon driver's source code tells us that the first display controller engine's registers can be found starting at offset 0x6800. It also tells us a lot about the meaning of the register contents. Using Legacy VBIOS my R9 270X's display controller engine's registers are still at their default values when macOS boots:
    00006800 01 00 00 00 08 80 00 0a 00 00 00 00 00 00 00 00 |................| 00006810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006870 00 00 00 00 08 80 00 14 00 00 00 00 00 00 00 00 |................| 00006880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000068a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000068b0 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 20 |........... ... | 000068c0 00 00 00 20 10 00 00 00 00 00 00 20 00 00 00 20 |... ....... ... | 000068d0 00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 |... ..... ......| 000068e0 00 00 00 20 00 00 00 00 00 00 00 00 00 20 00 00 |... ......... ..| 000068f0 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 20 |..... ......... | With UEFI VBIOS the display controller engine's registers look quite different. Using the Linux driver sources you can easily make sense out of these values and will discover that I've got a 4K display connected to my R9 270X which is configured to it's native resolution using 32 bits per pixel.
    00006800 01 00 00 00 0a 80 00 0a 00 00 00 00 00 00 00 00 |................| 00006810 00 00 00 00 00 00 00 00 00 0f 00 00 f4 00 00 00 |................| 00006820 f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006830 00 00 00 00 00 0f 00 00 70 08 00 00 00 00 00 00 |........p.......| 00006840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006850 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 |................| 00006860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006870 00 00 00 00 08 80 00 14 00 00 00 00 00 00 00 00 |................| 00006880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00006890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000068a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000068b0 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 20 |........... ... | 000068c0 00 00 00 20 10 00 00 00 00 00 00 20 00 00 00 20 |... ....... ... | 000068d0 00 00 00 20 00 00 00 00 00 20 00 00 00 00 00 00 |... ..... ......| 000068e0 00 00 00 20 00 00 00 00 00 00 00 00 00 20 00 00 |... ......... ..| 000068f0 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 20 |..... ......... | The rest was just a little bit of laborious work and trial and error, comparing register contents, understanding their meanings and see what happens when you reset these registers to their default values. If you try to play around with your GPU's control registers a little bit more, be prepared to get a garbled screen for a few seconds. After all I've managed to create a DSDT patch which fixes the wrong registers while preserving screen output during boot and, most important, solves the wakeup issue.
     
     
    The Patch
     
    Putting things together I created a DSDT patch to fix the incorrectly initialized registers. With this patch applied, I now have working wakeup with my R9 270X under Sierra (10.12.6) using UEFI VBIOS with CSM disabled in UEFI setup. No kext patches or additional kexts are needed anymore for sleep/wake to work properly with my R9 270X anymore. I can see the BIOS splash screen on my display and can access UEFI setup but the best of all is that there hasn't been a single wakeup issue since I applied this patch.
    Device (PEGP) { 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, 0xFFFFFFFFFFFFFFF0), 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) } } In case you have in-detail questions or need AML code for debugging (code to dump BARs or to dump the GPUs control register space) please let me know. I'm willing to share all my information in order support further research. Below you can find the register dumps I created attached to this post.
     
    FAQ
    Do I still have to select the IGPU as the primary display? No. Although I haven't tried this on my own, user chh1 confirmed that this is no longer required when using the patch (please see http://www.insanelymac.com/forum/topic/328549-tracing-back-the-amd-gpu-wakeup-issue-to-its-origin/?do=findComment&comment=2519884). Nevertheless I still recommend to select the IGPU as primary as there is absolutely no reason not to do so, in particular as the IGPU will be unusable for multimedia acceleration on Haswell based systems when it's not the primary one (IGPU's dev id is different when it's not the primary one).
    ​When I boot into macOS I always end up with a black screen. Does your patch solve this problem too? No, it doesn't. This patch solves the wakeup issue, nothin more and nothing less. The black screen after boot is either the result of a connector problem (please create a connector patch for your graphics card using the well-known methods) or the result of a problem with AGPM as certain system definitions (in particular recent iMacs) select special configurations for graphics power management. In order to achieve proper operation of AGPM it is crucial that your GPUs have correct names in the DSDT matching those listed in the AGPM configuration for the system definition (IGPU for the Intel GPU and GFX0 for the AMD GPU on iMac15,1, iMac17,1 and iMac18,x). You may patch your DSDT manually or use a Clover DSDT-patch to fix the device names.
     
     
    Credits
    vit9696 for developing Whatevergreen.kext and pointing me to the right direction. RehabMan for developing ACPIDebug.kext The Linux Radeon driver kernel developers for providing me with the background information I needed. Legacy.bin.zip
    UEFI.bin.zip
  25. Like
    SiddRamesh reacted to RehabMan in Clover Problems and Solutions   
    @Slice
     
    Those changes in r4289 commit look like they should fix the ACPI problems (and others), so thanks for correcting the code to better match my original.
     
    FYI, I will probably have no chance to test/merge/diff/review/etc until early next week sometime.
×