LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2018, 04:07 AM   #1
bueanventura
LQ Newbie
 
Registered: Sep 2018
Location: Sweden
Distribution: ArchLabs
Posts: 10

Rep: Reputation: Disabled
Smile AMDGPU wont load with southern island GCN1.0 card.


EDIT: Solved, my card was a Sea Island, not Southern! So amdgpu.cik instead of si.

Hello!

I am trying to get amdgpu to work on my southern island GCN1.0 mullins card, but it wont load it at boot. I’ve followed these instructions:

ArchWiki on amdgpu for southern island

My specs are

CPU: A8 2.3ghz quadcore

RAM: 8GB

Video: Radeon R5 M240 with 1gb "dedicated VRAM" AKA southern island "Mullins" GCN1.0

I am currently using the radeon driver, which works fine (actually very well - I have vdpau and most other relevant packages installed, and glxinfo tells me I have OpenGL core profile 4.5 working). I have the amdpgu driver installed as well. I use the stock ARCH kernel 4.18.

But when I add amdgpu.si_support=1 radeon.si_support=0 to kernel at boot in grub, it freaks out and dumps me in a terminal with some flickering. The dmesg from when that happens is in this pastebin:

https://pastebin.com/0yrsMf2a

I can’t really see where it rejects the amdgpu driver?

Edit: btw a friend noticed that there is a traceback if you have any ideas about that:
[ 9.946881] sysfs: cannot create duplicate filename ‘/class/power_supply/ACAD’
[ 9.946886] CPU: 0 PID: 258 Comm: systemd-udevd Not tainted 4.18.8-arch1-1-ARCH #1
[ 9.946887] Hardware name: Acer Aspire E5-521G/Larne, BIOS V1.01 05/27/2014
[ 9.946889] Call Trace:
and then below that.

I read somehwere that I should remove 20-radeon.conf and/or replace it with 20-amdgpu.conf - should I try that?

Why do I want the amdgpu driver instead of the radeon, since radeon works fine? I want to use vulkan to play Overwatch in Lutris, since it does a fancy gpu-hang when I shoot rockets with D.Va and other sparkly effects play on radeon driver - and perhaps using amdgpu with DXVK will be better in that scenario. Using the radeon driver the video freezes when playing, and this is dmesg (pastebin) from tty2.

Last edited by bueanventura; 09-20-2018 at 03:30 AM.
 
Old 09-19-2018, 11:00 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
I might have the same gfxchip you have:
Code:
# inxi -Gxx	# inxi 3.0.18 on OS 15.0/KDE3
Graphics:  Card-1: Advanced Micro Devices [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] driver: radeon 
           v: kernel bus ID: 01:00.0 chip ID: 1002:6611 
           Display: server: X.Org 1.19.6 driver: ati,radeon unloaded: fbdev,modesetting,vesa 
           resolution: 2560x1080~60Hz, 1920x1200~60Hz 
           OpenGL: renderer: AMD OLAND (DRM 2.50.0 / 4.12.14-lp150.11-default LLVM 5.0.1) v: 4.5 Mesa 18.0.2 
           compat-v: 3.0 direct render: Yes 

# lspci -nnk | grep -A3 VGA
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611]
	Subsystem: Dell Radeon R5 240 OEM [1028:210b]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
I had no luck trying to get it to use amdgpu. I'm not sure whether I tried hard enough though.

Edit:
I tried harder and got it to work, and without needing any 20-*.conf:
Code:
# grep RETT /etc/os-release
PRETTY_NAME="openSUSE Tumbleweed"
# uname -a
Linux hpg33 4.18.7-1-default #1 SMP PREEMPT Sun Sep 9 10:26:20 UTC 2018 (952d850) x86_64 x86_64 x86_64 GNU/Linux
# cat /proc/cmdline
root=LABEL=os133sd32 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1440x900@60 radeon.si_support=0 amdgpu.si_support=1 3
# inxi -Gxx
Graphics:  Card-1: Advanced Micro Devices [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] driver: amdgpu
           v: kernel bus ID: 04:00.0 chip ID: 1002:6611
           Display: server: X.Org 1.20.1 driver: amdgpu resolution: 1920x1200~60Hz
           OpenGL: renderer: AMD Radeon HD 8500 Series (OLAND DRM 3.26.0 4.18.7-1-default LLVM 6.0.1)
           v: 4.5 Mesa 18.1.7 compat-v: 3.1 direct render: Yes
The amdgpu driver was automatically used once I had the right cmdline parameters. Could it be that cmdline parameter order matters?

Edit 2: It's also working in Fedora 29 (kernel 4.18.5, server 1.20.1).

Last edited by mrmazda; 09-20-2018 at 02:53 AM.
 
Old 09-20-2018, 02:48 AM   #3
bueanventura
LQ Newbie
 
Registered: Sep 2018
Location: Sweden
Distribution: ArchLabs
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
I might have the same gfxchip you have:
Code:
# inxi -Gxx	# inxi 3.0.18 on OS 15.0/KDE3
Graphics:  Card-1: Advanced Micro Devices [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] driver: radeon 
           v: kernel bus ID: 01:00.0 chip ID: 1002:6611 
           Display: server: X.Org 1.19.6 driver: ati,radeon unloaded: fbdev,modesetting,vesa 
           resolution: 2560x1080~60Hz, 1920x1200~60Hz 
           OpenGL: renderer: AMD OLAND (DRM 2.50.0 / 4.12.14-lp150.11-default LLVM 5.0.1) v: 4.5 Mesa 18.0.2 
           compat-v: 3.0 direct render: Yes 

# lspci -nnk | grep -A3 VGA
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611]
	Subsystem: Dell Radeon R5 240 OEM [1028:210b]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
I had no luck trying to get it to use amdgpu. I'm not sure whether I tried hard enough though.

Edit:
I tried harder and got it to work, and without needing any 20-*.conf:
Code:
# cat /pub/tmp/out
# grep RETT /etc/os-release
PRETTY_NAME="openSUSE Tumbleweed"
# uname -a
Linux hpg33 4.18.7-1-default #1 SMP PREEMPT Sun Sep 9 10:26:20 UTC 2018 (952d850) x86_64 x86_64 x86_64 GNU/Linux
# cat /proc/cmdline
root=LABEL=os133sd32 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1440x900@60 radeon.si_support=0 amdgpu.si_support=1 3
# inxi -Gxx
Graphics:  Card-1: Advanced Micro Devices [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] driver: amdgpu
           v: kernel bus ID: 04:00.0 chip ID: 1002:6611
           Display: server: X.Org 1.20.1 driver: amdgpu resolution: 1920x1200~60Hz
           OpenGL: renderer: AMD Radeon HD 8500 Series (OLAND DRM 3.26.0 4.18.7-1-default LLVM 6.0.1)
           v: 4.5 Mesa 18.1.7 compat-v: 3.1 direct render: Yes
The amdgpu driver was automatically used once I had the right cmdline parameters. Could it be that cmdline parameter order matters?
Yeah that seems to be the same almost, it's the same series at least, mine is Mullins instead of Oland tho. I hope someone helps us! I have been fine on the radeon driver but I would like Vulkan to try with Overwatch.

I have also posted on the ArchLabs forums, and one guy answered there, so follow that one too if you want to try again! https://forum.archlabslinux.com/t/us...erwatch/1725/3

EDIT: WHAT, you fixed it just like that?!? NOT FAIR You mean the commands on the kernel boot line? I've tried both ways, with radeon or amdgpu one first. I might have to blacklist the radeon driver more strictly according to the other forum, will test later.

Last edited by bueanventura; 09-20-2018 at 02:50 AM.
 
Old 09-20-2018, 03:11 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by bueanventura View Post
mine is Mullins instead of Oland tho.
According to https://wiki.gentoo.org/wiki/AMDGPU and https://wiki.archlinux.org/index.php/AMDGPU, Mullins is Sea Islands, not Southern Islands, so needs
Code:
radeon.cik_support=0 amdgpu.cik_support=1
rather than
Code:
radeon.si_support=0 amdgpu.si_support=1
 
Old 09-20-2018, 03:13 AM   #5
bueanventura
LQ Newbie
 
Registered: Sep 2018
Location: Sweden
Distribution: ArchLabs
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
According to https://wiki.gentoo.org/wiki/AMDGPU and https://wiki.archlinux.org/index.php/AMDGPU, Mullins is Sea Islands, not Southern Islands, so needs
Code:
radeon.cik_support=0 amdgpu.cik_support=1
rather than
Code:
radeon.si_support=0 amdgpu.si_support=1
What, really? I have lived a lie for so long! Wow, if this is the case, then, wow. Thanks, I'll try it!

EDIT: Wow, OK I am stupid! p__p Thanks for noticing that! OK, I am now on amdgpu:
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] [1002:9851] (rev 05)
Subsystem: Acer Incorporated [ALI] Mullins [Radeon R4/R5 Graphics] [1025:0865]
Kernel driver in use: amdgpu
Kernel modules: radeon, amdgpu

OK. Now for vulkan! Yay!

Last edited by bueanventura; 09-20-2018 at 03:29 AM.
 
Old 12-06-2019, 07:43 AM   #6
lovevice
LQ Newbie
 
Registered: Dec 2019
Posts: 2

Rep: Reputation: Disabled
Be aware from this post, it is misinformative.

So I searched amdgpu hd 8570 doesn't work with SI support, and this is what I got. So I clicked on it and read.

I then saw mrmazda saying that your card is actually CIK and not SI, so I believed him thinking he was talking about hd 8570. So I then change the kernel parameters to use CIK instead of SI, but it turns out that changing them on CMDLINE_DEFAULT for grub just won't work.

You have to actually create a /etc/modprobe.d/amdgpu.conf and a /etc/modprobe.d/radeon.conf and set the config I will explain how later on. So on the amdgpu.conf like an idiot I added options amdgpu cik_support=1 when actually my fkin gpu is SI, all because of mrmazda again.

So the issue was that cmdline parameters on grub won't work, you have to create modprobe.d conf files and regenerate initcpio by this command
Code:
sudo mkinitcpio -p linux
and then update grub,
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
So believing my gpu is cik, I kept thinking the issue was somewhere else. Kept trying to create xorg conf files, trying different options, reinstalling arch linux allllll because of that shitty post by mrmazda please remove it it is actually useless and this post all itself is useless. But now my comment is going to make it useful so listen along kids.

Install arch linux normally like how you would
Code:
pacstrap /mnt base linux linux-firmware vim dhcpcd sudo
and you can also add grub if you want, but i prefer to do that later on.

Follow the installation guide and once done reboot into your freshly installed Arch linux and login. CAREFUL LOGIN WITH A USER AND NOT ROOT.

Once in type
Code:
sudo pacman -Syyy
to refresh your database

And then
Code:
sudo pacman -S xorg-server
And then
Code:
sudo pacman -S mesa xf86-video-amdgpu
I like to use KDE plasma so careful these steps might be different for you unless you are also going to use KDE plasma but the remaining steps which i'm going to mention when, will be the same.

So now this step is different depending on the desktop enviroment you want to use
Code:
sudo pacman -S sddm
And then
Code:
sudo pacman -S plasma kde-applications
And then
Code:
systemctl enable sddm
Now these next steps are probably the same for everyone and can be done both on root and user. so before rebooting you have to fix some options. We are going to try both SI and CIK so follow along I will make a header for each, mentioning which one is for SI and which one is for CIK

You wouldn't be reading this if it worked with out needing to change anything. So ill go ahead.

So first
Code:
sudo vim /etc/mkinitcpio.conf
and you can see
Code:
MODULES=()
at the top. Change that to
Code:
MODULES=(amdgpu radeon)
Now next create an xorg conf file
Code:
sudo vim /etc/X11/xorg.conf.d/10-amdgpu.conf
and add this to it
Code:
Section "Device"
        Identifier "AMD"
        Driver "amdgpu"
        Screen 0
EndSection
Now these next steps will depend on your gpu so we have to try both incase one does not work.

FOR SI
We have to change grub boot options, for systemd I think you could change it with modprobe.d conf, but just to be safe we are going to change it with both modprobe.d conf and grub boot options. This is what worked with my HD 8570 gpu

So first
Code:
sudo vim /etc/default/grub
and your kernel parameters should look like this
Code:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet radeon.si_support=0 amdgpu.si_support=1"
GRUB_CMDLINE_LINUX=""
And then
Code:
sudo vim /etc/modprobe.d/amdgpu.conf
and create these lines
Code:
options amdgpu si_support=1
options amdgpu cik_support=0
And then
Code:
sudo vim /etc/modprobe.d/radeon.conf
and create these lines
Code:
options radeon si_support=0
options radeon cik_support=0
Now here is where some people forget to regenerate initcpio and update grub

So next we type
Code:
sudo mkinitcpio -p linux
if this command does not work, try logging out and login as root and again type
Code:
mkinitcpio -p linux
And then finally
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
also try as root if it does not work. now you can go ahead and
Code:
shutdown now
wait a few minutes or seconds and switch your pc back on.

For CIK

if you are back here complaining that it did not work then you should try using CIK support instead. The steps are exactly the same, all we have to do is replace occurrences of si with cik and occurrences of cik with si.

So first
Code:
sudo vim /etc/default/grub
and your kernel parameters should look like this
Code:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet radeon.cik_support=0 amdgpu.cik_support=1"
GRUB_CMDLINE_LINUX=""
And then
Code:
sudo vim /etc/modprobe.d/amdgpu.conf
and create these lines
Code:
options amdgpu cik_support=1
options amdgpu si_support=0
And then
Code:
sudo vim /etc/modprobe.d/radeon.conf
and create these lines
Code:
options radeon cik_support=0
options radeon si_support=0
Now here is where some people forget to regenerate initcpio and update grub

So next we type
Code:
sudo mkinitcpio -p linux
if this command does not work, try logging out and login as root and again type
Code:
mkinitcpio -p linux
And then finally
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
also try as root if it does not work. now you can go ahead and
Code:
shutdown now
wait a few minutes or seconds and switch your pc back on.

Last edited by lovevice; 12-07-2019 at 01:49 PM. Reason: Changed For CIK title
 
Old 12-06-2019, 11:33 PM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
If you read here carefully you'll see OP's success using amdgpu via cmdline options-only is running Archlinux on a 1002:9851 GPU (Mullins), while my 1002:6611 GPU (Oland) amdgpu via cmdline options-only success is on openSUSE Tumbleweed & Fedora 29. My same Oland is running all the following as indicated WRT running amdgpu via cmdline options only:
  • openSUSE Tumbleweed yes, 15.1 yes, 15.0 no
  • Mageia 7.x yes & 8 (presumably)
  • Fedora 29 yes, 30 (presumably) & 31 (presumably)
  • Debian 10 yes
  • Ubuntu 16.04 LTS no
Whether any more than cmdline options are requiredd to utilize the amdgpu DDX and the amdgpu kernel driver apparently depends on the newness of the kernel and/or the Xorg system. I don't know how find out exactly, but I'm guessing the magic begins with server 1.20.x.

Last edited by mrmazda; 12-06-2019 at 11:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DW1470 WiFi card wont load with ndiswrapper on 2008.1 sdrambo Mandriva 1 07-02-2008 05:02 AM
sound card drivers wont load lquint Linux - Hardware 1 09-05-2005 03:34 PM
Gnome Wont load after video card driver change dietrichmd Linux - Software 2 10-18-2004 09:13 PM
2nd Sound card wont load bruce1271 Linux - Hardware 2 02-09-2004 01:36 PM
Network Card Module wont load. Druaga Linux - Hardware 4 06-05-2003 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration