Skip to contentSkip to conversation

New: resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

Bug 34534 [email protected] 1 participant 21 messages Feb 21, 2011 – Jun 18, 2011

lore
Share & tools
lore
#0 lore raw

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

           Summary: resolution 3840x1024 stopped to work on HD5850 after
                    switch to 2.6.37 kernel
           Product: DRI
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: DRM/Radeon
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Created an attachment (id=43602)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43602)
example how root-tail output gets corrupted

Resolution 3840x1024 stopped to work when I switched from 2.6.36.3 to 2.6.37. The image looks like it is stretched by about 50% and it is corrupted. I did bisect it and the the commit when it appeared the first time is:
f9d9c36204243d81e9d4dd28e58ee335257847d2
title: drm/radeon/kms: implement display watermark support for evergreen

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.
#1 lore raw

[Bug 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

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

--- Comment #1 from Peter Hercek <[email protected]> 2011-02-21 07:25:49 PST --- Created an attachment (id=43603)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43603)
dmesg from 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.
#2 lore raw

[Bug 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #2 from Peter Hercek <[email protected]> 2011-02-21 07:26:23 PST --- Created an attachment (id=43604)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43604)
xorg.log from 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.
#3 lore raw

[Bug 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #3 from Peter Hercek <[email protected]> 2011-02-21 07:27:05 PST --- Created an attachment (id=43605)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43605)
dmesg from 2.6.36.3

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #4 from Peter Hercek <[email protected]> 2011-02-21 07:27:55 PST --- Created an attachment (id=43606)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43606)
xorg.log from 2.6.36.3

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #5 from Alex Deucher <[email protected]> 2011-03-16 09:50:19 PDT --- Does booting with radeon.disp_priority=2 help?

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #6 from Peter Hercek <[email protected]> 2011-03-16 12:15:23 PDT --- Adding radeon.disp_priority=2 to the kernel command line did not help. It looks the same.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #7 from Alex Deucher <[email protected]> 2011-03-16 23:45:20 PDT --- This monitor is a matrox triplehead2go.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #8 from Alex Deucher <[email protected]> 2011-04-08 08:56:06 PDT --- Can you dump the following registers in both the working and non-working states using radeonreg or avivotool
(http://cgit.freedesktop.org/~airlied/radeontool/)?
You only need to dump the set that aligns to whichever crtc you are using for the problematic monitor (probably crtc 0 if you have just one monitor attached). 'xrandr --verbose' will tell you which crtc is in use.

crtc0:
radeonreg regmatch 0x0bf0
radeonreg regmatch 0x0bf4
radeonreg regmatch 0x6b18
radeonreg regmatch 0x6b1c
radeonreg regmatch 0x6b0c

crtc 1:
radeonreg regmatch 0x0c00
radeonreg regmatch 0x0c04
radeonreg regmatch 0x7718
radeonreg regmatch 0x771c
radeonreg regmatch 0x770c

crtc 2:
radeonreg regmatch 0x0c10
radeonreg regmatch 0x0c14
radeonreg regmatch 0x10318
radeonreg regmatch 0x1031c
radeonreg regmatch 0x1030c

crtc 3:
radeonreg regmatch 0x0c20
radeonreg regmatch 0x0c24
radeonreg regmatch 0x10f18
radeonreg regmatch 0x10f1c
radeonreg regmatch 0x10f0c

crtc 4:
radeonreg regmatch 0x0c30
radeonreg regmatch 0x0c34
radeonreg regmatch 0x11b18
radeonreg regmatch 0x11b1c
radeonreg regmatch 0x11b0c

crtc 5:
radeonreg regmatch 0x0c40
radeonreg regmatch 0x0c44
radeonreg regmatch 0x12718
radeonreg regmatch 0x1271c
radeonreg regmatch 0x1270c

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #9 from Peter Hercek <[email protected]> 2011-04-08 10:40:19 PDT --- (In reply to comment #8)

xrandr reports the monitor on crtc 1 in both cases (working/non-working):

DVI-1 connected 3840x1024+0+1050 (0x6b) normal (normal left inverted right x axis y axis) 1082mm x 288mm

    Identifier: 0x58
    Timestamp:  12755
    Subpixel:   horizontal rgb
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:    
    CRTC:       1
    CRTCs:      0 1 2 3 4 5

Only time stamp is different in the above text block.

As for as the registers for crtc 1:

Just before the watermark commit - the good case (and it is the same as 2.6.36.3):

0x0c00  0x00030002 (196610)
0x0c04  0x00000000 (0)
0x7718  0x00000000 (0)
0x771c  0x00000000 (0)
0x770c  0x00020004 (131076)

Just at the watermark commit - the bad case:

0x0c00    0x00030002 (196610)
0x0c04    0x2e985963 (781736291)
0x7718    0x00000024 (36)
0x771c    0x00000024 (36)
0x770c    0x00010005 (65541)
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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #10 from Alex Deucher <[email protected]> 2011-04-08 10:58:38 PDT --- (In reply to comment #9)

Quoted 10 lines

As for as the registers for crtc 1:

Just before the watermark commit - the good case (and it is the same as 2.6.36.3):

0x0c00  0x00030002 (196610)
0x0c04  0x00000000 (0)
0x7718  0x00000000 (0)
0x771c  0x00000000 (0)
0x770c  0x00020004 (131076)
Quoted 6 lines

Just at the watermark commit - the bad case:

0x0c00    0x00030002 (196610)
0x0c04    0x2e985963 (781736291)
0x7718    0x00000024 (36)
0x771c    0x00000024 (36)
0x770c    0x00010005 (65541)

does:
radeonreg regset 0x770c 0x00020004
fix the broken state? If not, try replacing the other values with the working versions to narrow down which ones are problematic or if they all need to be changed.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #11 from Peter Hercek <[email protected]> 2011-04-08 11:15:01 PDT --- (In reply to comment #10)

Quoted 4 lines

(In reply to comment #9)
does:
radeonreg regset 0x770c 0x00020004
fix the broken state?

Yes, it does. Only the one regset is enough. Do you think I can just add this to some xserver startup script so that I have a workaround for now? Would it be safe?

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #12 from Alex Deucher <[email protected]> 2011-04-12 14:11:33 PDT --- (In reply to comment #11)

Quoted 4 lines

Yes, it does. Only the one regset is enough. Do you think I can just add this to some xserver startup script so that I have a workaround for now? Would it be safe?

yes, it's fine.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #13 from Alex Deucher <[email protected]> 2011-04-12 14:25:56 PDT --- Can you attach the full xrandr --verbose output?

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #14 from Alex Deucher <[email protected]> 2011-04-12 14:44:59 PDT --- Created an attachment (id=45556)
View: https://bugs.freedesktop.org/attachment.cgi?id=45556
Review: https://bugs.freedesktop.org/review?bug=34534&attachment=45556

possible fix

Does this patch help?

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #15 from Peter Hercek <[email protected]> 2011-04-13 00:37:56 PDT --- Created an attachment (id=45562)
--> (https://bugs.freedesktop.org/attachment.cgi?id=45562)
xrandr --verbose output on 2.6.38.2-vanilla (with 3840x1024 fixed using radeonreg regset 0x770c 0x00020004)

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #16 from Peter Hercek <[email protected]> 2011-04-13 01:37:03 PDT --- (In reply to comment #14)

Quoted 1 line

Does this patch help?

No, the image stays corrupted, I still need to do this to fix it:

# radeonreg regset 0x770c 0x00020004
OLD: 0x770c (770c)    0x00010005 (65541)
NEW: 0x770c (770c)    0x00010004 (65540)
#

I applied and tested the patch with 2.6.38.2-vanilla.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #17 from Alex Deucher <[email protected]> 2011-04-14 09:30:02 PDT --- Created an attachment (id=45616)
View: https://bugs.freedesktop.org/attachment.cgi?id=45616
Review: https://bugs.freedesktop.org/review?bug=34534&attachment=45616

possible fix

Does this patch help?

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #18 from Peter Hercek <[email protected]> 2011-04-14 15:44:43 PDT --- (In reply to comment #17)

Quoted 1 line

Does this patch help?

Yes, this patch works. 0x770c is set to the right value now. 0x7718 and 0x771c are different than before too but that is probably intended. Here they are:

0x0c00    0x00030002 (196610)
0x0c04    0x2e985963 (781736291)
0x7718    0x00100024 (1048612)
0x771c    0x00100024 (1048612)
0x770c    0x00020004 (131076)

Thanks for fixing this.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

--- Comment #19 from Alex Deucher <[email protected]> 2011-04-14 16:06:19 PDT --- (In reply to comment #18)

Quoted 5 lines

(In reply to comment #17)

Quoted 1 line

Does this patch help?

Yes, this patch works. 0x770c is set to the right value now. 0x7718 and 0x771c are different than before too but that is probably intended.

Yes.

Quoted 8 lines

Here they are:

0x0c00    0x00030002 (196610)
0x0c04    0x2e985963 (781736291)
0x7718    0x00100024 (1048612)
0x771c    0x00100024 (1048612)
0x770c    0x00020004 (131076)

Thanks for fixing this.

No problem. Sorry it took so long.

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 34534] resolution 3840x1024 stopped to work on HD5850 after switch to 2.6.37 kernel

In reply to [email protected]

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

Peter Hercek <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #20 from Peter Hercek <[email protected]> 2011-06-18 15:31:08 PDT --- Works well in 2.6.39.1; probably even in 2.6.39, but I did not try that.

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.