Upgrade from iGPU to dGPU - drivers? order?  [Solved]

Message
Author
User avatar
debianix
Posts: 185
Joined: Fri May 31, 2024 4:03 pm

Re: Upgrade from iGPU to dGPU - drivers? order?

#11 Post by debianix »

I thought that disabling the iGPU would prevent the dGPU and iGPU from “competing” with each other and causing inconsistencies or errors. I will inform you again as soon as I have installed it how it works and which drivers are used :-)

User avatar
debianix
Posts: 185
Joined: Fri May 31, 2024 4:03 pm

Re: Upgrade from iGPU to dGPU - drivers? order?

#12 Post by debianix »

MadMax wrote: Fri Nov 29, 2024 12:20 pm
At boot the kernel chooses the driver automatically after detecting the hardware. Usually radeon is for older cards and amdgpu for the newer ones (probably including yours).
To check which driver is used run lspci with the -k flag.

Code: Select all

lspci -k
finally installed the card and it works so far.

here is the output:

Code: Select all

 lspci -k
00:00.0 Host bridge: Intel Corporation Device 4c43 (rev 01)
        DeviceName: Onboard - Other
        Subsystem: Gigabyte Technology Co., Ltd Device 5000
        Kernel driver in use: icl_uncore
00:01.0 PCI bridge: Intel Corporation Device 4c01 (rev 01)
        Subsystem: Gigabyte Technology Co., Ltd Device 5000
        Kernel driver in use: pcieport
00:06.0 PCI bridge: Intel Corporation Device 4c09 (rev 01)
        Kernel driver in use: pcieport
00:14.0 USB controller: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Gigabyte Technology Co., Ltd Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Tiger Lake-H Shared SRAM (rev 11)
        DeviceName: Onboard - Other
00:16.0 Communication controller: Intel Corporation Tiger Lake-H Management Engine Interface (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Gigabyte Technology Co., Ltd Tiger Lake-H Management Engine Interface
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Device 43d2 (rev 11)
        DeviceName: Onboard - SATA
        Subsystem: Gigabyte Technology Co., Ltd Device b005
        Kernel driver in use: ahci
        Kernel modules: ahci
00:1b.0 PCI bridge: Intel Corporation Device 43c4 (rev 11)
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
        Kernel driver in use: pcieport
00:1c.0 PCI bridge: Intel Corporation Tiger Lake-H PCI Express Root Port #5 (rev 11)
        Subsystem: Gigabyte Technology Co., Ltd Tiger Lake-H PCI Express Root Port
        Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Device 43bd (rev 11)
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
        Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation Device 43be (rev 11)
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Tiger Lake-H PCI Express Root Port #9 (rev 11)
        Subsystem: Gigabyte Technology Co., Ltd Tiger Lake-H PCI Express Root Port
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device 4387 (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
00:1f.4 SMBus: Intel Corporation Tiger Lake-H SMBus Controller (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Gigabyte Technology Co., Ltd Tiger Lake-H SMBus Controller
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-H SPI Controller (rev 11)
        DeviceName: Onboard - Other
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch
        Kernel driver in use: pcieport
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
        Kernel driver in use: pcieport
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 WKS-XL [Radeon PRO W6600]
        Subsystem: Dell Navi 23 WKS-XL [Radeon PRO W6600]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Subsystem: Samsung Electronics Co Ltd SSD 970 EVO
        Kernel driver in use: nvme
        Kernel modules: nvme
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
        Kernel driver in use: r8169
        Kernel modules: r8169
07:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)
        Subsystem: Fresco Logic FL1100 USB 3.0 Host Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
08:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)
        Subsystem: Fresco Logic FL1100 USB 3.0 Host Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
09:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Subsystem: Samsung Electronics Co Ltd SSD 970 EVO
        Kernel driver in use: nvme
        Kernel modules: nvme

and dmesg | grep amdgpu:

Code: Select all

sudo dmesg | grep amdgpu    
[    4.747377] [drm] amdgpu kernel modesetting enabled.
[    4.747405] amdgpu: CRAT table not found
[    4.747406] amdgpu: Virtual CRAT table created for CPU
[    4.747413] amdgpu: Topology: Add CPU node
[    4.747483] amdgpu 0000:03:00.0: enabling device (0006 -> 0007)
[    4.749387] amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
[    4.749388] amdgpu: ATOM BIOS: 113-D5330200-100
[    4.749454] amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[    4.749458] amdgpu 0000:03:00.0: amdgpu: PCIE atomic ops is not supported
[    4.749513] amdgpu 0000:03:00.0: amdgpu: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
[    4.749514] amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    4.749515] amdgpu 0000:03:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[    4.749554] [drm] amdgpu: 8176M of VRAM memory ready
[    4.749554] [drm] amdgpu: 15995M of GTT memory ready.
[    4.749742] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_sos.bin
[    4.749776] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_ta.bin
[    4.749784] amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
[    4.749789] amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
[    6.135453] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_smc.bin
[    6.135460] amdgpu 0000:03:00.0: amdgpu: STB initialized to 2048 entries
[    6.135525] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_dmcub.bin
[    6.135561] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_pfp.bin
[    6.135606] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_me.bin
[    6.135638] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_ce.bin
[    6.135656] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_rlc.bin
[    6.135688] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_mec.bin
[    6.135714] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_mec2.bin
[    6.136043] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_sdma.bin
[    6.136135] amdgpu 0000:03:00.0: firmware: direct-loading firmware amdgpu/dimgrey_cavefish_vcn.bin
[    6.136141] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[    6.335245] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    6.355891] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    6.355911] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw program = 0, version = 0x003b3100 (59.49.0)
[    6.355912] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[    6.355942] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[    6.405453] amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
[    6.668013] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    6.668176] amdgpu: sdma_bitmap: ffff
[    6.668219] amdgpu: SRAT table not found
[    6.668219] amdgpu: Virtual CRAT table created for GPU
[    6.668315] amdgpu: Topology: Add dGPU node [0x73e3:0x1002]
[    6.668316] kfd kfd: amdgpu: added device 1002:73e3
[    6.668332] amdgpu 0000:03:00.0: amdgpu: SE 2, SH per SE 2, CU per SH 8, active_cu_number 28
[    6.668367] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[    6.668368] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    6.668369] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    6.668369] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    6.668369] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    6.668370] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    6.668370] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    6.668371] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    6.668371] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    6.668372] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    6.668372] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[    6.668373] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[    6.668373] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[    6.668374] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[    6.668374] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[    6.668375] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[    6.669623] [drm] Initialized amdgpu 3.49.0 20150101 for 0000:03:00.0 on minor 0
[    6.675649] fbcon: amdgpudrmfb (fb0) is primary device
[    6.914390] amdgpu 0000:03:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:157 vmid:0 pasid:0, for process  pid 0 thread  pid 0)
[    6.914392] amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000000006004000 from client 0x12 (VMC)
[    6.914393] amdgpu 0000:03:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[    6.914394] amdgpu 0000:03:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[    6.914394] amdgpu 0000:03:00.0: amdgpu:      MORE_FAULTS: 0x0
[    6.914395] amdgpu 0000:03:00.0: amdgpu:      WALKER_ERROR: 0x0
[    6.914395] amdgpu 0000:03:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[    6.914396] amdgpu 0000:03:00.0: amdgpu:      MAPPING_ERROR: 0x0
[    6.914396] amdgpu 0000:03:00.0: amdgpu:      RW: 0x0
[    6.947502] amdgpu 0000:03:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[   21.763070] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

also the glmark2 benchmark seems to be fine:

Code: Select all

$ glmark2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      AMD
    GL_RENDERER:    AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 15.0.6, DRM 3.49, 6.1.0-28-amd64)
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 24.2.2-1~mx23ahs
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 17131 FrameTime: 0.058 ms
[build] use-vbo=true: FPS: 30525 FrameTime: 0.033 ms
[texture] texture-filter=nearest: FPS: 31712 FrameTime: 0.032 ms
[texture] texture-filter=linear: FPS: 31840 FrameTime: 0.031 ms
[texture] texture-filter=mipmap: FPS: 31471 FrameTime: 0.032 ms
[shading] shading=gouraud: FPS: 28668 FrameTime: 0.035 ms
[shading] shading=blinn-phong-inf: FPS: 28898 FrameTime: 0.035 ms
[shading] shading=phong: FPS: 28716 FrameTime: 0.035 ms
[shading] shading=cel: FPS: 28382 FrameTime: 0.035 ms
[bump] bump-render=high-poly: FPS: 25975 FrameTime: 0.038 ms
[bump] bump-render=normals: FPS: 32571 FrameTime: 0.031 ms
[bump] bump-render=height: FPS: 31548 FrameTime: 0.032 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 28419 FrameTime: 0.035 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 17935 FrameTime: 0.056 ms
[pulsar] light=false:quads=5:texture=false: FPS: 30640 FrameTime: 0.033 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 14123 FrameTime: 0.071 ms
[desktop] effect=shadow:windows=4: FPS: 20584 FrameTime: 0.049 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2282 FrameTime: 0.438 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 3416 FrameTime: 0.293 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2871 FrameTime: 0.348 ms
[ideas] speed=duration: FPS: 15292 FrameTime: 0.065 ms
[jellyfish] <default>: FPS: 29350 FrameTime: 0.034 ms
[terrain] <default>: FPS: 3547 FrameTime: 0.282 ms
[shadow] <default>: FPS: 20944 FrameTime: 0.048 ms
[refract] <default>: FPS: 8121 FrameTime: 0.123 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 29253 FrameTime: 0.034 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 29593 FrameTime: 0.034 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 29045 FrameTime: 0.034 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 29493 FrameTime: 0.034 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 29543 FrameTime: 0.034 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 29589 FrameTime: 0.034 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 29565 FrameTime: 0.034 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29733 FrameTime: 0.034 ms
=======================================================
                                  glmark2 Score: 23658 
=======================================================

Code: Select all

lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 WKS-XL [Radeon PRO W6600]

glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 15.0.6, DRM 3.49, 6.1.0-28-amd64)

It seems that the PCIe x16 slot of my mainboard where my GPU is currently installed can not be fully accessed from the GPU, as in BIOS it tellse me: PCIEx16: PCIe 4.0 x8 @ 4.0 x8. However, since I’m using two M.2 SSDs, my guess is that the other slots are stealing some PCIe lanes from the GPU. For my use case, though, this shouldn’t be an issue, shouldnt it? Anyway in future I probably should think of getting one M.2 SSD instead of two separate ones for saving up some lanes.... or in the very long future maybe get a mainboard that doesnt share the PCIex16 slot with anything else.

if there are any recommendations, please let me know!
Thank you a lot for ur help! :happy:

Post Reply

Return to “Hardware /Configuration”