LinuxQuestions.org
Help answer threads with 0 replies.
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 05-22-2019, 01:07 PM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Graphics does not work on new HP Elitebook with AMD Ryzen 5 PRO


Hi all,

Can anyone suggest how to get the graphics work on my new Laptop? I would like to use Slackware (14.2 or current) on it. Unfortunately when I have installed a clean 14.2 the boot was hanging on some step - fb: switching to amdgpudrmfb...

I tried to set the nomodeset which solved the boot issue however I cannot start KDE.
I have upgraded all the packages (latest kernel) from the stable 14.2. This did not help.
I have upgraded to Slackware64-current with kernel 4.19.44. This did not help either (however it fixed the CPU hierarchy warning). I am not sure what to try first - customize X config, downgrade kernel to 4.15x, or recompile kernel with some additional tuning, maybe pass more kernel boot options?

This is my elilo.conf append section:
append="root=/dev/cryptvg/root nomodeset vga=normal ro resume=/dev/cryptvg/swap"

This is the exact CPU:
AMD Ryzen 5 PRO 2500U w/ Radeon Vega Mobile Gfx

The graphics:
Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver

I would like to keep this 4.19.44 kernel since only this kernel stopped to report CPU cache hierarchy warnings...
If I could fix the issue with KDE start I would like to upgrade to plasma5.

I am not sure if I understood it properly but I think the nomodeset actually disabled the attempt to use the AMD GPU...

Thanks for suggestions in advance
 
Old 05-22-2019, 02:01 PM   #2
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
Did you just upgrade the kernel or the whole distro? If it was the first, that likely wouldn't be enough and you'd need to move the whole distro to -current. If you already did that, it's hard to guess what might be the issue.

The next step would be to get logs. Maybe the dmesg output along with the contents of /var/log/Xorg.0.log.
 
Old 05-22-2019, 02:44 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,003
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
So, I'm not a Slackware user, so might not be able to help beyond the broadest ability. But I had to figure out how to make the EXACT same cpu/igp work on Debian Stretch, so I know what it entailed there.

What version is your mesa drivers? I know the older mesa drivers will NOT work with Vega graphics.

What version of amd/ati graphics firmware do you have? Again, only the newish firmware works with Vega.

Obviously with kernel 4.19, the drivers themselves should DEFINITELY be new enough, so I'm betting you either have older non-vega firmware, or your mesa drivers are still too old.
 
Old 05-22-2019, 04:16 PM   #4
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
I use an ACER laptop with 2500u with slackware64-current multilib and it works works great out of the box with current and some ivrs overrides.
I can't say anything about plasma5 since i use stock KDE4.
Earlier bios/UEFI wasn't working as good as i should and i needed to boot with pci=noacpi but with later kernels and bios update things started to work better.
Linux 4.19 supports my hardware so i use stock kernel in current but i do still need an ivrs override "ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2" but you have another laptop so things differ.
Upgrading the bios/UEFI to latest available fixed many things for me so it can be a good start.

What happens when you try to start KDE?
Don't downgrade the kernel since it will only introduce new problems that needs workarounds.

could you post the output from
lspci -knn
cat /proc/interrupts
dmesg

Last edited by Nille_kungen; 05-22-2019 at 04:19 PM.
 
Old 05-22-2019, 09:06 PM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by bassmadrigal View Post
Did you just upgrade the kernel or the whole distro? If it was the first, that likely wouldn't be enough and you'd need to move the whole distro to -current.
I agree. There have been many changes in Slackware since July 2016. It may be easier to do a clean install of Slackware64-current for your new hardware. Best of luck!

Slackware64-current
 
Old 05-23-2019, 07:28 AM   #6
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by hitest View Post
I agree. There have been many changes in Slackware since July 2016. It may be easier to do a clean install of Slackware64-current for your new hardware. Best of luck!

Slackware64-current
I did a full upgrade. Thanks for the link! I did not know there is an iso image for current. I will try to reinstall from this image.
 
1 members found this post helpful.
Old 05-23-2019, 06:54 PM   #7
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by hua View Post
Thanks for the link! I did not know there is an iso image for current. I will try to reinstall from this image.
You're welcome!
 
Old 05-23-2019, 07:25 PM   #8
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
I am using current iso from 3-5-19 it has upgrades need for newer hardware for me it was a hauppauge usb tv tuner which is now working with no kernel patching. needed current and a audio package to get battletech working too. slackware 14.2 is soo old its crazy not to get current image.
havent had issues some have had with current.

would love to be having issues with ryzen cpu and newer video but what I got gets me by for now. wish I knew how I got such good hardware in past.

Last edited by mrapathy; 05-23-2019 at 07:27 PM.
 
Old 05-24-2019, 12:20 AM   #9
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 mrapathy View Post
slackware 14.2 is soo old its crazy not to get current image.
It really depends on what you're running it on and what you need to do with your system. I am running 14.2 on a Ryzen system (albeit with a 4.19.x kernel, but I almost always run newer series of kernels on my stable releases), but on my new Ryzen APU system (upgrading my HTPC to gift my old one to my father-in-law so he'll have something to keep him occupied after his knee surgery), I will need to run -current since 14.2 has no support for Ryzen APU graphics.

In my usage, I'm not finding many limitations on 14.2 other than hardware support (there's been a few minor software limitations if I'm wanting the latest version of some programs -- this will vary drastically depending on what software you need to run).
 
Old 05-27-2019, 12:06 PM   #10
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Unfortunately, the result is the same with fresh new install from the current iso. However it seems the system does not crash it just does not display the desktop after the "fb: switching to amdgpudrmfb from EFI VGA" message.

It's very interesting that I was able to start KDE one time when I connected my second external display to the HDMI port. Both screens were working and the laptop display was working even after I disconnected the HDMI port. However after reboot the screen does not start again. Strange.

I think this is the relevant part of dmesg:
Code:
[   18.555993] fb: switching to amdgpudrmfb from EFI VGA
[   18.557122] Console: switching to colour dummy device 80x25
[   18.557743] [drm] initializing kernel modesetting (RAVEN 0x1002:0x15DD 0x103C:0x83D5 0xD1).
[   18.558297] [drm] register mmio base: 0xE0700000
[   18.558302] [drm] register mmio size: 524288
[   18.558333] [drm] add ip block number 0 <soc15_common>
[   18.558336] [drm] add ip block number 1 <gmc_v9_0>
[   18.558340] [drm] add ip block number 2 <vega10_ih>
[   18.558343] [drm] add ip block number 3 <psp>
[   18.558347] [drm] add ip block number 4 <powerplay>
[   18.558350] [drm] add ip block number 5 <dm>
[   18.558353] [drm] add ip block number 6 <gfx_v9_0>
[   18.558357] [drm] add ip block number 7 <sdma_v4_0>
[   18.558360] [drm] add ip block number 8 <vcn_v1_0>
[   18.559361] [drm] VCN decode is enabled in VM mode
[   18.559368] [drm] VCN encode is enabled in VM mode
[   18.559371] [drm] VCN jpeg decode is enabled in VM mode
[   18.597266] [drm] BIOS signature incorrect 0 0
[   18.597287] resource sanity check: requesting [mem 0x000c0000-0x000dffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000c3fff window]
[   18.597298] caller pci_map_rom+0x6a/0x1b0 mapping multiple BARs
[   18.597316] amdgpu 0000:03:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
[   18.622476] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[   18.622908] thermal thermal_zone6: failed to read out thermal zone (-61)
[   18.635959] [drm] BIOS signature incorrect 0 0
[   18.636066] [drm:amdgpu_get_bios [amdgpu]] *ERROR* Unable to locate a BIOS ROM
[   18.636076] amdgpu 0000:03:00.0: Fatal error during GPU init
[   18.636082] [drm] amdgpu: finishing device.
[   18.636635] amdgpu: probe of 0000:03:00.0 failed with error -22

Last edited by hua; 05-28-2019 at 12:11 AM.
 
Old 05-28-2019, 12:15 AM   #11
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Oh again. I did not do my troubleshooting properly. When I googled the above error message I have found some discussions about UEFI settings.
The issue was caused by improper UEFI BIOS boot settings.Once I configured the proper BIOS boot settings and fixed the bootloader by eliloconfig it boots and starts KDE properly.

Thanks to all for effort.

Edit: I configured legacy boot off and selected UEFI boot only.

Last edited by hua; 05-28-2019 at 06:17 AM.
 
Old 05-28-2019, 12:09 PM   #12
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Did you need to append any overrides?
Do you have the latest bios installed? If everything works then there's no need to upgrade bios/UEFI.
That error doesn't matter if it still loads, it only means that it failed to load one vbios but it should load another.
 
Old 05-29-2019, 08:30 AM   #13
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
No. I did not append any overrides. I have upgraded/downgraded the BIOS several times (during troubleshooting) but now I have the latest.
Right now everything works perfectly. I can also see in dmesg that the amdgpu is properly initialized without any errors. So I am happy with the result.
 
  


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
[SOLVED] Realtek rtl8822be blues on the new Lenovos.. Flex 6-ARR, Flex 14 AMD Ryzen 2200U specifically w00tus Linux - Newbie 7 10-13-2018 12:30 PM
How well does Linux handle AMD Ryzen CPU Power Management? unseengundam Linux - Hardware 2 08-08-2018 02:27 AM
LXer: Module reveals new AMD Ryzen Embedded V1000 SoC LXer Syndicated Linux News 0 02-17-2018 06:21 PM
LXer: AMD Ryzen 7 1700 Specs Confirmed, A $320 Rival To Intel’s $1099 i7 6900K – 8 Cores, 65W, 3.7Ghz With Unlimited Boost & Unlocked Multip LXer Syndicated Linux News 0 02-12-2017 10:43 AM

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

All times are GMT -5. The time now is 02:59 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