intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
305 stars 126 forks source link

Intel Arc A770 Linux Chrome vaapi_wrapper.cc(843)] Could not get a valid VA display #557

Open bootrino opened 1 year ago

bootrino commented 1 year ago

UPDATE Chrome seems to work fine if I remove the command line argument "--use-gl=egl"

However, I need to use this argument. So, a question, does egl work with Intel Arc A770?

ORIGINAL POST I am using an Intel Arc A770 16GB on Ubuntu 22.04.

When I run Chrome the web page displays but I get the following error and graphics are very very slow:

ubuntu:~> DISPLAY=:0 /opt/google/chrome-unstable/chrome  --no-first-run --noerrdialogs --hide-scrollbars --use-gl=egl https://www.youtube.com
[1583:1583:0328/233418.646412:ERROR:vaapi_wrapper.cc(843)] Could not get a valid VA display
[1583:1583:0328/233418.646475:FATAL:gpu_init.cc(497)] Passthrough is not supported, GL is egl, ANGLE is
[1528:1528:0328/233418.731136:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=134
[1736:1736:0328/233418.778416:ERROR:vaapi_wrapper.cc(843)] Could not get a valid VA display
[1736:1736:0328/233418.778482:FATAL:gpu_init.cc(497)] Passthrough is not supported, GL is egl, ANGLE is
[1528:1528:0328/233418.838040:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=134
[1763:1763:0328/233418.882766:ERROR:vaapi_wrapper.cc(843)] Could not get a valid VA display
[1763:1763:0328/233418.882844:FATAL:gpu_init.cc(497)] Passthrough is not supported, GL is egl, ANGLE is
[1528:1528:0328/233418.942468:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=134
[1637:7:0328/233418.984128:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[1787:1787:0328/233419.658289:ERROR:gl_utils.cc(402)] [.WebGL-0x21fc00a74700]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
:ubuntu:~>

I installed the drivers by following the instructions here: https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-jammy-arc.html

After installation reboot, xorg looks good:

:ubuntu:~/chromiumjan2023/src> DISPLAY=:0 xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 16384 x 16384
DP-1 disconnected primary (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-3 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 698mm x 393mm
   3840x2160     60.00*+  60.00    50.00    59.94    25.00    24.00    23.98    29.98
   2560x1440     59.95
   1920x1080     60.00    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98
   1920x1080i    60.00    50.00    59.94
   1600x1200     60.00
   1680x1050     59.95
   1400x1050     59.98
   1280x1024     75.02    60.02
   1440x900      59.89
   1280x960      60.00
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       70.08
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)

I tried upgrading to the 6.2 kernel, made no difference.

I tried compiling and installing the latest drivers following instructions here, made no difference: https://github.com/intel/media-driver

Here is the output from hwinfo for my Intel Arc card:

39: PCI 2f00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: bArC.nDfmnmUHKH4
  Parent ID: +QhX.mr2N3fBJq5F
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:2d:00.0/0000:2e:01.0/0000:2f:00.0
  SysFS BusID: 0000:2f:00.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x56a0
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1020
  Revision: 0x08
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xfb000000-0xfbffffff (rw,non-prefetchable)
  Memory Range: 0x7800000000-0x7bffffffff (ro,non-prefetchable)
  Memory Range: 0xfc000000-0xfc1fffff (ro,non-prefetchable,disabled)
  IRQ: 121 (1232 events)
  Module Alias: "pci:v00008086d000056A0sv00008086sd00001020bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #77 (PCI bridge)

ubuntu:~> sudo cat /sys/kernel/debug/dri/0/gt/uc/huc_info

HuC firmware: i915/dg2_huc_gsc.bin
    status: RUNNING
    version: found 7.10.3
    uCode: 0 bytes
    RSA: 0 bytes
HuC status: 0x00164001

ubuntu:~> sudo cat /sys/kernel/debug/dri/0/gt/uc/guc_info

GuC firmware: i915/dg2_guc_70.bin
    status: RUNNING
    version: found 70.5.1
    uCode: 369088 bytes
    RSA: 384 bytes
GuC status 0x80030020:
    Bootrom status = 0x10
    uKernel status = 0x0
    MIA Core status = 0x3
Scratch registers:
     0:     0x0
     1:     0xfdfc03d7
     2:     0x24800
     3:     0x4
     4:     0x40
     5:     0x1fc1c0
     6:     0x56a00008
     7:     0x0
     8:     0x0
     9:     0x0
    10:     0x0
    11:     0x0
    12:     0x0
    13:     0x0
    14:     0x0
    15:     0x0

GuC logging stats:
    Relay full count: 0
    DEBUG:  flush count          0, overflow count          0
    CRASH:  flush count          0, overflow count          0
    CAPTURE:    flush count          0, overflow count          0
CT enabled
H2G Space: 2192
Head: 449
Tail: 449
G2H Space: 12284
Head: 634
Tail: 634
GuC Number Outstanding Submission G2H: 0
GuC tasklet count: 0
Requests in GuC submit tasklet:

Global scheduling policies:
  DPC promote time   = 500000
  Max num work items = 15
  Flags              = 0
:ubuntu:~>

Any suggestions for what might be wrong?

eero-t commented 4 months ago

@bootrino Please close this ticket as it's filed against wrong project (legacy driver).

Arc GPU is supported by: https://github.com/intel/media-driver

(Most appropriate place for this bug might be Chrome bug tracker though.)