SOLVED 12th gen iGPU passthrough a possibility?

Andybluejay

Dabbler
Joined
Jun 25, 2022
Messages
14
I've found a lot of threads about iGPU passthrough and not a whole lot of success stories. I have an i5-12600 and I'd love to pass through the iGPU to Plex if possible.
I'm running TrueNAS-SCALE-22.12.0, with an i5-12600 on a Supermicro X13SAE-F. I can see this iGPU and IPMI GPU listed:

Screen Shot 2022-12-26 at 2.35.02 PM.png


but unfortunately I cannot seem to isolate it from the host:

Screen Shot 2022-12-26 at 2.13.12 PM.png


I know I'm not the only one with this issue. I'm not understanding why it cannot be isolated from the host when the host doesn't need a GPU in the first place. Has anyone been successful with a workaround? Do we know if this is planning to be fixed?
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
In the Bluefin release notes it says:

TrueNAS SCALE Bluefin includes Linux Kernel 5.15 which can enable Alderlake GPU acceleration by using the following boot loader tunable and rebooting:

midclt call system.advanced.update '{"kernel_extra_options": "i915.force_probe=4690" }'

NOTE: 4690 can be replaced with your specific Alderlake GPU version.
 

Andybluejay

Dabbler
Joined
Jun 25, 2022
Messages
14
Is there a particular way to enter that? I've tried entering it at the shell, but the GPU device still cannot be isolated from host after rebooting.
Screen Shot 2022-12-26 at 4.57.39 PM.png

and I did confirm that 4690 is correct for my Alderlake GPU, or at least thats what shows up in the drop down on the Isolated GPU PCI Id's menu.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Is there a particular way to enter that? I've tried entering it at the shell, but the GPU device still cannot be isolated from host after rebooting. View attachment 61536
and I did confirm that 4690 is correct for my Alderlake GPU, or at least thats what shows up in the drop down on the Isolated GPU PCI Id's menu.
If it's a tunable it should be accessible by the GUI.
Edit: here it is.
 
Last edited:

Andybluejay

Dabbler
Joined
Jun 25, 2022
Messages
14
If it's a tunable it should be accessible by the GUI.
Edit: here it is.
I appreciate it, so in this case would the variable be 'i915.force_probe' and the value '4960'? Sorry if thats a dumb question I'm pretty new to all this.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
I appreciate it, so in this case would the variable be 'i915.force_probe' and the value '4960'? Sorry if thats a dumb question I'm pretty new to all this.
I'm not too sure myself, wait for morgan's reply.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
I still cannot isolate it but it does show up in the docker GPU configuration now which is all I needed. Plex HW transcoding is up and running!

Isolation is needed for VMs.... so that's why it was not needed. Glad its solved.
 

o1982

Dabbler
Joined
Jun 1, 2018
Messages
25
Does this work for Raptorlake 13th Gen also? It's technically the same igpu right?
 

hrayrwannis

Dabbler
Joined
Mar 18, 2023
Messages
11
Same issue with i7 13700K - can't get the iGPU to show up for the apps. I've tried the force probe https://kois.cc/storage/truenas/gpu/ as well to no avail the dev/dri is still empty.

Is there a way to manually add these drivers perhaps?
 

omeganot

Dabbler
Joined
Feb 25, 2023
Messages
20
I used to have the iGPU on my E-2356G showing up in app container configuration, but now it's gone with the 22.12.02 update. I have more problems with apps, namely that I can't run them anymore and am seeing:
Code:
Missing 'hugetlb, cpu, cpuset' cgroup controller(s) which are required for apps to function


but that's a whole different problem I'm trying to work out in other threads.

While running
Code:
dmesg | grep i915
I get the following:

Code:
[   14.932899] i915 0000:00:02.0: [drm] VT-d active for gfx access
[   14.934761] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[   14.935352] i915 0000:00:02.0: Direct firmware load for i915/rkl_dmc_ver2_03.bin failed with error -2
[   14.935356] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/rkl_dmc_ver2_03.bin. Disabling runtime power management.
[   14.935357] i915 0000:00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[   15.606283] i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
[   15.778936] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 1
[   15.782349] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[   15.782586] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes


and here's the result of /dev/dri:

Code:
ls -alh /dev/dri  
total 0
drwxr-xr-x  3 root root        120 Apr 24 09:02 .
drwxr-xr-x 21 root root       4.1K Apr 24 09:03 ..
drwxr-xr-x  2 root root        100 Apr 24 09:02 by-path
crw-rw----  1 root video  226,   0 Apr 24 09:02 card0
crw-rw----  1 root video  226,   1 Apr 24 09:02 card1
crw-rw----  1 root render 226, 128 Apr 24 09:02 renderD128


Anyone run into something similar that is preventing the loading of the iGPU? Maybe that's related to my apps issue as well, but there seems to be something else going on here.
 
Last edited:

Mosq1to

Cadet
Joined
Apr 5, 2023
Messages
5
I used to have the iGPU on my E-2356G showing up in app container configuration, but now it's gone with the 22.12.02 update. I have more problems with apps, namely that I can't run them anymore and am seeing:
Code:
Missing 'hugetlb, cpu, cpuset' cgroup controller(s) which are required for apps to function


but that's a whole different problem I'm trying to work out in other threads.

While running
Code:
dmesg | grep i915
I get the following:

Code:
[   14.932899] i915 0000:00:02.0: [drm] VT-d active for gfx access
[   14.934761] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[   14.935352] i915 0000:00:02.0: Direct firmware load for i915/rkl_dmc_ver2_03.bin failed with error -2
[   14.935356] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/rkl_dmc_ver2_03.bin. Disabling runtime power management.
[   14.935357] i915 0000:00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[   15.606283] i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
[   15.778936] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 1
[   15.782349] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[   15.782586] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes


and here's the result of /dev/dri:

Code:
ls -alh /dev/dri 
total 0
drwxr-xr-x  3 root root        120 Apr 24 09:02 .
drwxr-xr-x 21 root root       4.1K Apr 24 09:03 ..
drwxr-xr-x  2 root root        100 Apr 24 09:02 by-path
crw-rw----  1 root video  226,   0 Apr 24 09:02 card0
crw-rw----  1 root video  226,   1 Apr 24 09:02 card1
crw-rw----  1 root render 226, 128 Apr 24 09:02 renderD128


Anyone run into something similar that is preventing the loading of the iGPU? Maybe that's related to my apps issue as well, but there seems to be something else going on here.
did you find a solution? having the same issue with same CPU.
 

omeganot

Dabbler
Joined
Feb 25, 2023
Messages
20
Today's release of 22.12.3 brought the iGPU and apps back around for me. I was successfully able to bring Plex back up as an app and provide it the iGPU for the E-2356G.
 

Mosq1to

Cadet
Joined
Apr 5, 2023
Messages
5
Today's release of 22.12.3 brought the iGPU and apps back around for me. I was successfully able to bring Plex back up as an app and provide it the iGPU for the E-2356G.
Noice, did you manage to get it to trancode though the iGPU?
dose the consol say that its using the igpu?

im in away atm but will look into this when i get home.

just before i left i managed to fix the DMC issue by downloading https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
and just transferring the missing file to where the kernal is located /var/....../i915

but i still have issue when trying to transcode in plex, Cannot load libcuda.so.1

best regards
 

omeganot

Dabbler
Joined
Feb 25, 2023
Messages
20
Yeah, it is transcoding through the iGPU.

1686841398701.png


The CPU graph rises a few percent to handle the audio transcode (damn EAC) but that's it. Video is fully through the iGPU.

As a note, I followed the steps at https://www.truenas.com/community/t...ick-sync-on-newer-intel-cpus-in-scale.100046/ to help check that I had things configured properly for this CPU, plus I made sure "Enable GPU Support" is checked in the Applications Kubernetes Settings and that I selected an iGPU in the Plex app config (I just picked the last one, 5, to know it wasn't going to be the default for any other apps).
 

Mosq1to

Cadet
Joined
Apr 5, 2023
Messages
5
Nice!

lol could it be so easy that i have forgot to ""Enable GPU Support" is checked in the Applications Kubernetes Settings"
il check and get back to you :)

thanks for response!
 
Top