MediaWriter & Nouveau
Pan Bříza,
to se stane, když
Custom image - Pick a file from your drives(s)
...
nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 0020171c34 put 00201746ec ib_get 00000017 ib_put 00000018 state 8000a32c (err: INVALID_CMD) push 00406040 nouveau 0000:02:00.0: gr: DATA_ERROR 00000004 [INVALID_VALUE]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 5 class 5039 mthd 0320 data 00046da8
nouveau 0000:02:00.0: gr: DATA_ERROR 00000005 [INVALID_ENUM]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 5 class 5039 mthd 0324 data 00000000
nouveau 0000:02:00.0: gr: DATA_ERROR 00000005 [INVALID_ENUM]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 5 class 5039 mthd 0328 data 00046da4
nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 0020175a18 put 002018ae6c ib_get 0000001a ib_put 0000001b state 80008208 (err: INVALID_CMD) push 00406040 nouveau 0000:02:00.0: gr: DATA_ERROR 0000000c [INVALID_BITFIELD]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 4 class 502d mthd 0200 data 00086e04
nouveau 0000:02:00.0: gr: DATA_ERROR 0000000c [INVALID_BITFIELD]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 4 class 502d mthd 0204 data 02cb02c6
nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 002019d8b8 put 00201acb08 ib_get 00000023 ib_put 00000026 state 40000004 (err: INVALID_MTHD) push 00406040 nouveau 0000:02:00.0: fifo: CACHE_ERROR - ch 5 [mediawriter[20975]] subc 0 mthd 0000 data 03900000
nouveau 0000:02:00.0: gr: DATA_ERROR 0000000d [BEGIN_END_ACTIVE]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 3 class 8297 mthd 131c data 3f5ededf
nouveau 0000:02:00.0: gr: DATA_ERROR 0000000d [BEGIN_END_ACTIVE]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 3 class 8297 mthd 1320 data 3f5ededf
nouveau 0000:02:00.0: gr: DATA_ERROR 0000000d [BEGIN_END_ACTIVE]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 3 class 8297 mthd 1324 data 3f5ededf
nouveau 0000:02:00.0: gr: DATA_ERROR 0000000d [BEGIN_END_ACTIVE]
nouveau 0000:02:00.0: gr: 00100000 [] ch 5 [001f7bd000 mediawriter[20975]] subc 3 class 8297 mthd 1328 data 3f800000
nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 00203c4e34 put 00203d04b0 ib_get 0000003b ib_put 0000003c state 80000024 (err: INVALID_CMD) push 00406040 nouveau 0000:02:00.0: mediawriter[20975]: push 0 buffer not in listshow_signal_msg: 21 callbacks suppressed
QSGRenderThread[21104]: segfault at 774b0 ip 00007f10f99d5494 sp 00007f10f1989ee0 error 4 in libdrm_nouveau.so.2.0.0[7f10f99d2000+7000]
$ rpm -q mediawriter mediawriter-4.0.0-2.fc24.x86_64
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): faba8f39-e4d9-bd34-c2a1-8e91917de41c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[...]
= "basic" render
$ QSG_INFO=1 mediawriter Debug: QSG: basic render loop ((null):0, (null)) Debug: texture atlas dimensions: 1024x512 ((null):0, (null)) Debug: R/G/B/A Buffers: 8 8 8 0 ((null):0, (null)) Debug: Depth Buffer: 24 ((null):0, (null)) Debug: Stencil Buffer: 8 ((null):0, (null)) Debug: Samples: -1 ((null):0, (null)) Debug: GL_VENDOR: nouveau ((null):0, (null)) Debug: GL_RENDERER: Gallium 0.4 on NV98 ((null):0, (null)) Debug: GL_VERSION: 3.0 Mesa 13.0.0-rc2 ((null):0, (null)) Debug: GL_EXTENSIONS: ... Debug: Max Texture Size: 8192 ((null):0, (null)) Debug: Debug context: false ((null):0, (null)) ...
$ ps -C mediawriter -o cmd,%cpu CMD %CPU mediawriter 30.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= "windows" render
$ QSG_INFO=1 QSG_RENDER_LOOP=windows mediawriter Debug: windows render loop ((null):0, (null)) Debug: Using sg animation driver ((null):0, (null)) Debug: Animation Driver: using vsync: 16.67 ms ((null):0, (null)) Debug: texture atlas dimensions: 1024x512 ((null):0, (null)) Debug: R/G/B/A Buffers: 8 8 8 0 ((null):0, (null)) Debug: Depth Buffer: 24 ((null):0, (null)) Debug: Stencil Buffer: 8 ((null):0, (null)) Debug: Samples: -1 ((null):0, (null)) Debug: GL_VENDOR: nouveau ((null):0, (null)) Debug: GL_RENDERER: Gallium 0.4 on NV98 ((null):0, (null)) Debug: GL_VERSION: 3.0 Mesa 13.0.0-rc2 ((null):0, (null)) Debug: GL_EXTENSIONS: ... Debug: Max Texture Size: 8192 ((null):0, (null)) Debug: Debug context: false ((null):0, (null)) ...
$ ps -C mediawriter -o cmd,%cpu CMD %CPU mediawriter 41.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= "threaded" render
$ QSG_INFO=1 QSG_RENDER_LOOP=threaded mediawriter Debug: threaded render loop ((null):0, (null)) Debug: Using sg animation driver ((null):0, (null)) Debug: Animation Driver: using vsync: 16.67 ms ((null):0, (null)) Debug: Animation Driver: using vsync: 16.67 ms ((null):0, (null)) Debug: texture atlas dimensions: 1024x512 ((null):0, (null)) Debug: R/G/B/A Buffers: 8 8 8 0 ((null):0, (null)) Debug: Depth Buffer: 24 ((null):0, (null)) Debug: Stencil Buffer: 8 ((null):0, (null)) Debug: Samples: -1 ((null):0, (null)) Debug: GL_VENDOR: nouveau ((null):0, (null)) Debug: GL_RENDERER: Gallium 0.4 on NV98 ((null):0, (null)) Debug: GL_VERSION: 3.0 Mesa 13.0.0-rc2 ((null):0, (null)) Debug: GL_EXTENSIONS: ... Debug: Max Texture Size: 8192 ((null):0, (null)) Debug: Debug context: false ((null):0, (null)) ...
$ ps -C mediawriter -o cmd,%cpu CMD %CPU mediawriter 18.3
...
Debug: animation driver switched to timer mode ((null):0, (null))
Debug: animation driver switched to vsync mode ((null):0, (null))
Debug: Animation Driver: using vsync: 16.67 ms ((null):0, (null))
Debug: texture atlas dimensions: 1024x512 ((null):0, (null)) Segmentation fault (core dumped)
QSGRenderThread[8636]: segfault at 8 ip 00007f9138a4320f sp 00007f911cd908f0 error 4 in libdrm_nouveau.so.2.0.0[7f9138a3f000+7000]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= About
$ rpm -q mediawriter mediawriter-4.0.3-2.fc26.x86_64
built without "threaded" render:
$ grep sed mediawriter.spec -A2 sed -i /threaded/s/^/\\/\\// app/main.cpp
%build
$ rpm -q qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtbase-devel-5.7.0-9.fc26.x86_64 qt5-qtdeclarative-devel-5.7.0-2.fc25.x86_64
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= Conclusion
From the nouveau perspective, "threaded" render is "out of scope".
Ref.
Force threaded run loop for QML - Fixes high CPU load
https://github.com/MartinBriza/MediaWriter/commit/63492f4
Qt Quick Scene Graph - Scene Graph and Rendering
https://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html#scene-graph-and-rendering
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau