All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
@ 2016-08-08 10:18 bugzilla-daemon
  2016-08-08 12:11 ` bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-08-08 10:18 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

            Bug ID: 97240
           Summary: VCE encoding sometimes locks up since 4.8-rc1
           Product: DRI
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: haagch@frickel.club

RX 480 with mesa git etc.

Running this gstreamer pipeline

gst-launch-1.0 -e filesrc location=big_buck_bunny_720p_1mb.mp4 ! qtdemux !
decodebin ! videoconvert ! omxh264enc ! h264parse ! matroskamux ! filesink
location=/tmp/output.mkv

works fine on 4.7.

On 4.8-rc1 running it a couple of times randomly locks up the gst-launch
process. Then while it hangs, running glxgears or so locks up everything.
On the plus side, when it works, it works a lot quicker on 4.8.

I'll look into bisecting unless someone else can reproduce and already knows
why it happens.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
@ 2016-08-08 12:11 ` bugzilla-daemon
  2016-08-08 14:03 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-08-08 12:11 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

--- Comment #1 from Christoph Haag <haagch@frickel.club> ---
Created attachment 125591
  --> https://bugs.freedesktop.org/attachment.cgi?id=125591&action=edit
dmesg

Almost forgot dmesg.

I think these messages correspond with the hang:

[   64.406834]
                failed to send pre message 15b ret is 0
[  106.006518]
                failed to send pre message 155 ret is 0

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
  2016-08-08 12:11 ` bugzilla-daemon
@ 2016-08-08 14:03 ` bugzilla-daemon
  2016-08-09 16:10 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-08-08 14:03 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

Christian König <deathsimple@vodafone.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deathsimple@vodafone.de

--- Comment #2 from Christian König <deathsimple@vodafone.de> ---
Sounds like a power management problem to me. Could you bisect?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
  2016-08-08 12:11 ` bugzilla-daemon
  2016-08-08 14:03 ` bugzilla-daemon
@ 2016-08-09 16:10 ` bugzilla-daemon
  2016-08-09 16:46 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-08-09 16:10 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

--- Comment #3 from Christoph Haag <haagch@frickel.club> ---
I'm not completely confident that I marked every bad commit, but I got this:

c4120d55ffa44746584a8a1e5b00cb7eafc006ff is the first bad commit
commit c4120d55ffa44746584a8a1e5b00cb7eafc006ff
Author: Christian König <christian.koenig@amd.com>
Date:   Wed Jul 20 14:11:26 2016 +0200

    drm/amdgpu: use begin/end_use for UVD power/clock gating

    This fixes turning power and clock on when it is actually needed.

    Signed-off-by: Christian König <christian.koenig@amd.com>
    Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

:040000 040000 6dbab0f2ea26ecf48e88531eee491c2d0ebbc418
8dedcdeeb16e8a4f7a06a8934aaf912469be2171 M      drivers

Also the decodebin element uses vaapi to decode the video, so I may have
mischaracterized the bug in the first place that it's really an UVD problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2016-08-09 16:10 ` bugzilla-daemon
@ 2016-08-09 16:46 ` bugzilla-daemon
  2016-09-29  8:55 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-08-09 16:46 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

--- Comment #4 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Christoph Haag from comment #3)

> Also the decodebin element uses vaapi to decode the video, so I may have
> mischaracterized the bug in the first place that it's really an UVD problem.

So does something like below work?

for X in $(seq 1 50); do gst-launch-1.0 -e filesrc
location=big_buck_bunny_720p_1mb.mp4 ! qtdemux ! avdec_h264 ! videoconvert !
omxh264enc ! fakesink; done

My Tonga used to have this issue and this post prompted me to look what fixed
it =
it was a recent tonga firmware upgrade so not much use to you, also I think
power gating for uvd/vce is disabled for tonga - so maybe another difference.

While the issue existed I could work around by forcing my clocks to high when
testing vce =

echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
 then 
echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level

after testing finished to keep thinks cooler :-) (note that if you change modes
or your monitor goes into dpms this will happen anyway)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2016-08-09 16:46 ` bugzilla-daemon
@ 2016-09-29  8:55 ` bugzilla-daemon
  2016-10-16 17:03 ` [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 (when simultaneously using vaapi decoding) bugzilla-daemon
  2019-11-19  8:09 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-09-29  8:55 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

--- Comment #5 from Christoph Haag <haagch@frickel.club> ---
(In reply to Andy Furniss from comment #4)
> (In reply to Christoph Haag from comment #3)
> 
> > Also the decodebin element uses vaapi to decode the video, so I may have
> > mischaracterized the bug in the first place that it's really an UVD problem.
> 
> So does something like below work?
> 
> for X in $(seq 1 50); do gst-launch-1.0 -e filesrc
> location=big_buck_bunny_720p_1mb.mp4 ! qtdemux ! avdec_h264 ! videoconvert !
> omxh264enc ! fakesink; done

Yes.

> My Tonga used to have this issue and this post prompted me to look what
> fixed it =
> it was a recent tonga firmware upgrade so not much use to you, also I think
> power gating for uvd/vce is disabled for tonga - so maybe another difference.
> 
> While the issue existed I could work around by forcing my clocks to high
> when testing vce =
> 
> echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
>  then 
> echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level
> 
> after testing finished to keep thinks cooler :-) (note that if you change
> modes or your monitor goes into dpms this will happen anyway)

No.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 (when simultaneously using vaapi decoding)
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2016-09-29  8:55 ` bugzilla-daemon
@ 2016-10-16 17:03 ` bugzilla-daemon
  2019-11-19  8:09 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-10-16 17:03 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

Christoph Haag <haagch@frickel.club> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|VCE encoding sometimes      |VCE encoding sometimes
                   |locks up since 4.8-rc1      |locks up since 4.8-rc1
                   |                            |(when simultaneously using
                   |                            |vaapi decoding)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

* [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 (when simultaneously using vaapi decoding)
  2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2016-10-16 17:03 ` [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 (when simultaneously using vaapi decoding) bugzilla-daemon
@ 2019-11-19  8:09 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-11-19  8:09 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=97240

Martin Peres <martin.peres@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #6 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/86.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

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

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

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

end of thread, other threads:[~2019-11-19  8:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 10:18 [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 bugzilla-daemon
2016-08-08 12:11 ` bugzilla-daemon
2016-08-08 14:03 ` bugzilla-daemon
2016-08-09 16:10 ` bugzilla-daemon
2016-08-09 16:46 ` bugzilla-daemon
2016-09-29  8:55 ` bugzilla-daemon
2016-10-16 17:03 ` [Bug 97240] VCE encoding sometimes locks up since 4.8-rc1 (when simultaneously using vaapi decoding) bugzilla-daemon
2019-11-19  8:09 ` bugzilla-daemon

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.