Skip to contentSkip to conversation

Potential BUG in drm/i915/execlists: Reset RING registers upon resume

DISCUSSION Damian Dominik Martinez Dreyer 4 participants 11 messages Mar 13, 2017 – Apr 12, 2017 Stable branch

lore
Share & tools
lore
#0 lore raw

I am writing regarding this kernel patch: https://git.kernel.org/pub/sc
m/linux/kernel/git/stable/stable-queue.git/tree/releases/4.9.9/drm- i915-execlists-reset-ring-registers-upon-resume.patch .

I have identified this by bisect to be the cause of a suspend and resume issue. Please see https://github.com/kxv/linux49.9 for the bisect history.

After this change, a Laptop (HP Spectre x360) with Intel HD Graphics 520 will wake up from suspend to a blank screen.

Please also see this thread on the manjaro linux forum: https://forum.m
anjaro.org/t/linux-4-9-9-breaks-hibernation-4-9-8-works/17499 .

Best regards
Damian Dominik Martinez Dreyer

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#1 lore raw

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

Regards,
Eric

Quoted 11 lines · Damian Dominik Martinez Dreyer

I am writing regarding this kernel patch: https://git.kernel.org/pub/sc
m/linux/kernel/git/stable/stable-queue.git/tree/releases/4.9.9/drm- i915-execlists-reset-ring-registers-upon-resume.patch .

I have identified this by bisect to be the cause of a suspend and resume issue. Please see https://github.com/kxv/linux49.9 for the bisect history.

After this change, a Laptop (HP Spectre x360) with Intel HD Graphics 520 will wake up from suspend to a blank screen.

Quoted 6 lines

Please also see this thread on the manjaro linux forum: https://forum.m
anjaro.org/t/linux-4-9-9-breaks-hibernation-4-9-8-works/17499 .

Best regards
Damian Dominik Martinez Dreyer

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#9 lore raw
In reply to Damian Dominik Martinez Dreyer
Quoted 3 lines · Damian Dominik Martinez Dreyer

I am writing regarding this kernel patch: https://git.kernel.org/pub/sc
m/linux/kernel/git/stable/stable-queue.git/tree/releases/4.9.9/drm- i915-execlists-reset-ring-registers-upon-resume.patch .

That would be

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

in v4.9.9 not just a patch.

Quoted 9 lines

I have identified this by bisect to be the cause of a suspend and resume issue. Please see https://github.com/kxv/linux49.9 for the bisect history.

After this change, a Laptop (HP Spectre x360) with Intel HD Graphics 520 will wake up from suspend to a blank screen.

Please also see this thread on the manjaro linux forum: https://forum.m
anjaro.org/t/linux-4-9-9-breaks-hibernation-4-9-8-works/17499 .

Please file a bug over at [1], with the information added to the bug.

Also mention if v4.10 works for you; that's where the commit was backported to v4.9.9 from.

BR,
Jani.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#10 lore raw

Am Dienstag, den 14.03.2017, 13:19 +0200 schrieb Jani Nikula:

Quoted 15 lines

That would be

commit f2a0409a08502d64fbe3990354dff5902b08d2fb
Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

    drm/i915/execlists: Reset RING registers upon resume
    commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

in v4.9.9 not just a patch.

Please file a bug over at [1], with the information added to the bug.

Quoted 9 lines

Also mention if v4.10 works for you; that's where the commit was backported to v4.9.9 from.

BR,
Jani.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=
DRM/Intel

Thank you for your quick answer.
I have opened a bug report: https://bugs.freedesktop.org/show_bug.cgi?i
d=100221

Best Regards,
Damian

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
In reply to Eric Blau
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

BR,
Jani.

Quoted 27 lines

Regards,
Eric

Quoted 11 lines · Damian Dominik Martinez Dreyer

I am writing regarding this kernel patch: https://git.kernel.org/pub/sc
m/linux/kernel/git/stable/stable-queue.git/tree/releases/4.9.9/drm- i915-execlists-reset-ring-registers-upon-resume.patch .

I have identified this by bisect to be the cause of a suspend and resume issue. Please see https://github.com/kxv/linux49.9 for the bisect history.

After this change, a Laptop (HP Spectre x360) with Intel HD Graphics 520 will wake up from suspend to a blank screen.

Quoted 6 lines

Please also see this thread on the manjaro linux forum: https://forum.m
anjaro.org/t/linux-4-9-9-breaks-hibernation-4-9-8-works/17499 .

Best regards
Damian Dominik Martinez Dreyer

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

thanks,

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
Quoted 29 lines · Greg Kroah-Hartman
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Quoted 8 lines

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

thanks,

greg k-h

My apologies. I'm new to requesting stable patches, but I thought sending to the stable mailing lists would keep the proper folks in the loop. Sorry about that.

The bug that the commit fixes has quite a long documentation trail:

[BAT execlists] Sporadic - gem_exec_suspend basic-s4 GPU hang after resume
https://bugs.freedesktop.org/show_bug.cgi?id=96526

I've had problems with that one and this one that is not fixed in 4.10.x stable:

[Regression BDW] kernel panic in Intel i915 module, complete system freeze in 4.10-rc2
https://bugs.freedesktop.org/show_bug.cgi?id=99295

Thanks,
Eric
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw
In reply to Greg Kroah-Hartman
Quoted 29 lines · Greg Kroah-Hartman
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Quoted 4 lines

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

Chris says that would be the correct thing to do. I'm no expert in the area, but IIUC having just that commit backported is not enough, something more would be needed, but we're not sure yet what exactly and if those dependencies can easily be backported.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw
In reply to Eric Blau
Quoted 46 lines · Eric Blau
Quoted 29 lines · Greg Kroah-Hartman
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Quoted 8 lines

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

thanks,

greg k-h

My apologies. I'm new to requesting stable patches, but I thought sending to the stable mailing lists would keep the proper folks in the loop. Sorry about that.

The bug that the commit fixes has quite a long documentation trail:

Quoted 8 lines

[BAT execlists] Sporadic - gem_exec_suspend basic-s4 GPU hang after resume
https://bugs.freedesktop.org/show_bug.cgi?id=96526

I've had problems with that one and this one that is not fixed in 4.10.x stable:

[Regression BDW] kernel panic in Intel i915 module, complete system freeze in 4.10-rc2
https://bugs.freedesktop.org/show_bug.cgi?id=99295

So, what needs to be done here?

Do I need to revert something in 4.9? Add something? Do something else?

totally confused,

greg k-h

#6 lore raw
Quoted 56 lines · Greg Kroah-Hartman
Quoted 46 lines · Eric Blau
Quoted 29 lines · Greg Kroah-Hartman
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Quoted 8 lines

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

thanks,

greg k-h

My apologies. I'm new to requesting stable patches, but I thought sending to the stable mailing lists would keep the proper folks in the loop. Sorry about that.

The bug that the commit fixes has quite a long documentation trail:

Quoted 8 lines

[BAT execlists] Sporadic - gem_exec_suspend basic-s4 GPU hang after resume
https://bugs.freedesktop.org/show_bug.cgi?id=96526

I've had problems with that one and this one that is not fixed in 4.10.x stable:

[Regression BDW] kernel panic in Intel i915 module, complete system freeze in 4.10-rc2
https://bugs.freedesktop.org/show_bug.cgi?id=99295

Quoted 5 lines

So, what needs to be done here?

Do I need to revert something in 4.9? Add something? Do something else?

totally confused,

I did reply to you [1]:

Quoted 6 lines
Quoted 1 line

Want me to revert it?

Chris says that would be the correct thing to do. I'm no expert in the area, but IIUC having just that commit backported is not enough, something more would be needed, but we're not sure yet what exactly and if those dependencies can easily be backported.

"it" being commit f2a0409a0850 ("drm/i915/execlists: Reset RING registers upon resume") in 4.9.9+.

BR,
Jani.

[1] http://mid.mail-archive.com/[email protected]

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw
Quoted 67 lines · Jani Nikula
Quoted 56 lines · Greg Kroah-Hartman
Quoted 46 lines · Eric Blau
Quoted 29 lines · Greg Kroah-Hartman
Quoted 20 lines · Jani Nikula
Quoted 10 lines · Eric Blau

That's funny. I have a MacBook Pro 12,1 from late 2015. Hibernate failed for me in 4.9.6 through 4.9.8 (possibly earlier as well, I do no recall) without the patch. The patch you reference fixed my problem and apparently many others based on the bug reports:

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

I applied the patch myself in 4.9.6 through 4.9.8 and hibernate works for me. I have run vanilla 4.9.9 and 4.10.1 and in both hibernate works.

So I'm quite surprised

commit f2a0409a08502d64fbe3990354dff5902b08d2fb

Author: Chris Wilson <[email protected]>
Date:   Wed Sep 21 14:51:08 2016 +0100

drm/i915/execlists: Reset RING registers upon resume

Quoted 7 lines

commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

ended up in v4.9.9 considering that the upstream commit is not annotated for stable, it has no Fixes: tags, and I can't find any backport requests or even notifications for it in my mails. (Admittedly I'm not subscribed on stable@, but I'd expect our lists, maintainers or developers be Cc'd.)

Quoted 8 lines

Eric sent this to the stable list a few times, my mistake for not seeing he hadn't also cc:ed the developer list.

Want me to revert it?

thanks,

greg k-h

My apologies. I'm new to requesting stable patches, but I thought sending to the stable mailing lists would keep the proper folks in the loop. Sorry about that.

The bug that the commit fixes has quite a long documentation trail:

Quoted 8 lines

[BAT execlists] Sporadic - gem_exec_suspend basic-s4 GPU hang after resume
https://bugs.freedesktop.org/show_bug.cgi?id=96526

I've had problems with that one and this one that is not fixed in 4.10.x stable:

[Regression BDW] kernel panic in Intel i915 module, complete system freeze in 4.10-rc2
https://bugs.freedesktop.org/show_bug.cgi?id=99295

Quoted 5 lines

So, what needs to be done here?

Do I need to revert something in 4.9? Add something? Do something else?

totally confused,

I did reply to you [1]:

Quoted 2 lines
Quoted 1 line

Want me to revert it?

Quoted 7 lines
Quoted 4 lines

Chris says that would be the correct thing to do. I'm no expert in the area, but IIUC having just that commit backported is not enough, something more would be needed, but we're not sure yet what exactly and if those dependencies can easily be backported.

"it" being commit f2a0409a0850 ("drm/i915/execlists: Reset RING registers upon resume") in 4.9.9+.

Ah, ok, now reverted, thanks.

greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx