I had a nightmare of a time with an Asus X399-A and trying to get more than 4 Vegas on there. The board has 6 total PCI slots (4x16, 1X4 and 1X1). Built a rig on 1950X Threadripper and was running fine with 2xVega56 and 2xVega64. The addition of a fifth Vega, a Vega56 caused a world of problems. The board saw the cards fine, but in Windows (Win10, 64 bit) I encountered problems. The computer would show a blue screen with various artifacts a few seconds after logging in. I tried disabling the 4th card before physically installing the 5th. Everything was fine, but then the same instability/crash would happen when I tried to enable the 4th (of 5 installed) cards from within Windows. This was all on the AMD block chain driver. The driver would not install if more than 4 cards were installed on the machine. On the regular drivers, there was instability on 5 cards as well - less severe than on blockchain driver, but still leading to crashes.
I tried everything...removal of all but 1 card, DDU clean uninstall, block chain driver install on one card, then systematic adding in of additional cards, with shutdown in between each time. I encountered the same thing - on the addition of the 5th card, the system would have the same rebooting/crashing shortly after getting into Windows. No variation of PCI settings in the BIOS that I tried was able to resolve the problem. I trued GEN2/GEN2, GEN1/GEN1, GEN2/GEN1 (and other variations) for the CPU and SB PCIE settings. The BIOS/this motherboard didn't have a '4G decoding' setting, as has been touted for stability on Z170 boards, as seen in other places, here:
https://bitcointalk.org/index.php?topic=1808110.20.
I had 2 RX 580s from another system, and opted to swap the Vegas with the 580s. To my surprise, the system was perfectly happy running above 4 GPUs with the 580s. i.e. 5 Vegas + 1 580, or 4 Vegas + 2 580s. Very, very strange. Perhaps someone more talented than me would have found a solution to the problem, but from every angle I considered, there seemed to be a real issue with conflict among the Vegas if more than 4 were present. YMMV, but figured I'd post this here and maybe save someone else from a boatload of grief, or give an opportunity to someone smarter than me to present a solution.