On Wed 14 Jul 2021 at 21:38:51 +0000, RVP wrote: > Getting back to the original topic, I've pulled together all the > things I needed to get mpv video playback on NetBSD to be (almost) > on par with Linux/FreeBSD. See if these help you (assuming the OS > ver. is 9.99.86 and the card is Intel): On my 10 years old laptop, which has Intel graphics, which were accellerated until (I think) I installed NetBSD 9, I found that the best way to run is with the intel (not modesetting) driver, and have LIBGL_ALWAYS_SOFTWARE=1. That is because the intel driver supports XVideo and tries GL but it crashes, and the modesetting driver doesn't support either. For viewing videos the XVideo is good enough. When I disable LIBGL_ALWAYS_SOFTWARE, and use mpv --vo=gpu, the graphics crash logs this to the console: [ 495.0404163] kern info: [drm] stuck on render ring [ 495.0404163] kern info: [drm] GPU HANG: ecode 4:0:0x85ffeffd, reason: Ring hung, action: reset [ 495.0404163] kern info: [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace. [ 495.0404163] kern info: [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel [ 495.0404163] kern info: [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue. [ 495.0404163] kern info: [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it. [ 495.0404163] kern info: [drm] GPU crash dump saved to /sys/class/drm/card0/error [ 495.0404163] drm/i915: Resetting chip after gpu hang [ 495.0504231] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c:2703)i915_handle_error] *ERROR* Error state: [ 495.0504231] GPU HANG: ecode 4:0:0x85ffeffd, reason: Ring hung, action: reset [ 495.0504231] Time: 1626368686 s 437203 us [ 495.0504231] Kernel: 902000000 [ 495.0504231] Reset count: 0 [ 495.0504231] Suspend count: 0 [ 495.0504231] PCI ID: 0x2a42 [ 495.0504231] IOMMU enabled?: -1 [ 495.0504231] EIR: 0x00000000 [ 495.0504231] IER: 0x02028053 [ 495.0504231] PGTBL_ER: 0x00000000 [ 495.0504231] FORCEWAKE: 0x00000000 [ 495.0504231] DERRMR: 0x00000000 [ 495.0504231] CCID: 0x00000000 [ 495.0504231] Missed interrupts: 0x00000000 [ 495.0504231] fence[0] = bc2000005c50cd [ 495.0504231] fence[1] = be800000be500d [ 495.0504231] fence[2] = bec00000be900d [ 495.0504231] fence[3] = 11a800000ca909d [ 495.0504231] fence[4] = 12ab0000122c01d [ 495.0504231] fence[5] = 12cb000012ac00d [ 495.0504231] fence[6] = 12eb000012cc00d [ 495.0504230c [ 495.0504231] 000039c4 : 01000000 [ 495.0504231] 000039c8 : 02000022 [ 495.0504231] 000039cc : 00000000 [ 495.0504231] 000039d0 : 18800180 [ 495.0504231] 000039d4 : 00bfe000 [ 495.0504231] 000039d8 : 02000000 [ 495.0504231] 000039dc : 00000000 [ 495.0504231] 000039e0 : 10800001 and this dump goes on for so long that I had to copy it from xconsole, since the beginning didn't make it to /var/log/messages. -Olaf. -- ___ "Buying carbon credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFH falu.nl@rhialto
Attachment:
signature.asc
Description: PGP signature