LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2016, 08:52 AM   #46
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432

Original Poster
Blog Entries: 1

Rep: Reputation: 41
Post


Quote:
Originally Posted by CaceK View Post
Remove any "vga=" or nomodeset from your bootloader. This driver relies on "Kernel mode setting".

EDIT: paste dmesg output here
See attached....

"vga=normal" is specified.
Attached Files
File Type: txt gibson_dmesg.txt (70.5 KB, 24 views)
 
Old 09-29-2016, 09:59 AM   #47
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I probably should've checked this earlier, but based on a few articles, it seems like Slackware's included kernel doesn't support the RX480 (and that also seems to match your dmesg output, since there's no mention of your card and no attempt to start KMS). It looks like support was added in the 4.7 kernel. It looks like Pat has configs for 4.6, but not 4.7, so there may be a bit of trial and error.

When you think about it, this actually makes sense. The 4.4 kernel was introduced in Jan 2016, and the RX480 wasn't released until the tail end of June. The next kernel release after the RX480 was released (4.7) included support for it (stable release less than a month after the RX480 was released).

Also, now that I see this info, that explains why you couldn't modprobe the amdgpu module, because the kernel didn't support your card. This also means that once you get proper kernel support, you may not need the amdgpu-pro driver for decent acceleration (although, you do tend to see a slight improvement using amdgpu-pro over the opensource amdgpu).
 
Old 09-29-2016, 10:29 AM   #48
CaceK
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware
Posts: 20

Rep: Reputation: 8
It seems to be even more complicated than that. The drivers work with ubuntu that comes with 4.4 kernel but in that case it has a separate module for that specific version. AMD site says only ubuntu is supported after all.

I haven't used stock slackware kernel in ages so that's why I didn't run into this problem.


Download kernel 4.7.5 and grab Pat's config for 4.6. Than just use 'make oldconfig' and it's gonna be fine. Just make sure the KMS and amdgpu are enabled.

As I said, I'm running 4.8rc6 and it's working fine. The opencl works as well.

Last edited by CaceK; 09-29-2016 at 10:39 AM.
 
Old 09-29-2016, 11:41 AM   #49
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by CaceK View Post
The drivers work with ubuntu that comes with 4.4 kernel but in that case it has a separate module for that specific version.
Yeah, Ubuntu doesn't use vanilla kernels, so it is very possible they backported the additions that added RX480 support to the 4.7 kernel to their 4.4 kernel.
 
Old 09-29-2016, 02:21 PM   #50
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432

Original Poster
Blog Entries: 1

Rep: Reputation: 41
Wink

Quote:
Originally Posted by CaceK View Post
It seems to be even more complicated than that. The drivers work with ubuntu that comes with 4.4 kernel but in that case it has a separate module for that specific version. AMD site says only ubuntu is supported after all.

I haven't used stock slackware kernel in ages so that's why I didn't run into this problem.


Download kernel 4.7.5 and grab Pat's config for 4.6. Than just use 'make oldconfig' and it's gonna be fine. Just make sure the KMS and amdgpu are enabled.

As I said, I'm running 4.8rc6 and it's working fine. The opencl works as well.
In my experience, I have never encountered a "simple Kernel upgrade" in Slackware. I've tried compiling new kernel's in the past, but not successfully. I have a clean system, with multilib. Please advise on a solid howto for what you are recommending. Also I saw 4.8 was mentioned earlier, but I was hoping for a 4.4 solution.

With a little luck, the 48.rc6 upgrade and that slackbuild should do the trick.
 
Old 09-30-2016, 09:38 AM   #51
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by mpyusko View Post
In my experience, I have never encountered a "simple Kernel upgrade" in Slackware. I've tried compiling new kernel's in the past, but not successfully. I have a clean system, with multilib. Please advise on a solid howto for what you are recommending. Also I saw 4.8 was mentioned earlier, but I was hoping for a 4.4 solution.

With a little luck, the 48.rc6 upgrade and that slackbuild should do the trick.
Eric has a decent howto on the Slackware wiki.

To "paraphrase" (not really paraphrasing with how long this post became), you need to download the kernel you want to use (4.7.6 is the latest stable at this time and 4.8rc8 is the latest mainline), unpack the kernel (I tend to do mine in /usr/src/, but some sites will tell you to do it in your home directory... I don't like my home directory containing stuff like that, so I use /usr/src/), copy a kernel config into the source directory and call it .config (I'd recommend the configs for 4.6 that I suggested above). It's recommended to remove the current linux/ symlink in there and set up a new symlink to the new kernel.

NOTE: The following is based on using the 4.7.6 kernel. You're free to use the 4.8 kernel if you want, just adjust the following commands to reflect that.

Code:
su -
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.7.6.tar.xz
cd /usr/src
tar -xvf ~/linux-4.7.6.tar.xz
rm linux
ln -s linux-4.7.6 linux
cd linux
wget https://slackbuilds.org/mirror/slackware/slackware64-current/testing/source/linux-4.6-configs/config-huge-4.6.x64 -O .config
Then you run make oldconfig. It will ask you a ton of questions, but you're probably fine just using the defaults (just press enter). After that, you're ready to build it (you can go in and make additional changes using make menuconfig or make xconfig, but it probably isn't necessary). First you'll build the kernel and modules, then you'll install the modules.

Code:
make oldconfig
make bzImage modules
make modules_install
Then you just need to copy the newly compiled kernel to your /boot/ directory. It is also suggested to copy the System.map file (used for debugging) and the .config into your /boot/ directory as well.

Code:
cp arch/x86_86/boot/bzImage /boot/vmlinuz-huge-4.7.6
cp System.map /boot/System.map-huge-4.7.6
cp .config /boot/config-huge-4.7.6
Now, finally, you just need to update your /etc/lilo.conf to add the new kernel (keep the old one there, just in case something screws up with the new one). Make sure the root = portion matches your other entry. /dev/sda2 is just an example. If you're using another bootloader (elilo, grub, syslinux, etc), you'll need to follow whatever method those require to add new boot entries.

Code:
image = /boot/vmlinuz-huge-4.7.6
  root = /dev/sda2              # Make sure this matches your other entry
  label = Slack-4.7.6
  read-only
The order listed when you boot is based on the order in the conf file. So, if you want the default kernel to be the default, keep that one first, or you can make your new kernel default by placing that before the original.

Finally, you just need to write the new information to the MBR and you're done.

Code:
lilo
Reboot, select the new kernel (if needed), and then wait for a successful boot

Hopefully between this and the wiki link, you'll be able to do this, but if you run into problems, feel free to let us know and we'll try to help you work through them.
 
1 members found this post helpful.
Old 10-02-2016, 09:34 PM   #52
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Just a note... Linux 4.8 was just released and is now the latest stable. However, now that it's listed as stable, many more people will use it, which will help find those more reclusive bugs. I just say this to say that the earlier the kernel is, the more likely it can have bugs. But it is a newer series, so it's possibly it includes more support for your card.
 
Old 10-04-2016, 09:52 AM   #53
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
Does amdgpu in 4.8 support GCN 1.0 cards? Mine is an R7 250X. In 4.4 amdgpu will not work (error: "no devices").
 
Old 10-04-2016, 10:08 AM   #54
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
R7 should be supported by the ati driver,not amdgpu.
 
Old 10-04-2016, 10:13 AM   #55
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by ahc_fan View Post
Does amdgpu in 4.8 support GCN 1.0 cards? Mine is an R7 250X. In 4.4 amdgpu will not work (error: "no devices").
Nope... not yet.

It sounds like it could get added to 4.9, but it didn't happen with the first pull request. This could mean they're pushing it out to 4.10, or it could just be the first of many pull requests for 4.9.

But based on that first article, when support is added, it will likely be experimental and disabled by default until they feel it is stable enough to replace the radeon driver for those cards.
 
Old 10-04-2016, 10:17 AM   #56
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by ReaperX7 View Post
R7 should be supported by the ati driver,not amdgpu.
AMD intends to have all GCN-based cards to eventually be supported by amdgpu. It just isn't complete yet. As I linked to in my post above, experimental support may show up in 4.9, although it will likely be disabled by default.

And according to Gentoo's wiki, the R7 260 and R7 360 are already supported by amdgpu (although, that support may have been added after the 4.4 kernel that 14.2 uses).
 
Old 10-04-2016, 10:29 AM   #57
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
Quote:
Originally Posted by ReaperX7 View Post
R7 should be supported by the ati driver,not amdgpu.
That's what I use but it seems to under-perform in more graphically intensive games. I was hoping amdgpu would be supported and would perform better. I'll probably break down and upgrade my card anyway.
 
Old 11-09-2016, 06:43 AM   #58
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Quote:
Originally Posted by Ztcoracat View Post
This page looks like a starting point for knowledge and what you would have to do to prepare but it doesn't have instructions for Slackware.
https://linuxconfig.org/getting-the-...mdgpu-on-linux
@Ztcoracat

Thanks man, your link helped me a lot. I am not going to use the PRO version, just amdgpu.

Quote:
Vendor: X.Org (0x1002)
Device: AMD POLARIS10 (DRM 3.3.0 / 4.8.6, LLVM 3.9.0) (0x67df)
Version: 13.0.0
Accelerated: yes
OpenGL renderer string: Gallium 0.4 on AMD POLARIS10 (DRM 3.3.0 / 4.8.6, LLVM 3.9.0)
2D and 3D are fine. Urban Terror is running smooth, very smooth

Thanks again.
 
Old 11-09-2016, 01:21 PM   #59
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by BrZ View Post
@Ztcoracat

Thanks man, your link helped me a lot. I am not going to use the PRO version, just amdgpu.



2D and 3D are fine. Urban Terror is running smooth, very smooth

Thanks again.
You're Welcome-
 
Old 01-09-2017, 05:08 PM   #60
charlie4
Member
 
Registered: Jun 2016
Posts: 49

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Or you can grab the updated file from my github.
I've noticed that your git doesn't exist anymore. Are you still going to update your script for amdgpu-pro-driver-16.5?
 
  


Reply

Tags
amdgpu-pro, slack64, slackbuild



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
RX 480 AMDGPU Driver Failing To Load On Debian Sid jwhittles Linux - Hardware 4 08-25-2016 06:18 PM
Configuring AMDGPU / PRO drivers with 390x with Linux Mint CordedConch Linux - Newbie 1 08-06-2016 10:38 AM
LXer: AMDGPU-PRO Driver 16.30 Officially Released with Support for Ubuntu 16.04 LTS LXer Syndicated Linux News 0 06-30-2016 02:11 AM
LXer: AMD Going Open Source with AMDGPU Linux Driver and GPUOpen Tools LXer Syndicated Linux News 0 12-15-2015 09:00 PM
HELP! Installing Driver for ATI 3D Rage Pro on Slackware 10 mmarkvillanueva Linux - Hardware 6 06-08-2005 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:43 AM.

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