Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

frdarryl

macrumors newbie
Nov 10, 2018
7
6
This is absolutely fascinating. Even though I don't have a Mac Pro, I stumbled onto this thread while looking for others who were having instability issues with the RX 580 (com.apple.DumpGPURestart errors in the system.log when it would crash). I have my Gigabyte AORUS card in a Sonnet EGPU attached to a 2018 Mac Mini and was experiencing a number of random system freezes, especially with FCPX and Safari.

So I installed WhateverGreen and have been doing some stress tests for half of the day. So far so good... Could there be a weird interaction with Apple's driver defaults and the particular revision of my graphics card?

In any case, I'm very grateful for this thread!
 
  • Like
Reactions: h9826790

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
This is absolutely fascinating. Even though I don't have a Mac Pro, I stumbled onto this thread while looking for others who were having instability issues with the RX 580 (com.apple.DumpGPURestart errors in the system.log when it would crash). I have my Gigabyte AORUS card in a Sonnet EGPU attached to a 2018 Mac Mini and was experiencing a number of random system freezes, especially with FCPX and Safari.

So I installed WhateverGreen and have been doing some stress tests for half of the day. So far so good... Could there be a weird interaction with Apple's driver defaults and the particular revision of my graphics card?

In any case, I'm very grateful for this thread!

Thanks for the info.

I highly suggest you submit a bug report via bugreport.apple.com. Apple should be quite care about eGPU support at this moment. Especially you are with a very new Mac mini, and a natively supported RX580 eGPU.

At this moment, I really believe that’s Apple’s driver issue. Not much we can do about it.

Please submit a bug report. Send them the system diagnosis, and emphasis about that GPU restart thing.

Hopefully they can fix this in 10.14.6 (may be the last update for Mojave). We better get this done ASAP. No one knows how good / bad 10.15 is. If Apple fix that in 10.14.6. At least we can have a stable performing OS that can utilise this function flawlessly.
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
It was actually because in my second attempt I forgot to copy Whatevergreen in the Plugins folder.

Do we know if this affects negatively other codecs e.g. ProRes or RED RAW?

Should have no adverse effect for other codec. At least no related report yet.
[doublepost=1559481191][/doublepost]
I'm confused about the use of the word "RAW" in the article. What is RAW H264 and RAW HEVC? Never heard of those before. Can H.264 and HEVC be RAW at all? If "RAW" in this context means "not inside a container" as in not muxed yet etc, then if it's in an MP4 container (which is the most common standard), it certainly can't be RAW, right?

You are absolutely right. I emphasis raw H264 or HEVC is there were some members have no idea that they are editing the transcoded videos, but not the original H264 / HEVC. Therefore, I want to emphasis that we can now direct edit the original H264 / HEVC, not the transcoded ProRes video, or Proxy, or any optimised media.

The terms RAW may create some other confusion at there. But for those professional, I believe that they can understand that I mean raw (English word), not RAW (video format).

Thanks for raising this issue. I will change the word in the original post to raw (but not RAW), which makes it looks more like the normal English word, but not meaning the RAW video format.
 

Chung123

macrumors regular
Dec 5, 2013
240
113
NYC
Should have no adverse effect for other codec. At least no related report yet.
[doublepost=1559481191][/doublepost]

You are absolutely right. I emphasis raw H264 or HEVC is there were some members have no idea that they are editing the transcoded videos, but not the original H264 / HEVC. Therefore, I want to emphasis that we can now direct edit the original H264 / HEVC, not the transcoded ProRes video, or Proxy, or any optimised media.

The terms RAW may create some other confusion at there. But for those professional, I believe that they can understand that I mean raw (English word), not RAW (video format).

Thanks for raising this issue. I will change the word in the original post to raw (but not RAW), which makes it looks more like the normal English word, but not meaning the RAW video format.


Thanks for the awesome work! I've been editing footage from a Lenovo Mirage VR180 camera over the past 18 months and wondered why performance had dropped so much. This activation seem to have done something because I was going crazy because I remember it being much more efficient (I did not realize Apple would be so mean to remove functionality video acceleration from Mac Pro 5,1 owners.)

Thanks again! (I would love to see a script or tool, to make this a one click install though. :))
 
  • Like
Reactions: h9826790

iGobbleoff

macrumors 6502
May 2, 2011
354
469
just my report......bought a Sapphire RX vega 56 on ebay to replace the old AMD RX480 in my Mac Pro 4.1>5.1.

Installation was easy and I activated the hardware accl as described in the first post of this thread.

My primary use is FCPX and it is working fine, Im just editing a wedding highlights video for a client and its all as smooth as butter. The timeline used to stutter a bit when I pressed play but now its all good.

The next test will be an edit of a 5 cam multicam clip and export to mp4. I'll report back if there are any problems...

Did you do a PSU mod? Or just plug n play? I have a 56 sitting here in a eGPU but I’d love to use it in place of the RX580 in my cMP at the moment.
 

krakman

macrumors 6502
Dec 3, 2009
450
511
Did you do a PSU mod? Or just plug n play? I have a 56 sitting here in a eGPU but I’d love to use it in place of the RX580 in my cMP at the moment.

check out this thread: https://forums.macrumors.com/threads/amd-polaris-vega-gpu-macos-support.2083168/

specificaly this page : #1303

for fcpx i use the Vega 56 internally powered by the 2 mini 6 pin PCIe power sockets going into an EVGA powerlink $20 to balance the power. Reports say that you need the latest version of Mac OS 10.4.5 because this sends more power to the card via the PCI socket. Previously all power comes down the two Mini 6 pin cables and this was close to or over the power limit.

I only use the card for FCPX -no games.
 
  • Like
Reactions: owbp and iGobbleoff

Chung123

macrumors regular
Dec 5, 2013
240
113
NYC
Once more for the cheap seats... Is Apple is going to going to continue deliberately disadvantage Mac Pro 5,1 users in Mojave by not enabling hardware acceleration even though it can? That is just so major uncool. If it is a matter of cost, they could sell me a hardware acceleration " license key" and I'd pay.
Think about the amount of man hours wasted working--when enabling this feature would be so beneficial.

Reminds me of this story:

https://www.folklore.org/StoryView.py?story=Saving_Lives.txt
 

Socket

macrumors regular
Jul 9, 2015
144
16
Open Terminal and run this command:

Code:
sudo nvram "recovery-boot-mode=unused" && sudo reboot recovery

I'm trying to enter in recovery mode...also with this command but...black screen and I don't know why.
Now i'm waiting (it's more than 7 minutes) and nothing happens. I have only a rx580 installed, it's necessary to install also a gt120 to see the recovery mode?

Someone can help me please?
[doublepost=1559574998][/doublepost]
I'm trying to enter in recovery mode...also with this command but...black screen and I don't know why.
Now i'm waiting (it's more than 7 minutes) and nothing happens. I have only a rx580 installed, it's necessary to install also a gt120 to see the recovery mode?

Someone can help me please?
OK RESOLVED!
I left only one monitor connected and now I see the control panel
[doublepost=1559576362][/doublepost]I follow all the instructions and....no results. What is the firmware needed?

upload_2019-6-3_17-38-49.png
 
  • Like
Reactions: h9826790

Socket

macrumors regular
Jul 9, 2015
144
16
Got it to work with an RX 590. However it becomes very unstable in Final Cut X when the timeline gets processor heavy. Freezes the entire system. Can someone with an RX 580 or Vega 56 please confirm flawless Final Cut performance?

The same for me, in FCPX the system freeze (i can move the arrow but nothing happens). I have rx580
Have you solved?
 
  • Like
Reactions: Chung123

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
As stated in post #1. So far, all freeze reports are from Polaris users. Vega and Radeon VII seems work very flawless with this mod.

For Polaris:

One RX570 user (from another forum) reported that he experienced this kind of freeze.

He looked at the card when system freeze. He realised that the fan keep repeating the “spin - stop…” cycle.

So, he believe that may be cooling related. And he use MacsFanControl to spin up the PCIe fan. Since then, no more freeze. (He only did this mod for 3 days. First day experienced system freeze. And last two days zero freeze with higher PCIe fan).

I am not 100% sure if this is really thermal / power control related. But my PULSE RX580 8GB is tweaked. It’s cooling is much much better than the stock setting.

Stock PULSE RX580 run at 1366MHz @~1.13V. I mod the ROM to lock the GPU at 1243MHz (same clock speed as WX7100) @ 0.95V max (Stress test shows running at ~0.93V).

Besides, I also disabled Zero Fan Mode, my card’s fan always spinning. I also replaced the original thermal paste by Liquid metal.

Despite I downclocked the card a bit. But can’t feel any difference in daily usage (including home video editing) anyway. So, I am happy to keep this setting.

And so far, my RX580 not even freeze once with this config yet.

I will be out of town in the next few days. Can’t do any test yet.

But I tired Unigine Heaven (Extreme preset) + Luxmark 3.1 + Compressor (H264 hardware encode) + FCPX editing (mix H264 and HEVC videos in timeline, all four together. Of course, the performance was bad, but no system freeze.

I also tried hardware encode six videos at the same time via FFmpeg, also no freeze.

I also wonder why few people keep getting the freeze even just the desktop background change. But some others seems not affected.

Even though I still doubt if this issue is really thermal related (that fan start / stop cycle may be simply because the GPURestart process keep re-initialising the graphic card. So, start the fan -> realise temperature below fan stop threshold -> fan stop -> crash -> re-initialise the graphic card again…

But I think I should post all the info I know at here. So that you guys can try whatever possible solution, and see if that make any difference.
 
  • Like
Reactions: Socket and orph

orph

macrumors 68000
Dec 12, 2005
1,884
393
UK
iv noticed with one display my rx580 pulls about 10-15w (with no real load) and go's up to about 20w with light use (video playback on youtube etc) but with dual displays it pulls about 30-35W and moves up to about 40W.

tested with 1080P displays and almost stock bios (just mem timings changed and mac flag set)

so in my macpro with default fans and one display the GPU fan never spins up but with dual displays i see about every 30-60 sec the fan spins up for 10-20 secs then stops.

(power use from hardware monitor in osx)

so it may be linked with display's used ? if it's some kind of odd heating thing


(Iv not tested this mod yet so dont know if it changes power use)
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
iv noticed with one display my rx580 pulls about 10-15w (with no real load) and go's up to about 20w with light use (video playback on youtube etc) but with dual displays it pulls about 30-35W and moves up to about 40W.

tested with 1080P displays and almost stock bios (just mem timings changed and mac flag set)

so in my macpro with default fans and one display the GPU fan never spins up but with dual displays i see about every 30-60 sec the fan spins up for 10-20 secs then stops.

(power use from hardware monitor in osx)

so it may be linked with display's used ? if it's some kind of odd heating thing


(Iv not tested this mod yet so dont know if it changes power use)

That's normal for all AMD GCN GPU. When multi monitors are connected. The GPU won’t go into the real low power state. Both GPU and VRAM will stay at a much higher clock speed (even idle). Therefore, draw much more power, and running noticeably warmer.

But you bring up a good point. This hwaccel mod’s stability may be monitor count / connection type related.

My setup only has one display connected via DP. The most standard way as a Mac. May be this is why my setup is so stable even after the mod.
 

orph

macrumors 68000
Dec 12, 2005
1,884
393
UK
sounds like a odd bug but easy to test, my macpro is broken at the mo so i can't check.

But it may just be a driver bug
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
sounds like a odd bug but easy to test, my macpro is broken at the mo so i can't check.

But it may just be a driver bug

If you mean the GPU run warmer when multi monitors connected. It’s not a bug. Its designed to perform like that.
 

orph

macrumors 68000
Dec 12, 2005
1,884
393
UK
not the power use the video playback problem, maybe some kind of bug is making the driver crash over time and recover giving playback problems ?

not a tempture problem but some GPU/video driver bug? i was thinking, maybe a long shot
and as i mentioned my macpro is down at the mo so i cant test.

power use if fine,
 
Last edited:

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
not the power use the video playback problem, maybe some kind of bug is making the driver crash over time and recover giving playback problems ?

not a tempture problem but some GPU/video driver bug? i was thinking, maybe a long shot
and as i mentioned my macpro is down at the mo so i cant test.

power use if fine,

Oh, sorry, I miss read “odd bug” as “old bug”. That’s why confused.
 

Mac_User 0101

macrumors regular
Oct 8, 2017
133
43
Is this hardware acceleration only something that can be enabled in Mojave or will it also work in High Sierra?
 

alchemistics

macrumors member
Dec 27, 2018
86
84
Switzerland
This. Is. Simply. Amazing!

I followed the procedure in #1 from @h9826790. After the first reboot it didn't work.
After the second (with reapplying the commands) it did work.

I can confirm:

- Running the Swordfish videoin QT without lag and almost no CPU usage
- No more (CPU) VTXDecoder in FCPX when working with high-bitrate 4K H264 files, much smoother timeline / export went from 05:06 to 01:23, do the math ;-)..
- Handbrake VideoToolBox Export does work now (error'd before), lowers CPU Usage and exports a bit faster
- Everything working on an LG5K connected via TB3 (TitanRidge)

FCPX 4K H264 10bit still laggy, but was always, even on newer machines..

Thank you very much! This really saves lots of time and allows me to use the cMP productively again (I preferred using a MBP) in FCPX. Now I can use a machine with lots of ram, decent cpu, great gpu and now hardware acceleration again.

Can't tell you enough how valuable this is =)!
 

Attachments

  • fcpx.jpg
    fcpx.jpg
    1.2 MB · Views: 368
  • handbrake.jpg
    handbrake.jpg
    486.3 KB · Views: 341
  • videoproc.jpg
    videoproc.jpg
    386.6 KB · Views: 411

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
OK, I found a way to enable hwaccel WITHOUT Lilu and WEG.
Screenshot 2019-06-07 at 4.13.26 AM.png


TBH, I don't think this is a better approach. More work to do, higher risk to damage the OS, harder to disable / revert. And I don't know how to enable DRM streaming in this way (Chromium base Netflix still works, but iTunes DRM streaming doesn't work).

But the advantage is, you may able to keep SIP fully enabled.

To achieve this, two files need to be edited.

Both hide inside the AppleGVA.framework

1) System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩ ▸ ⁨AppleGVA.framework⁩ ▸ ⁨Versions⁩ ▸ ⁨A⁩⁩ ▸ AppleGVA

2) System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩ ▸ ⁨AppleGVA.framework⁩ ▸ ⁨Versions⁩ ▸ ⁨A⁩ ▸ ⁨Resources⁩⁩ ▸ ⁨Info.plist

I won't go into too details step by step at this moment. Because this is a more danger approach IMO. And I couldn't find any real world difference then using board-id injection. HEVC encoding still can't be activated. I am not sure if this can give Polaris GPU more stable hwaccel support. I only confirm this can work 10min ago. I keep running FCPX and Compressor in the last 10min. No crash, no freeze. But I can't say this is a better way to RX580 users yet. Simply too little data to confirm anything.

However, for those who have knowledge / skill to edit these two files. You may try it if you wish.

1) Open the AppleGVA file by a Hex editor.

Replace BOTH iMac Pro's board-id by the cMP's board-id
Screenshot 2019-06-07 at 4.31.24 AM.png


2) Open Info.plist by text editor.

Replace the iMac Pro board-id by the cMP's board-id
Screenshot 2019-06-07 at 4.34.56 AM.png


Reboot. (REMOVE all Lilu, WEG, and boot arguments if applicable)

Then the cMP will also able to use hwaccel without Lilu and WEG.

I boot into another boot drive in order to mod this test drive's files. So that I don't have to copy the file to desktop etc, or fix permission. Just mod them directly (because they were not a part of the OS when I mod them).

Anyway, do NOT do this if you have any doubt. It is definitely NOT for any normal users, or daily use at this moment.

P.S. you may need to run the following command after editing the AppleGVA file
Code:
sudo codesign -f -s - /System/Library/PrivateFrameworks/AppleGVA.framework/Versions/A/AppleGVA


Update 1: Did lots of tests in the last 10 hours. Result shows perfectly stable for my RX580. Here is the a quick 5min capture of FCPX stability test (as always, please use Chromium base browser and watch the video in 4K. Otherwise, hard to see the details). This may become the solution for those Polaris GPU users that having system freeze issue.

Another short video which playback 5 different HEVC / H264 video in FCP timeline simultaneously. Please ignore that little choppy playback. That's because the GPU have to record the screen as well. This is more for stability test, not performance test. I did the test for much longer, but just record few minutes to shows how I did that.

I also intentionally destroy the AppleGVA file and see what will happen. Mojave can always boot to desktop. So, it seems this approach is quite safe, and easy to fix / recovery if the user did something wrong.

For stability / stress tests, I ran the above test a few times. And few more with Compressor encoding 3 videos simultaneously in the background + Luxmark + Unigine Heaven (Extreme Preset). And one of the test I even login to another profile and doing more video encoding in the background (multi profile logged in). Of course, the screen capture also done via hwaccel as well. Not a single freeze, crash, glitch yet.

If any Polaris user can tell me a reproducible way to get into that GPU Restart event (when using the Lilu / WEG method). Please let me know. I can do the stability test for this hex edit method.
 
Last edited:

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
OK, I found a way to enable hwaccel WITHOUT Lilu and WEG.

Interesting for education purposes, but as you said, not recommended. The point of the Lilu patching system is to avoid modifying the system like that.
 
  • Like
Reactions: h9826790

MacManu77

macrumors regular
Jan 31, 2018
110
4
[doublepost=1559857362][/doublepost]
when the clip has been rendered the reading is: data read between 30-65 MB
before being rendered it is between 10-15 MB with peaks at 18MB sometimes.

how are these disk values?
Normal or strange?
 

Brennan Ferguson

macrumors newbie
Mar 9, 2019
3
1
OK, I found a way to enable hwaccel WITHOUT Lilu and WEG.
View attachment 841371

TBH, I don't think this is a better approach. More work to do, higher risk to damage the OS, harder to disable / revert.

But the advantage is, you may able to keep SIP fully enabled.

To achieve this, two files need to be edited.

Both hide inside the AppleGVA.framework

1) System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩ ▸ ⁨AppleGVA.framework⁩ ▸ ⁨Versions⁩ ▸ ⁨A⁩⁩ ▸ AppleGVA

2) System⁩ ▸ ⁨Library⁩ ▸ ⁨PrivateFrameworks⁩ ▸ ⁨AppleGVA.framework⁩ ▸ ⁨Versions⁩ ▸ ⁨A⁩ ▸ ⁨Resources⁩⁩ ▸ ⁨Info.plist

I won't go into too details step by step at this moment. Because this is a more danger approach IMO. And I couldn't find any real world difference then using board-id injection. HEVC encoding still can't be activated. I am not sure if this can give Polaris GPU more stable hwaccel support. I only confirm this can work 10min ago. I keep running FCPX and Compressor in the last 10min. No crash, no freeze. But I can't say this is a better way to RX580 users yet. Simply too little data to confirm anything.

However, for those who have knowledge / skill to edit these two files. You may try it if you wish.

1) Open the AppleGVA file by a Hex editor.

Replace BOTH iMac Pro's board-id by the cMP's board-id
View attachment 841376

2) Open Info.plist by text editor.

Replace the iMac Pro board-id by the cMP's board-id
View attachment 841378

Reboot. (REMOVE all Lilu, WEG, and boot arguments if applicable)

Then the cMP will also able to use hwaccel without Lilu and WEG.

I boot into another boot drive in order to mod this test drive's files. So that I don't have to copy the file to desktop etc, or fix permission. Just mod them directly (because they were not a part of the OS when I mod them).

Anyway, do NOT do this if you have any doubt. It is definitely NOT for any normal users, or daily use at this moment.
Hey I'm trying to test this as a viable alternative to the lilu method since the traditional method won't work to to boot arg conflicts. Working on cloned drives don't care if I brick os, I can alway repair or reinstall. I've got the info plist done, but I'm having some difficulty with the Apple VGA bit. Hex Editors aren't really my thing, I only use them on occasion for vBios modifications or blck OC in RW/Everything, any help would be appreciated, and you can PM me if you don't want it posted on here
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.