Youtube stutters after switching to AMD

After I made the switch to AMD youtube video playback is very choppy. I followed the Arch wiki and have the fiollowing packages installed:

▶ pacman -Q | grep -E "(amd|radeon|mesa|vulkan)"                                                                                                          0 6ms
libva-mesa-driver 1:23.1.7-1
mesa 1:23.1.7-1
mesa-utils 9.0.0-2
mesa-vdpau 1:23.1.7-1
radeontop 1.4-2
vulkan-headers 1:1.3.264-2
vulkan-icd-loader 1.3.263-1
vulkan-mesa-layers 1:23.1.7-1
vulkan-radeon 1:23.1.7-1
xf86-video-amdgpu 23.0.0-1

Here is my inxi -G:

▶ inxi -G
Graphics:
  Device-1: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
    v: kernel
  Display: x11 server: X.org v: 1.21.1.8 driver: X: loaded: amdgpu
    unloaded: modesetting dri: radeonsi gpu: amdgpu resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.7-arch1.1 renderer: AMD Radeon RX 6400
    (navi24 LLVM 16.0.6 DRM 3.54 6.5.2-arch1-1)

I already tried resetting my firefox installation by removing the .mozilla dir but the issue won’t resolve. Media.ffmpeg.vaapi.enabled is set to true and in about:support the compositing is set to webrenderer.

Playback is smooth on a chromium based browser. Any ideas?

What does the codec support section show?

Audio Backend	pulse-rust
Max Channels	2
Preferred Sample Rate	48000
Roundtrip latency (standard deviation)	314.22ms (130.82)
Codec Support Information	
Codec Name	Software Decoding	Hardware Decoding
H264	            Supported	Supported
VP8	                Supported	Unsupported
VP9	                Supported	Supported
AV1	                Supported	Unsupported
Theora	            Supported	Unsupported
AAC	                Supported	Unsupported
FLAC	            Supported	Unsupported
MP3	                Supported	Unsupported
Opus	            Supported	Unsupported
Vorbis	            Supported	Unsupported
Wave	            Supported	Unsupported

Have you tried setting these in about:config?

  • media.ffmpeg.vaapi.enabled set to true
  • media.ffvpx.enabled set to false.
  • media.rdd-vpx.enabled set to false.
6 Likes

I already had the first one set to true and toggled the latter 2 options to false.

The choppiness is no longer there. I’ll continue testing and hope the stuttering won’t rear it’s ugly head again. Thank you @dalto!

1 Like

Today when the problem occurred again, extreme choppy yt playback. I let a video play and checked if all the values in about:config where still present which they were then the whole desktop crashed and I landed in the login screen.

Here is the output of dmesg | grep amdgpu

[    4.583605] [drm] amdgpu kernel modesetting enabled.
[    4.583766] amdgpu: CRAT table disabled by module option
[    4.583769] amdgpu: Virtual CRAT table created for CPU
[    4.583783] amdgpu: Topology: Add CPU node
[    4.583927] amdgpu 0000:03:00.0: enabling device (0006 -> 0007)
[    4.592011] amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
[    4.592015] amdgpu: ATOM BIOS: 113-D63401-034
[    4.661454] amdgpu 0000:03:00.0: vgaarb: deactivate vga console
[    4.661458] amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[    4.661495] amdgpu 0000:03:00.0: amdgpu: VRAM: 4080M 0x0000008000000000 - 0x00000080FEFFFFFF (4080M used)
[    4.661497] amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    4.661498] amdgpu 0000:03:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[    4.661668] [drm] amdgpu: 4080M of VRAM memory ready
[    4.661670] [drm] amdgpu: 7958M of GTT memory ready.
[    6.179505] amdgpu 0000:03:00.0: amdgpu: STB initialized to 2048 entries
[    6.180928] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[    6.346071] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    6.361603] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    6.361627] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000d, smu fw if version = 0x0000000f, smu fw program = 0, version = 0x00492000 (73.32.0)
[    6.361634] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[    6.361665] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[    6.405371] amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
[    6.408794] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    6.485995] amdgpu: HMM registered 4080MB device memory
[    6.487298] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    6.487307] kfd kfd: amdgpu: Total number of KFD nodes to be created: 1
[    6.487483] amdgpu: Virtual CRAT table created for GPU
[    6.487559] amdgpu: Topology: Add dGPU node [0x743f:0x1002]
[    6.487561] kfd kfd: amdgpu: added device 1002:743f
[    6.487575] amdgpu 0000:03:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 8, active_cu_number 12
[    6.487646] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[    6.487647] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    6.487648] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    6.487649] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    6.487649] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    6.487650] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    6.487651] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    6.487651] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    6.487652] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    6.487653] amdgpu 0000:03:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[    6.487653] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[    6.487654] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[    6.488707] amdgpu 0000:03:00.0: amdgpu: Using BACO for runtime pm
[    6.489166] [drm] Initialized amdgpu 3.54.0 20150101 for 0000:03:00.0 on minor 1
[    6.495080] fbcon: amdgpudrmfb (fb0) is primary device
[    6.585253] amdgpu 0000:03:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[   73.964036] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec_0 timeout, signaled seq=654, emitted seq=656
[   73.965457] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process RDD Process pid 1710 thread firefox:cs0 pid 2066
[   73.966825] amdgpu 0000:03:00.0: amdgpu: GPU reset begin!
[   74.277732] amdgpu 0000:03:00.0: amdgpu: MODE1 reset
[   74.277736] amdgpu 0000:03:00.0: amdgpu: GPU mode1 reset
[   74.277784] amdgpu 0000:03:00.0: amdgpu: GPU smu mode1 reset
[   74.790640] amdgpu 0000:03:00.0: amdgpu: GPU reset succeeded, trying to resume
[   74.967127] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   74.982719] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   74.982731] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[   74.982738] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000d, smu fw if version = 0x0000000f, smu fw program = 0, version = 0x00492000 (73.32.0)
[   74.982748] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[   74.982784] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[   75.028280] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[   75.108028] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[   75.108030] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   75.108031] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   75.108032] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   75.108032] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   75.108033] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   75.108034] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   75.108034] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   75.108035] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   75.108036] amdgpu 0000:03:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[   75.108036] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[   75.108037] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[   75.110319] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow start
[   75.116018] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow done
[   75.116032] amdgpu 0000:03:00.0: amdgpu: GPU reset(1) succeeded!
[   75.116222] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!

The errors highlighted:

sep 13 10:38:19 EndeavourOS kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec_0 timeout, signaled seq=654, emitted seq=656
sep 13 10:38:19 EndeavourOS kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process RDD Process pid 1710 thread firefox:cs0 pid 2066
sep 13 10:38:20 EndeavourOS kernel: [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!

After the crash youtube playback was smooth again. I decided to reboot the system and the exact same thing happened, system crashed when playing a yt video and after logging in video playback was smooth.

Is this a driver issue or could it be a hardware issue?

My system is up to date and I’m running the the latest linux kernel.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.