Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for AMD GPUs #9

Open
kudos opened this issue Feb 28, 2016 · 22 comments
Open

Support for AMD GPUs #9

kudos opened this issue Feb 28, 2016 · 22 comments

Comments

@kudos
Copy link

kudos commented Feb 28, 2016

I have an iMac (Retina 5K, 27-inch, Late 2014) with a Radeon R9 M295X and can't seem to get this to work. I'm using a Club3D CAC-1170 adapter to get HDMI 2.0 and a Sony X8307 TV. The same TV gets full res at 60Hz using the HDMI port on my PC.

I have applied both patches (though presumably the nvidia one will do nothing) and added a custom res to SwitchResX to get 3840x2160@60Hz. When I switch to that res, the TV claims it is receiving 1920x2160 (not sure what refresh rate).

Should the IOKit patch work for me too, or do the AMD drivers need patching?

@Floris497
Copy link
Owner

Hm that is interesting.. Are you sure you didn't make a typo while making the custom resolution? You might only need the IOKit one for the HDMI2.0 but nothing more than that.. That adapter should be fine.. It could matter which TB port you use, i had this whith my MacBook that one port did 30Hz and one did 60Hz.. Maybe reset all the settings in switchresx and make new ones :)

Hope this helps, if that is not the case i don't really know..

@kudos
Copy link
Author

kudos commented Feb 28, 2016

Hopefully these might help diagnose the problem. Not sure how useful the EDID is, but included it anyway, feel free to edit it out of my comment if it isn't.

SwitchResX
screen shot 2016-02-28 at 14 59 01
Display Preferences
screen shot 2016-02-28 at 14 59 04

Display EDID

EDID report generated by SwitchResX Version 4.5.3 (Intel - 64-bit) for display SONY TV


-----------------------------------------------------
------------------- RAW DATA ------------------------
-----------------------------------------------------
      0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
-----------------------------------------------------
0  | 00 FF FF FF FF FF FF 00 4D D9 03 C6 01 01 01 01
1  | 01 19 01 03 80 5F 36 78 0A 0D C9 A0 57 47 98 27
2  | 12 48 4C 21 08 00 81 80 A9 C0 71 4F B3 00 01 01
3  | 01 01 01 01 01 01 02 3A 80 18 71 38 2D 40 58 2C
4  | 45 00 B8 17 32 00 00 1E 01 1D 00 72 51 D0 1E 20
5  | 6E 28 55 00 B8 17 32 00 00 1E 00 00 00 FC 00 53
6  | 4F 4E 59 20 54 56 20 20 2A 30 32 0A 00 00 00 FD
7  | 00 30 3E 0E 46 3C 00 0A 20 20 20 20 20 20 01 61

-----------------------------------------------------
      0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
-----------------------------------------------------
0  | 02 03 4E F0 5B 61 60 5D 5E 5F 62 1F 10 14 05 13
1  | 04 20 22 3C 3E 12 16 03 07 11 15 02 06 01 65 66
2  | 29 0D 7F 07 15 07 50 3D 07 BC 83 0F 00 00 6E 03
3  | 0C 00 10 00 B8 3C 2F 00 80 01 02 03 04 67 D8 5D
4  | C4 01 78 80 01 E2 00 F9 E5 0F 03 00 00 06 01 1D
5  | 80 18 71 1C 16 20 58 2C 25 00 B8 17 32 00 00 9E
6  | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7  | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7

-----------------------------------------------------
 < 00FFFFFF FFFFFF00 4DD903C6 01010101 01190103 805F3678 0A0DC9A0 57479827 12484C21 08008180 A9C0714F B3000101 01010101 0101023A 80187138 2D40582C 4500B817 3200001E 011D0072 51D01E20 6E285500 B8173200 001E0000 00FC0053 4F4E5920 54562020 2A30320A 000000FD 00303E0E 463C000A 20202020 20200161 02034EF0 5B61605D 5E5F621F 10140513 0420223C 3E121603 07111502 06016566 290D7F07 1507503D 07BC830F 00006E03 0C001000 B83C2F00 80010203 0467D85D C4017880 01E200F9 E50F0300 0006011D 8018711C 1620582C 2500B817 3200009E 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000F7 >

-----------------------------------------------------
 { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x4D, 0xD9, 0x03, 0xC6, 0x01, 0x01, 0x01, 0x01, 0x01, 0x19, 0x01, 0x03, 0x80, 0x5F, 0x36, 0x78, 0x0A, 0x0D, 0xC9, 0xA0, 0x57, 0x47, 0x98, 0x27, 0x12, 0x48, 0x4C, 0x21, 0x08, 0x00, 0x81, 0x80, 0xA9, 0xC0, 0x71, 0x4F, 0xB3, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3A, 0x80, 0x18, 0x71, 0x38, 0x2D, 0x40, 0x58, 0x2C, 0x45, 0x00, 0xB8, 0x17, 0x32, 0x00, 0x00, 0x1E, 0x01, 0x1D, 0x00, 0x72, 0x51, 0xD0, 0x1E, 0x20, 0x6E, 0x28, 0x55, 0x00, 0xB8, 0x17, 0x32, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x53, 0x4F, 0x4E, 0x59, 0x20, 0x54, 0x56, 0x20, 0x20, 0x2A, 0x30, 0x32, 0x0A, 0x00, 0x00, 0x00, 0xFD, 0x00, 0x30, 0x3E, 0x0E, 0x46, 0x3C, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x61, 0x02, 0x03, 0x4E, 0xF0, 0x5B, 0x61, 0x60, 0x5D, 0x5E, 0x5F, 0x62, 0x1F, 0x10, 0x14, 0x05, 0x13, 0x04, 0x20, 0x22, 0x3C, 0x3E, 0x12, 0x16, 0x03, 0x07, 0x11, 0x15, 0x02, 0x06, 0x01, 0x65, 0x66, 0x29, 0x0D, 0x7F, 0x07, 0x15, 0x07, 0x50, 0x3D, 0x07, 0xBC, 0x83, 0x0F, 0x00, 0x00, 0x6E, 0x03, 0x0C, 0x00, 0x10, 0x00, 0xB8, 0x3C, 0x2F, 0x00, 0x80, 0x01, 0x02, 0x03, 0x04, 0x67, 0xD8, 0x5D, 0xC4, 0x01, 0x78, 0x80, 0x01, 0xE2, 0x00, 0xF9, 0xE5, 0x0F, 0x03, 0x00, 0x00, 0x06, 0x01, 0x1D, 0x80, 0x18, 0x71, 0x1C, 0x16, 0x20, 0x58, 0x2C, 0x25, 0x00, 0xB8, 0x17, 0x32, 0x00, 0x00, 0x9E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF7   }

-----------------------------------------------------
    Valid EDID block #0: checksum ok
    Valid EDID block #1: checksum ok

-----------------------------------------------------
------------------- MAIN EDID BLOCK -----------------
-----------------------------------------------------

    EDID Version........1.3
    Manufacturer........SNY (4DD9)
    Product ID..........50691 (C603)
    Serial Number.......01010101

    Manufactured........Week 1 of year 2015
    Max H Size..........95 cm
    Max V Size..........54 cm
    Gamma...............2.20

Display Supported Features:
---------------------------


Display type:
-------------
    RGB 4:4:4 & YCrCb 4:4:4 Color Encoding Formats
    Display is non continuous frequency
    Default color space is not sRGB standard
    Preferred timing mode includes Native Pixel Format


Input signal & sync:
--------------------
Digital Input
    Color Bit Depth is undefined
    Digital Interface is not defined


Color info:
-----------
Red x = 0.625  Green x = 0.280  Blue x = 0.155  White x = 0.283
Red y = 0.340  Green y = 0.595  Blue y = 0.070  White y = 0.298

Established Timings:
--------------------
    640 x 480 @ 60Hz
    800 x 600 @ 60Hz
    1024 x 768 @ 60Hz

Manufacturer Reserved Timings:
------------------------------

Standard Timing Identification:
-------------------------------
    #0: 1280 x 1024 @ 60Hz  (8180)
    #1: 1600 x 900 @ 60Hz   (A9C0)
    #2: 1152 x 864 @ 75Hz   (714F)
    #3: 1680 x 1050 @ 60Hz  (B300)

Monitor Description blocks:
---------------------------
    Descriptor #0 - Timing definition:
    Mode = 1920 x 1080 @ 60.000Hz
        Pixel Clock............. 148.50 MHz     Non-Interlaced

                                Horizontal      Vertical
        Active.................. 1920 pixels        1080 lines
        Front Porch.............   88 pixels           4 lines
        Sync Width..............   44 pixels           5 lines
        Back Porch..............  148 pixels          36 lines
        Blanking................  280 pixels          45 lines
        Total................... 2200 pixels        1125 lines
        Scan Rate...............  67.500 kHz         60.000 Hz

        Image Size..............  952 mm         535 mm
        Border..................    0 pixels           0 lines

            Sync: Digital separate with
                * Positive vertical polarity
                * Positive horizontal polarity

    Descriptor #1 - Timing definition:
    Mode = 1280 x 720 @ 60.000Hz
        Pixel Clock............. 74.25 MHz      Non-Interlaced

                                Horizontal      Vertical
        Active.................. 1280 pixels         720 lines
        Front Porch.............  110 pixels           5 lines
        Sync Width..............   40 pixels           5 lines
        Back Porch..............  220 pixels          20 lines
        Blanking................  370 pixels          30 lines
        Total................... 1650 pixels         750 lines
        Scan Rate...............  45.000 kHz         60.000 Hz

        Image Size..............  952 mm         535 mm
        Border..................    0 pixels           0 lines

            Sync: Digital separate with
                * Positive vertical polarity
                * Positive horizontal polarity

    Descriptor #2 - Monitor name:
            SONY TV  *02

    Descriptor #3 - Monitor limits:
        Horizontal frequency range.......14-70 kHz
        Vertical frequency range.........48-62 Hz
        Maximum bandwidth range..........600 MHz
        GTF supported


-----------------------------------------------------
------------ EXTENSION EDID BLOCK   1 ---------------
-----------------------------------------------------

CEA-EXT: CEA 861 Series Extension:
----------------------------------
    Revision:...........................3
    First DTD block at offset...........74
    Display Supports:
        Underscan on PC modes
        Basic audio
        YCbCr 4:4:4
        YCbCr 4:2:2

Data Block Collection #1 - Type 2
    Video Type: standard CEA Timings
    #1: 3840 x 2160p @ 60Hz - 16:9 (97)
    #2: 3840 x 2160p @ 50Hz - 16:9 (96)
    #3: 3840 x 2160p @ 24Hz - 16:9 (93)
    #4: 3840 x 2160p @ 25Hz - 16:9 (94)
    #5: 3840 x 2160p @ 30Hz - 16:9 (95)
    #6: 4096 x 2160p @ 24Hz - 256:135 (98)
    #7: 1920 x 1080p @ 50Hz - 16:9 - '1080p50' (31)
    #8: 1920 x 1080p @ 59.94/60Hz - 16:9 - '1080p' (16)
    #9: 1920 x 1080i @ 50Hz - 16:9 - '1080i25' (20)
    #10: 1920 x 1080i @ 59.94/60Hz - 16:9 - '1080i' (5)
    #11: 1280 x 720p @ 50Hz - 16:9 - '720p50' (19)
    #12: 1280 x 720p @ 59.94/60Hz - 16:9 - '720p' (4)
    #13: 1920 x 1080p @ 23.98/24Hz - 16:9 - '1080p24' (32)
    #14: 1920 x 1080p @ 29.97/30Hz - 16:9 - '1080p30' (34)
    #15: 1280 x 720p @ 23.98/24Hz - 16:9 - '720p24' (60)
    #16: 1280 x 720p @ 29.97/30Hz - 16:9 - '720p30' (62)
    #17: 720 x 576p @ 50Hz - 16:9 - '576pH' (18)
    #18: 720(1440) x 576i @ 50Hz - 16:9 - '576iH' (22)
    #19: 720 x 480p @ 59.94/60Hz - 16:9 - '480pH' (3)
    #20: 720(1440) x 480i @ 59.94/60Hz - 16:9 - '480iH' (7)
    #21: 720 x 576p @ 50Hz - 4:3 - '576p' (17)
    #22: 720(1440) x 576i @ 50Hz - 4:3 - '576i' (21)
    #23: 720 x 480p @ 59.94/60Hz - 4:3 - '480p' (2)
    #24: 720(1440) x 480i @ 59.94/60Hz - 4:3 - '480i' (6)
    #25: 640 x 480p @ 59.94/60Hz - 4:3 - 'DMT0659' (1)
    #26: 4096 x 2160p @ 50Hz - 256:135 (101)
    #27: 4096 x 2160p @ 60Hz - 256:135 (102)

Data Block Collection #2 - Type 1
    Audio Type Block
        Supported format:   Linear Pulse Code Modulation (LPCM), on 6 channels
        Supported freq:     32kHz, 44.1kHz, 48kHz, 88.2kHz, 96kHz, 176.4kHz, 192kHz
        Supported sample sizes: 16 bit, 20 bit, 24 bit
        Supported format:   AC3, on 6 channels
        Supported freq:     32kHz, 44.1kHz, 48kHz
        Maximum bitrate:    640kHz

        Supported format:   DTS, on 6 channels
        Supported freq:     32kHz, 44.1kHz, 48kHz
        Maximum bitrate:    -544kHz


Data Block Collection #3 - Type 4
    Speaker allocation data block
        Rear Left / Rear Right
        Front Center
        LFE
        Front Left / Front Right
        Front Center High
        Top Center
        Front Left High / Front Right High

Data Block Collection #4 - Type 3
    Vendor specific Identifier
    Found HDMI IEEE Registration Identifier
        CEC physical address........... 1.0.0.0
        Supports AI (ACP, ISRC)........ Yes
        Supports 48bpp color depth..... No
        Supports 36bpp color depth..... Yes
        Supports 30bpp color depth..... Yes
        Supports YCbCr 4:4:4........... Yes
        Supports dual-link DVI......... No
        Maximum TMDS clock............. 300 MHz
        HDMI video capabilities........ Yes
        Supports 3D.................... No
        HDMI 1.4a specifics present

Data Block Collection #5 - Type 3
    Vendor specific Identifier: D8-5D-C4 - not interpreted

Data Block Collection #6 - Type 7
    Video Capability Data Block
        CE scan behaviour: Always Overscannned
        IT scan behaviour: Always Underscanned
        PT scan behaviour: Support both over- and underscan
        RGB quantization: Selectable (via AVI Q)
        YCbCr quantization: Selectable (via AVI Q)

Data Block Collection #7 - Type 7
    Reserved for video-related blocks

Detailed Timing Blocks - 0 is native
    Detailed Timing Block #1 - Timing definition:
    Mode = 1920 x 540 @ 60.053Hz
        Pixel Clock............. 74.25 MHz      Interlaced

                                Horizontal      Vertical
        Active.................. 1920 pixels         540 lines
        Front Porch.............   88 pixels           2 lines
        Sync Width..............   44 pixels           5 lines
        Back Porch..............  148 pixels          15 lines
        Blanking................  280 pixels          22 lines
        Total................... 2200 pixels         562 lines
        Scan Rate...............  33.750 kHz         60.053 Hz

        Image Size..............  952 mm         535 mm
        Border..................    0 pixels           0 lines

            Sync: Digital separate with
                * Positive vertical polarity
                * Positive horizontal polarity

@kudos
Copy link
Author

kudos commented Feb 28, 2016

Also tried both TB ports, no difference. I even have both Mini-DP and regular DP (with mini to full adapter) Club3D active adapters, no difference there either.

@Floris497
Copy link
Owner

Does 30Hz work fine?

@kudos
Copy link
Author

kudos commented Feb 28, 2016

Yep, and when I bump the refresh rate up, the TV reports 1920x2160@60Hz. Something to do with MST maybe?

@Floris497
Copy link
Owner

Maybe.. I was thinking in that direction.. But not sure if that is changeble for the adapter..

@Floris497
Copy link
Owner

You probably also tried different HDMI ports on the TV?

@kudos
Copy link
Author

kudos commented Feb 28, 2016

I tried all 4 ports, and they all have "enhanced" UHD (AKA 60Hz) enabled.

I'll get in touch with Club3D and see if they can help too.

@kudos
Copy link
Author

kudos commented Feb 28, 2016

Aha! In a last ditch effort, I unpatched IOKit and rebooted. Now it works! Because I discovered this patch before SwitchResX, I had forgotten that I hadn't tried it without it.

Thanks for your help in helping narrow it down, might be worth a note in the readme?

@Floris497
Copy link
Owner

Haha oh that is strange.. Good to write in there indeed, it should all work well on new machines without the patch.. Have fun with the TV on full resolution :)

@ionas
Copy link

ionas commented Apr 7, 2016

Any luck on AMD Radeon HD 6750M?
https://support.apple.com/kb/sp644?locale=en_US

@ionas
Copy link

ionas commented Apr 7, 2016

Does this patch work through HDMI1.x or DP?

@Floris497
Copy link
Owner

It works for both, I'll see right away if i can find something for AMD :)

@Floris497
Copy link
Owner

I have an AMD card to test this on now, but I couldn't find anything just yet.. I'll let you guys hear later.

@ionas
Copy link

ionas commented Apr 8, 2016

@Floris497 once you have some initial tests running I can test on a MBP 15" Late 2011 (AMD Radeon HD 6750M 512MB) and see if I get it to do 4k@30hz and/or 4k@60hz.

@Floris497
Copy link
Owner

Yes! I have one but it's not working for my 6870.. I'll see later if u can find something :) I might need to buy some decompiling software.. And figure out how it works. I'll make an beta branch for AMD. But I'm quite sure it's not going to work :/ but if you don't try you'll never know

@ll01
Copy link

ll01 commented Jun 2, 2016

sorry to hijack the thread but my 2.5Ghz 2011 mac mini (the AMD GPU) is having trouble running anything over 1080p. I'm using an dp to hdmi active cable but if I try to run it at 4k or 1440p the screen blacks out or artifacts. I'm not sure if its a swichresx problem or a gpu one (when I try to make a custom resolution in swichresx it just says not installed).

@Floris497
Copy link
Owner

Do you have a picture of the arteffects you are seeing?

@ll01
Copy link

ll01 commented Jul 14, 2016

The artifacting is really intermittent but It glitches out and in constantly so I took a video of it.
https://vid.me/BjWz

@Floris497
Copy link
Owner

I've not much experience with this.. but this can be a few things. AMD cards had issues with 4k with flashing images like you have. Can olso be bad DP cable. Or too long cable. And it can be a malfunctioning display.. try to force integrated GPU. And see what that does :)

@ll01
Copy link

ll01 commented Aug 12, 2016

do you have a clue how to force the integrated gpu (google isn't being really helpful right now )

@Floris497
Copy link
Owner

Gfxcardstatus.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants