kloczek has joined #linux-exynos
kloczek has quit [Remote host closed the connection]
kloczek has joined #linux-exynos
nighty- has joined #linux-exynos
libv_ has joined #linux-exynos
libv has quit [Ping timeout: 260 seconds]
_whitelogger has joined #linux-exynos
TheSeven has quit [Ping timeout: 258 seconds]
TheSeven has joined #linux-exynos
TheSeven has quit [Ping timeout: 255 seconds]
TheSeven has joined #linux-exynos
mszyprow has joined #linux-exynos
kkrdadiczc has joined #linux-exynos
kkrdadiczc has quit [Remote host closed the connection]
afaerber has joined #linux-exynos
afaerber has quit [Ping timeout: 248 seconds]
afaerber has joined #linux-exynos
libv has joined #linux-exynos
libv_ has quit [Ping timeout: 260 seconds]
indy has quit [Ping timeout: 240 seconds]
wwilly has joined #linux-exynos
snawrocki has quit [Remote host closed the connection]
<
mszyprow>
memeka: ping
<
memeka>
mszyprow pong
<
memeka>
Sorry busy with sick kid :(
<
mszyprow>
memeka: I've fixed the DRM dmabuf import issue, my fault since Linux v4.6
<
memeka>
Saw the drm patch, excited to try tmr
<
mszyprow>
memeka: but I noticed that gst uses dmabuf in very inefficient way
<
mszyprow>
memeka: from the logs I see it imports the buffers for every single frame
<
mszyprow>
memeka: I don't know the gst internals, but one should check it, there is huge space for optimizations there
<
mszyprow>
memeka: the buffers should be imported/exported once on pipeline configuration then simply used
<
mszyprow>
so basically now we benchmark dmabuf setup/import functions instead of real zero-copy buffer processing
<
memeka>
I’ll let the gst ppl know, but they might be aware
<
mszyprow>
those 2 pipelines should work at the same speed:
<
mszyprow>
filesrc location=bunny_trailer_1080p.mov ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=dmabuf ! v4l2video2convert output-io-mode=dmabuf-import capture-io-mode=dmabuf ! fpsdisplaysink video-sink=kmssink sync=false
<
mszyprow>
filesrc location=bunny_trailer_1080p.mov ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=dmabuf ! v4l2video2convert output-io-mode=dmabuf-import capture-io-mode=dmabuf-import ! fpsdisplaysink video-sink=kmssink sync=false
<
mszyprow>
but in real test there are significant differences
<
mszyprow>
it should really not matter which driver exports the buffer
<
memeka>
What should the second one do? Is gscaler importing buf from kms?
<
memeka>
Why not use userptr?
<
mszyprow>
well, I just gave the example you sent me with the iommu bug issue ;)
<
mszyprow>
dmabuf should be preffered over userptr if possible
<
mszyprow>
in theory it would be faster when used properly
<
mszyprow>
userptr relies on a series of hacks
<
memeka>
Ok I’ll try them
<
memeka>
I thought the idea was for the sink to allocate buffers
<
mszyprow>
but in practice the current code imports/exports the buffers every frame
<
mszyprow>
what completely kills the idea of zerocopy
<
memeka>
And send them to the previous elements (gsc, MFC)
<
mszyprow>
as setting up dmabufs between drivers has non-zero overhead
<
memeka>
In any case, with iommu disabled I was getting <10% cpu usage
<
memeka>
So I’ll compare to that :)
<
mszyprow>
if you know the gst people, please report them my complaints ;)
<
memeka>
Yup I will
<
mszyprow>
at least from the kernel side now it should work fine
<
memeka>
Thx for looking at that, one more bug fixed!
<
mszyprow>
I will focus on the dmabuf import for mfc encoding now
<
memeka>
I have to go to my son now sorry
<
mszyprow>
memeka: no problem
<
memeka>
But thx fir the awesome news
nighty- has quit [Read error: Connection reset by peer]
snawrocki has joined #linux-exynos
wwilly has quit [Quit: Leaving]
wwilly has joined #linux-exynos
afaerber has quit [Quit: Leaving]
paulk-gagarine has quit [Excess Flood]
paulk-gagarine has joined #linux-exynos
nighty- has joined #linux-exynos
genii has joined #linux-exynos
kxkamil has joined #linux-exynos
indy has joined #linux-exynos
gordan has joined #linux-exynos
gordan has quit [Client Quit]
mszyprow has quit [Ping timeout: 248 seconds]
Vasco_O is now known as Vasco
isaque has joined #linux-exynos
wwilly_ has joined #linux-exynos
wwilly has quit [Ping timeout: 260 seconds]
wwilly_ has quit [Quit: Leaving]
kxkamil has quit [Quit: Leaving]
paulk-gagarine has quit [Excess Flood]
paulk-gagarine has joined #linux-exynos
isaque has quit [Quit: isaque]
LiquidAcid has joined #linux-exynos
nighty- has quit [Quit: Disappears in a puff of smoke]
LiquidAcid has quit [Ping timeout: 258 seconds]
prahal_odroid has quit [Quit: prahal_odroid]
prahal_odroid has joined #linux-exynos