I upgraded 13.2-RELEASE to 14.0-RELEASE a couple of days ago. Hardware is a thinkpad X201 with intel integrated graphics. I am loading i915kms.ko in rc.conf. I'm running a simple setup using windowmaker as the window manager. My uid is in the video group.
From cold start, running a glxgears performance test gives the following result:-
glxgears-perf-test:-
The bug is that at some later time, after running some combination of mplayer, smplayer, mpv, firefox, the FPS figure suddenly halves:-
Once it has changed to the lower FPS figure, all subsequent tests report the lower figure. Restarting X sometimes restores full performance, whereas a reboot consistently restores full performance.
Another variant is glxgears sometimes prints an error message saying it has failed to load crocus driver.
If I do a reboot of the system, the performance is restored to the higher figure.
I have tried running various X clients one at a time and then re-testing glxgears after each try, but have been unable to find a consistent way of recreating the bug. All I can observe at this stage is that something is happening intermittantly which results in the FPS reported by glxgears halving, sometimes accompanied by an error message saying crocus could not be loaded.
Xorg.0.log shows that X is running the modesetting driver, loading glamor and crocus (see attached).
Kldstat reports:-
$ cat /tmp/kldstat.out
Id Refs Address Size Name
1 58 0xffffffff80200000 1d345d8 kernel
2 1 0xffffffff81f35000 36c8 coretemp.ko
3 1 0xffffffff81f39000 af50 cuse.ko
4 1 0xffffffff82620000 3558 fdescfs.ko
5 1 0xffffffff82624000 181c70 i915kms.ko
6 1 0xffffffff827a6000 73e80 drm.ko
7 1 0xffffffff8281a000 22b8 iic.ko
8 2 0xffffffff8281d000 1100 linuxkpi_gplv2.ko
9 3 0xffffffff8281f000 6350 dmabuf.ko
10 3 0xffffffff82826000 3080 linuxkpi_hdmi.ko
11 1 0xffffffff8282a000 12e08 fusefs.ko
12 1 0xffffffff8283d000 2200 acpi_dock.ko
13 1 0xffffffff82840000 3390 acpi_wmi.ko
14 1 0xffffffff82844000 3250 ichsmb.ko
15 1 0xffffffff82848000 2178 smbus.ko
16 1 0xffffffff8284b000 b6e0 if_lagg.ko
17 1 0xffffffff82857000 20c0 if_infiniband.ko
18 1 0xffffffff8285a000 2260 pflog.ko
19 1 0xffffffff8285d000 4d038 pf.ko
20 1 0xffffffff828ab000 2a68 mac_ntpd.ko
The list of relevent packages installed on the system (ie the result of the upgrade from 13.2 to 14.0) is:-
drm-510-kmod-5.10.163_7 DRM drivers modules
drm-kmod-20220907_1 Metaport of DRM modules for the linuxkpi-based KMS components
drm_info-2.5.0 Small utility to dump info about DRM devices
gpu-firmware-kmod-20230210_1,1 Firmware modules for the drm-kmod drivers
libdrm-2.4.116,1 Userspace interface to kernel Direct Rendering Module services
libva-2.20.0_1 VAAPI wrapper and dummy driver
libva-intel-driver-2.4.1_2 VAAPI legacy driver for Intel GMA 4500 (Gen4) to UHD 630 (Gen9.5)
libva-intel-hybrid-driver-1.0.2_3 Hybrid VP8 encoder and VP9 decoder for Intel GPUs
libva-intel-media-driver-22.4.3_1 VAAPI driver for Intel HD 5000 (Gen8) or newer
libva-vdpau-driver-0.7.4_10 VDPAU-based backend for VAAPI
libvdpau-va-gl-0.4.2_5 VDPAU driver with OpenGL/VAAPI backend
mesa-dri-22.3.7_3 OpenGL hardware acceleration drivers for DRI2+
xdriinfo-1.0.6_4 Query configuration information of DRI drivers
xf86-input-evdev-2.10.6_7 X.Org event device input driver
xf86-input-keyboard-1.9.0_5 X.Org keyboard input driver
xf86-input-libinput-1.3.0 X.Org libinput input driver
xf86-input-mouse-1.9.3_4 X.Org mouse input driver
xf86-input-synaptics-1.9.1_10 X.Org synaptics input driver
xf86-video-scfb-0.0.7_1 X.Org syscons display driver
xf86-video-vesa-2.5.0_2 X.Org vesa display driver
xorg-drivers-7.7_7 X.org drivers meta-port
I noticed the upgrade to 14.0 has pulled in drm-510-kmod and not drm-515-kmod which is reported broken; so it's not that.
Another clue:-
Before the bug occurs, mpv runs cleanly:-
After that, starting firefox was enough to make the bug occur (on this occasion, but it doesn't happen consistently).
After the bug has happened and glxgears reports the slower FPS rate, mpv SOMETIMES (but not always, perhaps there is more than one bug?) produces the following error messages:-
Attached Xorg.0.log (zipped).
As a quick "am I going crazy" sanity check, I ran the same tests on ubuntu 20.04, on a different intel box also using the crocus driver, and I didn't see these problems.
Does anyone have any idea what might be causing this? Or suggest how I can debug it further?
From cold start, running a glxgears performance test gives the following result:-
glxgears-perf-test:-
Code:
#!/bin/sh
vblank_mode=0 glxgears -samples 0
Code:
$ glxgears-perf-test
ATTENTION: default value of option vblank_mode overridden by environment.
8605 frames in 5.0 seconds = 1720.976 FPS
8980 frames in 5.0 seconds = 1795.903 FPS
9018 frames in 5.0 seconds = 1802.085 FPS
Code:
$ glxgears-perf-test
ATTENTION: default value of option vblank_mode overridden by environment.
4795 frames in 5.0 seconds = 958.933 FPS
4825 frames in 5.0 seconds = 964.869 FPS
4790 frames in 5.0 seconds = 957.887 FPS
Another variant is glxgears sometimes prints an error message saying it has failed to load crocus driver.
If I do a reboot of the system, the performance is restored to the higher figure.
I have tried running various X clients one at a time and then re-testing glxgears after each try, but have been unable to find a consistent way of recreating the bug. All I can observe at this stage is that something is happening intermittantly which results in the FPS reported by glxgears halving, sometimes accompanied by an error message saying crocus could not be loaded.
Xorg.0.log shows that X is running the modesetting driver, loading glamor and crocus (see attached).
Kldstat reports:-
$ cat /tmp/kldstat.out
Id Refs Address Size Name
1 58 0xffffffff80200000 1d345d8 kernel
2 1 0xffffffff81f35000 36c8 coretemp.ko
3 1 0xffffffff81f39000 af50 cuse.ko
4 1 0xffffffff82620000 3558 fdescfs.ko
5 1 0xffffffff82624000 181c70 i915kms.ko
6 1 0xffffffff827a6000 73e80 drm.ko
7 1 0xffffffff8281a000 22b8 iic.ko
8 2 0xffffffff8281d000 1100 linuxkpi_gplv2.ko
9 3 0xffffffff8281f000 6350 dmabuf.ko
10 3 0xffffffff82826000 3080 linuxkpi_hdmi.ko
11 1 0xffffffff8282a000 12e08 fusefs.ko
12 1 0xffffffff8283d000 2200 acpi_dock.ko
13 1 0xffffffff82840000 3390 acpi_wmi.ko
14 1 0xffffffff82844000 3250 ichsmb.ko
15 1 0xffffffff82848000 2178 smbus.ko
16 1 0xffffffff8284b000 b6e0 if_lagg.ko
17 1 0xffffffff82857000 20c0 if_infiniband.ko
18 1 0xffffffff8285a000 2260 pflog.ko
19 1 0xffffffff8285d000 4d038 pf.ko
20 1 0xffffffff828ab000 2a68 mac_ntpd.ko
The list of relevent packages installed on the system (ie the result of the upgrade from 13.2 to 14.0) is:-
drm-510-kmod-5.10.163_7 DRM drivers modules
drm-kmod-20220907_1 Metaport of DRM modules for the linuxkpi-based KMS components
drm_info-2.5.0 Small utility to dump info about DRM devices
gpu-firmware-kmod-20230210_1,1 Firmware modules for the drm-kmod drivers
libdrm-2.4.116,1 Userspace interface to kernel Direct Rendering Module services
libva-2.20.0_1 VAAPI wrapper and dummy driver
libva-intel-driver-2.4.1_2 VAAPI legacy driver for Intel GMA 4500 (Gen4) to UHD 630 (Gen9.5)
libva-intel-hybrid-driver-1.0.2_3 Hybrid VP8 encoder and VP9 decoder for Intel GPUs
libva-intel-media-driver-22.4.3_1 VAAPI driver for Intel HD 5000 (Gen8) or newer
libva-vdpau-driver-0.7.4_10 VDPAU-based backend for VAAPI
libvdpau-va-gl-0.4.2_5 VDPAU driver with OpenGL/VAAPI backend
mesa-dri-22.3.7_3 OpenGL hardware acceleration drivers for DRI2+
xdriinfo-1.0.6_4 Query configuration information of DRI drivers
xf86-input-evdev-2.10.6_7 X.Org event device input driver
xf86-input-keyboard-1.9.0_5 X.Org keyboard input driver
xf86-input-libinput-1.3.0 X.Org libinput input driver
xf86-input-mouse-1.9.3_4 X.Org mouse input driver
xf86-input-synaptics-1.9.1_10 X.Org synaptics input driver
xf86-video-scfb-0.0.7_1 X.Org syscons display driver
xf86-video-vesa-2.5.0_2 X.Org vesa display driver
xorg-drivers-7.7_7 X.org drivers meta-port
I noticed the upgrade to 14.0 has pulled in drm-510-kmod and not drm-515-kmod which is reported broken; so it's not that.
Another clue:-
Before the bug occurs, mpv runs cleanly:-
Code:
$ mpv mosasaur.webm
(+) Video --vid=1 (*) (vp9 1920x1080 23.979fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
AO: [oss] 48000Hz stereo 2ch s32
VO: [gpu] 1920x1080 yuv420p
AV: 00:00:37 / 00:07:53 (8%) A-V: -0.000
Exiting... (Quit)
After the bug has happened and glxgears reports the slower FPS rate, mpv SOMETIMES (but not always, perhaps there is more than one bug?) produces the following error messages:-
Code:
$ mpv mosasaur.webm
(+) Video --vid=1 (*) (vp9 1920x1080 23.979fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
WARNING: Kernel has no file descriptor comparison support: No such file or directory
AO: [oss] 48000Hz stereo 2ch s32
VO: [gpu] 1920x1080 yuv420p
AV: 00:00:13 / 00:07:53 (3%) A-V: 0.000
Exiting... (Quit)
As a quick "am I going crazy" sanity check, I ran the same tests on ubuntu 20.04, on a different intel box also using the crocus driver, and I didn't see these problems.
Does anyone have any idea what might be causing this? Or suggest how I can debug it further?