Re: [Nouveau] MediaWriter & Nouveau

2016-11-03 Thread poma
[...]

= "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 7f9138a4320f sp 7f911cd908f0 
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
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] MediaWriter & Nouveau

2016-11-02 Thread poma

Pan Bříza,
to se stane, když
Custom image - Pick a file from your drives(s)
...
nouveau :02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 
0020171c34 put 00201746ec ib_get 0017 ib_put 0018 state 8000a32c (err: 
INVALID_CMD) push 00406040
nouveau :02:00.0: gr: DATA_ERROR 0004 [INVALID_VALUE]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
5 class 5039 mthd 0320 data 00046da8
nouveau :02:00.0: gr: DATA_ERROR 0005 [INVALID_ENUM]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
5 class 5039 mthd 0324 data 
nouveau :02:00.0: gr: DATA_ERROR 0005 [INVALID_ENUM]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
5 class 5039 mthd 0328 data 00046da4
nouveau :02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 
0020175a18 put 002018ae6c ib_get 001a ib_put 001b state 80008208 (err: 
INVALID_CMD) push 00406040
nouveau :02:00.0: gr: DATA_ERROR 000c [INVALID_BITFIELD]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
4 class 502d mthd 0200 data 00086e04
nouveau :02:00.0: gr: DATA_ERROR 000c [INVALID_BITFIELD]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
4 class 502d mthd 0204 data 02cb02c6
nouveau :02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 
002019d8b8 put 00201acb08 ib_get 0023 ib_put 0026 state 4004 (err: 
INVALID_MTHD) push 00406040
nouveau :02:00.0: fifo: CACHE_ERROR - ch 5 [mediawriter[20975]] subc 0 mthd 
 data 0390
nouveau :02:00.0: gr: DATA_ERROR 000d [BEGIN_END_ACTIVE]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
3 class 8297 mthd 131c data 3f5ededf
nouveau :02:00.0: gr: DATA_ERROR 000d [BEGIN_END_ACTIVE]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
3 class 8297 mthd 1320 data 3f5ededf
nouveau :02:00.0: gr: DATA_ERROR 000d [BEGIN_END_ACTIVE]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
3 class 8297 mthd 1324 data 3f5ededf
nouveau :02:00.0: gr: DATA_ERROR 000d [BEGIN_END_ACTIVE]
nouveau :02:00.0: gr: 0010 [] ch 5 [001f7bd000 mediawriter[20975]] subc 
3 class 8297 mthd 1328 data 3f80
nouveau :02:00.0: fifo: DMA_PUSHER - ch 5 [mediawriter[20975]] get 
00203c4e34 put 00203d04b0 ib_get 003b ib_put 003c state 8024 (err: 
INVALID_CMD) push 00406040
nouveau :02:00.0: mediawriter[20975]: push 0 buffer not in list
show_signal_msg: 21 callbacks suppressed
QSGRenderThread[21104]: segfault at 774b0 ip 7f10f99d5494 sp 
7f10f1989ee0 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
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau