View previous topic :: View next topic |
Author |
Message |
fbeth n00b
Joined: 28 Feb 2023 Posts: 16
|
Posted: Fri Dec 20, 2024 9:58 pm Post subject: Intel Battlemage GPU issue with hwaccel |
|
|
Hi,
I recently got myself a brand new Intel GPU, I understand it's very recent hardware and I'm not expecting the most stable experience on Linux, still I wanted to get one. I updated my kernel and my system for the new GPU and everything seemed to work just fine, but mpv was failing to start, I tried in my terminal and this is the error I got :
Code: | ● Video --vid=1 (vp9 1920x1080 25 fps) [default]
● Audio --aid=1 --alang=eng (opus 2ch 48000 Hz) [default]
Bus error
|
I disabled the hwdec=auto option and the video started playing. I also tried running vainfo and this is the error I got :
Code: | Trying display: wayland
libva info: VA-API version 1.22.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
Bus error
|
Anybody has an idea what am I doing wrong ?
Here are some info on my system, feel free to ask for more :
dmesg : https://paste.gentoo.zip/TZBi7DiZ
kernel config : https://paste.gentoo.zip/BZfXBuTh
Last edited by fbeth on Tue Dec 24, 2024 10:40 am; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5241 Location: Bavaria
|
Posted: Sat Dec 21, 2024 12:53 am Post subject: |
|
|
A brand new Intel graphics card in an AMD machine ... what could possibly go wrong ...
But quite frankly: I have rarely seen such a clean (manual) kernel configuration. The only thing that gives me pause for thought is this:
Code: | [ 6.103353] xe 0000:07:00.0: [drm] Can't resize VRAM BAR - platform support is missing. Consider enabling 'Resizable BAR' support in your BIOS |
If that doesn't help, then you could still activate this (but I don't think that's the problem):
Code: | # CONFIG_ACPI_FPDT is not set
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
# CONFIG_ACPI_HMAT is not set |
XE is still quite new ... and there are patches in every new kernel MINOR version ...
Have you tried installing the latest version of “mesa”? If so, then you will probably have to wait for newer kernel versions.
BTW:
You definitely don't need this (only Intel CPUs have/need this):
Code: | CONFIG_INTEL_MEI=y
CONFIG_INTEL_IOMMU=y |
And I just don't think so:
This does not work:
Code: | CONFIG_GENTOO_KERNEL_SELF_PROTECTION=y |
The reason why it does not work you could read here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Hardening_with_KSPP
Internal note:
Code: | [ 0.000000] Linux version 6.12.6-gentoo-pedalo (root@workstation) (gcc (Gentoo 13.3.1_p20240614 p1) 13.3.1 20240614, GNU ld (Gentoo 2.42 p6) 2.42.0) #1 SMP PREEMPT_DYNAMIC Thu Dec 19 22:05:19 CET 2024
[ 0.000000] DMI: Gigabyte Technology Co., Ltd. B550 AORUS ELITE V2/B550 AORUS ELITE V2, BIOS FD 06/08/2023
[ 0.523553] smpboot: CPU0: AMD Ryzen 7 5800X 8-Core Processor (family: 0x19, model: 0x21, stepping: 0x2)
[ 0.662176] iommu: DMA domain TLB invalidation policy: strict mode
[ 5.982508] ACPI Warning: SystemIO range 0x0000000000000B00-0x0000000000000B08 conflicts with OpRegion 0x0000000000000B00-0x0000000000000B0F (\GSA1.SMBI) (20240827/utaddress-204)
[ 5.982516] ACPI: OSL: Resource conflict; ACPI support missing from driver?
[ 6.050715] xe 0000:07:00.0: [drm] Found BATTLEMAGE (device ID e20b) display version 14.01 stepping B0
CONFIG_EXPERT=y
CONFIG_X86_X2APIC=y
CONFIG_X86_FRED=y
CONFIG_X86_AMD_PLATFORM_DEVICE=y
CONFIG_MK8=y
CONFIG_PROCESSOR_SELECT=y
# CONFIG_CPU_SUP_INTEL is not set
CONFIG_CPU_SUP_AMD=y
CONFIG_X86_AMD_PSTATE=y
CONFIG_TRANSPARENT_HUGEPAGE=y
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
CONFIG_PCI_QUIRKS=y
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_I915=m
CONFIG_DRM_XE=m
CONFIG_DRM_XE_DISPLAY=y
CONFIG_AMD_IOMMU=y
CONFIG_IRQ_REMAP=y |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
fbeth n00b
Joined: 28 Feb 2023 Posts: 16
|
Posted: Sat Dec 21, 2024 1:43 pm Post subject: |
|
|
pietinger wrote: | A brand new Intel graphics card in an AMD machine ... what could possibly go wrong ... |
Ten years ago I was running a system with an Intel CPU and a AMD GPU, I believed it was the best setup for a long time, who would have guessed the situation a decade after that ahah ?
I feel kind of dumb for missing that line in the log file, I did activate that option in BIOS and now everything seems to work fine, sorry for wasting your time. Thanks for the tips about the options I missed and the ones I activated for nothing. For the record you suggested using latest mesa, from the beginning of this I'm using the latest git version of it because every benchmark I saw online was using it, I might try the last stable gentoo package for it later if I want to mess around. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22869
|
Posted: Sat Dec 21, 2024 2:01 pm Post subject: |
|
|
If you missed that line this time, someone else with a similar setup may miss that line later on their system. If that person finds your thread and solves their problem as a result of what was written here, then the thread has helped someone, and was not a waste of time. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5241 Location: Bavaria
|
Posted: Sat Dec 21, 2024 5:20 pm Post subject: |
|
|
fbeth wrote: | I feel kind of dumb for missing that line in the log file [...] |
Please dont' worry ... it happens very often that 4 eyes see more than 2 eyes ... don't ask me how many times i sat in front of my code and searched for the error for hours ... my colleague came by and saw it immediately. And of course what @Hu has already said also applies.
fbeth wrote: | [..] Thanks for the tips about the options [...] |
You are very Welcme! _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
fbeth n00b
Joined: 28 Feb 2023 Posts: 16
|
Posted: Mon Dec 23, 2024 5:02 pm Post subject: |
|
|
Yes, you guys are right, thanks for the help. I still have have some troubles if you have more times to look at it.
I get these messages
Code: | [ 24.642731] xe 0000:07:00.0: [drm] *ERROR* Atomic update failure on pipe A (start=2313 end=2314) time 23 us, min 1073, max 1079, scanline start 1080, end 1081
[15804.636844] xe 0000:07:00.0: [drm] *ERROR* Atomic update failure on pipe B (start=75732 end=75733) time 15 us, min 1073, max 1079, scanline start 1080, end 1081
|
And when I try to use ffmpeg with qsv I get this
Code: | [20365.886152] traps: ffmpeg[17319] general protection fault ip:72adda8bb975 sp:7ffcfb92bae0 error:0 in iHD_drv_video.so[bb975,72adda820000+a09000] |
|
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 463 Location: Nijmegen
|
Posted: Mon Dec 23, 2024 5:46 pm Post subject: |
|
|
My first recommendation would be to try the sys-kernel/git-sources kernel and/or media-libs/mesa-9999, the issue you are facing may already be fixed.
I bought the Alchemist GPU shortly after it launched and that was..... an experience..... I had to use the drm-tip version of the kernel for almost a year to get a usable system, though performance wise it was a huge upgrade compared to what I had. As I understand it, things are going a bit smoother this time around. Still, if there is anything I learned from my experience it is to try the live versions of the kernel, mesa, vaapi, vpl, etc first before doing any extensive debugging. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
fbeth n00b
Joined: 28 Feb 2023 Posts: 16
|
Posted: Mon Dec 23, 2024 8:14 pm Post subject: |
|
|
Nowa wrote: | My first recommendation would be to try the sys-kernel/git-sources kernel and/or media-libs/mesa-9999, the issue you are facing may already be fixed.
I bought the Alchemist GPU shortly after it launched and that was..... an experience..... I had to use the drm-tip version of the kernel for almost a year to get a usable system, though performance wise it was a huge upgrade compared to what I had. As I understand it, things are going a bit smoother this time around. Still, if there is anything I learned from my experience it is to try the live versions of the kernel, mesa, vaapi, vpl, etc first before doing any extensive debugging. |
Thanks for the suggestion, I'm already installed the 9999 package of mesa, I also just tried to use the latest kernel (.13-rc4) this did not help at all.
I'm not the most educated man on drivers, but I think the issue I'm seeing is solely on the hands of intel and I just have to wait for them to fix it ... |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 463 Location: Nijmegen
|
Posted: Mon Dec 23, 2024 8:23 pm Post subject: |
|
|
fbeth wrote: | Nowa wrote: | My first recommendation would be to try the sys-kernel/git-sources kernel and/or media-libs/mesa-9999, the issue you are facing may already be fixed.
I bought the Alchemist GPU shortly after it launched and that was..... an experience..... I had to use the drm-tip version of the kernel for almost a year to get a usable system, though performance wise it was a huge upgrade compared to what I had. As I understand it, things are going a bit smoother this time around. Still, if there is anything I learned from my experience it is to try the live versions of the kernel, mesa, vaapi, vpl, etc first before doing any extensive debugging. |
Thanks for the suggestion, I'm already installed the 9999 package of mesa, I also just tried to use the latest kernel (.13-rc4) this did not help at all.
I'm not the most educated man on drivers, but I think the issue I'm seeing is solely on the hands of intel and I just have to wait for them to fix it ... |
That is unfortunate, if you are feeling adventurous you could give the drm-tip kernel a try: https://cgit.freedesktop.org/drm-tip/
This is the version of the kernel containing the very latest work on the drm drivers, it contains fixes and changes that have not yet made it upstream into the main linux git repository.
If you can still reproduce your issue with the drm-tip kernel then I recommend reporting it upstream here: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/
See also: https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html#filing-a-bug _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
fbeth n00b
Joined: 28 Feb 2023 Posts: 16
|
Posted: Mon Dec 23, 2024 9:09 pm Post subject: |
|
|
Just tried that, same issue I don't think I should report it, the failing bit is the driver iHD driver provided by intel themselves as a separate package. |
|
Back to top |
|
|
|
|
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
|
|