Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2121310

Summary: vainfo failed
Product: Red Hat Enterprise Linux 9 Reporter: euroford
Component: mesaAssignee: Dave Airlie <airlied>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: euroford, ndegraef, tpelka
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-05 09:28:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description euroford 2022-08-25 06:16:46 UTC
Description of problem:
vainfo failed display vainfo

Version-Release number of selected component (if applicable):
libva-2.11.0-4.el9.x86_64.rpm

How reproducible:
dnf install https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/l/libva-utils-2.11.1-1.el9.x86_64.rpm
dnf install https://muug.ca/mirror/rpmfusion/free/el/updates/9/x86_64/l/libva-intel-driver-2.4.1-7.el9.x86_64.rpm

Steps to Reproduce:
1.vainfo
2.
3.

Actual results:
libva info: VA-API version 1.11.0
libva error: vaGetDriverNameByIndex() failed with invalid VADisplay, driver_name = (null)
vaInitialize failed with error code 3 (invalid VADisplay),exit

Expected results:
display normal vainfo

Additional info:
RHEL8 and fedora36 works fine.

Comment 2 euroford 2022-08-29 13:58:20 UTC
wayland-info:
interface: 'wl_compositor',                              version:  4, name:  1
interface: 'wl_shm',                                     version:  1, name:  2
	formats: 'XB4H'(0x48344258) 'AB4H'(0x48344241) 'XR4H'(0x48345258) 'AR4H'(0x48345241) 'XB30'(0x30334258) 'AB30'(0x30334241) 'XR30'(0x30335258) 'AR30'(0x30335241) RGB565 XRGB8888 ARGB8888
interface: 'wl_output',                                  version:  2, name:  3
	x: 0, y: 0, scale: 1,
	physical_width: 340 mm, physical_height: 190 mm,
	make: 'AUO', model: '0x12ed',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 1920 px, height: 1080 px, refresh: 60.207 Hz,
		flags: current preferred
interface: 'wl_output',                                  version:  2, name:  4
	x: 1920, y: 0, scale: 1,
	physical_width: 610 mm, physical_height: 350 mm,
	make: 'SAM', model: 'U28E590',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 3840 px, height: 2160 px, refresh: 30.000 Hz,
		flags: current preferred
interface: 'zxdg_output_manager_v1',                     version:  3, name:  5
	xdg_output_v1
		output: 3
		name: 'eDP-1'
		description: '内置显示器'
		logical_x: 0, logical_y: 0
		logical_width: 1920, logical_height: 1080
	xdg_output_v1
		output: 4
		name: 'HDMI-1'
		description: 'Samsung Electric Company 28"'
		logical_x: 1920, logical_y: 0
		logical_width: 3840, logical_height: 2160
interface: 'wl_data_device_manager',                     version:  3, name:  6
interface: 'zwp_primary_selection_device_manager_v1',    version:  1, name:  7
interface: 'gtk_primary_selection_device_manager',       version:  1, name:  8
interface: 'wl_subcompositor',                           version:  1, name:  9
interface: 'xdg_wm_base',                                version:  3, name: 10
interface: 'zxdg_shell_v6',                              version:  1, name: 11
interface: 'wl_shell',                                   version:  1, name: 12
interface: 'gtk_shell1',                                 version:  4, name: 13
interface: 'wp_viewporter',                              version:  1, name: 14
interface: 'zwp_pointer_gestures_v1',                    version:  1, name: 15
interface: 'zwp_tablet_manager_v2',                      version:  1, name: 16
interface: 'wl_seat',                                    version:  5, name: 17
	name: seat0
	capabilities: pointer keyboard
	keyboard repeat rate: 33
	keyboard repeat delay: 500
interface: 'zwp_relative_pointer_manager_v1',            version:  1, name: 18
interface: 'zwp_pointer_constraints_v1',                 version:  1, name: 19
interface: 'zxdg_exporter_v1',                           version:  1, name: 20
interface: 'zxdg_importer_v1',                           version:  1, name: 21
interface: 'zwp_linux_dmabuf_v1',                        version:  3, name: 22
	formats:
	'AR4H'(0x48345241), modifier: 0x00ffffffffffffff
	'XR4H'(0x48345258), modifier: 0x00ffffffffffffff
	'XB4H'(0x48344258), modifier: 0x00ffffffffffffff
	'AB4H'(0x48344241), modifier: 0x00ffffffffffffff
	'RG16'(0x36314752), modifier: 0x00ffffffffffffff
	'XR30'(0x30335258), modifier: 0x00ffffffffffffff
	'AB30'(0x30334241), modifier: 0x00ffffffffffffff
	'AR30'(0x30335241), modifier: 0x00ffffffffffffff
	'XB24'(0x34324258), modifier: 0x00ffffffffffffff
	'XR24'(0x34325258), modifier: 0x00ffffffffffffff
	'AB24'(0x34324241), modifier: 0x00ffffffffffffff
	'AR24'(0x34325241), modifier: 0x00ffffffffffffff
interface: 'zwp_keyboard_shortcuts_inhibit_manager_v1',  version:  1, name: 23
interface: 'zwp_text_input_manager_v3',                  version:  1, name: 24
interface: 'gtk_text_input_manager',                     version:  1, name: 25
interface: 'wp_presentation',                            version:  1, name: 26
	presentation clock id: 1 (CLOCK_MONOTONIC)

Comment 3 euroford 2022-08-30 05:48:24 UTC
drminfo -A

name    : "i915"
desc    : "Intel Graphics"
date    : "20201103"
version : v1.6.0
busid   : ""

capabilities
    DUMB_BUFFER           :   1
    VBLANK_HIGH_CRTC      :   1
    DUMB_PREFERRED_DEPTH  :  24
    DUMB_PREFER_SHADOW    :   1
    PRIME                 :   3  (import + export)
    TIMESTAMP_MONOTONIC   :   1
    ASYNC_PAGE_FLIP       :   1
    CURSOR_WIDTH          : 256
    CURSOR_HEIGHT         : 256
    ADDFB2_MODIFIERS      :   1
    PAGE_FLIP_TARGET      :   0
    CRTC_IN_VBLANK_EVENT  :   1
    SYNCOBJ               :   1
    SYNCOBJ_TIMELINE      :   1

eDP-1 (#79), connected
    encoder: TMDS (#78), active, crtc #45, fb #95, 1920x1080
    mode: 1920x1080 (2x)

VGA-1 (#76), disconnected
    encoder: DAC (#77)

HDMI-1 (#86), connected
    encoder: TMDS (#85), active, crtc #60, fb #102, 3840x2160
    mode: 3840x2160 (5x)
    mode: 2560x1440
    mode: 1920x1080 (7x)
    mode: 1680x1050
    mode: 1600x900
    mode: 1280x1024 (2x)
    mode: 1440x900
    mode: 1280x800
    mode: 1152x864
    mode: 1280x720 (3x)
    mode: 1024x768 (3x)
    mode: 832x624
    mode: 800x600 (4x)
    mode: 720x576
    mode: 720x480 (2x)
    mode: 640x480 (5x)
    mode: 720x400

plane: 31, crtc: 45, fb: 95, type: primary
    format   modifiers
    C8       I915_FORMAT_MOD_X_TILED LINEAR
    RG16     I915_FORMAT_MOD_X_TILED LINEAR
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR

plane: 35, crtc: 0, fb: 0, type: overlay
    format   modifiers
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XR4H     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR
    YUYV     I915_FORMAT_MOD_X_TILED LINEAR
    YVYU     I915_FORMAT_MOD_X_TILED LINEAR
    UYVY     I915_FORMAT_MOD_X_TILED LINEAR
    VYUY     I915_FORMAT_MOD_X_TILED LINEAR

plane: 41, crtc: 0, fb: 0, type: cursor
    format   modifiers
    AR24     LINEAR

plane: 46, crtc: 60, fb: 102, type: primary
    format   modifiers
    C8       I915_FORMAT_MOD_X_TILED LINEAR
    RG16     I915_FORMAT_MOD_X_TILED LINEAR
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR

plane: 50, crtc: 0, fb: 0, type: overlay
    format   modifiers
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XR4H     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR
    YUYV     I915_FORMAT_MOD_X_TILED LINEAR
    YVYU     I915_FORMAT_MOD_X_TILED LINEAR
    UYVY     I915_FORMAT_MOD_X_TILED LINEAR
    VYUY     I915_FORMAT_MOD_X_TILED LINEAR

plane: 56, crtc: 0, fb: 0, type: cursor
    format   modifiers
    AR24     LINEAR

plane: 61, crtc: 0, fb: 0, type: primary
    format   modifiers
    C8       I915_FORMAT_MOD_X_TILED LINEAR
    RG16     I915_FORMAT_MOD_X_TILED LINEAR
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR

plane: 65, crtc: 0, fb: 0, type: overlay
    format   modifiers
    XR24     I915_FORMAT_MOD_X_TILED LINEAR
    XB24     I915_FORMAT_MOD_X_TILED LINEAR
    XR30     I915_FORMAT_MOD_X_TILED LINEAR
    XB30     I915_FORMAT_MOD_X_TILED LINEAR
    XR4H     I915_FORMAT_MOD_X_TILED LINEAR
    XB4H     I915_FORMAT_MOD_X_TILED LINEAR
    YUYV     I915_FORMAT_MOD_X_TILED LINEAR
    YVYU     I915_FORMAT_MOD_X_TILED LINEAR
    UYVY     I915_FORMAT_MOD_X_TILED LINEAR
    VYUY     I915_FORMAT_MOD_X_TILED LINEAR

plane: 71, crtc: 0, fb: 0, type: cursor
    format   modifiers
    AR24     LINEAR

framebuffer formats
    name    :  bpp     fields         bits        plane  type    endian    lib support
    XR30    :  [31:0]  x:R:G:B        2:10:10:10  P O .  fourcc  le        pixman cairo
    XB30    :  [31:0]  x:B:G:R        2:10:10:10  P O .  fourcc  le        pixman      
    XR24    :  [31:0]  x:R:G:B        8:8:8:8     P O .  fourcc  le        pixman cairo
    XB24    :  [31:0]  x:B:G:R        8:8:8:8     P O .  fourcc  le        pixman      
    AR24    :  [31:0]  A:R:G:B        8:8:8:8     . . C  fourcc  le        pixman      
    RG16    :  [15:0]  R:G:B          5:6:5       P . .  fourcc  le        pixman cairo
    YUYV    :  [31:0]  Cr0:Y1:Cb0:Y0  8:8:8:8     . O .  fourcc  le                    
    YVYU    :  [31:0]  Cb0:Y1:Cr0:Y0  8:8:8:8     . O .  fourcc  le                    
    UYVY    :  [31:0]  Y1:Cr0:Y0:Cb0  8:8:8:8     . O .  fourcc  le                    
    VYUY    :  [31:0]  Y1:Cb0:Y0:Cr0  8:8:8:8     . O .  fourcc  le                    
    24      :  [31:0]  x:R:G:B        8:8:8:8     . . .  legacy  cpu (le)  pixman cairo
    30      :  [31:0]  x:R:G:B        2:10:10:10  . . .  legacy  cpu (le)  pixman cairo
    16      :  [15:0]  R:G:B          5:6:5       . . .  legacy  cpu (le)  pixman cairo

Comment 4 euroford 2022-08-30 07:17:32 UTC
mesa-21.3.4-2.el9.src.rpm disable i915/965 dri drivers.
enable intel i965 dri driver in mesa's spec file, vainfo works again.

vainfo
libva info: VA-API version 1.11.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva error: /usr/lib64/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.11 (libva 2.11.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD

Comment 5 Tomas Pelka 2022-08-30 07:56:13 UTC
Aah I think you need a newer mesa (22.1.5-1.el9), i915/965 was replaced by crocus, and new libva-2.11.0-5.el9 counts with it.


Also for reference: https://bugzilla.redhat.com/show_bug.cgi?id=2099907

Comment 6 euroford 2022-08-30 10:35:43 UTC
(In reply to Tomas Pelka from comment #5)
> Aah I think you need a newer mesa (22.1.5-1.el9), i915/965 was replaced by
> crocus, and new libva-2.11.0-5.el9 counts with it.
> 
> 
> Also for reference: https://bugzilla.redhat.com/show_bug.cgi?id=2099907

sure, newer mesa (22.1.5-1.el9) is good, please support old IG in the future updates, thanks a lot.

Comment 7 Tomas Pelka 2022-08-30 11:07:54 UTC
Moving to mesa than, @niels @airlied any thoughts?

Comment 8 Niels De Graef 2023-07-05 09:28:23 UTC
Yeah, let's just close this one.