FreeBSD hanged (I think) due to driver issue

ikevin8me

Active Member

Reaction score: 12
Messages: 198

Something terrible happened. My FreeBSD PC (v. 13) hanged. Upon rebooting and examinig, it looks like the graphics driver is the culprit:

drmn0 intel_gt_reset_global timed out, cancelling all in-flight rendering
drm error gen8_engine_reset_prepare rcs0 reset request timed out
(above error message is found in /var/log/messages, and typed (because the PC's network is not connected)

Any thoughts about this? Or since this is driver/hardware issue, so nothing much could be done about it?
 

George

Aspiring Daemon

Reaction score: 204
Messages: 510

Did it happen only once? Or multiple times? Is it reproducible, or does it happen "randomly"?
 

richardtoohey2

Aspiring Daemon

Reaction score: 311
Messages: 629

Had it definitely crashed? Or just hung?

Could you connect to it from another machine?

Could you bring up a terminal with Ctrl-Alt-F1 (might just be Alt-F1 on FreeBSD)?
 

bsduck

Active Member

Reaction score: 199
Messages: 244

You don't need much to trigger the bug if you're affected: install the plugin and try to play a video in a player using GStreamer such as Parole, or a WebKit-based browser. The crash will occur soon after. Don't forget to save any ongoing work before trying!

I will file a bug report.
 

Tieks

Well-Known Member

Reaction score: 116
Messages: 281

grahamperrin said:
Can you let us have an address for a video that uses GStreamer?

It's not the video that uses GStreamer, it is the media playing software that may or may not use it. From its pkg-descr:

Code:
What is GStreamer?
GStreamer allows the construction of graphs of media-handling
components, ranging from simple mp3 playback to complex audio
(mixing) and video (non-linear editing) processing. Applications
can take advantage of advances in codec and filter technology
transparently. Developers can add new codecs and filters by writing
a simple plugin with a clean, generic interface. GStreamer is
released under the LGPL, with many of the included plugins retaining
the license of the code they were derived from, usually GPL or BSD.

- Features:
* Comprehensive Core Library
* Intelligent Plugin Architecture
* Extensive Development Tools

- Is GStreamer a media player?
No, GStreamer is a development framework for creating applications
like media players, video editors, streaming media broadcasters and
so on. That said, very good media players can easily be built on
top of GStreamer and we even include a simple yet functional
mediaplayer with GStreamer called Gst-Player

You might want to try that Gst-Player with a video file you have.
 

grahamperrin

Daemon

Reaction score: 676
Messages: 2,144

Thanks,

… try to play a video in a player using GStreamer such as Parole, …

Parole playback without a kernel panic:

1625301874839.png

<https://bsd-hardware.info/?computer=8f084339058d>
Code:
% pkg info -x vaa
gstreamer1-vaapi-1.16.2_2
%

Code:
% xvinfo -short
X-Video Extension version 2.2
screen #0
  Adaptor #0: "GLAMOR Textured Video"
    number of ports: 16
    port base: 63
    operations supported: PutImage
    number of attributes: 5
      "XV_BRIGHTNESS" (range -1000 to 1000)
              settable, gettable (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              settable, gettable (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              settable, gettable (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              settable, gettable (current value is 0)
      "XV_COLORSPACE" (range 0 to 1)
              settable, gettable (current value is 0)
    maximum XvImage size: 8192 x 8192
    Number of image formats: 2
      id: 0x32315659 (YV12)
      id: 0x30323449 (I420)
%

Code:
% vainfo
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/local/lib/dri/r600_drv_video.so

libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 20.2.3 for AMD TURKS (DRM 2.50.0 / 14.0-CURRENT, LLVM 10.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
%

Code:
% vdpauinfo
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12
422    16384 16384  UYVY YUYV
444    16384 16384  Y8U8V8A8 V8U8Y8A8
420_16 16384 16384
422_16 16384 16384
444_16 16384 16384

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                    3  9216  2048  1152
MPEG2_MAIN                      3  9216  2048  1152
H264_BASELINE                  41  9216  2048  1152
H264_MAIN                      41  9216  2048  1152
H264_HIGH                      41  9216  2048  1152
VC1_SIMPLE                      1  9216  2048  1152
VC1_MAIN                        2  9216  2048  1152
VC1_ADVANCED                    4  9216  2048  1152
MPEG4_PART2_SP                  3  9216  2048  1152
MPEG4_PART2_ASP                 5  9216  2048  1152
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE       0  9216  2048  1152
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
VP9_PROFILE_0                  --- not supported ---
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                  --- not supported ---
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y
CSC_MATRIX                       y
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y
LUMA_KEY_MAX_LUMA                y


%
 

grahamperrin

Daemon

Reaction score: 676
Messages: 2,144

No option vaa,

Sorry, I don't understand –


Now installed. Five messages were seen, four of which were for packages that have no maintainer:
– plus <https://www.freshports.org/audio/gstreamer1-plugins-sndio/#message>.

Still, no kernel panic. bsduck should I retry with a different type of video? Playback at <https://forums.FreeBSD.org/threads/80766/post-520407> above was of a silent video.
 
Top