All of lore.kernel.org
 help / color / mirror / Atom feed
* UVD status on loongson 3a platform
@ 2013-04-19  8:51 Chen Jie
  2013-04-19 12:13 ` Huacai Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Chen Jie @ 2013-04-19  8:51 UTC (permalink / raw)
  To: dri-devel
  Cc: 陈华才, 王锐,
	丁汨江

Hi all,

Recently, the uvd supporting is released, and we've tried it on
loongson 3a platform.
Brief introduction about loongson 3a, it's a MIPS III compatible, 4
cores processor.

More details about the platform [1]:
* The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video card
* The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
* OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
** kernel: 3.9 + uvd related patches
** mesa: git master version (d0e9aa)

We tried three video samples:
* big_buck_bunny_1080p_h264.mov
(http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov)
* Sintel.2010.2K.x264-VODO.mp4
(http://dev.lemote.com/files/upload/software/UVD-debug/Sintel.2010.2K.x264-VODO.mp4)
* test.avi (http://dev.lemote.com/files/upload/software/UVD-debug/test.avi)

For big_buck_bunny_1080p_h264.mov, the playback is not very fluent at
the beginning, and it has some video mosaic. We've recorded a video
for it, see http://dev.lemote.com/files/upload/software/UVD-debug/bbb-1080P.mp4
For video mosaic, what could it be caused by?

For Sintel.2010.2K.x264-VODO.mp4, it has a very long wait for the first frame.
We've also recorded a video for it, see
http://dev.lemote.com/files/upload/software/UVD-debug/sintel.2K.mp4
Any idea about the long wait for the first frame?

For test.avi(video: ITU H.264, 1920x1080), it's playing back
perfectly! Thanks for the effort on UVD!

In all of these tests, the CPU usage is around 50%, and all three
video samples play well on X86 platform with the same video card.

BTW, 785G also has UVD2.0, is it supported currently? Or will it be
supported in the near future?



Regards,

Chen Jie
----
[1] http://www.lemote.com/products/computer/fulong/348.html (zh_CN)
[2] http://dev.lemote.com/653.html (zh_CN)
[3] http://dev.lemote.com/663.html (zh_CN)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UVD status on loongson 3a platform
  2013-04-19  8:51 UVD status on loongson 3a platform Chen Jie
@ 2013-04-19 12:13 ` Huacai Chen
  2013-04-19 12:27 ` Alex Deucher
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Huacai Chen @ 2013-04-19 12:13 UTC (permalink / raw)
  To: Chen Jie, Alex Deucher
  Cc: 王锐, dri-devel, 丁汨江


[-- Attachment #1.1: Type: text/plain, Size: 2337 bytes --]

Due to platform limitation, Loongson-3a use 16KB page, and X86 use 4KB
page, maybe this has some relationship with the video mosaic?


On Fri, Apr 19, 2013 at 4:51 PM, Chen Jie <chenj@lemote.com> wrote:

> Hi all,
>
> Recently, the uvd supporting is released, and we've tried it on
> loongson 3a platform.
> Brief introduction about loongson 3a, it's a MIPS III compatible, 4
> cores processor.
>
> More details about the platform [1]:
> * The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video card
> * The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
> * OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
> ** kernel: 3.9 + uvd related patches
> ** mesa: git master version (d0e9aa)
>
> We tried three video samples:
> * big_buck_bunny_1080p_h264.mov
> (
> http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov
> )
> * Sintel.2010.2K.x264-VODO.mp4
> (
> http://dev.lemote.com/files/upload/software/UVD-debug/Sintel.2010.2K.x264-VODO.mp4
> )
> * test.avi (http://dev.lemote.com/files/upload/software/UVD-debug/test.avi
> )
>
> For big_buck_bunny_1080p_h264.mov, the playback is not very fluent at
> the beginning, and it has some video mosaic. We've recorded a video
> for it, see
> http://dev.lemote.com/files/upload/software/UVD-debug/bbb-1080P.mp4
> For video mosaic, what could it be caused by?
>
> For Sintel.2010.2K.x264-VODO.mp4, it has a very long wait for the first
> frame.
> We've also recorded a video for it, see
> http://dev.lemote.com/files/upload/software/UVD-debug/sintel.2K.mp4
> Any idea about the long wait for the first frame?
>
> For test.avi(video: ITU H.264, 1920x1080), it's playing back
> perfectly! Thanks for the effort on UVD!
>
> In all of these tests, the CPU usage is around 50%, and all three
> video samples play well on X86 platform with the same video card.
>
> BTW, 785G also has UVD2.0, is it supported currently? Or will it be
> supported in the near future?
>
>
>
> Regards,
>
> Chen Jie
> ----
> [1] http://www.lemote.com/products/computer/fulong/348.html (zh_CN)
> [2] http://dev.lemote.com/653.html (zh_CN)
> [3] http://dev.lemote.com/663.html (zh_CN)
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>

[-- Attachment #1.2: Type: text/html, Size: 3674 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UVD status on loongson 3a platform
  2013-04-19  8:51 UVD status on loongson 3a platform Chen Jie
  2013-04-19 12:13 ` Huacai Chen
@ 2013-04-19 12:27 ` Alex Deucher
  2013-04-19 15:34 ` Christian König
  2013-04-19 22:01 ` Dieter Nützel
  3 siblings, 0 replies; 6+ messages in thread
From: Alex Deucher @ 2013-04-19 12:27 UTC (permalink / raw)
  To: Chen Jie
  Cc: 陈华才, 王锐, dri-devel,
	丁汨江

On Fri, Apr 19, 2013 at 4:51 AM, Chen Jie <chenj@lemote.com> wrote:
> Hi all,
>
> Recently, the uvd supporting is released, and we've tried it on
> loongson 3a platform.
> Brief introduction about loongson 3a, it's a MIPS III compatible, 4
> cores processor.
>
> More details about the platform [1]:
> * The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video card
> * The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
> * OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
> ** kernel: 3.9 + uvd related patches
> ** mesa: git master version (d0e9aa)
>
> We tried three video samples:
> * big_buck_bunny_1080p_h264.mov
> (http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov)
> * Sintel.2010.2K.x264-VODO.mp4
> (http://dev.lemote.com/files/upload/software/UVD-debug/Sintel.2010.2K.x264-VODO.mp4)
> * test.avi (http://dev.lemote.com/files/upload/software/UVD-debug/test.avi)
>
> For big_buck_bunny_1080p_h264.mov, the playback is not very fluent at
> the beginning, and it has some video mosaic. We've recorded a video
> for it, see http://dev.lemote.com/files/upload/software/UVD-debug/bbb-1080P.mp4
> For video mosaic, what could it be caused by?
>
> For Sintel.2010.2K.x264-VODO.mp4, it has a very long wait for the first frame.
> We've also recorded a video for it, see
> http://dev.lemote.com/files/upload/software/UVD-debug/sintel.2K.mp4
> Any idea about the long wait for the first frame?
>
> For test.avi(video: ITU H.264, 1920x1080), it's playing back
> perfectly! Thanks for the effort on UVD!
>
> In all of these tests, the CPU usage is around 50%, and all three
> video samples play well on X86 platform with the same video card.
>
> BTW, 785G also has UVD2.0, is it supported currently? Or will it be
> supported in the near future?

Early UVD 2 chips like RS780/880 and RV770 are not yet supported due
to differences in the UVD hardware compared to later generations.  We
are currently looking into supporting UVD on those chips in open
source, but nothing is available yet.

Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UVD status on loongson 3a platform
  2013-04-19  8:51 UVD status on loongson 3a platform Chen Jie
  2013-04-19 12:13 ` Huacai Chen
  2013-04-19 12:27 ` Alex Deucher
@ 2013-04-19 15:34 ` Christian König
  2013-04-19 19:31   ` Dieter Nützel
  2013-04-19 22:01 ` Dieter Nützel
  3 siblings, 1 reply; 6+ messages in thread
From: Christian König @ 2013-04-19 15:34 UTC (permalink / raw)
  To: Chen Jie
  Cc: 陈华才, 王锐, dri-devel,
	丁汨江

Am 19.04.2013 10:51, schrieb Chen Jie:
> Hi all,
>
> Recently, the uvd supporting is released, and we've tried it on
> loongson 3a platform.
> Brief introduction about loongson 3a, it's a MIPS III compatible, 4
> cores processor.
>
> More details about the platform [1]:
> * The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video card
> * The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
> * OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
> ** kernel: 3.9 + uvd related patches
> ** mesa: git master version (d0e9aa)
>
> We tried three video samples:
> * big_buck_bunny_1080p_h264.mov
> (http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov)
> * Sintel.2010.2K.x264-VODO.mp4
> (http://dev.lemote.com/files/upload/software/UVD-debug/Sintel.2010.2K.x264-VODO.mp4)
> * test.avi (http://dev.lemote.com/files/upload/software/UVD-debug/test.avi)
>
> For big_buck_bunny_1080p_h264.mov, the playback is not very fluent at
> the beginning, and it has some video mosaic. We've recorded a video
> for it, see http://dev.lemote.com/files/upload/software/UVD-debug/bbb-1080P.mp4
> For video mosaic, what could it be caused by?

That looks like a known problem with the semaphores and also happens on 
X86, it gets worse when you have a slower CPU and/or less bandwidth 
cause then UVD needs to block on the DMA to wait till everything is in 
place. I'm going to try to release the workaround for it.

> For Sintel.2010.2K.x264-VODO.mp4, it has a very long wait for the first frame.
> We've also recorded a video for it, see
> http://dev.lemote.com/files/upload/software/UVD-debug/sintel.2K.mp4
> Any idea about the long wait for the first frame?

No idea, that also happens on X86, but the wait is actually not as long. 
If I'm not completely wrong it seems to be mplayer who is causing this 
startup delay.

> For test.avi(video: ITU H.264, 1920x1080), it's playing back
> perfectly! Thanks for the effort on UVD!
>
> In all of these tests, the CPU usage is around 50%, and all three
> video samples play well on X86 platform with the same video card.
>
> BTW, 785G also has UVD2.0, is it supported currently? Or will it be
> supported in the near future?

No, as Alex already stated that chip is quite different to the other UVD 
generations, and we are currently looking into releasing code for it, 
but can't promise anything.

Cheers,
Christian.

>
>
> Regards,
>
> Chen Jie
> ----
> [1] http://www.lemote.com/products/computer/fulong/348.html (zh_CN)
> [2] http://dev.lemote.com/653.html (zh_CN)
> [3] http://dev.lemote.com/663.html (zh_CN)
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UVD status on loongson 3a platform
  2013-04-19 15:34 ` Christian König
@ 2013-04-19 19:31   ` Dieter Nützel
  0 siblings, 0 replies; 6+ messages in thread
From: Dieter Nützel @ 2013-04-19 19:31 UTC (permalink / raw)
  To: Christian König; +Cc: dri-devel, Chen Jie

Am 2013-04-19 17:34, schrieb Christian König:
> Am 19.04.2013 10:51, schrieb Chen Jie:
> Hi all,
> 
> Recently, the uvd supporting is released, and we've tried it on
> loongson 3a platform.
> Brief introduction about loongson 3a, it's a MIPS III compatible, 4
> cores processor.
> 
> More details about the platform [1]:
> * The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video 
> card
> * The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
> * OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
> ** kernel: 3.9 + uvd related patches
> ** mesa: git master version (d0e9aa)
> 
> We tried three video samples:
> * big_buck_bunny_1080p_h264.mov
> (http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov)
> * Sintel.2010.2K.x264-VODO.mp4
> (http://dev.lemote.com/files/upload/software/UVD-debug/Sintel.2010.2K.x264-VODO.mp4)
> * test.avi 
> (http://dev.lemote.com/files/upload/software/UVD-debug/test.avi)
> 
> For big_buck_bunny_1080p_h264.mov, the playback is not very fluent at
> the beginning, and it has some video mosaic. We've recorded a video
> for it, see 
> http://dev.lemote.com/files/upload/software/UVD-debug/bbb-1080P.mp4
> For video mosaic, what could it be caused by?
> 
> That looks like a known problem with the semaphores and also happens
> on X86, it gets worse when you have a slower CPU and/or less bandwidth
> cause then UVD needs to block on the DMA to wait till everything is in
> place. I'm going to try to release the workaround for it.

With '...when you have a slower CPU and/or less bandwidth...' you 
naturally mean my Duron 1800/RV730 AGP (!!!) system, am I right? ;-)

Yes, that's the problem I get since the 'shadow' is fixed.
I can get it much faster when I go forward or backward in mplayer.

Do you have anything released?

> For Sintel.2010.2K.x264-VODO.mp4, it has a very long wait for the first 
> frame.
> We've also recorded a video for it, see
> http://dev.lemote.com/files/upload/software/UVD-debug/sintel.2K.mp4
> Any idea about the long wait for the first frame?
> 
> No idea, that also happens on X86, but the wait is actually not as
> long. If I'm not completely wrong it seems to be mplayer who is
> causing this startup delay.

I mostly don't see such delay, here.
But hey, I get this with test.avi, now:

[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
radeon: The kernel rejected CS, see dmesg for more information.105 0
radeon: The kernel rejected CS, see dmesg for more information.107 0

[ 8362.657224] [drm:radeon_uvd_cs_msg] *ERROR* Invalid UVD handle!
[ 8362.657236] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[ 8362.693846] [drm:radeon_uvd_cs_msg] *ERROR* Invalid UVD handle!
[ 8362.693859] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[ 8362.726656] [drm:radeon_uvd_cs_reloc] *ERROR* buffer to small 
(3342336 / 7077888)!
[ 8362.726668] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[ 8427.206169] [drm:radeon_uvd_cs_reloc] *ERROR* buffer to small 
(3342336 / 7077888)!
[ 8427.206179] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
[ 8428.296537] [drm:radeon_uvd_cs_reloc] *ERROR* buffer to small 
(3342336 / 7077888)!
[ 8428.296548] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !

> For test.avi(video: ITU H.264, 1920x1080), it's playing back
> perfectly! Thanks for the effort on UVD!

Perfectly, with such mosaic, after some few seconds?
And your test.avi is not seekable.

A:   7.7 V:   7.7 A-V:  0.002 ct: -0.074 231/231 49% 108%  3.5% 131 0
Cannot seek in raw AVI streams. (Index required, try with the -idx 
switch.)
A:   8.7 V:   8.5 A-V:  0.198 ct: -0.076 254/254 45% 104%  3.3% 132 0
Cannot seek in raw AVI streams. (Index required, try with the -idx 
switch.)
A:   9.6 V:   9.1 A-V:  0.495 ct: -0.063 272/272 42% 107%  3.8% 139 0
Cannot seek in raw AVI streams. (Index required, try with the -idx 
switch.)
A:  10.7 V:  10.6 A-V:  0.076 ct: -0.068 319/319 36% 100%  3.4% 178 0
Cannot seek in raw AVI streams. (Index required, try with the -idx 
switch.)
A:  36.4 V:  36.4 A-V: -0.004 ct: -0.081 1092/1092 12% 32%  1.6% 182 0

Cheers,
Dieter

PS Alex's drm-next-3.10, mesa master, drm-2.4.44 master
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UVD status on loongson 3a platform
  2013-04-19  8:51 UVD status on loongson 3a platform Chen Jie
                   ` (2 preceding siblings ...)
  2013-04-19 15:34 ` Christian König
@ 2013-04-19 22:01 ` Dieter Nützel
  3 siblings, 0 replies; 6+ messages in thread
From: Dieter Nützel @ 2013-04-19 22:01 UTC (permalink / raw)
  To: Chen Jie, Huacai Chen, Tom Stellard, dri-devel

Am 2013-04-19 10:51, schrieb Chen Jie:
> Hi all,
> 
> Recently, the uvd supporting is released, and we've tried it on
> loongson 3a platform.
> Brief introduction about loongson 3a, it's a MIPS III compatible, 4
> cores processor.
> 
> More details about the platform [1]:
> * The Board: RS780E + SB710 chipset, with an AMD radeon HD6570 video 
> card
> * The kernel is 64bits(n64 ABI), and the userland is 32bits(o32 ABI)
> * OS: LOonux 3.3.6 [2] + LTP-uvd-installer-20130419.bin [3]
> ** kernel: 3.9 + uvd related patches
> ** mesa: git master version (d0e9aa)

Are you guys interested in OpenCL (on your platform)?
OpenCV (one of the basis for digikam for example) has some support for 
Nvidia and now AMD. It is under development by Institute Of Software 
Chinese Academy Of Science.
AFDS 2012
http://www.youtube.com/watch?v=LhIuSShTO0g

Even the next big Gimp version (2.10) should be accelerated by OpenCL 
through GEGL.

Wouldn't it be cool to have OSS OpenCL even for 'smaller' sized gfx 
cards from AMD?
You are a hardware shop so maybe your demand is it AMD worth to have 
something around?

Regards,
Dieter

PS Here comes something about Nvidia's other collaboration...
http://www.h-online.com/open/features/Kernel-comment-Bad-show-NVIDIA-1845899.html

> ----
> [1] http://www.lemote.com/products/computer/fulong/348.html (zh_CN)
> [2] http://dev.lemote.com/653.html (zh_CN)
> [3] http://dev.lemote.com/663.html (zh_CN)
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-19 22:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19  8:51 UVD status on loongson 3a platform Chen Jie
2013-04-19 12:13 ` Huacai Chen
2013-04-19 12:27 ` Alex Deucher
2013-04-19 15:34 ` Christian König
2013-04-19 19:31   ` Dieter Nützel
2013-04-19 22:01 ` Dieter Nützel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.