From nobody Fri Oct 07 00:33:42 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mk8S72LDsz4dsf0 for ; Fri, 7 Oct 2022 00:33:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mk8S70yhDz44Qh for ; Fri, 7 Oct 2022 00:33:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mk8S700wlzQb3 for ; Fri, 7 Oct 2022 00:33:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2970XgBK009704 for ; Fri, 7 Oct 2022 00:33:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2970Xgja009703 for ports-bugs@FreeBSD.org; Fri, 7 Oct 2022 00:33:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266875] multimedia/libva-utils: VAAPI X11 driver only works as root Date: Fri, 07 Oct 2022 00:33:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: edenist-fbz@edenist.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665102823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rxhxyWbLsW221OWgmNz4hkjSnmestqASwcO/22k3iJ4=; b=Q9KKV+s7ZV5/eapTYOTRCZtMkbB0+hmLTPYco9aLYeXoWJT2tvJZFxQd3tdmWDAM8hGB1t CUD1hG1JtaEVWYf8ma24xWp4cSWQ/nSRO97ClHYohb3M+byEPshqkLaevSRQgGiwQgFZLT IjzwbdCxtMJoyZvy3z1Or0P+L+wXmBQFyoIqVRw/fzTHpgzd8bM55/DDy66nc6IcbLu+sF EMsyyEMgnxWDGz7GTuIxhK7ayrGDfoLWCLs3V1XDkLqTBRu2V+DNfYZGlCnSGBbIcyqmUI OI9+RITHAWCONVo+Ln2o/QEz4qwrvo2YqPGN8k81A5mPko5PAvXSrbhU5Mls/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665102823; a=rsa-sha256; cv=none; b=gizxPs811iP39VxnLjEKAXtOHSAzd+apyzya286obTU/GQdDzwS7BA7CMVWdLlx3z6Ivq9 WNrANRDYpQDxrTNWPvN747IbmZci6mUPG0wkyy+XC4wSw1h6iZ6q2L5PgV7yTaaER8tkR4 BdIk2E7cXKWYiWweYIZ4HqlERRkwLkq5KJV2epaTd31FddMW5ywyWNRV+oZJwwhsSQ/mqx YAq+qTVk64nm426FebVTl7+CY3f+Ck17NLXVR/+6lfZn4N8abx11w4B6fkEN81W0sh1y00 hG4FuQVsJ0umd3nvlWJfDspkUJoud56A3+5fWTVmZHX5vZFjhSwBCJm0ndWFkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266875 Bug ID: 266875 Summary: multimedia/libva-utils: VAAPI X11 driver only works as root Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: edenist-fbz@edenist.net Flags: maintainer-feedback?(jbeich@FreeBSD.org) Assignee: jbeich@FreeBSD.org FreeBSD: 12.3-STABLE FreeBSD 12.3-STABLE stable/12-3a9e60169ee GENERIC amd= 64 libva-utils: libva-utils-2.15.0 (built via poudriere) Hardware:=20 - Thinkpad X1 [1st gen] - i5-3330u - HD4000 GPU I've had it installed and running on this machine since 10.3 or so without issue, but I recently noticed VAAPI wasn't being used with mpv anymore. Up until somewhat recently, VAAPI was working as a non root user with the x11 driver. Investigating with vainfo has me completely puzzled what has gone wrong. * If I run vainfo --display x11 it fails, but sudo vainfo --display x11 wor= ks fine, which suggests a permissions issue. * I am a member of the video group and have access to GPU hardware. * vainfo --display drm works as non-root user, so there appears to be somet= hing up with the x11 driver [which just so happens to be what mpv uses for its optimal vaapi implementation]. Here are my console outputs: ~$ vainfo --display x11 error: XDG_RUNTIME_DIR is invalid or not set in the environment. libva info: VA-API version 1.16.0 libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so libva info: va_openDriver() returns -1 libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_16 get chip id failed: -1 [13] param: 4, val: 0 libva error: /usr/local/lib/dri/i965_drv_video.so init failed libva info: va_openDriver() returns -1 vaInitialize failed with error code -1 (unknown libva error),exit ~$ sudo vainfo --display x11 error: XDG_RUNTIME_DIR is invalid or not set in the environment. libva info: VA-API version 1.16.0 libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so libva info: va_openDriver() returns -1 libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_16 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.15.0) vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge 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 VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD ~$ vainfo --display drm libva info: VA-API version 1.16.0 libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so libva info: va_openDriver() returns -1 libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_16 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.15.0) vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge 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 VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD --=20 You are receiving this mail because: You are the assignee for the bug.=