DRI_PRIME=1 doesn't work on Fresh installation

I just installed OS TW and i am having a problem with running almost any app with DRI_PRIME=1. whenever i run it i get the error

radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000100000000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x100000000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000100000000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x100000000
radeonsi: can't create border_color_buffer
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000100000000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x100000000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000100000000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x100000000
radeonsi: can't create border_color_buffer
radeonsi: Failed to create a context.
Error: glXCreateContext failed

For example running glxgears works fine but DRI_PRIME=1 glxgears gives the error above. i never had such a problem on any other distros.

any fix?

im using Lenovo G50-70 laptop.

Might read thru this thread, if you haven’t already, to see if it’s helpful

@sal55 are you running X11 or Wayland. I use switcherooctl on AMD gpu’s…

I’m using X11. And i never heard of switcherooctl before I’ll check it out. I’m just curious to know why it falls to start at first place

@sal55 it’s a dbus service, GNOME has it integrated already, not sure of other DE’s statuses…

HP Desktop;

switcherooctl list

Device: 0
  Name:        NVIDIA Corporation TU117GLM [Quadro T400 Mobile]
  Default:     yes
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

Device: 1
  Name:        NVIDIA Corporation GP104GL [Tesla P4]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

HP Laptop;

switcherooctl list

Device: 0
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Wani [Radeon R5/R6/R7 Graphics]
  Default:     yes
  Environment: DRI_PRIME=pci-0000_00_01_0

Device: 1
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]
  Default:     no
  Environment: DRI_PRIME=pci-0000_04_00_0

So to any one comes across this post i manged to “fix” the issue by installing xf86-video-amdgpu and then adding amdgpu.si_support=1 radeon.si_support=0 Kernel parameters. you can find it all on this LINK.

Is this the fix that gonna make everything works? Maybe i don’t know. For now it seems to work and I’ll test it more while I’m using the system

@sal55 So you have an older AMD Sea Island card…

yes i think? @malcolmlewis

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230]

@sal55 Yes, Radeon HD 8550M / R5 M230, I have one of that series running Leap 15.5 and have to use those settings…

@malcolmlewis, I would have never known that I needed to perform these settings because usually, when I’m using other distros, they seem to have them by default. I’m not sure why this is the case, as I’ve never had to do any of these steps on any other distros, including openSUSE. I used openSUSE on the same laptop for 2 years before, and I never encountered the need for any additional steps. I’m uncertain about the recent changes they made. Thank you for your kind assistance! :stuck_out_tongue:

One more thing, since you’re an admin here: On other forums, there is usually a small icon to mark a comment as it was the solution and tag the post as “SOLVED.” I couldn’t find it here, so perhaps you guys could consider adding it. Also, if you don’t mind, could you mark my post as solved to make the forum more convenient? Thank you again

UPDATE. After doing what i mentioned above the preference is the WORST so it’s not the solution obviously :sob::pensive:

Well then, a missing Solved button worked out :slight_smile:

All joking aside, might double-check that the settings have persisted (or should I say, “not” persisted).

1 Like

I end up deleting Opensuse. i love this distro so much but maybe one day I’ll come back when i find a fix