Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vulkan apps crashing opengl apps working fine [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mael
n00b
n00b


Joined: 28 Feb 2018
Posts: 37
Location: Germany

PostPosted: Wed Jan 16, 2019 11:37 am    Post subject: vulkan apps crashing opengl apps working fine [SOLVED] Reply with quote

hi,

i have a big mess here for quite some time now and i dont get the fix here sadly by myself ...

all of my vulkan api apps are crashing already at startup, but none of my opengl api based apps are crashing

i use an older amd radeon r290x (hawaii) based graphics card from msi with latest stable portage packages except the 4 testing marked vulkan packages in portage and testing gentoo-sources-4.19.15

i have enabled globaly the vulkan and opengl useflag

i am using the older radeon drm driver because the newer amdgpu driver dont work for me at all.
with the newer amdgpu driver my screen freezes (not the system) when the kernel switching to the amdgpudrmfb driver from simplefb. i had to wait until the boot is complete then and reboot via strg+alt+del keystroke and select the working radeon drm kernel... so the newer amdgpu is sadly not an option here.

even the simple diagnostic tool vkcube from vulkan-tools crashes like this in syslog:

Code:

vkcube[3765]: segfault at 0 ip 00007fdec0f89572 sp 00007fff9dc2df90 error 4 in libvulkan.so.1.1.92[7fdec0f5d000+4c000]
Code: ec 38 48 8d 3d 2f 2d 22 00 64 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 e8 3a 7c fe ff 4d 85 e4 74 07 41 80 3c 24 00 75 4e <48> 8b 45 00 48 89 d9 48 8b 7d 10 4c 89 f2 31 f6 ff 50 68 89 c3 48


UPDATE: "gdb vkcube" produces this:

Code:

(gdb) run
Starting program: /usr/bin/vkcube
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
vkEnumerateDeviceExtensionProperties (physicalDevice=0x0, pLayerName=0x0, pPropertyCount=0x7fffffffcc2c, pProperties=0x0)
    at /usr/src/debug/media-libs/vulkan-loader-1.1.92.1/Vulkan-Loader-4cd7e44fc1ca6c4d8361720b43a3588ddf9fc4b6/loader/trampoline.c:909
909             res = disp->EnumerateDeviceExtensionProperties(phys_dev->phys_dev, NULL, pPropertyCount, pProperties);


every article i read tells me my older card is vulkan 1.1+ capable. so what am i missing here? does vulkan only work with amdgpu?
_________________
Gigabyte X99-SLI
Intel Core i7-5960X 16 Threads @ 3 Ghz
64 GB DDR4 RAM @ 2,13 Ghz
AMD Radeon 290X 8 GB RAM
Creative Soundblaster Z
Areca ARC-1883ix-16
16 Samsung 860 EVO 250 GB SSDs @ 3,5 TB RAID 6
Hauppauge HVR-5525
Firmwares are up-to-date


Last edited by mael on Fri Jan 18, 2019 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 185

PostPosted: Wed Jan 16, 2019 3:19 pm    Post subject: Reply with quote

needs amdgpu
https://medium.com/@mdiluz/whats-the-deal-with-amdvlk-3ea21d5656ba
Back to top
View user's profile Send private message
mael
n00b
n00b


Joined: 28 Feb 2018
Posts: 37
Location: Germany

PostPosted: Fri Jan 18, 2019 11:55 am    Post subject: Reply with quote

thanks hhfeuer for your advice...

the amdgpu driver runs now VERY FINE on my older gpu ... had to compile the driver as a module (not staticly) into the kernel ... possible firmware loading problem when staticly linked in, will examine it later and add eventually missing firmwares into the kernel...

now it is cluttering my bootup screen because of the console resolution change right in the middle of the bootup services, but thats still better than staying longer without any modern vulkan api support on my system at all.

i have also added these kernel boot parameters in grub.cfg just in case, will examine later if they where part of the solution:

Code:

amdgpu.dc=1 radeon.cik_support=1 amdgpu.cik_support=1


tested stable and testing opengl apps and games and of course a self compiled recent unreal engine 4.21 with complete vulkan support... ALL WORKS NOW :lol:

marking the thread solved (for now) :lol:
_________________
Gigabyte X99-SLI
Intel Core i7-5960X 16 Threads @ 3 Ghz
64 GB DDR4 RAM @ 2,13 Ghz
AMD Radeon 290X 8 GB RAM
Creative Soundblaster Z
Areca ARC-1883ix-16
16 Samsung 860 EVO 250 GB SSDs @ 3,5 TB RAID 6
Hauppauge HVR-5525
Firmwares are up-to-date
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 185

PostPosted: Fri Jan 18, 2019 12:24 pm    Post subject: Reply with quote

The kernel parameters
Code:

radeon.si_support
radeon.cik_support
amdgpu.si_support
amdgpu.cik_support

are there to switch between the old radeon and the new amdgpu drm driver if both are enabled in kernel config.
si=southern islands (I think your gpu belongs to this group)
cik=sea islands
So the kernel parameters are wrong, should be something like
Code:
radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1

but don't matter anyway if you disabled the radeon driver on kernel config level.
Code:
amdgpu.dc=1

Is fine if it works, if problems arise, try setting it to 0.
Back to top
View user's profile Send private message
mael
n00b
n00b


Joined: 28 Feb 2018
Posts: 37
Location: Germany

PostPosted: Fri Jan 18, 2019 12:57 pm    Post subject: Reply with quote

https://www.x.org/wiki/RadeonFeature/

... tells me my r290x hawaii is sea ilands, i admit some webpages pack my card in the southern ilands group but that seems wrong according to several official sites like the x.org one

i switched as far as possible to the new amdgpu driver, deactivated from beginning the old radeon drm kernel module, but some packages still need the radeon and radeonsi VIDEO_CARD parameter in make.conf

finaly it looks like i am ready for the future (all needed APIs in their modern revisions are currently supported) even with my old warhorse :twisted: so far no problems with the new amdgpu driver

i will try later this weekend different kernel parameters but for now family calls :lol:
_________________
Gigabyte X99-SLI
Intel Core i7-5960X 16 Threads @ 3 Ghz
64 GB DDR4 RAM @ 2,13 Ghz
AMD Radeon 290X 8 GB RAM
Creative Soundblaster Z
Areca ARC-1883ix-16
16 Samsung 860 EVO 250 GB SSDs @ 3,5 TB RAID 6
Hauppauge HVR-5525
Firmwares are up-to-date
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum