* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
@ 2019-03-16 17:48 ` bugzilla-daemon
2019-03-16 17:48 ` bugzilla-daemon
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-16 17:48 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 359 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #1 from Rafał Miłecki <zajec5@gmail.com> ---
Created attachment 143694
--> https://bugs.freedesktop.org/attachment.cgi?id=143694&action=edit
good frame ("Use hardware acceleration when available" disabled)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1500 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
2019-03-16 17:48 ` bugzilla-daemon
@ 2019-03-16 17:48 ` bugzilla-daemon
2019-03-16 23:20 ` bugzilla-daemon
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-16 17:48 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #2 from Rafał Miłecki <zajec5@gmail.com> ---
Created attachment 143695
--> https://bugs.freedesktop.org/attachment.cgi?id=143695&action=edit
bad frame ("Use hardware acceleration when available" enabled)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1494 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
2019-03-16 17:48 ` bugzilla-daemon
2019-03-16 17:48 ` bugzilla-daemon
@ 2019-03-16 23:20 ` bugzilla-daemon
2019-03-16 23:51 ` bugzilla-daemon
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-16 23:20 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 392 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #3 from Rafał Miłecki <zajec5@gmail.com> ---
This is a regression introduced by the commit 36258308a794 ("st/va: fix the
incorrect max profiles report").
Previously I was using Mesa 18.2 for a month or two without ever seeing this
issue.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1293 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (2 preceding siblings ...)
2019-03-16 23:20 ` bugzilla-daemon
@ 2019-03-16 23:51 ` bugzilla-daemon
2019-03-17 2:24 ` bugzilla-daemon
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-16 23:51 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 3122 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #4 from Rafał Miłecki <zajec5@gmail.com> ---
Another problem caused by the above commit 36258308a794 is re-introducing
corrupted colors in YouTube playbacks when using Chromium with "Use hardware
acceleration when available" enabled. That was originally reported by me in the
bug 109080.
Playing YouTube video using kernel 5.0.1 and Mesa 18.3.4 results in corrupted
colors and following errors:
[ 6376.312717] gmc_v9_0_process_interrupt: 38 callbacks suppressed
[ 6376.312726] amdgpu 0000:04:00.0: [mmhub] VMC page fault (src_id:0 ring:40
vmid:3 pasid:32775, for process chromium pid 21146 thread chromium -:cs0 pid
21208)
[ 6376.312730] amdgpu 0000:04:00.0: in page starting at address
0x0000800106198000 from 18
[ 6376.312733] amdgpu 0000:04:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00340451
[ 6376.312746] amdgpu 0000:04:00.0: [mmhub] VMC page fault (src_id:0 ring:40
vmid:3 pasid:32775, for process chromium pid 21146 thread chromium -:cs0 pid
21208)
[ 6376.312748] amdgpu 0000:04:00.0: in page starting at address
0x0000800106199000 from 18
[ 6376.312750] amdgpu 0000:04:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 6376.312762] amdgpu 0000:04:00.0: [mmhub] VMC page fault (src_id:0 ring:174
vmid:0 pasid:0, for process pid 0 thread pid 0)
[ 6376.312764] amdgpu 0000:04:00.0: in page starting at address
0x0000000000000000 from 18
[ 6376.312766] amdgpu 0000:04:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x0000073C
[ 6376.312781] amdgpu 0000:04:00.0: [mmhub] VMC page fault (src_id:0 ring:158
vmid:0 pasid:0, for process pid 0 thread pid 0)
[ 6376.312783] amdgpu 0000:04:00.0: in page starting at address
0x0000000000000000 from 18
[ 6376.312785] amdgpu 0000:04:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 6386.301258] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec timeout,
signaled seq=192, emitted seq=194
[ 6386.301398] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information:
process pid 0 thread pid 0
[ 6386.301414] [drm] GPU recovery disabled.
[ 6396.541548] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec timeout,
signaled seq=192, emitted seq=194
[ 6396.541636] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information:
process pid 0 thread pid 0
[ 6396.541639] [drm] GPU recovery disabled.
[ 6406.782141] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec timeout,
signaled seq=192, emitted seq=194
[ 6406.782241] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information:
process pid 0 thread pid 0
[ 6406.782244] [drm] GPU recovery disabled.
[ 6417.022165] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec timeout,
signaled seq=192, emitted seq=194
[ 6417.022268] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information:
process pid 0 thread pid 0
[ 6417.022271] [drm] GPU recovery disabled.
my screen freezes shortly after that.
I've verified that reverting 36258308a794 from the top of 18.3.4 release fixes
both issues.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4209 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (3 preceding siblings ...)
2019-03-16 23:51 ` bugzilla-daemon
@ 2019-03-17 2:24 ` bugzilla-daemon
2019-03-17 2:42 ` bugzilla-daemon
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-17 2:24 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #5 from leoxsliu@gmail.com ---
This is about what the patch does:
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -175,7 +175,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
ctx->version_minor = 1;
*ctx->vtable = vtable;
*ctx->vtable_vpp = vtable_vpp;
- ctx->max_profiles = PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH -
PIPE_VIDEO_PROFILE_UNKNOWN;
+ ctx->max_profiles = PIPE_VIDEO_PROFILE_MAX - PIPE_VIDEO_PROFILE_UNKNOWN - 1;
It just correct the number of max_profile, that HW can support.
It's not make sense to me this would cause such issue based on the ticket,
unless player wrongly use the this after querying this.
Can this be reproduced with Mesa master branch? or Can this be reproduced with
any other players?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1824 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (4 preceding siblings ...)
2019-03-17 2:24 ` bugzilla-daemon
@ 2019-03-17 2:42 ` bugzilla-daemon
2019-03-17 22:16 ` bugzilla-daemon
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-17 2:42 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 302 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #6 from leoxsliu@gmail.com ---
Other confusion is that the patch is to fix the chromium browser issue
https://bugs.freedesktop.org/show_bug.cgi?id=109107
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1372 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (5 preceding siblings ...)
2019-03-17 2:42 ` bugzilla-daemon
@ 2019-03-17 22:16 ` bugzilla-daemon
2019-03-17 22:19 ` bugzilla-daemon
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-17 22:16 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1989 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #7 from Rafał Miłecki <zajec5@gmail.com> ---
Thanks for looking at this Leo!
Initially I didn't realize the consequences of your patch. I hopefully
understand it now.
Before the commit 36258308a794 ("st/va: fix the incorrect max profiles report")
my Chromium was simply NOT USING any Video Acceleration. Chromium was
complaining with the following errors:
[21202:21202:0317/122002.223002:ERROR:vaapi_wrapper.cc(587)] :
vaQueryConfigProfiles returned: 14
[21202:21202:0317/122002.223045:ERROR:vaapi_wrapper.cc(587)] :
vaQueryConfigProfiles returned: 14
So your change didn't introduce any regression in JPEG hardware decoding. It
only exposed an existing bug by allowing Chromium to use Video Acceleration.
*****
Let me provide some new (hopefully useful) info on this problem:
1) This problem is clearly about the JPEG decoding. If I revert commit
55e7de7b1935 ("radeonsi: enable vcn jpeg decode for raven") from any recent
branch (18.3, 19.0 or master) the problem disappears.
2) The problem exists from the beginning. If I do:
git checkout 55e7de7b1935
git cherry-pick 36258308a794
git cherry-pick dafa02c980c1
I get a Chromium with working Video Acceleration AND half bottom of webcam
frames being green.
3) I tested few branches:
18.3: bottom half of webcam frames are green
19.0: whole webcam frames are green
master: whole webcam frames are green
As you can see things got worse with the 19.0 branch (frames are totally green
instead of half green). That regression was added by the commit 1b25d340b791
("radeonsi: use compute for resource_copy_region when possible"). Hopefully
this is some hint on what's wrong and what's causing the original problem.
*****
Leo: I didn't try any other players, I've yet to learn how to use JPEG hw
decoding with some other application/player.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2910 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (6 preceding siblings ...)
2019-03-17 22:16 ` bugzilla-daemon
@ 2019-03-17 22:19 ` bugzilla-daemon
2019-03-18 13:12 ` bugzilla-daemon
2019-09-25 18:49 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-17 22:19 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #8 from Rafał Miłecki <zajec5@gmail.com> ---
Created attachment 143705
--> https://bugs.freedesktop.org/attachment.cgi?id=143705&action=edit
all green frame (started with the commit 1b25d340b791 ("radeonsi: use compute
for resource_copy_region when possible"))
Webcam frames became all green with the commit 1b25d340b791 ("radeonsi: use
compute for resource_copy_region when possible"):
https://cgit.freedesktop.org/mesa/mesa/commit/?id=1b25d340b791ad8350bdfb27f1a91ac79fa17748
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2003 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (7 preceding siblings ...)
2019-03-17 22:19 ` bugzilla-daemon
@ 2019-03-18 13:12 ` bugzilla-daemon
2019-09-25 18:49 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-03-18 13:12 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 317 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
--- Comment #9 from leoxsliu@gmail.com ---
It makes more sense now, we'll take a look. But the thing is we don't got Raven
system with a camera, so it's probably hard to reproduce.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1186 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] 11+ messages in thread* [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING)
2019-03-16 17:42 [Bug 110140] Green bottom half of video frame when using JPEG acceleration (vcn_v1_0_jpeg_ring_emit_fence() WARNING) bugzilla-daemon
` (8 preceding siblings ...)
2019-03-18 13:12 ` bugzilla-daemon
@ 2019-09-25 18:49 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-09-25 18:49 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 843 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110140
GitLab Migration User <gitlab-migration@fdo.invalid> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|NEW |RESOLVED
--- Comment #10 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- 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/mesa/mesa/issues/1383.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2609 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] 11+ messages in thread