LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-30-2024, 12:27 PM   #1
Pigi_102
Member
 
Registered: Aug 2008
Posts: 186

Rep: Reputation: 22
several problem with i965_drv_video after upgrade to -current


Hello all,
just today I've upgraded to latest -current after a while I've not done and, a part for some minor glitch mostly due to my personal installation everything seems to be fine, except for something around hw acceleration and similar.
For example when starting Freecad appimage I get:
Code:
MESA-LOADER: failed to open iris: /usr/lib64/dri/iris_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open iris: /usr/lib64/dri/iris_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
and also

Code:
pigi@linux: /home/pigi/ > vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib64/dri/i965_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit
also chrome seems to be more heavy on CPU.

Reading here around it seems that downgrading mesa to version 23 fix the problem, but I haven't tried yet.

Do you have some better suggestions ?

Thanks in advance

Pierluigi
 
Old 03-30-2024, 03:48 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,321

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Code:
undefined symbol
That's the kernel of it. It looks like some new symbol is being looked for in the Mesa Libraries and it's not there.

Check if you can update Mesa. If you can't I'd try downgrading it like everyone says.

EDIT: You have an Intel i965 driver, yet the symbol it can't find is "amdgpu_va_get_start_addr" Are intel still using Radeon Cores?

Last edited by business_kid; 03-30-2024 at 03:54 PM.
 
Old 03-30-2024, 03:57 PM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by business_kid View Post
You have an Intel i965 driver, yet the symbol it can't find is "amdgpu_va_get_start_addr"
/usr/lib64/dri/iris_dri.so is a file with 11 links. The binary is the same for many other cards with different file names.
 
Old 03-30-2024, 04:06 PM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by Pigi_102 View Post
Do you have some better suggestions ?
Is your libdrm up to date? (libdrm-2.4.120-x86_64-1)
 
Old 03-31-2024, 02:24 AM   #5
Pigi_102
Member
 
Registered: Aug 2008
Posts: 186

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Petri Kaukasoina View Post
Is your libdrm up to date? (libdrm-2.4.120-x86_64-1)

Code:
ls -l /var/adm/packages/libdrm-2.4.120-x86_64-1 
-rw-r--r-- 1 root root 2779 Mar 30 12:35 /var/adm/packages/libdrm-2.4.120-x86_64-1
I did recomplied the mesa library to the previous version ( 23.3 )
Code:
ls -l /var/adm/packages/mesa-23.3.6-x86_64-1    
-rw-r--r-- 1 root root 4314 Mar 30 20:36 /var/adm/packages/mesa-23.3.6-x86_64-1
that need a patch for compile with LLVM 18 ( that is -current )
Code:
ls -l /var/adm/packages/llvm-18.1.2-x86_64-2 
-rw-r--r-- 1 root root 262039 Mar 30 12:38 /var/adm/packages/llvm-18.1.2-x86_64-2
The patch is attached here, for those who needs. Not mine, I can't take credit of it, and it works perfectly.
For the right credit, here is the link to the discussion, for the patch:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/10192

I think that maybe the problem could also lie in the intel vaapi driver as with the "old" mesa library recompiled for this -current I get Freecad working without any error, but vainfo still complain:

Code:
pigi@linux: /home/pigi> vainfo 
Trying display: wayland
Trying display: x11
libva error: /usr/lib64/dri/i965_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit
In fact the driver is quite old:
Code:
ls -l /var/adm/packages/intel-vaapi-driver-2.4.1-x86_64-3
-rw-r--r-- 1 root root 1038 Feb 12  2022 /var/adm/packages/intel-vaapi-driver-2.4.1-x86_64-3
and there is not a new version in -current:
Code:
pigi@linux: /home/pigi> grep intel-vaapi-driver /K8s/RSYNC/NewCurrent/FILELIST.TXT 
-rw-r--r-- 1 root root       454 2021-02-13 12:49 ./slackware64/x/intel-vaapi-driver-2.4.1-x86_64-3.txt
-rw-r--r-- 1 root root    927340 2021-02-13 12:49 ./slackware64/x/intel-vaapi-driver-2.4.1-x86_64-3.txz
-rw-r--r-- 1 root root       163 2021-02-13 12:49 ./slackware64/x/intel-vaapi-driver-2.4.1-x86_64-3.txz.asc
drwxr-xr-x   2 root root      4096 2021-02-13 05:32 ./source/x/intel-vaapi-driver
-rw-r--r--   1 root root   1570064 2020-06-01 01:17 ./source/x/intel-vaapi-driver/intel-vaapi-driver-2.4.1.tar.lz
-rwxr--r--   1 root root      3402 2021-02-13 05:32 ./source/x/intel-vaapi-driver/intel-vaapi-driver.SlackBuild
-rw-r--r--   1 root root        44 2018-12-22 03:16 ./source/x/intel-vaapi-driver/intel-vaapi-driver.url
-rw-r--r--   1 root root       952 2018-02-27 06:13 ./source/x/intel-vaapi-driver/slack-desc
but it seems that this is the latest version available on github.
 
Old 03-31-2024, 04:09 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by Pigi_102 View Post
For example when starting Freecad appimage I get
That's your problem: appimage. It contains binaries and libraries compiled on a different system.
Quote:
Originally Posted by Pigi_102 View Post
I did recomplied the mesa library to the previous version
Try to return your system to the current level (mesa-24.0.4-x86_64-1 etc) and start your appimage using command:
Code:
LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 ./your.AppImage
 
Old 03-31-2024, 05:11 AM   #7
Pigi_102
Member
 
Registered: Aug 2008
Posts: 186

Original Poster
Rep: Reputation: 22
Hello Petri, and thanks for your reply.

That wasn't my only problem.

Another one, for example, was that X was running not HW-accelerated, and after downgrading mesa to the 23.3.6 is running accelerated again.
Probably is some mismatch in my system, but I still think the problem lies around i965 video driver ( which I don't understand why is referenced having my machine a NVIDIA gpu ).

Need to find out.
 
Old 03-31-2024, 05:35 AM   #8
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by Pigi_102 View Post
Another one, for example, was that X was running not HW-accelerated, and after downgrading mesa to the 23.3.6 is running accelerated again.
How do you know X was not running accelerated?
Quote:
Originally Posted by Pigi_102 View Post
( which I don't understand why is referenced having my machine a NVIDIA gpu ).
Where do you see that (NVIDIA)? Maybe it's some kind of hybrid like Optimus?
 
Old 03-31-2024, 11:28 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,321

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Quote:
Originally Posted by Pigi_102 View Post
Hello Petri, and thanks for your reply.

That wasn't my only problem.

Another one, for example, was that X was running not HW-accelerated, and after downgrading mesa to the 23.3.6 is running accelerated again.
Probably is some mismatch in my system, but I still think the problem lies around i965 video driver ( which I don't understand why is referenced having my machine a NVIDIA gpu ).

Need to find out.
I gather your nvidia driver is calling some library and the first match your system comes up with is the Intel driver? A bit of time spent with ldd might throw light on that, or simply remove the intel driver and see what it calls then. You can always put the intel driver back again.
 
  


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
The application panel disappeared after I upgrade my current slackware plasma using "slackpkg upgrade-all" kcynice Slackware 8 01-25-2023 08:34 PM
[SOLVED] Can't log into system, several issues (keyboard doesn't even work, mounting, modules) after current update (jun 11) Nang Dabbit Slackware 33 06-16-2021 12:10 PM
With Linux 4.15.4 or later several systemd services fail, like flush and partition services, for several distros fusion809 Linux - Laptop and Netbook 6 04-13-2018 11:23 PM
How to zip several files to several zip with one command? thomas2004ch Linux - Newbie 4 02-08-2010 08:13 AM
Resetting several Linux account passwords on several systems using Windows ssh Melindhra667 Linux - Enterprise 1 02-26-2009 07:38 PM

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

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