---- I edited this question few times, because I am slowly figuring it out.----
AMD FX 8320, Gigabyte GA-970A-UD3P, Radeon R9 390
After succesfully installing amdgpu-pro (to do so, I need to add iommu=soft in grub AND use another graphic card or just use nomodeset) and rebooting, computer hangs at FSCK line: "/dev/sdb2: clean, / files, / blocks". Looks like system is corrupted and can not go further.
What do I need to change? Some settings in BIOS, some line in grub (specific for my hardware) OR simply some hardware? Is the problem in graphic card or in motherboard, maybe cpu? Looks like graphic drivers bloke something.
- I added GRUB_CMDLINE_LINUX=»iommu=soft« in grub file with sudo nano /etc/default/grub
- I installed Amdgpu-pro drivers (to do this, I had to temporarily change graphic card or use nomodeset)
- I enabled IOMMU, Port 60/64 Emulator, XHCI Hand-off and EHCI Hand-off in BIOS
- No additional drivers available in Software&Updates
- After installing amdgpu-pro it looks like some things in system do not work (for instance I cannot open Settings - nothing happens)
How problems started:
I tried to switch to Linux from Windows 10. So I made new partition and tried to dual boot W10 and Ubuntu 18.04. But, mouse and keyboard did not work and I instantly got blackscreen with Ubuntu. After searching for solution I found »nomodeset« line. I added it to grub and I was succesfully able to try and to install ubuntu. But only with mouse and keyboard (and bootable usb stick) pluged in USB 3 ports. USB 2 ports were not working. I later managed to solve this USB problem by adding »iommu=soft« to grub and by enabling IOMMU, Port 60/64 Emulator, XHCI Hand-off and EHCI Hand-off in BIOS. Nice, so I could get in installed Ubuntu (with nomodeset –> low resolution) and all ports are working (network, Usb). Problem with USB 2 was known for Gigabyte GA-970A series of mobos, as people found out in other topics (iommu=soft and bios settings supposedly solved this for all users). So to start with, this type of mobo is problematic with linux. Is it responsible for my next problem?
So, now we come to the new big problem: I could not install graphic drivers. Software&Updates program found NO additional drivers and because of »nomodeset« I was unable to install downloaded Amdgpu-pro drivers, because I got message »WARNING: nomodeset detected in kernel parameters, amdgpu requires KMS«. Someone in this thread suggested to temporarily change graphic card (I did this with Nvidia 6600) in order to install drivers and then change it back to my Radeon R9 390. I did this. By changing card to Nvidia 6600 and with all settings above (iommu-soft and listed bios settings) I was able to install Amdgpu-pro drivers (Radeon™ Software for Linux® Driver for Ubuntu 18.04.2, Revision Number 19.10, Release Date 4/19/2019).
And with this succesfull install of Amdgpu-pro drivers we come to my recent problem:
After succesfull install of Amdgpu-pro drivers, I restarted system. After selecting »Ubuntu« in Grub, I get empty purple screen for about 10 second and than blackscreen. Even if I try to boot with »nomodeset« in grub, I get the same blackscreen, but before that I get message in upper left corner:
/dev/sdb3: clean, 196026/1875968 files, 1728998/7492096 blocks.
I am running dual boot (W10 on one hard drive - works normally) and Ubuntu on another hard drive (sdb3 partition).
I have also tried instalation on clean disc (withouth dual boot), but the problem stays the same. I can install system using another graphic card (with iommu=soft in grub), then I can normally install amdgpu-pro for my R9 390, when I reboot after driver instalation is completed, computer hangs at "/dev/sdb2: clean, / files, / blocks". This looks like the sistem is corupted and it cannot go anywhere after FSCK check. If I try installation of Ubuntu directly with R9 390, I need to use "iommu=soft nomodeset" in grub. But still - after succesfully installing amdgpu-pro and rebooting, computer also hangs at "/dev/sdb2: clean, / files, / blocks". I have repeated instlation of Ubuntu and drivers few times and I always have the same problem.
- Is the problem in motherboar or in graphic card?
- Is there any way to maybe set some parameters in grub (as I did with nomodeset) to select, which drivers must start? I am wondering if there is some clach of graphic drivers? Maybe kernel drivers and installed amdgpu-pro? What can I do in grub?
- Do I need to adjust BIOS settings somehow?
Bottom line: At this point, I am totaly lost and I am starting to thing that this just wont work on my hardware. Would the change of hardware theoreticaly solve anything? I could buy another used 970 mobo... Maybe this? Thank you for all help and greetings!