https://bugs.freedesktop.org/show_bug.cgi?id=88658
Bug ID: 88658 Summary: Slow video playback on Kabini Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: jtossenb@gmail.com QA Contact: dri-devel@lists.freedesktop.org
I am using a 64-bit Kabini based system (AMD Athlon 5350) with Kodi 14.0 on an up-to-date Arch linux. Kodi plays this https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMx... small sample file fine with kernel 3.16.x, but with kernel >= 3.17 the playback is only 1 fps (like a slideshow). It is a hi10p video, so Kodi uses pure software decoding.
I've done a git bisect between 3.16 and 3.17-rc1 and found that 02376d8282b88f07d0716da6155094c8760b1a13 is the first bad commit.
commit 02376d8282b88f07d0716da6155094c8760b1a13 Author: Michel Dänzer michel.daenzer@amd.com Date: Thu Jul 17 19:01:08 2014 +0900
drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2)
v2: fix rebase onto drm-fixes
Signed-off-by: Michel Dänzer michel.daenzer@amd.com Reviewed-by: Christian König christian.koenig@amd.com Signed-off-by: Alex Deucher alexander.deucher@amd.com
Then I applied the patch found in comment 30 of bug 84627 attachment 11024 (as I use 64-bit system).
This patch worked around the problem on 3.17 and on the latest 3.19-rc5 kernel as well and now Kodi plays the above video 24 fps.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #1 from jtossenb jtossenb@gmail.com --- Sorry, attachment 110024
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #2 from jtossenb jtossenb@gmail.com --- And the right video URL is: https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMx...
https://bugs.freedesktop.org/show_bug.cgi?id=88658
jtossenb jtossenb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Slow video playback on |(bisected) Slow video |Kabini |playback on Kabini
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #3 from Michel Dänzer michel@daenzer.net --- What version of Mesa are you using? Does the problem already happen with Mesa commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6, or if not, can you bisect Mesa?
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #4 from jtossenb jtossenb@gmail.com --- My Arch Linux is up-to-date, I use Mesa 10.4.2 and so commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6 is included. I am ready to do bisecting Mesa if you wish, but at the moment I don't know where to start, what kernel version to use during bisecting Mesa.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #5 from Michel Dänzer michel@daenzer.net --- (In reply to jtossenb from comment #4)
My Arch Linux is up-to-date, I use Mesa 10.4.2 and so commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6 is included.
If it wasn't included, you wouldn't have the problem. :)
My question was: If you build Mesa *at* commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6, does the problem occur with that? If not, please bisect Mesa between that commit and the 10.4.2 release. If yes, there's nothing to bisect.
I am ready to do bisecting Mesa if you wish, but at the moment I don't know where to start, what kernel version to use during bisecting Mesa.
Any kernel which exposes the problem in your testing so far should do.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #6 from smoki smoki00790@gmail.com ---
Well he can just try to revert this one again, Kodi seems to does not like that:
http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/radeon/r600...
@Michel
I guess this should be reverted again as Valley does not stutter with 3.19 kernel.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #7 from jtossenb jtossenb@gmail.com --- (In reply to smoki from comment #6)
Well he can just try to revert this one again, Kodi seems to does not like that:
http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/radeon/ r600_buffer_common.c?id=7b4276d7acf2e0f77044cb50caa6ad936fa78786
Thanks, it was a good idea! I've built Mesa 10.4.2 with the reverted commit and the problem solved, Kodi works fine now. I used the original 3.18.2-2-ARCH kernel during the test.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #8 from Michel Dänzer michel@daenzer.net --- (In reply to jtossenb from comment #2)
And the right video URL is: https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMx...
I get error 403 for that.
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #9 from jtossenb jtossenb@gmail.com --- Sorry. I hope it works. https://www.dropbox.com/s/3ronrw57r3n8hsn/hi10p_sample.mp4?dl=1
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #10 from Michel Dänzer michel@daenzer.net --- Created attachment 113144 --> https://bugs.freedesktop.org/attachment.cgi?id=113144&action=edit st/mesa: Don't use PIPE_USAGE_STREAM for unpack PBOs
Does this Mesa patch help?
https://bugs.freedesktop.org/show_bug.cgi?id=88658
--- Comment #11 from jtossenb jtossenb@gmail.com --- (In reply to Michel Dänzer from comment #10)
Does this Mesa patch help?
Yes, it does! mesa-10.4.3 + this patch works fine. Thank you very much!
https://bugs.freedesktop.org/show_bug.cgi?id=88658
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Michel Dänzer michel@daenzer.net --- Module: Mesa Branch: master Commit: a338dc01866ce50bf7555ee8dc08491c7f63b585 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc0...
Author: Michel Dänzer michel.daenzer@amd.com Date: Thu Feb 5 12:46:04 2015 +0900
st/mesa: Don't use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB
dri-devel@lists.freedesktop.org