elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.15k stars 53 forks source link

DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed #267

Closed am-silex closed 4 months ago

am-silex commented 5 months ago

Hi Sorry to bother you, just playing with your project and have this issue. My config:

lshw -class display

*-display description: VGA compatible controller product: GK208B [GeForce GT 710] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:29 memory:fd000000-fdffffff memory:f0000000-f7ffffff memory:f8000000-f9ffffff ioport:cc00(size=128) memory:c0000-dffff

vainfo

libva info: VA-API version 1.14.0 libva info: User environment variable requested driver 'nvidia' libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so libva info: Found init function vaDriverInit_1_0 3466.545606772 [6607-6607] ../src/vabackend.c:2154 vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 31 3466.545632955 [6607-6607] ../src/vabackend.c:2163 vaDriverInit_1_0 Now have 0 (0 max) instances 3466.545642941 [6607-6607] ../src/vabackend.c:2189 vaDriverInit_1_0 Selecting Direct backend 3466.564250977 [6607-6607] ../src/direct/nv-driver.c: 254 init_nvdriver Initing nvdriver... 3466.564392133 [6607-6607] ../src/direct/nv-driver.c: 272 init_nvdriver NVIDIA kernel driver version: , major version: 0, minor version: 0 3466.564410620 [6607-6607] ../src/direct/nv-driver.c: 279 init_nvdriver Got dev info: 100 1 0 fe libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.14 (libva 2.12.0) vainfo: Driver version: VA-API NVDEC driver [direct backend] vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264High : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD 3466.706542343 [6607-6607] ../src/vabackend.c:2064 nvTerminate Terminating 0x55887916d480 3466.706669613 [6607-6607] ../src/vabackend.c:2078 nvTerminate Now have 0 (0 max) instances

Firefox vaapi log

   125.898066459 [4103-4117] ../src/vabackend.c:2154       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 31
   125.898118959 [4103-4117] ../src/vabackend.c:2163       __vaDriverInit_1_0 Now have 0 (0 max) instances
   125.898126764 [4103-4117] ../src/vabackend.c:2189       __vaDriverInit_1_0 Selecting Direct backend
   125.931795047 [4103-4117] ../src/direct/nv-driver.c: 254            init_nvdriver Initing nvdriver...
   125.931980530 [4103-4117] ../src/direct/nv-driver.c: 272            init_nvdriver NVIDIA kernel driver version: , major version: 0, minor version: 0
   125.931993698 [4103-4117] ../src/direct/nv-driver.c: 279            init_nvdriver Got dev info: 100 1 0 fe
   126.464563754 [4103-4117] ../src/vabackend.c:1412      nvQueryImageFormats In nvQueryImageFormats
   126.610861410 [4103-4117] ../src/vabackend.c: 640           nvCreateConfig got profile: 6 with 0 attributes
   126.610924314 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0
   126.610933870 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2ba00 8
   126.617297065 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   126.618958447 [4103-4117] ../src/vabackend.c: 640           nvCreateConfig got profile: 7 with 0 attributes
   126.619017522 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0
   126.619026936 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2b340 8
   126.628160487 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   126.628215578 [4103-4117] ../src/vabackend.c: 640           nvCreateConfig got profile: 13 with 0 attributes
   126.628230198 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0
   126.628238063 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2b340 8
   126.650278959 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   126.844342943 [4103-4117] ../src/vabackend.c: 640           nvCreateConfig got profile: 7 with 0 attributes
   126.844406136 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0
   126.844415850 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2b4c0 8
   126.850936680 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   126.851002911 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 32579
   126.851011912 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2b340 8
   126.857757841 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   126.857839063 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5c480)
   126.857850311 [4103-4117] ../src/vabackend.c:1506            nvDeriveImage In nvDeriveImage
   126.857865545 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5cac0)
   126.857875361 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5c5c0)
   126.857885044 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5c840)
   126.857895276 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5c8e0)
   126.857920161 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5ca20)
   126.857930156 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5cb60)
   126.857939693 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5cca0)
   126.857977585 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d420)
   126.857987460 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d4c0)
   126.857997339 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d600)
   126.858007432 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5da60)
   126.858025142 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d6a0)
   126.858035171 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d560)
   126.858047690 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d740)
   126.858057490 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d7e0)
   126.858068367 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d880)
   126.858077803 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d920)
   126.858087082 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5de20)
   126.858100569 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5d9c0)
   126.858115031 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5dec0)
   126.858124996 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5db00)
   126.858134324 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5dba0)
   126.858143576 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5dc40)
   126.858153905 [4103-4117] ../src/vabackend.c: 923        nvCreateSurfaces2 Creating surface 960x544, format 1 (0x7f43ade5dce0)
   127.234919646 [4103-4117] ../src/vabackend.c: 640           nvCreateConfig got profile: 7 with 0 attributes
   127.235028565 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0
   127.235038174 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2be80 8
   127.285712426 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   127.285776099 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 32579
   127.285785595 [4103-4117] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7f43add2b940 8
   127.326397307 [4103-4117] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096
   127.326466107 [4103-4117] ../src/vabackend.c: 987          nvCreateContext creating context with 25 render targets, 25 surfaces, at 960x544
   127.735282736 [4103-4125] ../src/vabackend.c: 382          resolveSurfaces [RT] Resolve thread for 0x7f43adb83000 started
   127.739822396 [4103-4125] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7f43da73bba0 960x544 = 983040 bytes
   127.741783556 [4103-4125] ../src/direct/nv-driver.c: 521             alloc_buffer **DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY** failed: -1 22
   127.741820559 [4103-4125] ../src/direct/direct-export-buf.c: 327    direct_realiseSurface Unable to realise surface: 0x7f43ade5dce0 (0)
   127.746855083 [4103-4124] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7f43da73bba0 960x544 = 983040 bytes
   127.747193861 [4103-4124] ../src/direct/nv-driver.c: 521             alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22
   127.747207239 [4103-4124] ../src/direct/direct-export-buf.c: 327    direct_realiseSurface Unable to realise surface: 0x7f43ade5dce0 (0)
   127.747214170 [4103-4124] ../src/vabackend.c:2043    nvExportSurfaceHandle Unable to export surface
   127.748883726 [4103-4117] ../src/vabackend.c:1087         nvDestroyContext Destroying context: 31
   127.748914791 [4103-4117] ../src/vabackend.c: 291           destroyContext Signaling resolve thread to exit
   127.748921993 [4103-4117] ../src/vabackend.c: 297           destroyContext Waiting for resolve thread to exit
   127.751700261 [4103-4125] ../src/vabackend.c: 424          resolveSurfaces [RT] Resolve thread for 0x7f43adb83000 exiting
   127.751795127 [4103-4117] ../src/vabackend.c: 299           destroyContext pthread_timedjoin_np finished with 0
   127.768383475 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface 0 (0x7f43ade5dce0)
   127.768443502 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface 1 (0x7f43ade5dc40)
   127.768451648 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5dba0)
   127.768459940 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5db00)
   127.768467816 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5dec0)
   127.768479379 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d9c0)
   127.768487871 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5de20)
   127.768496005 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d920)
   127.768503919 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d880)
   127.768511821 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d7e0)
   127.768519986 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d740)
   127.768528031 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d560)
   127.768535952 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d6a0)
   127.768543675 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5da60)
   127.768551146 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d600)
   127.768559014 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d4c0)
   127.768566962 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5d420)
   127.768574568 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5cca0)
   127.768582275 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5cb60)
   127.768590099 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5ca20)
   127.768597697 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5c8e0)
   127.768606282 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5c840)
   127.768614462 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5c5c0)
   127.768622320 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5cac0)
   127.768630166 [4103-4117] ../src/vabackend.c: 957        nvDestroySurfaces Destroying surface -1 (0x7f43ade5c480)
   127.768642257 [4103-4117] ../src/vabackend.c:2064              nvTerminate Terminating 0x7f43da7dfb60
   127.768946163 [4103-4117] ../src/vabackend.c:2078              nvTerminate Now have 0 (0 max) instances
elFarto commented 5 months ago

Was there anything logged to dmesg when that fails?

am-silex commented 5 months ago

Unfortunately, I haven't captured it if there were any.

drygdryg commented 5 months ago

I faced the same issue with GT 710 on Arch Linux. My configuration:

nvidia-smi

$ nvidia-smi
Tue Jan 23 10:41:05 2024       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.223.02   Driver Version: 470.223.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:03:00.0 N/A |                  N/A |
| 50%   53C    P8    N/A /  N/A |    390MiB /   972MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

VA-API info

$ NVD_LOG=1 vainfo
Trying display: wayland
Trying display: x11
libva error: vaGetDriverNames() failed with unknown libva error
      2112.181239814 [46312-46312] ../src/vabackend.c:2154       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10
      2112.181261395 [46312-46312] ../src/vabackend.c:2163       __vaDriverInit_1_0 Now have 0 (0 max) instances
      2112.181268728 [46312-46312] ../src/vabackend.c:2189       __vaDriverInit_1_0 Selecting Direct backend
      2112.188908482 [46312-46312] ../src/direct/direct-export-buf.c:  66      direct_initExporter Searching for GPU: 0 0 128
      2112.188941796 [46312-46312] ../src/direct/direct-export-buf.c:  88      direct_initExporter Found NVIDIA GPU 0 at /dev/dri/renderD128
      2112.188950457 [46312-46312] ../src/direct/nv-driver.c: 254            init_nvdriver Initing nvdriver...
      2112.189014851 [46312-46312] ../src/direct/nv-driver.c: 272            init_nvdriver NVIDIA kernel driver version: , major version: 0, minor version: 0
      2112.189026794 [46312-46312] ../src/direct/nv-driver.c: 279            init_nvdriver Got dev info: 300 1 0 fe
vainfo: VA-API version: 1.20 (libva 2.20.1)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      2112.301236097 [46312-46312] ../src/vabackend.c:2064              nvTerminate Terminating 0x5fd132601660
      2112.301388423 [46312-46312] ../src/vabackend.c:2078              nvTerminate Now have 0 (0 max) instances

mpv test

mpv log ``` $ NVD_LOG=1 mpv --hwdec=vaapi test.mp4 (+) Video --vid=1 (*) (h264 704x528 25.000fps) (+) Audio --aid=1 (*) (aac 2ch 48000Hz) [vaapi] libva: vaGetDriverNames() failed with unknown libva error 2373.426648459 [55115-55126] ../src/vabackend.c:2154 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10 2373.426665640 [55115-55126] ../src/vabackend.c:2163 __vaDriverInit_1_0 Now have 0 (0 max) instances 2373.426675278 [55115-55126] ../src/vabackend.c:2189 __vaDriverInit_1_0 Selecting Direct backend 2373.426692878 [55115-55126] ../src/direct/direct-export-buf.c: 66 direct_initExporter Searching for GPU: 0 0 128 2373.426716345 [55115-55126] ../src/direct/direct-export-buf.c: 88 direct_initExporter Found NVIDIA GPU 0 at /dev/dri/renderD128 2373.426722771 [55115-55126] ../src/direct/nv-driver.c: 254 init_nvdriver Initing nvdriver... 2373.426767609 [55115-55126] ../src/direct/nv-driver.c: 272 init_nvdriver NVIDIA kernel driver version: , major version: 0, minor version: 0 2373.426776968 [55115-55126] ../src/direct/nv-driver.c: 279 init_nvdriver Got dev info: 300 1 0 fe 2373.487599443 [55115-55126] ../src/vabackend.c:1412 nvQueryImageFormats In nvQueryImageFormats 2373.548550777 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 0 with 0 attributes 2373.548568656 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 1 (8) (nil) 0 2373.548576130 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 1 (8) 0x7b5494a50300 8 2373.550889090 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 2373.550909344 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5080) 2373.550918913 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.550930087 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495a8f0) 2373.550937281 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.551010476 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495cba0 128x128 = 24576 bytes 2373.551256879 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.551267844 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495a8f0 (-1) 2373.551274130 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.551293825 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495a8f0) 2373.551305209 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495a8f0) 2373.551312543 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.551338454 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495b760 128x128 = 49152 bytes 2373.551533244 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.551543231 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495a8f0 (-1) 2373.551549098 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.551562158 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495a8f0) 2373.551573054 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495b840) 2373.551580527 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.551605181 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495baa0 128x128 = 49152 bytes 2373.551797736 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.551807514 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495b840 (-1) 2373.551813171 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.551826581 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b840) 2373.551837616 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495bd80) 2373.551845298 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.551871070 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c5e0 128x128 = 49152 bytes 2373.552077384 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.552087161 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495bd80 (-1) 2373.552093028 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.552107695 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bd80) 2373.552115098 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5080) 2373.552124946 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 1 with 0 attributes 2373.552136749 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 1 (8) (nil) 0 2373.552146527 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 1 (8) 0x7b5494a50300 8 2373.555147642 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 2373.555164893 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495b880) 2373.555173483 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.555182353 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5180) 2373.555189338 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.555217554 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495da60 128x128 = 24576 bytes 2373.555545882 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.555556637 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5180 (-1) 2373.555562364 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.555576612 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5180) 2373.555588625 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495c140) 2373.555596587 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.555621940 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d920 128x128 = 49152 bytes 2373.555816589 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.555826577 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c140 (-1) 2373.555832444 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.555845923 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c140) 2373.555857377 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495a7e0) 2373.555865130 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.555889854 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c2a0 128x128 = 49152 bytes 2373.556102034 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.556117050 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495a7e0 (-1) 2373.556125641 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.556145057 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495a7e0) 2373.556161330 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495bf00) 2373.556172435 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.556213083 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d6d0 128x128 = 49152 bytes 2373.556414298 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.556424495 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495bf00 (-1) 2373.556430152 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.556444889 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bf00) 2373.556452292 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b880) 2373.556459137 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 8 with 0 attributes 2373.556466400 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) (nil) 0 2373.556472546 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) 0x7b5494a50300 8 2373.558934620 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 2373.558951312 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495bba0) 2373.558959693 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.558968703 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5180) 2373.558975338 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.559015776 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c000 128x128 = 24576 bytes 2373.559219296 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.559229982 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5180 (-1) 2373.559235849 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.559250236 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5180) 2373.559262040 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495c400) 2373.559270002 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.559295215 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c1a0 128x128 = 49152 bytes 2373.559490912 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.559500969 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c400 (-1) 2373.559506696 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.559520106 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c400) 2373.559531421 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495c120) 2373.559539173 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.559563478 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c000 128x128 = 49152 bytes 2373.559757779 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.559767626 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c120 (-1) 2373.559773493 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.559786833 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c120) 2373.559797938 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495b840) 2373.559805690 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.559831253 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d6a0 128x128 = 49152 bytes 2373.560038334 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.560048392 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495b840 (-1) 2373.560054258 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.560068297 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b840) 2373.560078424 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bba0) 2373.560087154 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 9 with 0 attributes 2373.560096722 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) (nil) 0 2373.560105732 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) 0x7b5494a50300 8 2373.562573952 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 2373.562590853 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495b840) 2373.562599444 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.562608663 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5240) 2373.562615158 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.562642537 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d820 128x128 = 24576 bytes 2373.562844171 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.562854787 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5240 (-1) 2373.562860584 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.562876438 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5240) 2373.562888171 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495be80) 2373.562896063 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.562920857 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c3e0 128x128 = 49152 bytes 2373.563150777 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.563164047 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495be80 (-1) 2373.563171311 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.563191775 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495be80) 2373.563208677 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495c400) 2373.563220550 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.563246671 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495a770 128x128 = 49152 bytes 2373.563448305 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.563458362 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c400 (-1) 2373.563464089 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.563477778 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c400) 2373.563489372 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495c480) 2373.563497055 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.563522896 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495bfb0 128x128 = 49152 bytes 2373.563719083 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.563729070 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c480 (-1) 2373.563734797 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.563748416 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c480) 2373.563755750 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b840) 2373.563762524 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 10 with 0 attributes 2373.563769718 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) (nil) 0 2373.563775305 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 3 (8) 0x7b5494a50300 8 2373.566243874 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 2373.566260008 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495b880) 2373.566268319 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.566277329 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5080) 2373.566283824 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.566311621 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d160 128x128 = 24576 bytes 2373.566516468 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.566527154 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5080 (-1) 2373.566532951 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.566547338 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5080) 2373.566558932 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495c200) 2373.566566824 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.566591129 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c3c0 128x128 = 49152 bytes 2373.566790179 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.566800166 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c200 (-1) 2373.566805894 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.566819583 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c200) 2373.566830548 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b54947c4fe0) 2373.566838161 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.566862466 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c0a0 128x128 = 49152 bytes 2373.567075763 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.567089033 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c4fe0 (-1) 2373.567097833 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.567118088 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c4fe0) 2373.567133732 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495d580) 2373.567144418 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.567183460 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d680 128x128 = 49152 bytes 2373.567394662 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.567404789 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495d580 (-1) 2373.567411285 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.567425253 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495d580) 2373.567431888 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b880) 2373.567439431 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 6 with 0 attributes 2373.567446555 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0 2373.567452003 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7b5494a50300 8 2373.569929162 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 2373.569945715 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c51a0) 2373.569953607 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.569962966 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5040) 2373.569969670 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.569997049 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c060 128x128 = 24576 bytes 2373.570213978 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.570224524 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5040 (-1) 2373.570230391 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.570244778 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5040) 2373.570256442 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495d840) 2373.570264334 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.570289198 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c3c0 128x128 = 49152 bytes 2373.570488458 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.570498445 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495d840 (-1) 2373.570504451 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.570518001 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495d840) 2373.570528966 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495bde0) 2373.570536788 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.570561722 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b54947c5020 128x128 = 49152 bytes 2373.570760353 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.570770340 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495bde0 (-1) 2373.570775718 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.570788988 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bde0) 2373.570799883 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b54947c5000) 2373.570807566 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.570832849 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d260 128x128 = 49152 bytes 2373.571042166 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.571052153 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5000 (-1) 2373.571057252 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.571070102 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5000) 2373.571077087 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c51a0) 2373.571084350 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 7 with 0 attributes 2373.571093709 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0 2373.571102858 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7b5494a50300 8 2373.573550754 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 2373.573567446 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495c6c0) 2373.573576107 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.573585465 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c51c0) 2373.573591751 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.573619688 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d5a0 128x128 = 24576 bytes 2373.573826560 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.573837176 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c51c0 (-1) 2373.573842554 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.573857081 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c51c0) 2373.573868675 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495c100) 2373.573876428 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.573901222 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c380 128x128 = 49152 bytes 2373.574134494 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.574147555 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495c100 (-1) 2373.574154818 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.574176609 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c100) 2373.574193301 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495bda0) 2373.574203568 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.574229759 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d100 128x128 = 49152 bytes 2373.574433209 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.574443476 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495bda0 (-1) 2373.574449203 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.574463171 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bda0) 2373.574474206 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b54947c5240) 2373.574481959 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.574507730 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c380 128x128 = 49152 bytes 2373.574706641 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.574716628 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5240 (-1) 2373.574722285 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.574735974 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5240) 2373.574743168 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495c6c0) 2373.574750012 [55115-55126] ../src/vabackend.c: 640 nvCreateConfig got profile: 13 with 0 attributes 2373.574757276 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) (nil) 0 2373.574762724 [55115-55126] ../src/vabackend.c:1768 nvQuerySurfaceAttributes with 4 (8) 0x7b5494a50300 8 2373.577246867 [55115-55126] ../src/vabackend.c:1835 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 2373.577263210 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b549495b840) 2373.577271801 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.577280741 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7b54947c5080) 2373.577287376 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.577314963 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d760 128x128 = 24576 bytes 2373.577522534 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.577533010 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b54947c5080 (-1) 2373.577538807 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.577552776 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b54947c5080) 2373.577564649 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7b549495d680) 2373.577572401 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.577596916 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495c3c0 128x128 = 49152 bytes 2373.577798271 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.577808328 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495d680 (-1) 2373.577814125 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.577828163 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495d680) 2373.577839128 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 1000 (0x7b549495bfb0) 2373.577846741 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.577871256 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495d7e0 128x128 = 49152 bytes 2373.578097544 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.578111792 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495bfb0 (-1) 2373.578119963 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.578138751 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495bfb0) 2373.578155164 [55115-55126] ../src/vabackend.c: 923 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7b549495cde0) 2373.578166129 [55115-55126] ../src/vabackend.c:1506 nvDeriveImage In nvDeriveImage 2373.578207475 [55115-55126] ../src/direct/direct-export-buf.c: 149 direct_allocateBackingImage Allocating BackingImage: 0x7b549495cce0 128x128 = 49152 bytes 2373.578413789 [55115-55126] ../src/direct/nv-driver.c: 521 alloc_buffer DRM_IOCTL_NVIDIA_GEM_IMPORT_NVKMS_MEMORY failed: -1 22 2373.578423846 [55115-55126] ../src/direct/direct-export-buf.c: 327 direct_realiseSurface Unable to realise surface: 0x7b549495cde0 (-1) 2373.578429573 [55115-55126] ../src/vabackend.c:2043 nvExportSurfaceHandle Unable to export surface 2373.578443961 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495cde0) 2373.578451224 [55115-55126] ../src/vabackend.c: 957 nvDestroySurfaces Destroying surface -1 (0x7b549495b840) 2373.578459536 [55115-55126] ../src/vabackend.c:2064 nvTerminate Terminating 0x7b5494444d80 2373.578562902 [55115-55126] ../src/vabackend.c:2078 nvTerminate Now have 0 (0 max) instances AO: [pulse] 48000Hz stereo 2ch float VO: [gpu] 704x528 yuv420p Exiting... (Quit) ```

Kernel log

kernel log (dmesg) ``` [Jan23 10:27] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000283] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000265] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000279] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,003467] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000273] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000281] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000316] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002803] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000274] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000267] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000281] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002804] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000304] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000301] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000272] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002794] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000276] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000285] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000319] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002819] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000276] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000272] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000282] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002782] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000305] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000303] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000274] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,002814] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000277] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000297] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object [ +0,000320] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to import NVKMS memory to GEM object ```
am-silex commented 5 months ago

Although, I haven't saved dmesg logs, I can confirm that error was the same

Failed to import NVKMS memory to GEM object

rkoot commented 5 months ago

As far as I can tell the GT710 isn't supported by nvenc/nvdec. (at least the matrix posted on the nvidia site doesn't mention the GT710)

am-silex commented 5 months ago

NVENC: No Support NVDEC: 1st Gen PureVideo HD: VP5 VDPAU: Feature Set D

https://www.techpowerup.com/gpu-specs/geforce-gt-710.c1990

rkoot commented 5 months ago

https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new#geforce doesn't mention it. I'd trust nvidia as a source more than a third party for this. edit I suspect that former versions of the nvidia-driver/cuda/ffnvcodecs combination might have supported the GT710, but current versions don't. You might get lucky when downgrading the nvidia-driver

am-silex commented 5 months ago

That page displays only currently supported GPUs GT710 is outdated and only supported by 470 driver series

elFarto commented 5 months ago

Does mpv work with --hwdev=nvdec? Also, you might also try removing this code DRF_DEF(OS32, _ATTR, _PAGE_SIZE, _BIG) | from the nv-driver.c file.

am-silex commented 5 months ago

Removed and recompiled as suggested by @elFarto DRF_DEF(OS32, _ATTR, _PAGE_SIZE, _BIG) | from nv-driver.c file. Unfortunately, the result is the same - dmesg produces this

[ 185.750207] [drm:nv_drm_gem_import_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to import NVKMS memory to GEM object

am-silex commented 5 months ago

Yes, mpv works as well as other apps utilizing vdpau and nvdec directly, like Kodi

mpv --hwdec=nvdec 720.mp4 (+) Video --vid=1 () (h264 1280x720 25.000fps) (+) Audio --aid=1 () (aac 2ch 48000Hz)

mirh commented 5 months ago

Shouldn't this be titled "problems with driver 470" perhaps? Does that 2021 driver still actually work with other cards and newer nvidia-vaapi?

elFarto commented 5 months ago

Ok, can you try rerunning with NVD_BACKEND=egl set?

am-silex commented 5 months ago

Ok, can you try rerunning with NVD_BACKEND=egl set?

No errors and no hw offload, cpu utilization is as high as usual

am-silex commented 5 months ago

Shouldn't this be titled "problems with driver 470" perhaps? Does that 2021 driver still actually work with other cards and newer nvidia-vaapi?

Although, the root cause might be to the NVIDIA driver version, the driver itself works perfectly. All the other apps can offload supported video decoding through VDPAU API to NVDEC.

drygdryg commented 5 months ago

Does mpv work with --hwdev=nvdec

Yes, it works. NVENC is also working (limited by H.264), I tested NVENC in the NoMachine remote access app. The latest Linux driver version for GT 710 is 470.223.02.

am-silex commented 5 months ago

It's interesting, this specs claims that NVENC not supported on GK208B

drygdryg commented 5 months ago

My NVIDIA GeForce GT 710 1 GB DDR3 (GK208B) supports both NVENC and NVDEC.

NVIDIA settings

nvidia-settings ![image](https://github.com/elFarto/nvidia-vaapi-driver/assets/43933400/1b3e6d55-a2d4-4788-aba0-60e630e9fddc) ![image](https://github.com/elFarto/nvidia-vaapi-driver/assets/43933400/7ca93a20-132c-48f9-82a5-b619fba6f167)

lshw display info

$ sudo lshw -class display
  *-display                 
       description: VGA compatible controller
       product: GK208B [GeForce GT 710]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:49 memory:fa000000-faffffff memory:e8000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:fb000000-fb07ffff

NVENC and NVDEC info (collected with https://github.com/philipl/nv-video-info)

nvencinfo, nvdecinfo ``` $ ./nvencinfo Loaded Nvenc version 11.1 Nvenc initialized successfully Device 0: NVIDIA GeForce GT 710 ================================================= Codec | H264 | ================================================= Input Buffer Formats | | ------------------------------------------------- NV12 | x | YV12 | x | IYUV | x | YUV444 | x | P010 | . | YUV444P10 | . | ARGB | x | ARGB10 | x | AYUV | x | ABGR | x | ABGR10 | x | ------------------------------------------------- Limits | | ------------------------------------------------- Maximum Width | 4096 | Maximum Hight | 4096 | Maximum Macroblocks/frame | 65536 | Maximum Macroblocks/second | 983040 | Max Encoding Level | 62 | Min Encoding Level | 10 | Max No. of B-Frames | 4 | Maxmimum LT Reference Frames | 8 | Number of Encoder Engines | 1 | ------------------------------------------------- Capabilities | | ------------------------------------------------- Supported Rate-Control Modes | 63 | Supports Field-Encoding | 1 | Supports Monochrome | 0 | Supports FMO | 0 | Supports QPEL Motion Estimation | 1 | Supports BDirect Mode | 1 | Supports CABAC | 1 | Supports Adaptive Transform | 1 | Supports Temporal Layers | 4 | Supports Hierarchical P-Frames | 1 | Supports Hierarchical B-Frames | 0 | Supports Separate Colour Planes | 0 | Supports Temporal SVC | 1 | Supports Dynamic Resolution Change | 1 | Supports Dynamic Bitrate Change | 1 | Supports Dynamic Force Const-QP | 1 | Supports Dynamic RC-Mode Change | 0 | Supports Sub-Frame Read-back | 0 | Supports Constrained Encoding | 1 | Supports Intra Refresh | 1 | Supports Custom VBV Buffer Size | 1 | Supports Dynamic Slice Mode | 1 | Supports Ref Pic Invalidation | 1 | Supports PreProcessing | 0 | Supports Async Encoding | 0 | Supports YUV444 Encoding | 0 | Supports Lossless Encoding | 0 | Supports SAO | 0 | Supports ME-Only Mode | 0 | Supports Lookahead Encoding | 0 | Supports Temporal AQ | 0 | Supports 10-bit Encoding | 0 | Supports Weighted Prediction | 0 | Supports B-Frames as References | 3 | Supports Emphasis Level Map | 0 | Supports Multiple Reference Frames | 0 | Supports Alpha Layer Encoding | 0 | Supports Single Slice Intra Refresh | 0 | ------------------------------------------------- Profiles | | ------------------------------------------------- | Baseline | | Main | | High | | MVC | | High444 | | Auto | ------------------------------------------------- Presets | | ------------------------------------------------- | default | | ll | | hp | | hq | | bluray | | llhq | | llhp | | Unknown | | p1 | | p2 | | p3 | | p4 | | p5 | | p6 | | p7 | ================================================= ``` ``` $ ./nvdecinfo Device 0: NVIDIA GeForce GT 710 ----------------------------------------------------------------- Codec | Chroma | Depth | Max Width | Max Height | Surface Formats ----------------------------------------------------------------- MPEG1 | 420 | 8 | 4080 | 4080 | NV12 MPEG2 | 420 | 8 | 4080 | 4080 | NV12 MPEG4 | 420 | 8 | 2032 | 2032 | NV12 VC1 | 420 | 8 | 2032 | 2032 | NV12 H264 | 420 | 8 | 4096 | 4096 | NV12 MJPEG | 400 | 8 | 32768 | 16384 | NV12 MJPEG | 420 | 8 | 32768 | 16384 | NV12 MJPEG | 422 | 8 | 32768 | 16384 | NV12 MJPEG | 444 | 8 | 32768 | 16384 | NV12 ----------------------------------------------------------------- ```
mirh commented 5 months ago

Just stop using those awful compilation websites https://www.nvidia.com/en-us/geforce/forums/geforce-graphics-cards/5/280359/does-the-geforce-gt-710-have-nvenc/

With this said, I just installed 470.223.02 on my 2080S and yes I'm getting the same error OP has. Meanwhile the egl backend is giving me #218

mirh commented 5 months ago

Actually this is too a regression caused by bb7752d37412b05f0151e60904f5e743d08ec297

am-silex commented 5 months ago

@mirh all right, such mashup sites are not reliable. However, NVENC support for the matter of this project is irrelevant, I believe. Main use case implementing VA-API is to comfortably watch online videos in Firefox.

elFarto commented 5 months ago

Ok, found the issue. It seems the 470 series has changed how it returns the version number. I've push a fix for it to master.

am-silex commented 5 months ago

Should I worry about this?

[ 41.790153] NVRM: API mismatch: the client has the version , but NVRM: this kernel module has the version 470.223.02. Please NVRM: make sure that this kernel module and all NVIDIA driver NVRM: components have the same version.

am-silex commented 5 months ago
And I can't confirm that it works. Here is a comparison in CPU usage while playing the same sample in h264 format mpv Firefox Nightly Firefox (snap)
~5% ~15% ~20%

Firefox Nightly uses slightly less in CPU in other scenarios (YouTube with h264ify, other streaming web sites)

elFarto commented 5 months ago

Hmm, the error isn't really a problem, it's a result of me having to call the check version function in a different way. I don't think I'll be able to work around it on the 470 drivers, but I should be able to do on the 500+ series.

To check if the GPU is being used for decode, use something like nvidia-smi pmon, and look in the dec column.

am-silex commented 5 months ago

With you last commit I can confirm that the driver works, despite dmesg log. Even Kodi now switched to ff-h264-vaapi (HW) when playing videos or watching DVB channels, CPU utilization is the same as with vdpau. However, FIrefox uses a higher percentage playing the same sample. I reckon it is due to some overhead in its internal implementation and has nothing to do with the driver. When starting playing something, dmesg spits this info, too. nvidia-smi pmon isn't supported on GT710

Not supported on the device(s) Failed to process command line

Thank you for you work!

drygdryg commented 5 months ago

I also confirm that VA-API is now functional on my GT 710 on the latest (master) driver version built with nv-codec-headers v11.1. I check the GPU usage using NVIDIA's nvidia-settings GUI tool and get about the same video engine utilization when using both NVDEC and the VA-API, when playing a H.264 video using the mpv player. Here's how I installed the driver with the correct nv-codec-headers version for GT 710 on Arch Linux:

paru -S aur/ffnvcodec-headers-11-1 aur/libva-nvidia-driver-git

Thank you for your hard work!