Skip to contentSkip to conversation

New: AMDGPU: DRM couldn't schedule ib on ring (-22)

Bug 202263 [email protected] 1 participant 11 messages Jan 14, 2019 – Jan 16, 2019

lore
Share & tools
lore
#0 lore raw

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: [email protected]
          Reporter: [email protected]
        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!!

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

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

Alex Deucher ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Alex Deucher ([email protected]) --- 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).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #2 from Emre Işık ([email protected]) --- Created attachment 280479
--> https://bugzilla.kernel.org/attachment.cgi?id=280479&action=edit
dmesg.log

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #3 from Emre Işık ([email protected]) --- Created attachment 280481
--> https://bugzilla.kernel.org/attachment.cgi?id=280481&action=edit
Xorg.0.log

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #4 from Emre Işık ([email protected]) --- (In reply to Alex Deucher from comment #1)

Quoted 2 lines

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!

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #5 from Emre Işık ([email protected]) --- I found this line in my dmesg logs:

Quoted 2 lines

[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!

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #6 from Alex Deucher ([email protected]) --- Created attachment 280505
--> https://bugzilla.kernel.org/attachment.cgi?id=280505&action=edit
possible fix

Does this patch fix the issue?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

Emre Işık ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Emre Işık ([email protected]) --- 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!

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

Emre Işık ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #8 from Alex Deucher ([email protected]) --- (In reply to Emre Işık from comment #7)

Quoted 3 lines

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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 202263] AMDGPU: DRM couldn't schedule ib on ring (-22)

In reply to [email protected]

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

--- Comment #9 from Emre Işık ([email protected]) --- 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

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel