All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22)
@ 2019-01-14 15:17 bugzilla-daemon
  2019-01-14 15:24 ` [Bug 202263] " bugzilla-daemon
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-14 15:17 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

            Bug ID: 202263
           Summary: AMDGPU: DRM couldn't schedule ib on ring (-22)
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.19.12-1-default
          Hardware: Intel
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@kernel-bugs.osdl.org
          Reporter: e.isik27@gmail.com
        Regression: No

Hello everyone!

I have some troubles with the amdgpu driver.

I'm getting some errors from the kernel when I force to use the discrete GPU.
By the way, I have a hybrid GPU System. (Lenovo Laptop: Intel HD & AMD Radeon
530)  

First of all I cleared the dmesg logs.

Then I executed:

DRI_PRIME=1 glxinfo | grep OpenGL

and then I got this errors:

https://pastebin.com/iaejbQ2t (for full dmesg)

[  422.628116] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628146] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628147] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628182] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628185] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628212] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628214] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628241] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628243] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628271] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628273] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628300] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628301] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628328] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.628330] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628357] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  422.629694] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.629743] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)

But when I set the DRI_PRIME value to 0, this errors doesn't appear.

I also tried with DRI_PRIME=1 glxgears.

There I get TONS of errors like this here:
[  422.628301] amdgpu 0000:01:00.0: couldn't schedule ib on ring <sdma0>
[  422.628328] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)

I am using the latest version of OpenSUSE tumbleweed.
Kernel: 4.19.12-1-default

amdgpu is installed & kernel-firmware, too.

Thanks!!

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
@ 2019-01-14 15:24 ` bugzilla-daemon
  2019-01-15  7:07 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-14 15:24 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

Alex Deucher (alexdeucher@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexdeucher@gmail.com

--- Comment #1 from Alex Deucher (alexdeucher@gmail.com) ---
Please attach your full dmesg output form boot (so it doesn't get lost when the
pastebin goes away) and xorg log (if using X).

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
  2019-01-14 15:24 ` [Bug 202263] " bugzilla-daemon
@ 2019-01-15  7:07 ` bugzilla-daemon
  2019-01-15  7:07 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-15  7:07 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #2 from Emre Işık (e.isik27@gmail.com) ---
Created attachment 280479
  --> https://bugzilla.kernel.org/attachment.cgi?id=280479&action=edit
dmesg.log

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
  2019-01-14 15:24 ` [Bug 202263] " bugzilla-daemon
  2019-01-15  7:07 ` bugzilla-daemon
@ 2019-01-15  7:07 ` bugzilla-daemon
  2019-01-15  7:08 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-15  7:07 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #3 from Emre Işık (e.isik27@gmail.com) ---
Created attachment 280481
  --> https://bugzilla.kernel.org/attachment.cgi?id=280481&action=edit
Xorg.0.log

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (2 preceding siblings ...)
  2019-01-15  7:07 ` bugzilla-daemon
@ 2019-01-15  7:08 ` bugzilla-daemon
  2019-01-15  8:30 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-15  7:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #4 from Emre Işık (e.isik27@gmail.com) ---
(In reply to Alex Deucher from comment #1)
> Please attach your full dmesg output form boot (so it doesn't get lost when
> the pastebin goes away) and xorg log (if using X).

Okey I uploaded the both log files here.
Thanks for the fast reply!

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (3 preceding siblings ...)
  2019-01-15  7:08 ` bugzilla-daemon
@ 2019-01-15  8:30 ` bugzilla-daemon
  2019-01-15 17:11 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-15  8:30 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #5 from Emre Işık (e.isik27@gmail.com) ---
I found this line in my dmesg logs:

> [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than
> 5secs aborting

So I searched and found some threads about TLP and AMDGPU problems.
They told they removed TLP, so I (just for testing) removed TLP from my Laptop
system and then the errors are gone.
It worked. But TLP shouldn't be removed because it is responsible about the
power managment. Should I just install "tuned" or other TLP-like programs or is
this error a kernel issue?

Thanks, again!

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (4 preceding siblings ...)
  2019-01-15  8:30 ` bugzilla-daemon
@ 2019-01-15 17:11 ` bugzilla-daemon
  2019-01-16  8:41 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-15 17:11 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #6 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 280505
  --> https://bugzilla.kernel.org/attachment.cgi?id=280505&action=edit
possible fix

Does this patch fix the issue?

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (5 preceding siblings ...)
  2019-01-15 17:11 ` bugzilla-daemon
@ 2019-01-16  8:41 ` bugzilla-daemon
  2019-01-16 11:41 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-16  8:41 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

Emre Işık (e.isik27@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |e.isik27@gmail.com

--- Comment #7 from Emre Işık (e.isik27@gmail.com) ---
Created attachment 280531
  --> https://bugzilla.kernel.org/attachment.cgi?id=280531&action=edit
after_patch_dmesg.log

Thanks Alex for your support!

I recompiled the kernel 4.19.12 with the your patch.
And reinstalled TLP & rebooted the system.

When I execute DRI_PRIME=1 glxgears everything works!
glxinfo say's that I am using the AMD GPU.

And dmesg doesn't have any errors anymore.
See attachment.

Thanks for the patch.
Do you gonna commit this patch to the official kernel?
Maybe others have the same error like me.

Thanks, again!

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (6 preceding siblings ...)
  2019-01-16  8:41 ` bugzilla-daemon
@ 2019-01-16 11:41 ` bugzilla-daemon
  2019-01-16 16:02 ` bugzilla-daemon
  2019-01-16 16:12 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-16 11:41 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

Emre Işık (e.isik27@gmail.com) changed:

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

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (7 preceding siblings ...)
  2019-01-16 11:41 ` bugzilla-daemon
@ 2019-01-16 16:02 ` bugzilla-daemon
  2019-01-16 16:12 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-16 16:02 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #8 from Alex Deucher (alexdeucher@gmail.com) ---
(In reply to Emre Işık from comment #7)
> Thanks for the patch.
> Do you gonna commit this patch to the official kernel?
> Maybe others have the same error like me.

Yes, I'll make sure the patches gets upstream and into stable kernels.  Thanks
for the report and testing.

-- 
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] 11+ messages in thread

* [Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)
  2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
                   ` (8 preceding siblings ...)
  2019-01-16 16:02 ` bugzilla-daemon
@ 2019-01-16 16:12 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2019-01-16 16:12 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=202263

--- Comment #9 from Emre Işık (e.isik27@gmail.com) ---
Thank you, too, for writing the patch so quickly.
It has been a great pleasure to cooperate with you, Alex Deucher.

It's a great thing helping other people's.

Which u a nice day!

Best regards,
Emre Isik

-- 
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] 11+ messages in thread

end of thread, other threads:[~2019-01-16 16:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14 15:17 [Bug 202263] New: AMDGPU: DRM couldn't schedule ib on ring (-22) bugzilla-daemon
2019-01-14 15:24 ` [Bug 202263] " bugzilla-daemon
2019-01-15  7:07 ` bugzilla-daemon
2019-01-15  7:07 ` bugzilla-daemon
2019-01-15  7:08 ` bugzilla-daemon
2019-01-15  8:30 ` bugzilla-daemon
2019-01-15 17:11 ` bugzilla-daemon
2019-01-16  8:41 ` bugzilla-daemon
2019-01-16 11:41 ` bugzilla-daemon
2019-01-16 16:02 ` bugzilla-daemon
2019-01-16 16:12 ` 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.