Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vgaswitcharoo doesn't run
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
Gherd
n00b
n00b


Joined: 15 Nov 2022
Posts: 1

PostPosted: Tue Nov 15, 2022 8:09 am    Post subject: Vgaswitcharoo doesn't run Reply with quote

Hi guys, I'm having an issue with vga_switcharoo. I've recently moved to a new kernel

Code:
uname -r
5.15.75-gentoo-x86_64


I'm using a laptop with AMD Reinor and Radeon RX 5500, the firmware is installed and the correct Navi 14 firmware blob added to the firmware loader section of the kernel

Code:
lspci -k | grep -A3 -e'03:00.0' -e'07:00.0'
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] (rev c1)
   Subsystem: Micro-Star International Co., Ltd. [MSI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M]
   Kernel driver in use: amdgpu
   Kernel modules: amdgpu
--
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)
   Subsystem: Micro-Star International Co., Ltd. [MSI] Renoir
   Kernel driver in use: amdgpu
   Kernel modules: amdgpu


dmesg looks ok to me, but perhaps i missed something:

Code:
dmesg | grep 'amdgpu'
[   13.249480] [drm] amdgpu kernel modesetting enabled.
[   13.270958] amdgpu: Virtual CRAT table created for CPU
[   13.270977] amdgpu: Topology: Add CPU node
[   13.271319] amdgpu 0000:03:00.0: enabling device (0000 -> 0002)
[   13.271394] amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[   13.272922] amdgpu 0000:03:00.0: amdgpu: ACPI VFCT table present but broken (too short #2),skipping
[   13.286275] amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from ROM BAR
[   13.286284] amdgpu: ATOM BIOS: SWBRT56563.001
[   13.286421] amdgpu 0000:03:00.0: amdgpu: VRAM: 4080M 0x0000008000000000 - 0x00000080FEFFFFFF (4080M used)
[   13.286427] amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[   13.286431] amdgpu 0000:03:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[   13.286510] [drm] amdgpu: 4080M of VRAM memory ready
[   13.286512] [drm] amdgpu: 4080M of GTT memory ready.
[   13.286811] Loading firmware: amdgpu/navi14_sos.bin
[   13.288552] Loading firmware: amdgpu/navi14_asd.bin
[   13.289304] Loading firmware: amdgpu/navi14_ta.bin
[   13.289743] amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
[   13.289822] Loading firmware: amdgpu/navi14_smc.bin
[   13.290748] Loading firmware: amdgpu/navi14_pfp.bin
[   13.291684] Loading firmware: amdgpu/navi14_me.bin
[   13.292662] Loading firmware: amdgpu/navi14_ce.bin
[   13.293581] Loading firmware: amdgpu/navi14_rlc.bin
[   13.293881] Loading firmware: amdgpu/navi14_mec.bin
[   13.294871] Loading firmware: amdgpu/navi14_mec2.bin
[   13.296793] Loading firmware: amdgpu/navi14_sdma.bin
[   13.297089] Loading firmware: amdgpu/navi14_sdma1.bin
[   13.297475] Loading firmware: amdgpu/navi14_vcn.bin
[   13.298613] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[   13.517005] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   13.523169] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   13.523175] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   13.523275] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[   13.523278] amdgpu 0000:03:00.0: amdgpu: smc_dpm_info table revision(format.content): 4.5
[   13.554598] amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
[   13.555742] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   13.560165] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[   13.616026] amdgpu: HMM registered 4080MB device memory
[   13.616085] amdgpu: SRAT table not found
[   13.616086] amdgpu: Virtual CRAT table created for GPU
[   13.616171] amdgpu: Topology: Add dGPU node [0x7340:0x1002]
[   13.616174] kfd kfd: amdgpu: added device 1002:7340
[   13.616191] amdgpu 0000:03:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 12, active_cu_number 22
[   13.616301] amdgpu 0000:03:00.0: [drm] Cannot find any crtc or sizes
[   13.616427] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[   13.616428] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   13.616429] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   13.616430] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   13.616431] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   13.616432] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   13.616433] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   13.616434] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   13.616434] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   13.616435] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[   13.616436] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[   13.616437] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[   13.616438] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 0 on hub 1
[   13.616439] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 1 on hub 1
[   13.616439] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 4 on hub 1
[   13.616440] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[   13.617267] amdgpu 0000:03:00.0: amdgpu: Using BOCO for runtime pm
[   13.617687] [drm] Initialized amdgpu 3.42.0 20150101 for 0000:03:00.0 on minor 0
[   13.617758] amdgpu 0000:07:00.0: vgaarb: deactivate vga console
[   13.617774] amdgpu 0000:07:00.0: enabling device (0006 -> 0007)
[   13.617815] amdgpu 0000:07:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
[   13.619163] amdgpu 0000:07:00.0: amdgpu: Fetched VBIOS from VFCT
[   13.619166] amdgpu: ATOM BIOS: 113-RENOIR-025
[   13.619176] Loading firmware: amdgpu/renoir_sdma.bin
[   13.619475] amdgpu 0000:07:00.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
[   13.619478] amdgpu 0000:07:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[   13.619480] amdgpu 0000:07:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[   13.619518] [drm] amdgpu: 512M of VRAM memory ready
[   13.619519] [drm] amdgpu: 3072M of GTT memory ready.
[   13.619782] Loading firmware: amdgpu/renoir_asd.bin
[   13.620458] Loading firmware: amdgpu/renoir_ta.bin
[   13.620724] amdgpu 0000:07:00.0: amdgpu: PSP runtime database doesn't exist
[   13.620762] Loading firmware: amdgpu/renoir_pfp.bin
[   13.620966] Loading firmware: amdgpu/renoir_me.bin
[   13.621156] Loading firmware: amdgpu/renoir_ce.bin
[   13.621304] Loading firmware: amdgpu/renoir_rlc.bin
[   13.621568] Loading firmware: amdgpu/renoir_mec.bin
[   13.623828] Loading firmware: amdgpu/renoir_dmcub.bin
[   13.624478] Loading firmware: amdgpu/renoir_vcn.bin
[   13.625609] amdgpu 0000:07:00.0: amdgpu: Will use PSP to load VCN firmware
[   14.390732] amdgpu 0000:07:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   14.398391] amdgpu 0000:07:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   14.398395] amdgpu 0000:07:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   14.399783] amdgpu 0000:07:00.0: amdgpu: SMU is initialized successfully!
[   14.504336] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[   14.533825] amdgpu: HMM registered 512MB device memory
[   14.533863] amdgpu: SRAT table not found
[   14.533864] amdgpu: Virtual CRAT table created for GPU
[   14.534012] amdgpu: Topology: Add dGPU node [0x1636:0x1002]
[   14.534015] kfd kfd: amdgpu: added device 1002:1636
[   14.534026] amdgpu 0000:07:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 6
[   14.536680] fbcon: amdgpudrmfb (fb0) is primary device
[   14.572379] amdgpu 0000:07:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[   14.612214] amdgpu 0000:07:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[   14.612221] amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   14.612224] amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   14.612226] amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   14.612228] amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   14.612230] amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   14.612232] amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   14.612234] amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   14.612236] amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   14.612238] amdgpu 0000:07:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[   14.612241] amdgpu 0000:07:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[   14.612243] amdgpu 0000:07:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[   14.612245] amdgpu 0000:07:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[   14.612247] amdgpu 0000:07:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[   14.612249] amdgpu 0000:07:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[   14.613497] [drm] Initialized amdgpu 3.42.0 20150101 for 0000:07:00.0 on minor 1



Everything works just fine on the previous kernel.

Code:
5.10.76-gentoo-r1-x86_64


The funny thing is that I can make sure glxgears uses the correct gpu using DRI_PRIME but on the new kernel vgaswitcharoo is missing from /sys/kernel/debug. If I put a heavy load on the gpu the whole system freezes. Running out of ideas I've tried generating the kernel using genkernel just to rule out I disabled something necessary, no luck there. Any and all help would be appreciated.
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