All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 53490] New: [bisected] bump map corruption from kernel 3.5
@ 2012-08-14 12:22 bugzilla-daemon
  2012-08-14 12:23 ` [Bug 53490] " bugzilla-daemon
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-14 12:22 UTC (permalink / raw)
  To: dri-devel

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

             Bug #: 53490
           Summary: [bisected] bump map corruption from kernel 3.5
    Classification: Unclassified
           Product: Mesa
           Version: 7.11
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: joeri@capens.net


Created attachment 65540
  --> https://bugs.freedesktop.org/attachment.cgi?id=65540
Portal 2 screenshot - good

After updating my Linux kernel to 3.5.0 I'm seeing bump map corruption in
Portal 2. See attachments.

I bisected it down to commit 416a2bd274566a6f607a271f524b2dc0b84d9106 -
drm/radeon: fixup tiling group size and backendmap on r6xx-r9xx (v4)

My GPU is a Radeon HD 5670 (Evergreen, Redwood) and I'm using Gallium (for
R600) on Gentoo Linux AMD64.

If I disable bump mapping in Portal 2 (command "mat_bumpmap 0") the corruption
goes away, but obviously the walls and objects appear flatter.

Mesa, libdrm, xf86-video-ati or Wine versions don't seem to matter. I tested
some combinations of Mesa 7.11.2 and 8.0.4, libdrm 2.4.27, 2.4.33 and 2.4.38,
xf86-video-ati 6.14.4 and 6.14.6, Wine 1.5.9 and 1.5.10.

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
@ 2012-08-14 12:23 ` bugzilla-daemon
  2012-08-14 12:24 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-14 12:23 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from Joeri Capens <joeri@capens.net> 2012-08-14 12:23:05 UTC ---
Created attachment 65541
  --> https://bugs.freedesktop.org/attachment.cgi?id=65541
Portal 2 screenshot - bad

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
  2012-08-14 12:23 ` [Bug 53490] " bugzilla-daemon
@ 2012-08-14 12:24 ` bugzilla-daemon
  2012-08-14 12:31 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-14 12:24 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #2 from Joeri Capens <joeri@capens.net> 2012-08-14 12:24:48 UTC ---
Created attachment 65542
  --> https://bugs.freedesktop.org/attachment.cgi?id=65542
bisect info

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
  2012-08-14 12:23 ` [Bug 53490] " bugzilla-daemon
  2012-08-14 12:24 ` bugzilla-daemon
@ 2012-08-14 12:31 ` bugzilla-daemon
  2012-08-14 14:04 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-14 12:31 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #3 from Joeri Capens <joeri@capens.net> 2012-08-14 12:31:22 UTC ---
Forgot to mention: while trying (but failing) to narrow down the problem with
patch 416a2bd274566a6f607a271f524b2dc0b84d9106 I found that variable
num_shader_engines in evergreen.c appears to be unused?

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2012-08-14 12:31 ` bugzilla-daemon
@ 2012-08-14 14:04 ` bugzilla-daemon
  2012-08-15  0:18 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-14 14:04 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #4 from Michel Dänzer <michel@daenzer.net> 2012-08-14 14:04:13 UTC ---
Please attach the Xorg.0.log file corresponding to the problem.

Have you tried current Mesa Git master?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2012-08-14 14:04 ` bugzilla-daemon
@ 2012-08-15  0:18 ` bugzilla-daemon
  2012-08-15  0:19 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15  0:18 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #5 from Joeri Capens <joeri@capens.net> 2012-08-15 00:18:56 UTC ---
Adding Xorg.0.log. I tried the latest Mesa Git now but it didn't make a
difference.

However, I found the specific change in
416a2bd274566a6f607a271f524b2dc0b84d9106 which causes the bump map corruption
I'm seeing. When I revert the change in the tile_config calculation, the
problem goes away.

I've created a patch which fixes the tile_config calculation and which removes
the unused num_shader_engines variable.

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2012-08-15  0:18 ` bugzilla-daemon
@ 2012-08-15  0:19 ` bugzilla-daemon
  2012-08-15  0:20 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15  0:19 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #6 from Joeri Capens <joeri@capens.net> 2012-08-15 00:19:34 UTC ---
Created attachment 65572
  --> https://bugs.freedesktop.org/attachment.cgi?id=65572
num_shader_engines

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2012-08-15  0:19 ` bugzilla-daemon
@ 2012-08-15  0:20 ` bugzilla-daemon
  2012-08-15  0:21 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15  0:20 UTC (permalink / raw)
  To: dri-devel

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

Joeri Capens <joeri@capens.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65572|0                           |1
        is obsolete|                            |

--- Comment #7 from Joeri Capens <joeri@capens.net> 2012-08-15 00:20:55 UTC ---
Created attachment 65573
  --> https://bugs.freedesktop.org/attachment.cgi?id=65573
Xorg.0.log

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2012-08-15  0:20 ` bugzilla-daemon
@ 2012-08-15  0:21 ` bugzilla-daemon
  2012-08-15 13:41 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15  0:21 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #8 from Joeri Capens <joeri@capens.net> 2012-08-15 00:21:53 UTC ---
Created attachment 65574
  --> https://bugs.freedesktop.org/attachment.cgi?id=65574
evergreen_fix_tile_config_and_remove_unused_variable.patch

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2012-08-15  0:21 ` bugzilla-daemon
@ 2012-08-15 13:41 ` bugzilla-daemon
  2012-08-15 21:10 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15 13:41 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #9 from Alex Deucher <agd5f@yahoo.com> 2012-08-15 13:41:52 UTC ---
(In reply to comment #8)
> Created attachment 65574 [details] [review]
> evergreen_fix_tile_config_and_remove_unused_variable.patch

That patch is wrong.  group size has no relation to burst size.  I think what's
happening is that increasing group size is causing larger alignment.  Does this
patch help?

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=c8d15edc17d836686d1f071e564800e1a2724fa6

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2012-08-15 13:41 ` bugzilla-daemon
@ 2012-08-15 21:10 ` bugzilla-daemon
  2012-08-15 21:11 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15 21:10 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #10 from Joeri Capens <joeri@capens.net> 2012-08-15 21:10:52 UTC ---
I actually already tried that patch since I tried the last Linux GIT two days
ago.

Unfortunately it doesn't fix the problem. The screen corruption does look a bit
different though, see attachment "16_bank.png".

Adding a printk for the tile_config value right after its calculation gives me
the following values:

Linux 3.4: 0x1112 (good)
Linux 3.5: 0x1012 (corruption)
Linux GIT: 0x0022 (slightly less corruption)

Does this information help?

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2012-08-15 21:10 ` bugzilla-daemon
@ 2012-08-15 21:11 ` bugzilla-daemon
  2012-09-01  0:56 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-08-15 21:11 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #11 from Joeri Capens <joeri@capens.net> 2012-08-15 21:11:54 UTC ---
Created attachment 65617
  --> https://bugs.freedesktop.org/attachment.cgi?id=65617
Portal 2 screenshot - Linux GIT

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2012-08-15 21:11 ` bugzilla-daemon
@ 2012-09-01  0:56 ` bugzilla-daemon
  2012-09-01  0:57 ` bugzilla-daemon
  2012-09-07 12:10 ` bugzilla-daemon
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-09-01  0:56 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #12 from Joeri Capens <joeri@capens.net> 2012-09-01 00:56:43 UTC ---
Bit 8 of tile_config (CHANSIZE?) needs to be 1 to make the bumpmap corruption
disappear on my system.

Before 416a2bd274566a6f607a271f524b2dc0b84d9106 this used to be calculated from
the BURSTLENGTH value. My patch reverted to that and while it works it does
indeed look weird.

Patch 416a2bd274566a6f607a271f524b2dc0b84d9106 replaced the calculation with:

rdev->config.evergreen.tile_config |= 0 << 8;

which also looks weird because this operation does nothing. So I guess it must
simply be:

rdev->config.evergreen.tile_config |= 1 << 8;

I don't have a clue what all of this actually means or does to the hardware, it
only seems more logical to me and it fixes the problems I was having.

The value of tile_config is now 0x0122 on my system.

Attaching a new patch.

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2012-09-01  0:56 ` bugzilla-daemon
@ 2012-09-01  0:57 ` bugzilla-daemon
  2012-09-07 12:10 ` bugzilla-daemon
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-09-01  0:57 UTC (permalink / raw)
  To: dri-devel

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

Joeri Capens <joeri@capens.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65574|0                           |1
        is obsolete|                            |

--- Comment #13 from Joeri Capens <joeri@capens.net> 2012-09-01 00:57:49 UTC ---
Created attachment 66427
  --> https://bugs.freedesktop.org/attachment.cgi?id=66427
evergreen_fix_tile_config_and_remove_unused_variable_v2.patch

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

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

* [Bug 53490] [bisected] bump map corruption from kernel 3.5
  2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2012-09-01  0:57 ` bugzilla-daemon
@ 2012-09-07 12:10 ` bugzilla-daemon
  13 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2012-09-07 12:10 UTC (permalink / raw)
  To: dri-devel

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

Joeri Capens <joeri@capens.net> changed:

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

--- Comment #14 from Joeri Capens <joeri@capens.net> 2012-09-07 12:10:45 UTC ---
I re-compiled mesa again (the "8.1_rc1_pre20120724" git snapshot provided by
Gentoo, to be exact) and this time the bump map corruption does not occur
anymore, with or without my kernel patch.

I tried some recent mesa versions before, but I must have made mistakes while
copying the mesa libraries from a 32-bit chroot to the /usr/lib32/ directory on
my 64-bit system.

Somewhere between mesa 8.0.4 and the snapshot of 2012-07-24, the bug has
already been fixed.

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

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

end of thread, other threads:[~2012-09-07 12:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 12:22 [Bug 53490] New: [bisected] bump map corruption from kernel 3.5 bugzilla-daemon
2012-08-14 12:23 ` [Bug 53490] " bugzilla-daemon
2012-08-14 12:24 ` bugzilla-daemon
2012-08-14 12:31 ` bugzilla-daemon
2012-08-14 14:04 ` bugzilla-daemon
2012-08-15  0:18 ` bugzilla-daemon
2012-08-15  0:19 ` bugzilla-daemon
2012-08-15  0:20 ` bugzilla-daemon
2012-08-15  0:21 ` bugzilla-daemon
2012-08-15 13:41 ` bugzilla-daemon
2012-08-15 21:10 ` bugzilla-daemon
2012-08-15 21:11 ` bugzilla-daemon
2012-09-01  0:56 ` bugzilla-daemon
2012-09-01  0:57 ` bugzilla-daemon
2012-09-07 12:10 ` 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.