* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
@ 2021-03-15 16:57 ` bugzilla-daemon
2021-03-15 17:35 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-15 16:57 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #1 from Sefa Eyeoglu (contact@scrumplex.net) ---
ADDITIONAL SYSTEM INFO
OS: Arch Linux (with testing repos)
Kernels with this issue: 5.11.6.arch1, 5.11.6.zen1, 5.12rc2 (built from Arch
Linux User Repository)
Kernels without this issue: 5.10.23-1-lts
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
2021-03-15 16:57 ` [Bug 212293] " bugzilla-daemon
@ 2021-03-15 17:35 ` bugzilla-daemon
2021-03-16 18:18 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-15 17:35 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alexdeucher@gmail.com
--- Comment #2 from Alex Deucher (alexdeucher@gmail.com) ---
Can you bisect?
https://www.kernel.org/doc/html/latest/admin-guide/bug-bisect.html
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
2021-03-15 16:57 ` [Bug 212293] " bugzilla-daemon
2021-03-15 17:35 ` bugzilla-daemon
@ 2021-03-16 18:18 ` bugzilla-daemon
2021-03-16 18:18 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-16 18:18 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #3 from Sefa Eyeoglu (contact@scrumplex.net) ---
This took some time, as I apparently went wrong paths sometimes.
Anyways.
I bisected between tags v5.10 (good) and v5.11 (bad), while only looking at
path "drivers/gpu/drm/amd".
At the end I landed at commit 12f4849a1cfd69f3c37cca042f2e9c512f923741 by Simon
Ser (emersion).
I will do some debugging myself to see if it's the real deal, but that change
might very well be it.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
` (2 preceding siblings ...)
2021-03-16 18:18 ` bugzilla-daemon
@ 2021-03-16 18:18 ` bugzilla-daemon
2021-03-16 18:19 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-16 18:18 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #4 from Sefa Eyeoglu (contact@scrumplex.net) ---
Created attachment 295887
--> https://bugzilla.kernel.org/attachment.cgi?id=295887&action=edit
git bisect log
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
` (3 preceding siblings ...)
2021-03-16 18:18 ` bugzilla-daemon
@ 2021-03-16 18:19 ` bugzilla-daemon
2021-03-16 19:54 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-16 18:19 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #5 from Sefa Eyeoglu (contact@scrumplex.net) ---
I was unable to add Simon Ser to CC
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
` (4 preceding siblings ...)
2021-03-16 18:19 ` bugzilla-daemon
@ 2021-03-16 19:54 ` bugzilla-daemon
2021-03-17 8:19 ` bugzilla-daemon
2021-05-29 15:07 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-16 19:54 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #6 from Sefa Eyeoglu (contact@scrumplex.net) ---
Okay I tried to debug it by printing.
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 573cf17262da..8e6b890ad611 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -9271,6 +9271,8 @@ static int dm_check_crtc_cursor(struct drm_atomic_state
*state,
return 0;
}
+ printk("SCRUMPLEX_DEBUG %d %d %d %d", new_cursor_state->src_w,
new_cursor_state->src_h, new_primary_state->src_w, new_primary_state->src_h);
+
cursor_scale_w = new_cursor_state->crtc_w * 1000 /
(new_cursor_state->src_w >> 16);
cursor_scale_h = new_cursor_state->crtc_h * 1000 /
--
2.31.0
This adds my very professional printk, which outputs all values that are used
to divide in any way later.
While reproducing the issue I got the following output
[ 89.850437] SCRUMPLEX_DEBUG 8388608 8388608 0 0
So some weird state is causing the src_w and src_h values of
"new_primary_state" to be 0.
That would explain the issue to me. Now I don't know enough about
drm_plane_state and drm_atomic_get_new_plane_state to say why this is like
this. But as with most of these kinds of issues. A simple condition check
beforehand would solve this issue.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
` (5 preceding siblings ...)
2021-03-16 19:54 ` bugzilla-daemon
@ 2021-03-17 8:19 ` bugzilla-daemon
2021-05-29 15:07 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-03-17 8:19 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
--- Comment #7 from Sefa Eyeoglu (contact@scrumplex.net) ---
I submitted a patch here:
https://lists.freedesktop.org/archives/amd-gfx/2021-March/060754.html
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* [Bug 212293] [amdgpu] divide error: 0000 on resume from S3
2021-03-15 16:49 [Bug 212293] New: [amdgpu] divide error: 0000 on resume from S3 bugzilla-daemon
` (6 preceding siblings ...)
2021-03-17 8:19 ` bugzilla-daemon
@ 2021-05-29 15:07 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2021-05-29 15:07 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=212293
Sefa Eyeoglu (contact@scrumplex.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
--- Comment #8 from Sefa Eyeoglu (contact@scrumplex.net) ---
Fixed in 5.11 and 5.12
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread