Skip to contentSkip to conversation

New: with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

Bug 34709 [email protected] 1 participant 23 messages Feb 25, 2011 – May 5, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: with r300 (rv530) kms loaded cannot suspend kernel
2.6.37+ with uswsusp
Product: DRI
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
AssignedTo: [email protected]
ReportedBy: [email protected]

After upgrading from kernel 2.6.36 to 2.6.37 I can no longer suspend the system with uswsusp.

The suspend operation hangs with displays blanked before the part when "Saving image to disk" takes place.

Suspending with "echo disk > /sys/power/state" works but is obviously useless as the system cannot be resumed.

Upgrading to 2.6.38 does not help, not loading the radeon module allows to suspend as usual.

A pointer to a repo with Radeon changesets between 2.6.36 and 2.6.37 without needlessly intermingled changes to other kernel parts would be appreciated.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 34709] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #2 from Michal Suchanek <[email protected]> 2011-02-25 09:55:26 PST --- Maybe you did not notice but I was asking what repo would be suitable for bisecting this.

I know there are several drm repos but I have no clue what is in what.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 34709] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #3 from Alex Deucher <[email protected]> 2011-02-25 10:51:55 PST --- Linus' tree is fine:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 34709] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #4 from Michal Suchanek <[email protected]> 2011-03-06 07:38:33 PST --- Can't reproduce on my other box so I will need to do some parts swapping I guess.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 34709] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #5 from Michal Suchanek <[email protected]> 2011-03-17 02:31:49 PDT --- hmm, so it does not happen on rv515gl
hopefully can bisect with the rv530

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

Michal Suchanek <[email protected]> changed:

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

            Summary|with r300 (rv530) kms       |[bisected] with r300
                   |loaded cannot suspend       |(rv530) kms loaded cannot
                   |kernel 2.6.37+ with uswsusp |suspend kernel 2.6.37+ with
                   |                            |uswsusp

--- Comment #6 from Michal Suchanek <[email protected]> 2011-04-01 13:36:04 PDT --- It breaks two commits after 2.6.37-rc3.

Luckily it's in the rc range where the kernels build and boot, bisecting something before rc with Linus tree is hell.

The first cut which was halfway between 2.6.36 and 2.6.37 would not boot and had some oops in atl1 which I happen to use to connect to the box.

commit f24d86f1a49505cdea56728b853a5d0a3f8e3d11

Author: Alex Deucher <[email protected]>
Date:   Fri Nov 19 23:27:04 2010 +0000

drm/radeon/kms: fix resume regression for some r5xx laptops

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #7 from Alex Deucher <[email protected]> 2011-04-01 13:38:37 PDT --- (In reply to comment #6)

Quoted 5 lines

commit f24d86f1a49505cdea56728b853a5d0a3f8e3d11

Author: Alex Deucher <[email protected]>
Date:   Fri Nov 19 23:27:04 2010 +0000

drm/radeon/kms: fix resume regression for some r5xx laptops

Are you saying that with this commit reverted it works?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #8 from Michal Suchanek <[email protected]> 2011-04-01 14:20:24 PDT --- I did not try to revert it. It's way old. Just tried the kernel before and after.

Note that this is very hardware specific, I get the issue with rv530 but not rv515gl.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #9 from Alex Deucher <[email protected]> 2011-04-01 14:32:20 PDT --- (In reply to comment #8)

Quoted 5 lines

I did not try to revert it. It's way old. Just tried the kernel before and after.

Note that this is very hardware specific, I get the issue with rv530 but not rv515gl.

So the commit before it worked and the one after it did not?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #10 from Michal Suchanek <[email protected]> 2011-04-01 15:11:35 PDT --- Yes, it does not work with this commit.

I tried to patch a revert on top of 2.6.37 and the kernel suspends fine then.

commit 0c6a5be872fc2c2dc1774501429349ba03d8b2a6

Author: Michal Suchanek <[email protected]>
Date:   Fri Apr 1 23:24:17 2011 +0200

Revert "drm/radeon/kms: fix resume regression for some r5xx laptops"

This reverts commit f24d86f1a49505cdea56728b853a5d0a3f8e3d11.

commit 3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5

Author: Linus Torvalds <[email protected]>
Date:   Tue Jan 4 16:50:19 2011 -0800
    Linux 2.6.37
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #11 from Alex Deucher <[email protected]> 2011-04-02 06:30:51 PDT --- Created an attachment (id=45164)
View: https://bugs.freedesktop.org/attachment.cgi?id=45164
Review: https://bugs.freedesktop.org/review?bug=34709&attachment=45164

fix

This patch should fix it.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #12 from Michal Suchanek <[email protected]> 2011-04-04 11:14:12 PDT --- With the patch 2.6.37 suspends and resumes, 2.6.38 suspends (which was not possible without it ) and locks up on resume.

On rv515gl 2.6.38 suspends and resumes fine without patches.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #13 from Alex Deucher <[email protected]> 2011-04-04 12:55:21 PDT --- (In reply to comment #12)

Quoted 2 lines

With the patch 2.6.37 suspends and resumes, 2.6.38 suspends (which was not possible without it ) and locks up on resume.

Can you bisect (and apply the patch from comment 11 as needed) to track down what broken resume?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #14 from Michal Suchanek <[email protected]> 2011-04-04 15:11:57 PDT --- ok, with the patch 2.6.37 works, 2.6.38 and head suspends but lockups on resume.

I guess time for another bisect.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

Michal Suchanek <[email protected]> changed:

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

             Blocks|                            |35969
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #15 from Michal Suchanek <[email protected]> 2011-04-12 05:47:07 PDT --- Is the fix going to be applied?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #16 from Alex Deucher <[email protected]> 2011-04-12 07:00:28 PDT --- Any luck bisecting the resume issues?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #17 from Michal Suchanek <[email protected]> 2011-04-12 07:09:26 PDT --- Those are not caused by Radeon.

They were only hidden by the Radeon issue because it came earlier.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #18 from Alex Deucher <[email protected]> 2011-04-12 07:13:43 PDT --- (In reply to comment #17)

Quoted 3 lines

Those are not caused by Radeon.

They were only hidden by the Radeon issue because it came earlier.

So the patch alone fixes suspend and resume?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #19 from Michal Suchanek <[email protected]> 2011-04-12 08:20:35 PDT --- The resume issue should be fixed in 2.6.39-rc3.

commit 4da9484bdece39ab0b098fa711e095e3e9fc8684

Author: H. Peter Anvin <[email protected]>
Date:   Wed Apr 6 13:10:02 2011 -0700

x86, hibernate: Initialize mmu_cr4_features during boot

Restore the initialization of mmu_cr4_features during boot, which was removed without comment in checkin e5f15b45ddf3afa2bbbb10c7ea34fb32b6de0a0e

x86: Cleanup highmap after brk is concluded

thereby breaking resume from hibernate. This restores previous functionality in approximately the same place, and corrects the

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

--- Comment #20 from Alex Deucher <[email protected]> 2011-04-12 10:38:59 PDT --- I've sent the patch to Dave.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw

[Bug 34709] [bisected] with r300 (rv530) kms loaded cannot suspend kernel 2.6.37+ with uswsusp

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #21 from Fabio Pedretti <[email protected]> 2011-05-05 00:48:56 PDT --- Fixed in 2.6.38.4.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.