You are not logged in.

#1 2023-02-28 04:50:58

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

[Solved] Kernel 6.2.1.arch1-1 and mpv

After updating to 6.2.1.arch1-1, it seems like mpv 1:0.35.1-2 is broken:
- Start ranger
- Select file
- File opens, but fast forward and rewind seems to cause a system freeze. Also happened when creating looped playback.

When system freezes, no artifacts or video curruption on screen. It looks like video file was paused. Keyboard is locked and only way to regain control is to [Alt] + [PrintScreen] and REISUB. Doing the magic keys bit, there is no indication that it has any effect. The "paused" video screen is displayed until I get to the "B" key press. System reboots then.

Downgrading mpv to a previous version yields same result. Downgrading the kernel to 6.1.12-arch1-1 and all is OK.

Edit: Happens in wayland and weston environments.

Hardware:
CPU: AMD Ryzen 5 4600G
Motherboard: AsRock B550M Pro4

System info:
lspci -k

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
	Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
	Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: ASRock Incorporation Device ffff
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: ASRock Incorporation Device ffff
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 500 Series Chipset USB 3.1 XHCI Controller
	Subsystem: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 500 Series Chipset SATA Controller
	Subsystem: ASMedia Technology Inc. ASM1062 Serial ATA Controller
	Kernel driver in use: ahci
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 500 Series Chipset Switch Upstream Port
	Subsystem: ASMedia Technology Inc. Device 0201
	Kernel driver in use: pcieport
02:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea
	Subsystem: ASMedia Technology Inc. Device 3308
	Kernel driver in use: pcieport
02:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea
	Subsystem: ASMedia Technology Inc. Device 3308
	Kernel driver in use: pcieport
03:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)
	Subsystem: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASRock Incorporation Motherboard (one of many)
	Kernel driver in use: r8169
	Kernel modules: r8169
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c9)
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Kernel driver in use: ccp
	Kernel modules: ccp
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
	Subsystem: ASRock Incorporation Device ffff
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
	Subsystem: ASRock Incorporation Device ffff
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
	Subsystem: ASRock Incorporation Device 1204
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.49, 6.1.12-arch1-1) (0x1636)
    Version: 22.3.6
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1960 MB, largest block: 1960 MB
    VBO free aux. memory - total: 14931 MB, largest block: 14931 MB
    Texture free memory - total: 1960 MB, largest block: 1960 MB
    Texture free aux. memory - total: 14931 MB, largest block: 14931 MB
    Renderbuffer free memory - total: 1960 MB, largest block: 1960 MB
    Renderbuffer free aux. memory - total: 14931 MB, largest block: 14931 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 17022 MB
    Currently available dedicated video memory: 1960 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.49, 6.1.12-arch1-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Packages:

local/vkmark 20220318-1
    Vulkan benchmark
local/vulkan-icd-loader 1.3.240-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-mesa-layers 22.3.6-1
    Mesa's Vulkan layers
local/vulkan-radeon 22.3.6-1
    Radeon's Vulkan mesa driver
local/vulkan-tools 1.3.240-1 (vulkan-devel)
    Vulkan Utilities and Tools

local/libva-vdpau-driver 0.7.4-6
    VDPAU backend for VA API
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libvdpau-va-gl 0.4.2-3
    VDPAU driver with OpenGL/VAAPI backend
local/mesa-vdpau 22.3.6-1
    VDPAU drivers
local/vdpauinfo 1.5-1
    Command line utility for querying the capabilities of a VDPAU device

local/amdvlk 2022.Q4.4-3
    AMD's standalone Vulkan driver

I have just upgraded my PC from Intel to AMD due to Intel system being borked during to a power failure. Still using install that was on HDD with Intel system for over a month now. Nothing fancy on my kernel parameters:

quiet nowatchdog usbcore.autosuspend=-1 delayacct consoleblank=59

Last edited by tpfkanep (2023-02-28 13:41:05)

Offline

#2 2023-02-28 08:18:56

seth
Member
Registered: 2012-09-03
Posts: 50,999

Re: [Solved] Kernel 6.2.1.arch1-1 and mpv

only way to regain control is to [Alt] + [PrintScreen] and REISUB. Doing the magic keys bit, there is no indication that it has any effect. The "paused" video screen is displayed until I get to the "B" key press. System reboots then.

Do you have the journal for such a boot?
Eg

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous boot.

Happens in wayland and weston environments.

glxinfo -B

Also in an X11 session?

Offline

#3 2023-02-28 09:24:13

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

Re: [Solved] Kernel 6.2.1.arch1-1 and mpv

Does not happen in X11 session in i3 environment.

My journal seems to be not functioning or corrupted (journalclt --verify reports no errors). I cannot get the previous boot: for some reason my previous boot is an old one from 01-Apr-2022 when I was still on Intel platform!?!? All subsequent boots with the freeze happening always produce this result...!

NB: the freeze happens in mpv when I use [Shift] + [Left/Right Arrow]. It also happened once when I created an [A - B] repeat segment.

Offline

#4 2023-02-28 12:25:21

xerxes_
Member
Registered: 2018-04-29
Posts: 675

Re: [Solved] Kernel 6.2.1.arch1-1 and mpv

What is the output of commands:

sudo systemctl status systemd-journal
sudo journalctl --list-boots
coredumpctl

Offline

#5 2023-02-28 12:36:47

seth
Member
Registered: 2012-09-03
Posts: 50,999

Re: [Solved] Kernel 6.2.1.arch1-1 and mpv

The journal probably cannot be synced to disc, even despite REISUB.

Do you use the modesetting or xf86-video-amdgpu driver in X11?
Which backend do you use in mpv ("mpv -vo help")?

My next best guess would be to run "dmesg -w" in a parallel terminal and see whether that or mpv produce usable error messages before the system goes down.
Then you'd be at https://wiki.archlinux.org/title/Kdump - or praying that what seems to be an amdgpu regression gets implicitly fixed in the kernel.
You can also test https://aur.archlinux.org/packages?O=0&K=drm-tip

Offline

#6 2023-02-28 13:24:07

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

Re: [Solved] Kernel 6.2.1.arch1-1 and mpv

Appreciate all the input!

sudo systemctl status systemd-journal: Unit systemd-journal.service could not be found.

sudo journalctl --list-boots

-10 e0bcd7f440e74467896bfe0cae32e975 Tue 2022-03-29 17:50:27 SAST Tue 2022-03-29 17:50:31 SAST
 -9 1c1ac7f0f0774ae38285ba09af82bccb Tue 2022-03-29 17:50:40 SAST Tue 2022-03-29 17:52:40 SAST
 -8 57f79a92e31444778bbca8d2e1edcabf Tue 2022-03-29 17:52:44 SAST Wed 2022-03-30 07:55:53 SAST
 -7 feed1a88e3da4f48a835ac89f1461103 Wed 2022-03-30 07:55:56 SAST Thu 2022-03-31 12:44:40 SAST
 -6 720a630f2f3e43df8d533dcb1d0bbd50 Thu 2022-03-31 12:44:59 SAST Thu 2022-03-31 22:40:10 SAST
 -5 dea9b2748b804cf7b2dfd0b960335c95 Thu 2022-03-31 22:40:13 SAST Fri 2022-04-01 05:01:49 SAST
 -4 1a7be0252e584868b36f917d9cc0856e Fri 2022-04-01 05:01:52 SAST Fri 2022-04-01 05:09:55 SAST
 -3 6358e090785443ea8fb2e55f4ebb3250 Fri 2022-04-01 05:09:58 SAST Fri 2022-04-01 05:14:38 SAST
 -2 c1762d315a914aa889dd92482faa0178 Fri 2022-04-01 05:14:46 SAST Fri 2022-04-01 05:17:03 SAST
 -1 77bbdcb60bba4fdb87966377c9aa10b8 Fri 2022-04-01 05:17:06 SAST Fri 2022-04-01 20:03:25 SAST
  0 2f02d8d02cfa4bf88ab7d8193b88208e Tue 2023-02-28 14:49:57 SAST Tue 2023-02-28 15:13:50 SAST

coredumpctl: all entries are on or before 01-Apr-2022. Nothing after this date.

Using modesetting in X11.

mpv.conf

profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
hwdec=auto

I can see mpv is using the gpu when playing stuff

Using hardware decoding (vaapi).
VO: [gpu] 2560x1440 vaapi[nv12]

Edit:

Bypassing my [mpv.conf] = no issues. Kernel 6.2.1 seems to be not at fault (dunno why the previous kernels had no issues). I'll have to play around with [mpv.conf] to get it to play nice. i'll also try and get the journalling sorted...

Marking this as solved.

Last edited by tpfkanep (2023-02-28 13:40:28)

Offline

Board footer

Powered by FluxBB