Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[Solved by NeddySeagoon gorg86] AMDGPU Rocm Does't work

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
39 posts
  • Previous
  • 1
  • 2
Author
Message
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 6:39 am

Fetch instructions for dev-libs/amdgpu-pro-opencl-20.40.1147286:
* Please download Radeon Software for Linux version 20.40 for Ubuntu 20.04.1 from
* https://www.amd.com/en/support/kb/relea ... inux-20-40
* The archive should then be placed into your distfiles directory.
Ubuntu 20.04.1 :wink:
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 7:51 am

4nn13 wrote:
gorg86 wrote:you have to download the package from https://www.amd.com/en/support/kb/relea ... inux-20-40 and place it in distfiles like instructed in the error message.
The package works, after emerge the package i got this error

Code: Select all

$ /var/cache/distfiles hashcat -I
hashcat (v6.2.6) starting in backend information mode

amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
Segmentation fault
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 8:12 am

4nn13 wrote:
gorg86 wrote:Don't forget to do what grknight said, that's important. Check dmesg if amdgpu is actually used.
There is an error

Code: Select all

$ ~ sudo emerge -av dev-libs/amdgpu-pro-opencl

These are the packages that would be merged, in order:

Calculating dependencies               ... done!
Dependency resolution took 0.88 s.

[ebuild  N F  ~] dev-libs/amdgpu-pro-opencl-20.40.1147286::gentoo  ABI_X86="(64) -32" 325,207 KiB

Total: 1 package (1 new), Size of downloads: 325,207 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-libs/amdgpu-pro-opencl-20.40.1147286:
 * Please download Radeon Software for Linux version 20.40 for Ubuntu 20.04.1 from
 *     https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40
 * The archive should then be placed into your distfiles directory.

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-libs/amdgpu-pro-opencl-20.40.1147286::gentoo
>>> Failed to emerge dev-libs/amdgpu-pro-opencl-20.40.1147286, Log file:
>>>  '/var/tmp/portage/dev-libs/amdgpu-pro-opencl-20.40.1147286/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.13, 0.38, 0.35

!!! dev-libs/amdgpu-pro-opencl-20.40.1147286 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'dev-libs/amdgpu-pro-opencl-20.40.1147286', Log file:
 *  '/var/tmp/portage/dev-libs/amdgpu-pro-opencl-20.40.1147286/temp/build.log'
 * Package:    dev-libs/amdgpu-pro-opencl-20.40.1147286:0
 * Repository: gentoo
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Please download Radeon Software for Linux version 20.40 for Ubuntu 20.04.1 from
 *     https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40
 * The archive should then be placed into your distfiles directory.

 * Messages for package dev-libs/amdgpu-pro-opencl-20.40.1147286:

 * Fetch failed for 'dev-libs/amdgpu-pro-opencl-20.40.1147286', Log file:
 *  '/var/tmp/portage/dev-libs/amdgpu-pro-opencl-20.40.1147286/temp/build.log'
$ ~ sudo cat /var/tmp/portage/dev-libs/amdgpu-pro-opencl-20.40.1147286/temp/build.log

!!! dev-libs/amdgpu-pro-opencl-20.40.1147286 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'dev-libs/amdgpu-pro-opencl-20.40.1147286', Log file:
 *  '/var/tmp/portage/dev-libs/amdgpu-pro-opencl-20.40.1147286/temp/build.log'
 * Package:    dev-libs/amdgpu-pro-opencl-20.40.1147286:0
 * Repository: gentoo
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Please download Radeon Software for Linux version 20.40 for Ubuntu 20.04.1 from
 *     https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40
 * The archive should then be placed into your distfiles directory.
$ ~ 
Am I right?

Code: Select all

$ ~ cat /etc/default/cmdline 
radeon.si_support=0 amdgpu.si_support=1
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 8:26 am

Those are kernel arguments, you have to put those in your grub.cfg, they can't be changed afterwards :wink:

Your DISTDIR is defined in your make.conf

and do a

Code: Select all

dmesg | grep -i amdgpu
pls
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 8:43 am

gorg86 wrote:Those are kernel arguments, you have to put those in your grub.cfg, they can't be changed afterwards :wink:

Your DISTDIR is defined in your make.conf

and do a

Code: Select all

dmesg | grep -i amdgpu
pls
I found /boot/grub/grub.cfg and where I suppose to paste the kernel command?

dmesg

Code: Select all

$ ~ dmesg | grep -i amdgpu
[   13.363011] [drm] amdgpu kernel modesetting enabled.
[   13.363028] amdgpu: vga_switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
[   13.363383] amdgpu: CRAT table not found
[   13.363385] amdgpu: Virtual CRAT table created for CPU
[   13.363400] amdgpu: Topology: Add CPU node
[   62.851314] hashcat[2932]: segfault at 20 ip 00007f4ce1b2b934 sp 00007ffe0b2bbb18 error 4 in libdrm_amdgpu.so.1.0.0[7f4ce1b26000+7000] likely on CPU 3 (core 3, socket 0)
$ ~ 
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 8:49 am

Wait you edited your post, grub.cfg should not be edited directly because it gets overwritten https://wiki.gentoo.org/wiki/GRUB
You can use /etc/default/grub (GRUB_CMDLINE_LINUX) to change the cmdline arguments.
After you're finished with that reboot and check them with dmesg or whatever to see if those got passed and if AMDGPU got loaded.
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 8:56 am

gorg86 wrote:Wait you edited your post, grub.cfg should not be edited directly because it gets overwritten https://wiki.gentoo.org/wiki/GRUB
You can use /etc/default/grub (GRUB_CMDLINE_LINUX) to change the cmdline arguments.
After you're finished with that reboot and check them with dmesg or whatever to see if those got passed and if AMDGPU got loaded.
grub has been modified,
after reboot the same problem still here

Code: Select all

$ ~ cat /etc/default/grub |grep CMDLINE
#GRUB_CMDLINE_LINUX=""
# GRUB_CMDLINE_LINUX="net.ifnames=0"
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 amdgpu.si_support=1"
$ ~ hashcat -I
hashcat (v6.2.6) starting in backend information mode

amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
Segmentation fault
$ ~ 

$ ~ dmesg |grep amdgpu
[   13.684639] [drm] amdgpu kernel modesetting enabled.
[   13.684659] amdgpu: vga_switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
[   13.684969] amdgpu: CRAT table not found
[   13.684971] amdgpu: Virtual CRAT table created for CPU
[   13.684987] amdgpu: Topology: Add CPU node
[   68.078639] hashcat[3130]: segfault at 20 ip 00007f8132692934 sp 00007ffdac6a3ed8 error 4 in libdrm_amdgpu.so.1.0.0[7f813268d000+7000] likely on CPU 6 (core 2, socket 0)
$ ~ 
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 9:43 am

Huh,

I dunno what we are missing here,
Pls do a

Code: Select all

lspci -nnk
again,
a

Code: Select all

cat /proc/cmdline
a

Code: Select all

glxinfo | grep -i renderer
as user (not root)
glxinfo is part of mesa-progs.
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 9:57 am

gorg86 wrote:Huh,

I dunno what we are missing here,
Pls do a

Code: Select all

lspci -nnk
again,
a

Code: Select all

cat /proc/cmdline
a

Code: Select all

glxinfo | grep -i renderer
as user (not root)
glxinfo is part of mesa-progs.

Code: Select all

00:00.0 Host bridge [0600]: Intel Corporation Coffee Lake HOST and DRAM Controller [8086:3e34] (rev 0b)
	DeviceName: Onboard - Other
	Subsystem: Dell Coffee Lake HOST and DRAM Controller [1028:08c9]
	Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0]
	DeviceName: Onboard - Video
	Subsystem: Dell WhiskeyLake-U GT2 [UHD Graphics 620] [1028:08c9]
	Kernel driver in use: i915
	Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 0b)
	DeviceName: Onboard - Other
	Subsystem: Dell Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [1028:08c9]
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device_pci_legacy
00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
	DeviceName: Onboard - Other
	Subsystem: Dell Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [1028:08c9]
00:12.0 Signal processing controller [1180]: Intel Corporation Cannon Point-LP Thermal Controller [8086:9df9] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP Thermal Controller [1028:08c9]
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:14.0 USB controller [0c03]: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller [8086:9ded] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP USB 3.1 xHCI Controller [1028:08c9]
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Cannon Point-LP Shared SRAM [8086:9def] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP Shared SRAM [1028:08c9]
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 [8086:9de8] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP Serial IO I2C Controller [1028:08c9]
	Kernel driver in use: intel-lpss
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #1 [8086:9de9] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP Serial IO I2C Controller [1028:08c9]
	Kernel driver in use: intel-lpss
00:17.0 RAID bus controller [0104]: Intel Corporation 82801 Mobile SATA Controller [RAID mode] [8086:282a] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell 82801 Mobile SATA Controller [RAID mode] [1028:08c9]
	Kernel driver in use: ahci
00:19.0 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Host Controller [8086:9dc5] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP Serial IO I2C Host Controller [1028:08c9]
	Kernel driver in use: intel-lpss
00:1c.0 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #5 [8086:9dbc] (rev f0)
	Subsystem: Dell Cannon Point-LP PCI Express Root Port [1028:08c9]
	Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #9 [8086:9db0] (rev f0)
	Subsystem: Dell Cannon Point-LP PCI Express Root Port [1028:08c9]
	Kernel driver in use: pcieport
00:1d.1 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #10 [8086:9db1] (rev f0)
	Subsystem: Dell Cannon Point-LP PCI Express Root Port [1028:08c9]
	Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Cannon Point-LP LPC Controller [8086:9d84] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP LPC Controller [1028:08c9]
00:1f.3 Audio device [0403]: Intel Corporation Cannon Point-LP High Definition Audio Controller [8086:9dc8] (rev 30)
	DeviceName: Onboard - Sound
	Subsystem: Dell Cannon Point-LP High Definition Audio Controller [1028:08c9]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Point-LP SMBus Controller [8086:9da3] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP SMBus Controller [1028:08c9]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller [8086:9da4] (rev 30)
	DeviceName: Onboard - Other
	Subsystem: Dell Cannon Point-LP SPI Controller [1028:08c9]
01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Jet PRO [Radeon R5 M230 / R7 M260DX / Radeon 520/610 Mobile] [1002:6665] (rev c3)
	Subsystem: Dell Jet PRO [Radeon R5 M230 / R7 M260DX / Radeon 520/610 Mobile] [1028:08c9]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
	Subsystem: Dell RTL810xE PCI Express Fast Ethernet controller [1028:08c9]
	Kernel driver in use: r8169
	Kernel modules: r8169
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
	Subsystem: Dell QCA9377 802.11ac Wireless Network Adapter [1028:1810]
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci

Code: Select all

$ ~ cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-6.1.46-gentoo-dist root=UUID=e8347fbd-67e9-47a2-acf0-7c70f5a3a9b7 ro

Code: Select all

$ ~ glxinfo | grep -i renderer
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
    GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 10:07 am

Man, the old radeon module is still being loaded and your grub arguments did not get updated.
Did you forget to do a "grub-mkconfig -o /boot/grub/grub.cfg" ?
after you did that check grub.cfg and reboot...
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 10:14 am

gorg86 wrote:Man, the old radeon module is still being loaded and your grub arguments did not get updated.
Did you forget to do a "grub-mkconfig -o /boot/grub/grub.cfg" ?
after you did that check grub.cfg and reboot...
Okay sorry forgot that I need to update grub, and after that i got a new error

Code: Select all

$ ~ hashcat -I
hashcat (v6.2.6) starting in backend information mode

clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY

No devices found/left.
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Sep 04, 2023 10:59 am

Congrats, it seems like your GPU is too old for the amd opencl libs.
Last thing you can do is uninstall amdgpu-pro-opencl and compile mesa with opencl.
If that doesn't work either you're out of luck, you won't see any patches for SI cards.
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 1:30 pm

gorg86 wrote:Congrats, it seems like your GPU is too old for the amd opencl libs.
Last thing you can do is uninstall amdgpu-pro-opencl and compile mesa with opencl.
If that doesn't work either you're out of luck, you won't see any patches for SI cards.
Okay I will try to do that again, fortunatelly I have another intelgpu on the laptop
Top
4nn13
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Fri Sep 01, 2023 6:15 am

  • Quote

Post by 4nn13 » Mon Sep 04, 2023 1:52 pm

gorg86 wrote:Congrats, it seems like your GPU is too old for the amd opencl libs.
Last thing you can do is uninstall amdgpu-pro-opencl and compile mesa with opencl.
If that doesn't work either you're out of luck, you won't see any patches for SI cards.
I recompiled mesa it doesn't work

Code: Select all

$ ~ hashcat -I
hashcat (v6.2.6) starting in backend information mode

No devices found/left.
Top
Post Reply

39 posts
  • Previous
  • 1
  • 2

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic