All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 66932] New: Screen corruption on Cayman with dpm enabled
@ 2013-07-15 15:45 bugzilla-daemon
  2013-07-15 15:54 ` [Bug 66932] " bugzilla-daemon
                   ` (32 more replies)
  0 siblings, 33 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-15 15:45 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1730 bytes --]

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

          Priority: medium
            Bug ID: 66932
          Assignee: dri-devel@lists.freedesktop.org
           Summary: Screen corruption on Cayman with dpm enabled
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: g02maran@gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: DRI CVS
         Component: DRM/Radeon
           Product: DRI

Created attachment 82448
  --> https://bugs.freedesktop.org/attachment.cgi?id=82448&action=edit
dmesg

When I enable dpm with my 6950 I see major screen corruption. It works fine
with dpm disabled. 

The computer does not get completely locked up. The screen flickers but there
is always a pattern in the corruption that stays the same. Sometimes, not
always, I can see and control a corrupted mouse cursor. But the screen is so
corrupted that i can't login or do anything. I can ssh into the computer but it
won't reboot.

I first tried 3.11-rc1 but then did my tests on
http://cgit.freedesktop.org/~agd5f/linux/?h=drm-fixes-3.11 with latest commit
being a01c34f72e7cd2624570818f579b5ab464f93de2

I have ucode (downloaded 2013-06-15) from
http://people.freedesktop.org/~agd5f/radeon_ucode/

I compiled the kernel with this.
CONFIG_EXTRA_FIRMWARE="radeon/CAYMAN_mc.bin radeon/CAYMAN_me.bin
radeon/CAYMAN_pfp.bin radeon/CAYMAN_rlc.bin radeon/CAYMAN_smc.bin
radeon/SUMO_uvd.bin"

I did a bisect and found that this commit introduced the corruption:

http://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-3.11&id=7ad8d0687bb5030c3328bc7229a3183ce179ab25

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3411 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
@ 2013-07-15 15:54 ` bugzilla-daemon
  2013-07-16  1:05 ` bugzilla-daemon
                   ` (31 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-15 15:54 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]

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

--- Comment #1 from Martin Andersson <g02maran@gmail.com> ---
Created attachment 82449
  --> https://bugs.freedesktop.org/attachment.cgi?id=82449&action=edit
screenshot of corruption

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1216 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
  2013-07-15 15:54 ` [Bug 66932] " bugzilla-daemon
@ 2013-07-16  1:05 ` bugzilla-daemon
  2013-07-16  5:11 ` bugzilla-daemon
                   ` (30 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16  1:05 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 569 bytes --]

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

--- Comment #2 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #0)
> 
> I did a bisect and found that this commit introduced the corruption:
> 
> http://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-3.
> 11&id=7ad8d0687bb5030c3328bc7229a3183ce179ab25

Prior to that commit, the driver didn't actually change clock levels.

Does it work any better if you build radeon as a module rather than building it
into the kernel?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1491 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
  2013-07-15 15:54 ` [Bug 66932] " bugzilla-daemon
  2013-07-16  1:05 ` bugzilla-daemon
@ 2013-07-16  5:11 ` bugzilla-daemon
  2013-07-16 13:21 ` bugzilla-daemon
                   ` (29 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16  5:11 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 752 bytes --]

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

--- Comment #3 from Martin Andersson <g02maran@gmail.com> ---
(In reply to comment #2)
> (In reply to comment #0)
> > 
> > I did a bisect and found that this commit introduced the corruption:
> > 
> > http://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-3.
> > 11&id=7ad8d0687bb5030c3328bc7229a3183ce179ab25
> 
> Prior to that commit, the driver didn't actually change clock levels.
> 
> Does it work any better if you build radeon as a module rather than building
> it into the kernel?

Well I think I'm already building radeon as a module since I have:
CONFIG_DRM=m
CONFIG_DRM_RADEON=m

or am I missing something?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1753 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (2 preceding siblings ...)
  2013-07-16  5:11 ` bugzilla-daemon
@ 2013-07-16 13:21 ` bugzilla-daemon
  2013-07-16 17:10 ` bugzilla-daemon
                   ` (28 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 13:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]

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

--- Comment #4 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #3)
> 
> Well I think I'm already building radeon as a module since I have:
> CONFIG_DRM=m
> CONFIG_DRM_RADEON=m
> 
> or am I missing something?

That should be fine.  I assumed you were building it in since you were messing
with CONFIG_EXTRA_FIRMWARE.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1301 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (3 preceding siblings ...)
  2013-07-16 13:21 ` bugzilla-daemon
@ 2013-07-16 17:10 ` bugzilla-daemon
  2013-07-16 20:43 ` bugzilla-daemon
                   ` (27 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 17:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1363 bytes --]

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

--- Comment #5 from Martin Andersson <g02maran@gmail.com> ---
(In reply to comment #4)
> (In reply to comment #3)
> > 
> > Well I think I'm already building radeon as a module since I have:
> > CONFIG_DRM=m
> > CONFIG_DRM_RADEON=m
> > 
> > or am I missing something?
> 
> That should be fine.  I assumed you were building it in since you were
> messing with CONFIG_EXTRA_FIRMWARE.

I have learnt something new today, CONFIG_EXTRA_FIRMWARE is not needed for
modules.

I tried RADEON_DPM_FORCED_LEVEL_LOW and RADEON_DPM_FORCED_LEVEL_HIGH, but they
didn't work either.

Then I commented out:
ni_dpm_force_performance_level(rdev, RADEON_DPM_FORCED_LEVEL_AUTO);

With that I can boot the system and dpm seems to work, because the fan is nice
and quiet. Also cat /sys/kernel/debug/dri/64/radeon_pm_info says this:
uvd    vclk: 0 dclk: 0
power level 0    sclk: 25000 mclk: 15000 vddc: 900 vddci: 950

Then (with RADEON_DPM_FORCED_LEVEL_AUTO enabled again) I commented out:
if (ni_send_msg_to_smc_with_parameter(rdev, PPSMC_MSG_SetForcedLevels, 0) !=
PPSMC_Result_OK)

That resulted in screen corruption but it worked when I instead commented out:
if (ni_send_msg_to_smc_with_parameter(rdev, PPSMC_MSG_SetEnabledLevels, 0) !=
PPSMC_Result_OK)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2283 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (4 preceding siblings ...)
  2013-07-16 17:10 ` bugzilla-daemon
@ 2013-07-16 20:43 ` bugzilla-daemon
  2013-07-16 20:47 ` bugzilla-daemon
                   ` (26 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 20:43 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 610 bytes --]

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

--- Comment #6 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #5)
> 
> Then I commented out:
> ni_dpm_force_performance_level(rdev, RADEON_DPM_FORCED_LEVEL_AUTO);

> That resulted in screen corruption but it worked when I instead commented
> out:
> if (ni_send_msg_to_smc_with_parameter(rdev, PPSMC_MSG_SetEnabledLevels, 0)
> != PPSMC_Result_OK)

Unfortunately, removing those calls disables dynamic reclocking so the GPU
always stays in the lowest performance level.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1485 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (5 preceding siblings ...)
  2013-07-16 20:43 ` bugzilla-daemon
@ 2013-07-16 20:47 ` bugzilla-daemon
  2013-07-16 21:10 ` bugzilla-daemon
                   ` (25 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 20:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 463 bytes --]

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

--- Comment #7 from Alex Deucher <agd5f@yahoo.com> ---
Created attachment 82501
  --> https://bugs.freedesktop.org/attachment.cgi?id=82501&action=edit
add module parameter to disable aspm

Try this patch which adds a new module parameter to disable aspm.  Add
radeon.aspm=0 to your kernel command line in grub to disable aspm support.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1469 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (6 preceding siblings ...)
  2013-07-16 20:47 ` bugzilla-daemon
@ 2013-07-16 21:10 ` bugzilla-daemon
  2013-07-16 21:23 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 21:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 916 bytes --]

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

--- Comment #8 from Martin Andersson <g02maran@gmail.com> ---
(In reply to comment #7)
> Created attachment 82501 [details] [review]
> add module parameter to disable aspm
> 
> Try this patch which adds a new module parameter to disable aspm.  Add
> radeon.aspm=0 to your kernel command line in grub to disable aspm support.

Unfortunately that didn't help, it was different though. First I saw the
corruption as before, but after a second or two the screen turned blank, like
it didn't get any signal.

I caught a glimpse of some text that was printed just before the corruption,
don't know if it is related or not, just throwing it out there.

It's said "mei_me" <some text I forgot> <something about write failed>

I have seen it before but then I didn't have time to see what it was.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2094 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (7 preceding siblings ...)
  2013-07-16 21:10 ` bugzilla-daemon
@ 2013-07-16 21:23 ` bugzilla-daemon
  2013-07-17  1:45 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-16 21:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]

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

--- Comment #9 from Martin Andersson <g02maran@gmail.com> ---
I just tried booting a second time and now experienced exactly the same
behaviour as before the patch, that is the screen didn't get blank but
continued to display the corrupted screen.

Also looked at the dmesg from the patch and it was exactly the same lockup.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1219 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (8 preceding siblings ...)
  2013-07-16 21:23 ` bugzilla-daemon
@ 2013-07-17  1:45 ` bugzilla-daemon
  2013-07-17  9:13 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17  1:45 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 362 bytes --]

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

--- Comment #10 from Alex Deucher <agd5f@yahoo.com> ---
Created attachment 82519
  --> https://bugs.freedesktop.org/attachment.cgi?id=82519&action=edit
debugging output

Can you attach a dmesg output with dpm enabled with this patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1329 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (9 preceding siblings ...)
  2013-07-17  1:45 ` bugzilla-daemon
@ 2013-07-17  9:13 ` bugzilla-daemon
  2013-07-17 11:09 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17  9:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 310 bytes --]

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

--- Comment #11 from Martin Andersson <g02maran@gmail.com> ---
Created attachment 82534
  --> https://bugs.freedesktop.org/attachment.cgi?id=82534&action=edit
dmesg with mc reg dump

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (10 preceding siblings ...)
  2013-07-17  9:13 ` bugzilla-daemon
@ 2013-07-17 11:09 ` bugzilla-daemon
  2013-07-17 16:40 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 11:09 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1409 bytes --]

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

--- Comment #12 from Martin Andersson <g02maran@gmail.com> ---
Take this information with a grain of salt, since I'm testing stuff without
really knowing whats going on.

I found it interesting that the dmesg with the mc dump didn't print anything
from the first for loop in the patch, so I did some testing.

I added a bunch of debug printks to radeon_atom_init_mc_reg_table to see what
was happening. I found that num_entries is 13, but what was more interesting
was that some printks was skipped and now I got a kernel oops (NULL pointer
dereference).

It looked like this while loop was executed once (without problems), then
strange things happended:
while (!(reg_block->asRegIndexBuf[i].ucPreRegDataLength &
ACCESS_PLACEHOLDER)...

So I added this printk before and after "i++;" in that while loop:
printk(KERN_INFO "debug=%u", reg_block->asRegIndexBuf[i].ucPreRegDataLength);

gcc didn't complain about the first printk but for the second it said this:
drivers/gpu/drm/radeon/radeon_atombios.c:3741:60: warning: array subscript is
above array bounds [-Warray-bounds]

It might be a false positive but it matches with my debug printks, everything
is fine until the second iteration in that while loop. After that the execution
jumps further down in the function and crashes.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (11 preceding siblings ...)
  2013-07-17 11:09 ` bugzilla-daemon
@ 2013-07-17 16:40 ` bugzilla-daemon
  2013-07-17 16:42 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 16:40 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 488 bytes --]

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

Alex Deucher <agd5f@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.heider@gmail.com

--- Comment #13 from Alex Deucher <agd5f@yahoo.com> ---
*** Bug 66972 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1958 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (12 preceding siblings ...)
  2013-07-17 16:40 ` bugzilla-daemon
@ 2013-07-17 16:42 ` bugzilla-daemon
  2013-07-17 16:48 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 16:42 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 486 bytes --]

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

Alex Deucher <agd5f@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobi@slackeee.de

--- Comment #14 from Alex Deucher <agd5f@yahoo.com> ---
*** Bug 66945 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1977 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (13 preceding siblings ...)
  2013-07-17 16:42 ` bugzilla-daemon
@ 2013-07-17 16:48 ` bugzilla-daemon
  2013-07-17 17:02 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 16:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --]

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

--- Comment #15 from Alex Deucher <agd5f@yahoo.com> ---
Created attachment 82551
  --> https://bugs.freedesktop.org/attachment.cgi?id=82551&action=edit
more debugging

Something appears to be corrupting that structure.  Try this patch on top of
the previous one and post the dmesg with them applied.  reg_table->last should
not be 0.  You should be seeing something like (slightly different per asic):

[   96.516683] 0 s1 = 0x0a2f pre_reg_data = 0x04
[   96.516696] 1 s1 = 0x0a30 pre_reg_data = 0x00
[   96.516710] 2 s1 = 0x0ad5 pre_reg_data = 0x04
[   96.516723] 3 s1 = 0x0a28 pre_reg_data = 0x04
[   96.516736] 4 s1 = 0x0a29 pre_reg_data = 0x04
[   96.516746] 5 s1 = 0x0a2a pre_reg_data = 0x04
[   96.516759] 6 s1 = 0x0a2b pre_reg_data = 0x04
[   96.516772] 7 s1 = 0x0a2c pre_reg_data = 0x04
[   96.516786] 8 s1 = 0x0a81 pre_reg_data = 0x04
[   96.516798] 9 s1 = 0x0a8b pre_reg_data = 0x04
[   96.516811] 10 s1 = 0x0a5f pre_reg_data = 0x04

for the first loop in the dumper.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2072 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (14 preceding siblings ...)
  2013-07-17 16:48 ` bugzilla-daemon
@ 2013-07-17 17:02 ` bugzilla-daemon
  2013-07-17 17:13 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 313 bytes --]

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

--- Comment #16 from Martin Andersson <g02maran@gmail.com> ---
Created attachment 82552
  --> https://bugs.freedesktop.org/attachment.cgi?id=82552&action=edit
dmesg with more debugging

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (15 preceding siblings ...)
  2013-07-17 17:02 ` bugzilla-daemon
@ 2013-07-17 17:13 ` bugzilla-daemon
  2013-07-17 17:47 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

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

--- Comment #17 from Andre Heider <a.heider@gmail.com> ---
Same here:
[    7.563515] module_index = 2 num_entries = 13
[    7.563516] 0: s1 = 0x0a2f prd = 0x04
[    7.567599] switching from power state:

no more "s1 =" and not a single "last ="

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (16 preceding siblings ...)
  2013-07-17 17:13 ` bugzilla-daemon
@ 2013-07-17 17:47 ` bugzilla-daemon
  2013-07-17 17:49 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 4794 bytes --]

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

--- Comment #18 from Andre Heider <a.heider@gmail.com> ---
Created attachment 82559
  --> https://bugs.freedesktop.org/attachment.cgi?id=82559&action=edit
weird fix

This magically makes it work...
No more stalls, box drops from 125 watt to 62.

[    7.923448] module_index = 2 num_entries = 13
[    7.923449] 0: s1 = 0x0a2f prd = 0x04
[    7.923450] 1: s1 = 0x0a30 prd = 0x00
[    7.923450] 2: s1 = 0x0ad5 prd = 0x04
[    7.923451] 3: s1 = 0x0a28 prd = 0x04
[    7.923451] 4: s1 = 0x0a29 prd = 0x04
[    7.923452] 5: s1 = 0x0a2a prd = 0x04
[    7.923453] 6: s1 = 0x0a2b prd = 0x04
[    7.923453] 7: s1 = 0x0a2c prd = 0x04
[    7.923454] 8: s1 = 0x0a81 prd = 0x04
[    7.923454] 9: s1 = 0x0a8b prd = 0x04
[    7.923455] 10: s1 = 0x0a5f prd = 0x04
[    7.923456] last = 11
[    7.923457] last = 11
[    7.923457] 0 s1 = 0x0a2f pre_reg_data = 0x04
[    7.923458] 1 s1 = 0x0a30 pre_reg_data = 0x00
[    7.923458] 2 s1 = 0x0ad5 pre_reg_data = 0x04
[    7.923459] 3 s1 = 0x0a28 pre_reg_data = 0x04
[    7.923460] 4 s1 = 0x0a29 pre_reg_data = 0x04
[    7.923460] 5 s1 = 0x0a2a pre_reg_data = 0x04
[    7.923461] 6 s1 = 0x0a2b pre_reg_data = 0x04
[    7.923461] 7 s1 = 0x0a2c pre_reg_data = 0x04
[    7.923462] 8 s1 = 0x0a81 pre_reg_data = 0x04
[    7.923463] 9 s1 = 0x0a8b pre_reg_data = 0x04
[    7.923463] 10 s1 = 0x0a5f pre_reg_data = 0x04
[    7.923464] 0 mclk_max = 40000
[    7.923465]   0 mc_data = 0x20335155
[    7.923465]   1 mc_data = 0x20335155
[    7.923466]   2 mc_data = 0x00000000
[    7.923466]   3 mc_data = 0x0f129421
[    7.923467]   4 mc_data = 0x080852c0
[    7.923468]   5 mc_data = 0x01328d12
[    7.923468]   6 mc_data = 0x00222000
[    7.923469]   7 mc_data = 0x001ca511
[    7.923469]   8 mc_data = 0x2014021b
[    7.923470]   9 mc_data = 0xa28086ba
[    7.923470]   10 mc_data = 0x00000000
[    7.923471] 1 mclk_max = 80000
[    7.923472]   0 mc_data = 0x20337177
[    7.923472]   1 mc_data = 0x20337177
[    7.923473]   2 mc_data = 0x00000000
[    7.923473]   3 mc_data = 0x1f2528a5
[    7.923474]   4 mc_data = 0x0c0952f0
[    7.923475]   5 mc_data = 0x0275971f
[    7.923475]   6 mc_data = 0x00622200
[    7.923476]   7 mc_data = 0x001ca511
[    7.923476]   8 mc_data = 0x2014083c
[    7.923477]   9 mc_data = 0xa50086ba
[    7.923477]   10 mc_data = 0x00000000
[    7.923478] 2 mclk_max = 90000
[    7.923479]   0 mc_data = 0x20337177
[    7.923479]   1 mc_data = 0x20337177
[    7.923480]   2 mc_data = 0x00000000
[    7.923480]   3 mc_data = 0x222630e7
[    7.923481]   4 mc_data = 0x0d095300
[    7.923481]   5 mc_data = 0x02c61921
[    7.923482]   6 mc_data = 0x00822300
[    7.923483]   7 mc_data = 0x001ca511
[    7.923483]   8 mc_data = 0x20140944
[    7.923484]   9 mc_data = 0xa58086ba
[    7.923484]   10 mc_data = 0x00000000
[    7.923485] 3 mclk_max = 100000
[    7.923485]   0 mc_data = 0x20337177
[    7.923486]   1 mc_data = 0x20337177
[    7.923487]   2 mc_data = 0x00000000
[    7.923487]   3 mc_data = 0x27273929
[    7.923488]   4 mc_data = 0x0e095310
[    7.923488]   5 mc_data = 0x03171c24
[    7.923489]   6 mc_data = 0x00822300
[    7.923489]   7 mc_data = 0x001ca511
[    7.923490]   8 mc_data = 0x20140a4c
[    7.923491]   9 mc_data = 0xa64086ba
[    7.923491]   10 mc_data = 0x00000000
[    7.923492] 4 mclk_max = 125000
[    7.923492]   0 mc_data = 0x20337177
[    7.923493]   1 mc_data = 0x20337177
[    7.923493]   2 mc_data = 0x00000000
[    7.923494]   3 mc_data = 0x2f68416b
[    7.923495]   4 mc_data = 0x10095330
[    7.923495]   5 mc_data = 0x03e8a12b
[    7.923496]   6 mc_data = 0x00c34500
[    7.923496]   7 mc_data = 0x001ca511
[    7.923497]   8 mc_data = 0x20140e5c
[    7.923497]   9 mc_data = 0xa780874a
[    7.923498]   10 mc_data = 0x00000000
[    7.923499] 5 mclk_max = 137500
[    7.923499]   0 mc_data = 0x20337177
[    7.923500]   1 mc_data = 0x20337177
[    7.923500]   2 mc_data = 0x00000000
[    7.923501]   3 mc_data = 0x346949ad
[    7.923501]   4 mc_data = 0x10095330
[    7.923502]   5 mc_data = 0x0449a32e
[    7.923503]   6 mc_data = 0x00c44600
[    7.923503]   7 mc_data = 0x001ca511
[    7.923504]   8 mc_data = 0x20140f5c
[    7.923504]   9 mc_data = 0xa840875a
[    7.923505]   10 mc_data = 0x00000000
[    7.923505] 6 mclk_max = 150000
[    7.923506]   0 mc_data = 0x20337177
[    7.923507]   1 mc_data = 0x20337177
[    7.923507]   2 mc_data = 0x00000000
[    7.923508]   3 mc_data = 0x386a51ef
[    7.923508]   4 mc_data = 0x11095340
[    7.923509]   5 mc_data = 0x04aa2531
[    7.923509]   6 mc_data = 0x00e44700
[    7.923510]   7 mc_data = 0x001ca511
[    7.923511]   8 mc_data = 0x20940164
[    7.923511]   9 mc_data = 0xa900875a
[    7.923512]   10 mc_data = 0x00000002

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 5750 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (17 preceding siblings ...)
  2013-07-17 17:47 ` bugzilla-daemon
@ 2013-07-17 17:49 ` bugzilla-daemon
  2013-07-17 17:52 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:49 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 517 bytes --]

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

--- Comment #19 from Martin Andersson <g02maran@gmail.com> ---
I wasn't very clear in my #12 comment, but what I was trying to say it is
something fishy about "reg_block->asRegIndexBuf". It is defined in atombios.h
as:
ATOM_MEMORY_SETTING_DATA_BLOCK  asRegDataBuf[1];

But it is accessed well beyond just the first element and it is after the first
access that things start getting weird.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1297 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (18 preceding siblings ...)
  2013-07-17 17:49 ` bugzilla-daemon
@ 2013-07-17 17:52 ` bugzilla-daemon
  2013-07-17 17:55 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:52 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 295 bytes --]

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

--- Comment #20 from Martin Andersson <g02maran@gmail.com> ---
Dammit copied the wrong line, but my point is still valid:
ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1];

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1062 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (19 preceding siblings ...)
  2013-07-17 17:52 ` bugzilla-daemon
@ 2013-07-17 17:55 ` bugzilla-daemon
  2013-07-17 18:00 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 17:55 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 723 bytes --]

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

--- Comment #21 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #19)
> I wasn't very clear in my #12 comment, but what I was trying to say it is
> something fishy about "reg_block->asRegIndexBuf". It is defined in
> atombios.h as:
> ATOM_MEMORY_SETTING_DATA_BLOCK  asRegDataBuf[1];
>

It's a variably sized array and the size varies depending on the system.  The
size of that array is defined by usRegIndexTblSize.  Hence the calculation to
determine the number of elements:

num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1582 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (20 preceding siblings ...)
  2013-07-17 17:55 ` bugzilla-daemon
@ 2013-07-17 18:00 ` bugzilla-daemon
  2013-07-17 18:02 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]

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

--- Comment #22 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #18)
> Created attachment 82559 [details] [review]
> weird fix
> 

Hmmm, looks like a compiler bug.  what compiler are you using?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1426 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (21 preceding siblings ...)
  2013-07-17 18:00 ` bugzilla-daemon
@ 2013-07-17 18:02 ` bugzilla-daemon
  2013-07-17 18:10 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 841 bytes --]

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

--- Comment #23 from Martin Andersson <g02maran@gmail.com> ---
(In reply to comment #21)
> (In reply to comment #19)
> > I wasn't very clear in my #12 comment, but what I was trying to say it is
> > something fishy about "reg_block->asRegIndexBuf". It is defined in
> > atombios.h as:
> > ATOM_MEMORY_SETTING_DATA_BLOCK  asRegDataBuf[1];
> >
> 
> It's a variably sized array and the size varies depending on the system. 
> The size of that array is defined by usRegIndexTblSize.  Hence the
> calculation to determine the number of elements:
> 
> num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
> sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;

ok, wasn't aware of that. My compiler is:
gcc (GCC) 4.8.1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1786 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (22 preceding siblings ...)
  2013-07-17 18:02 ` bugzilla-daemon
@ 2013-07-17 18:10 ` bugzilla-daemon
  2013-07-17 18:14 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 925 bytes --]

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

--- Comment #24 from Andre Heider <a.heider@gmail.com> ---
(In reply to comment #22)
> (In reply to comment #18)
> > Created attachment 82559 [details] [review] [review]
> > weird fix
> > 
> 
> Hmmm, looks like a compiler bug.  what compiler are you using?

gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-6ubuntu1) 

But I think the compiler is right in this case. struct ATOM_INIT_REG_BLOCK
doesn't represent what radeon_atom_init_mc_reg_table() is doing.

The struct in the header reads:
...
ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1];
ATOM_MEMORY_SETTING_DATA_BLOCK    asRegDataBuf[1];

So reg_block->asRegIndexBuf[i] for i>0 is not defined, its within asRegDataBuf
or even pass the size of the struct.

It looks like this gcc is killing the while loop because i can never be
anything else than zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2083 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (23 preceding siblings ...)
  2013-07-17 18:10 ` bugzilla-daemon
@ 2013-07-17 18:14 ` bugzilla-daemon
  2013-07-17 18:15 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 222 bytes --]

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

--- Comment #25 from Martin Andersson <g02maran@gmail.com> ---
The patch works for me as well

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 989 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (24 preceding siblings ...)
  2013-07-17 18:14 ` bugzilla-daemon
@ 2013-07-17 18:15 ` bugzilla-daemon
  2013-07-17 18:16 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1232 bytes --]

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

--- Comment #26 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to comment #24)
> (In reply to comment #22)
> > (In reply to comment #18)
> > > Created attachment 82559 [details] [review] [review] [review]
> > > weird fix
> > > 
> > 
> > Hmmm, looks like a compiler bug.  what compiler are you using?
> 
> gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-6ubuntu1) 
> 
> But I think the compiler is right in this case. struct ATOM_INIT_REG_BLOCK
> doesn't represent what radeon_atom_init_mc_reg_table() is doing.
> 
> The struct in the header reads:
> ...
> ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1];
> ATOM_MEMORY_SETTING_DATA_BLOCK	asRegDataBuf[1];
> 
> So reg_block->asRegIndexBuf[i] for i>0 is not defined, its within
> asRegDataBuf or even pass the size of the struct.
> 
> It looks like this gcc is killing the while loop because i can never be
> anything else than zero.

It works on older version of gcc. I'm using 4.6.2 and 4.7.2 on several boxes
and haven't run into any problems.  Also, even if the loop gets skipped, the
"last = " lines should still get printed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2526 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (25 preceding siblings ...)
  2013-07-17 18:15 ` bugzilla-daemon
@ 2013-07-17 18:16 ` bugzilla-daemon
  2013-07-17 18:25 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:16 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 466 bytes --]

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

--- Comment #27 from Alex Deucher <agd5f@yahoo.com> ---
Created attachment 82560
  --> https://bugs.freedesktop.org/attachment.cgi?id=82560&action=edit
fix

I've attached a git version of Andre's patch.  I think it should be fine.  The
logic is preserved.  Not sure why the previous logic caused such bogus code in
newer versions of gcc.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1407 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (26 preceding siblings ...)
  2013-07-17 18:16 ` bugzilla-daemon
@ 2013-07-17 18:25 ` bugzilla-daemon
  2013-07-17 20:38 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 18:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 342 bytes --]

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

--- Comment #28 from Andre Heider <a.heider@gmail.com> ---
(In reply to comment #26)
> Also, even if the loop gets skipped, the "last = " lines should still get printed.

Oh right, that makes it even more weird...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1186 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (27 preceding siblings ...)
  2013-07-17 18:25 ` bugzilla-daemon
@ 2013-07-17 20:38 ` bugzilla-daemon
  2013-07-17 20:46 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 20:38 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 395 bytes --]

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

--- Comment #29 from Alex Deucher <agd5f@yahoo.com> ---
Created attachment 82563
  --> https://bugs.freedesktop.org/attachment.cgi?id=82563&action=edit
additional fix

Try just this patch on top of attachment 82560.  Do not apply any of the
debugging output patches.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1610 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (28 preceding siblings ...)
  2013-07-17 20:38 ` bugzilla-daemon
@ 2013-07-17 20:46 ` bugzilla-daemon
  2013-07-17 21:42 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 20:46 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

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

--- Comment #30 from Martin Andersson <g02maran@gmail.com> ---
(In reply to comment #29)
> Created attachment 82563 [details] [review]
> additional fix
> 
> Try just this patch on top of attachment 82560 [details] [review].  Do not
> apply any of the debugging output patches.

Works fine for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1781 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (29 preceding siblings ...)
  2013-07-17 20:46 ` bugzilla-daemon
@ 2013-07-17 21:42 ` bugzilla-daemon
  2013-07-17 21:52 ` bugzilla-daemon
  2013-08-13 23:09 ` bugzilla-daemon
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 21:42 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 435 bytes --]

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

--- Comment #31 from tobi@slackeee.de ---
(In reply to comment #29)
> Created attachment 82563 [details] [review]
> additional fix
> 
> Try just this patch on top of attachment 82560 [details] [review].  Do not
> apply any of the debugging output patches.

Fixed my issues also.
Thanks for your great work.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1762 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (30 preceding siblings ...)
  2013-07-17 21:42 ` bugzilla-daemon
@ 2013-07-17 21:52 ` bugzilla-daemon
  2013-08-13 23:09 ` bugzilla-daemon
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-07-17 21:52 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 792 bytes --]

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

--- Comment #32 from queryv+fd@gmail.com ---
(In reply to comment #31)
> (In reply to comment #29)
> > Created attachment 82563 [details] [review] [review]
> > additional fix
> > 
> > Try just this patch on top of attachment 82560 [details] [review] [review].  Do not
> > apply any of the debugging output patches.
> 
> Fixed my issues also.
> Thanks for your great work.

Yep, I applied the latest changes from the drm-fixes-3.11 branch (commit
444bddc) to the 3.11 kernel and that resolved the issue for me as well.

I had previously tried just the initial GCC fix and that didn't work, so I
guess the 'gcc harder' patch was the one that did it for me.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2192 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug 66932] Screen corruption on Cayman with dpm enabled
  2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
                   ` (31 preceding siblings ...)
  2013-07-17 21:52 ` bugzilla-daemon
@ 2013-08-13 23:09 ` bugzilla-daemon
  32 siblings, 0 replies; 34+ messages in thread
From: bugzilla-daemon @ 2013-08-13 23:09 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 414 bytes --]

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

Alex Deucher <agd5f@yahoo.com> changed:

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2013-08-13 23:09 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 15:45 [Bug 66932] New: Screen corruption on Cayman with dpm enabled bugzilla-daemon
2013-07-15 15:54 ` [Bug 66932] " bugzilla-daemon
2013-07-16  1:05 ` bugzilla-daemon
2013-07-16  5:11 ` bugzilla-daemon
2013-07-16 13:21 ` bugzilla-daemon
2013-07-16 17:10 ` bugzilla-daemon
2013-07-16 20:43 ` bugzilla-daemon
2013-07-16 20:47 ` bugzilla-daemon
2013-07-16 21:10 ` bugzilla-daemon
2013-07-16 21:23 ` bugzilla-daemon
2013-07-17  1:45 ` bugzilla-daemon
2013-07-17  9:13 ` bugzilla-daemon
2013-07-17 11:09 ` bugzilla-daemon
2013-07-17 16:40 ` bugzilla-daemon
2013-07-17 16:42 ` bugzilla-daemon
2013-07-17 16:48 ` bugzilla-daemon
2013-07-17 17:02 ` bugzilla-daemon
2013-07-17 17:13 ` bugzilla-daemon
2013-07-17 17:47 ` bugzilla-daemon
2013-07-17 17:49 ` bugzilla-daemon
2013-07-17 17:52 ` bugzilla-daemon
2013-07-17 17:55 ` bugzilla-daemon
2013-07-17 18:00 ` bugzilla-daemon
2013-07-17 18:02 ` bugzilla-daemon
2013-07-17 18:10 ` bugzilla-daemon
2013-07-17 18:14 ` bugzilla-daemon
2013-07-17 18:15 ` bugzilla-daemon
2013-07-17 18:16 ` bugzilla-daemon
2013-07-17 18:25 ` bugzilla-daemon
2013-07-17 20:38 ` bugzilla-daemon
2013-07-17 20:46 ` bugzilla-daemon
2013-07-17 21:42 ` bugzilla-daemon
2013-07-17 21:52 ` bugzilla-daemon
2013-08-13 23:09 ` 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.