New: (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
https://bugs.freedesktop.org/show_bug.cgi?id=84627
Bug ID: 84627
Summary: (bisected) 32bit corruption with PIPE_USAGE_STREAM
reverted
Product: Mesa
Version: git
Hardware: x86 (IA32)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]As Michel asks me here
https://bugs.freedesktop.org/show_bug.cgi?id=82050#add_comment
Quoted 4 lines
(In reply to comment #65)
Keep in mind that revert broke 32bit complitely, lot of corruption :)I haven't been able to reproduce that. If you still can, please file a bug for >it, as there's nothing preventing the kernel from using GTT instead of VRAM when >the latter is full.
So i can reproduce it today too on 32bit (64bit is not affected, at least not
by corruption) drm-next-3.18 kernel, 3.17.rc7, current mesa git and reverted this:
http://lists.freedesktop.org/archives/mesa-dev/2014-August/066746.html
For the mesa part, i already bisected that it starts at (might be same reason
as bug 83436, but let alone that one for now):
http://cgit.freedesktop.org/mesa/mesa/commit/?id=07c65b85eada8dd34019763b6e82ed4257a9b4a6
For the kernel part not bisected yet, but it is somewhere in between 3.16 and
3.17-rc1, so hopefully i will bisect that maybe today :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #1 from smoki <[email protected]> ---
OK bisected kernel fast, by lucky guessing :) So for the kernel it is:
02376d8282b88f07d0716da6155094c8760b1a13
drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2)
v2: fix rebase onto drm-fixes
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #2 from Michel Dänzer <[email protected]> --- What kind of corruption are we talking about? Can you attach a screenshot?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #3 from smoki <[email protected]> ---
How to say it is some kind of immidiate and raising corruption everywhere.
Appear alredy after i login on 32bit machine, basically nearly everything is corrupted. Fonts, images, games... everything.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #4 from smoki <[email protected]> ---
Created attachment 107392
--> https://bugs.freedesktop.org/attachment.cgi?id=107392&action=edit
corruption
Ok just builded again with stream reverted, if that screenshot can explain
something.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #5 from smoki <[email protected]> ---
Created attachment 107401
--> https://bugs.freedesktop.org/attachment.cgi?id=107401&action=edit
game corruption
(In reply to smoki from comment #4)
Quoted 5 lines
Created attachment 107392 [details]
corruptionOk just builded again with stream reverted, if that screenshot can explain
something.
That screenshot does not show icons are also corrupted, maouse cursor also
dissapear or it is just a point or some kind of mess on screen, etc... One screenshot from games, i don't know how i get there without visible cursor and fonts, etc :D
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #6 from Michel Dänzer <[email protected]> --- And this goes away if RADEON_FLAG_GTT_WC isn't set in r600_buffer_common.c:r600_init_resource()?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #7 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #6)
Quoted 2 lines
And this goes away if
RADEON_FLAG_GTT_WCisn't set in r600_buffer_common.c:r600_init_resource()?
No, that does not help for this corruption. That helps only where games
stutter when GTT loads.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #8 from Michel Dänzer <[email protected]> --- (In reply to smoki from comment #7)
Quoted 1 line
No, that does not help for this corruption.
Note that I mean disabling *all* uses of RADEON_FLAG_GTT_WC. With those disabled, the behaviour should be basically the same as before the commit you bisected to. If that really doesn't work anymore, can you bisect which other commit in the meantime broke things without RADEON_FLAG_GTT_WC?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #9 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #8)
Quoted 7 lines
(In reply to smoki from comment #7)
Quoted 1 line
No, that does not help for this corruption.
Note that I mean disabling *all* uses of
RADEON_FLAG_GTT_WC. With those disabled, the behaviour should be basically the same as before the commit you bisected to. If that really doesn't work anymore, can you bisect which other commit in the meantime broke things withoutRADEON_FLAG_GTT_WC?
I tried only to disable it in default, and also both RADEON_FLAG_GTT_WC
together and also tried your patch form here
https://bugs.freedesktop.org/show_bug.cgi?id=84662#c12 ... it return to old behavior, so there is no stutter but there is not anymore performance gain... and corruption is still there.
Don't know which other commit to bisect it does not work at mesa07c65b85eada8dd34019763b6e82ed4257a9b4a6 and kernel commit 02376d8282b88f07d0716da6155094c8760b1a13 ... even with both RADEON_FLAG_GTT_WC disabled and the same disablement does not work with current stack.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #10 from smoki <[email protected]> ---
Whatever i do corruption is still there and i can't compile 32bit mesa with
normal mtune like in bug 84627 - it is same bisect.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #11 from Michel Dänzer <[email protected]> --- Created attachment 107452
--> https://bugs.freedesktop.org/attachment.cgi?id=107452&action=edit
mesa: Only use two caching buffer managers again
Hmm, but if it's not the GTT_WC flag which triggers the corruption, I'm not sure what it could be...
Here's a shot in the dark, does this patch work around the problem?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #12 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #11)
Quoted 5 lines
Created attachment 107452 [details] [review]
mesa: Only use two caching buffer managers againHmm, but if it's not the
GTT_WCflag which triggers the corruption, I'm not sure what it could be...
Actually that is it doublechecked it now, sorry i think i did not remove allGTT_WC form there, so yeah if i remove all GTT_WC from r600_buffer_common.c there is no problem anymore.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #13 from smoki <[email protected]> ---
Maybe to mention here what i playing a little there yesterday, it is not onlyPIPE_USAGE_STREAM reverted which triggers problem/corruption on 32bit, for example if i only add res->domains = RADEON_DOMAIN_GTT; to default i can't login anymore:
default:
/* Not listing GTT here improves performance in some apps. */
res->domains = RADEON_DOMAIN_VRAM;
+ res->domains = RADEON_DOMAIN_GTT;
flags |= RADEON_FLAG_GTT_WC;
break; On 64bit this is also not a problem, after adding just this performance goes
up by 25% in games like Torchlight, Dota2, etc... i only found slight decrease in other apps by up to 1-3% (Xonotic, Openarena, etc) and it also remove stutter for me in Unigine Valley. So this seems to be better default now, but...
Then again that is only because 'flags |= RADEON_FLAG_GTT_WC;' is there so
that made a difference to not fps go down much. If commented that (with DOMAIN_GTT there) a see even greater boost by 35%-40% performance go up in Torchlight, but it is not actually so good anymore for other apps (Valley suffer). So that seems like some apps very much like, but some not at all :D
Yeah on 32bit i can't play with those, there are various triggered problems
with GTT_WC being there.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #14 from smoki <[email protected]> ---
Revert is upstreamed with commit
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b4276d7acf2e0f77044cb50caa6ad936fa78786,
i am now in corruption enviroment :) Good is only that -mtune=generic now works OK performance wise.
So on top of that, only if i disable all RADEON_FLAG_GTT_WC lines inr600_buffer_common.c corruption goes away.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107452|0 |1
is obsolete| |
--- Comment #15 from Michel Dänzer <[email protected]> --- Created attachment 107655
--> https://bugs.freedesktop.org/attachment.cgi?id=107655&action=edit
drm/radeon: Ignore RADEON_GEM_GTT_WC on Kabini
There seems to be a general problem with write-combined CPU mappings of GTT on Kabini. We previously disabled write-combined mappings of the ring buffers again because other users reported ring test failures on Kabini with that, but from this report it looks like the problem runs deeper.
This kernel patch should work around it for now.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #16 from smoki <[email protected]> ---
Yes that patch workarounds corruption to appear.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #17 from smoki <[email protected]> ---
This thing starts to work (on proper 3.17 kernel) but on multiarched 64bit OS.
Don't know what what is issue about on pure 32bit OS? tried with 64bit kernel there too and it was still an issues there, so this might not be radeon bug at all...
Seems to me this will be partly invalid bug Michel, not sure how many people
even try to run 32bit OS on Kabini, maybe none :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #18 from smoki <[email protected]> ---
Is it something like - glamor 32bit bug? So it might not be specific to
asic... who knows, but really wild guessing... i don't know :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #19 from Michel Dänzer <[email protected]> --- (In reply to smoki from comment #17)
Quoted 4 lines
This thing starts to work (on proper 3.17 kernel) but on multiarched 64bit
OS. Don't know what what is issue about on pure 32bit OS? tried with 64bit kernel there too and it was still an issues there, so this might not be radeon bug at all...
Running a 64 bit kernel is by definition not a 'pure 32 bit' OS.
So what exactly is the difference between the working and broken cases? It sounds like you're using a different distro installation in each case. Maybe there's a difference between them which isn't directly related to the graphics stack? E.g. one of them updating the CPU (not GPU!) microcode at boot, but the other one not.
(In reply to smoki from comment #18)
Quoted 1 line
Is it something like - glamor 32bit bug?
Seems unlikely.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #20 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #19)
Quoted 3 lines
Running a 64 bit kernel is by definition not a 'pure 32 bit' OS.
I run 32bit pae kernel on 32bit OS of course, but just tried there 64bit
kernel in hope that might help, but nope.
Quoted 5 lines
So what exactly is the difference between the working and broken cases? It sounds like you're using a different distro installation in each case. Maybe there's a difference between them which isn't directly related to the graphics stack? E.g. one of them updating the CPU (not GPU!) microcode at boot, but the other one not.
Difference is corruption. I have those installed on separate partitions, one
pure 32bit Debian and one 64bit - both are the same up to date Sid intallations so it is basicaly only different arch.
So on pure 32bit OS one there are these problems, on 64bit one where i run
multiarch (32bit) so the same 32bit programs, there is no corruption.
I also tried to build stack on 32bit, but runing it on 64bit multiarch... it
works there, but not in pure 32bit OS installation. And i also tried fresh 32bit OS installation and nope again does not work == corruption is there.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #21 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #19)
Quoted 2 lines
E.g. one of them updating the CPU (not GPU!) microcode at boot, but the other one not.
Nope i tried both with/without updating CPU microcode, tried also distro
kernel from experimental that is linux-image-3.17-rc5-686-pae currently... in all cases corruption is still there.
Well to reproduce it someone must install 32bit OS :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #22 from Michel Dänzer <[email protected]> --- (In reply to smoki from comment #20)
Quoted 5 lines
(In reply to Michel Dänzer from comment #19)
Quoted 1 line
Running a 64 bit kernel is by definition not a 'pure 32 bit' OS.
I run 32bit pae kernel on 32bit OS of course, but just tried there 64bit
kernel in hope that might help, but nope.
What I meant is that there's no fundamental difference between doing that and running 32 bit apps in a 64-bit distro installation.
To clarify though, for that test did you install a linux-image-*-amd64_*_i386.deb in the 32-bit install, or did you manually copy the kernel from the 64-bit install? If the former, can you also try the latter to rule out any difference between the *_i386.deb and *_amd64.deb?
Quoted 2 lines
So on pure 32bit OS one there are these problems, on 64bit one where i run multiarch (32bit) so the same 32bit programs, there is no corruption.
So you need to isolate what exactly makes the difference. If it's not the kernel and not 'the stack' (what does that mean exactly?), what is it?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #23 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #22)
Quoted 2 lines
What I meant is that there's no fundamental difference between doing that and running 32 bit apps in a 64-bit distro installation.
I know, should not be any difference but yeah don't know what happens...
Quoted 4 lines
To clarify though, for that test did you install a linux-image-*-amd64_*_i386.deb in the 32-bit install, or did you manually copy the kernel from the 64-bit install? If the former, can you also try the latter to rule out any difference between the *_i386.deb and *_amd64.deb?
I run normaly pae kernel there that is default on pure 32bit for me. Yes i
tried that one too: amd64 kernel packaged in i386.deb. Those both and my compiled kernel have corruption.
Tried now what you said pure 64bit kernel packaged as amd64.deb and voila no
corruption with it! Both are distro kernels from experimental and my kernels behave the same there, 32bit as i386.deb one give corruptions, 64bit and packaged as amd64.deb works fine. But hmmm, how and why those differ both are 64bit in different package or?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #24 from smoki <[email protected]> ---
So doublechecked to be sure both are 64bit, this one works:
linux-image-3.17-rc5-amd64_3.17~rc5-1~exp1_amd64.deb
this one - corruption:
linux-image-3.17-rc5-amd64_3.17~rc5-1~exp1_i386.deb
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #25 from Michel Dänzer <[email protected]> ---
I think you should work with the Debian kernel maintainers to isolate what exactly makes the difference between the two kernel packages.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #26 from Michel Dänzer <[email protected]> --- *** Bug 85526 has been marked as a duplicate of this bug. ***
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #27 from Hamish Wilson <[email protected]> ---
Not that I suspect this to surprise anyone, but I felt I should mention that this bug now also appears with Mesa 10.3.3 as well.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #28 from Nils Holland <[email protected]> ---
I first started seeing this bug after upgrading my (completely 32 bit) system from Mesa 10.3.1 to Mesa 10.3.4. Previously I was using version 3.17.3 of the kernel, but upon seeing that there were quite a few changes made to the radeon code between kernels 3.17.3 and 3.17.4, I decided to try 3.17.4 for a change. It seems that the corruption I'm seeing is not as bad when using Mesa 10.3.4 with kernel 3.17.4 compared to 3.17.3, but it is still there and makes things barely usable. I'm downgarding to Mesa 10.3.1 again which makes things work properly for me - still, any more help needed in diagnosing this, and if so, anything I can do to help?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #29 from Michel Dänzer <[email protected]> --- (In reply to Nils Holland from comment #28)
Quoted 1 line
any more help needed in diagnosing this, and if so, anything I can do to help?
See comment 22. From comment 23, it sounds like it might actually be a 32-bit toolchain issue, which somehow leaks into 64-bit kernel builds as well.
If there's any way you can run a 'real' 64-bit kernel on your distro, that's probably the best way to avoid the problem for now.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
Zbigniew Luszpinski <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107655|0 |1
is obsolete| |
--- Comment #30 from Zbigniew Luszpinski <[email protected]> --- Created attachment 110024
--> https://bugs.freedesktop.org/attachment.cgi?id=110024&action=edit
Added Aruba GPU to Ignore RADEON_GEM_GTT_WC on Kabini
Comment 27 Hamish Wilson 2014-11-08 23:17:00 UTC
Quoted 1 line
I should mention that this bug now also appears with Mesa 10.3.3 as well.
Actually this bug appeared first in Mesa 10.3.2:
http://cgit.freedesktop.org/mesa/mesa/log/?h=10.3&ofs=100
with this patch:
2014-10-13 r600g,radeonsi: Always use GTT again for PIPE_USAGE_STREAM
buffers Michel Dänzer
http://cgit.freedesktop.org/mesa/mesa/commit/?h=10.3&id=64c2bdc334ba472603b1e7cd2c3046cfbce285b6
I reported this finding to Michael and he responded with link to this bug here. This patch continues to be in later releases so all new mesa releases are affected on 32 bit Linux.
The quick workaround for mesa 10.3.2 and later on 32 bit Linux is to just revert this Michael's patch above
OR
add your GPU to Michael's exclusion patch "drm/radeon: Ignore RADEON_GEM_GTT_WC on Kabini" attached to this bug report.
Just apply only one of these solutions. I prefer to add my GPU to exclusion list "drm/radeon: Ignore RADEON_GEM_GTT_WC on Kabini" patch instead of patching mesa.
See patch attached here where modified Michael's patch to add my Aruba GPU.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #31 from Michel Dänzer <[email protected]> --- (In reply to Zbigniew Luszpinski from comment #30)
Quoted 3 lines
Just apply only one of these solutions. I prefer to add my GPU to exclusion list "drm/radeon: Ignore
RADEON_GEM_GTT_WCon Kabini" patch instead of patching mesa.
While that patch works around the problem, it doesn't make much sense
conceptually: Since everything is working fine with 64-bit kernels, there doesn't seem to be anything wrong with any particular GPUs.
Also, disabling write-combining decreases performance.
For those reasons, until someone figures out the root cause of this problem, IMHO the preferred workaround is to run a 64-bit kernel. Any particular reason why you can't do that?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #32 from Michel Dänzer <[email protected]> --- (In reply to smoki from comment #23)
Quoted 5 lines
Tried now what you said pure 64bit kernel packaged as amd64.deb and voila
no corruption with it! Both are distro kernels from experimental and my kernels behave the same there, 32bit as i386.deb one give corruptions, 64bit and packaged as amd64.deb works fine. But hmmm, how and why those differ both are 64bit in different package or?
Is there any difference in the /boot/config-3.* file between the two packages?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #33 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #32)
Quoted 2 lines
Is there any difference in the
/boot/config-3.*file between the two packages?
As i see only one: amd64.amd64 package has CONFIG_DEBUG_INFO=y while
amd64.i386 has CONFIG_DEBUG_INFO is not set ... diff says only this:
< CONFIG_DEBUG_INFO=y
< # CONFIG_DEBUG_INFO_REDUCED is not set
< # CONFIG_DEBUG_INFO_SPLIT is not set
< # CONFIG_DEBUG_INFO_DWARF4 is not set
---
Quoted 1 line
#
CONFIG_DEBUG_INFOis not set
But also affected 686-pae has CONFIG_DEBUG_INFO=y too, so i guess that config
option is not an issue.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #34 from Nils Holland <[email protected]> --- Ok, I believe I can confirm smoki's findings that only 32 bit kernels are affected while identically configured 64 bit ones are not.
I'm on Gentoo Linux where I've custom-compiled my whole system, including the kernel (which, originally, was a 32 bit one). I now took my kernel config and changed only two things: I turned on the option to compile a 64 bit kernel as well as the option that allows me to run 32 bit binaries with the resulting kernel. I then compiled the exact same kernel sources I had used before and upon booting the new 64 bit kernel Mesa worked absolutely fine without any visible corruption.
I guess that proves Michels point that this issue seems to be 32 bit toolchain related.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #110024|0 |1
is obsolete| |
--- Comment #35 from Michel Dänzer <[email protected]> --- Created attachment 110118
--> https://bugs.freedesktop.org/attachment.cgi?id=110118&action=edit
drm/radeon: Ignore RADEON_GEM_GTT_WC on 32-bit x86
Can one of you confirm that this patch works around the problem for a 32-bit kernel build?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #36 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #35)
Quoted 5 lines
Created attachment 110118 [details] [review] drm/radeon: Ignore
RADEON_GEM_GTT_WCon 32-bit x86Can one of you confirm that this patch works around the problem for a 32-bit kernel build?
Yes, it works for 686-pae kernel i've just builded :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #37 from Nils Holland <[email protected]> --- (In reply to Michel Dänzer from comment #35)
Quoted 5 lines
Created attachment 110118 [details] [review] drm/radeon: Ignore
RADEON_GEM_GTT_WCon 32-bit x86Can one of you confirm that this patch works around the problem for a 32-bit kernel build?
Yes, just like smoki, I can confirm that with this patch, I can run current Mesa builds just fine on my 32 bit kernel.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #38 from Igor Gnatenko <[email protected]> --- Any news? Seems patch works ok for people. can you sned it for 10.3 stable also?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #39 from Nils Holland <[email protected]> --- (In reply to Igor Gnatenko from comment #38)
Quoted 2 lines
Any news? Seems patch works ok for people. can you sned it for 10.3 stable also?
The patch that fixed the issue for us is actually a kernel patch and not a Mesa patch and as such should work regardless of what Mesa version you're using.
Regarding the question on why this issue only seems to affect 32 bit kernels and not 64 bit ones, and if the proposes patch can serve as a permanent fix or is coupled with too many undesirable side-effects ... well, Michel can probably give more qualified information about that.
As it stands, the patch disables write-combining and thus will probably have negative effects on performance, although I don't really notice any difference on my own machine compared to the time "when things worked fine without any patching at all" (but I'm not really running very demanding stuff). Just using a 64 bit kernel instead of going down the patch route should fix the problem without these side-effects.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #40 from Hamish Wilson <[email protected]> --- Did the kernel patch ever get merged?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #41 from Alex Deucher <[email protected]> --- Yes:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a08b588e4199e4200d26027ffcdf3ab2fa906412
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #42 from Marek Olšák <[email protected]> --- (In reply to Nils Holland from comment #37)
Quoted 9 lines
(In reply to Michel Dänzer from comment #35)
Quoted 5 lines
Created attachment 110118 [details] [review] [review] drm/radeon: Ignore
RADEON_GEM_GTT_WCon 32-bit x86Can one of you confirm that this patch works around the problem for a 32-bit kernel build?
Yes, just like smoki, I can confirm that with this patch, I can run current Mesa builds just fine on my 32 bit kernel.
(In reply to Hamish Wilson from comment #40)
Quoted 1 line
Did the kernel patch ever get merged?
(In reply to Alex Deucher from comment #41)
Quoted 3 lines
Yes:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
?id=a08b588e4199e4200d26027ffcdf3ab2fa906412
OK. Closing then.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- Comment #43 from sam zain <[email protected]> --- great work.
http://www.winmilliongame.com
http://www.gtagame100.com
http://www.subway-game.com
http://www.zumagame100.com
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel