All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 35194] New: [r600g] Evergreen - failed to map bo
@ 2011-03-11  6:12 bugzilla-daemon
  2011-03-16 21:28 ` [Bug 35194] " bugzilla-daemon
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-03-11  6:12 UTC (permalink / raw)
  To: dri-devel

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

           Summary: [r600g] Evergreen - failed to map bo
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: rubenf3000@gmail.com


Created an attachment (id=44337)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=44337)
output generated with MESA_GLSL=dump

The game "Back to the Future: the game" crashes at many points with
the message:

radeon_bo_fixed_map failed to map bo
EE radeon_bo.c:120 radeon_bo - failed to map bo

It usually happens at random moments, altough there are specific actions
that trigger the crash reliably.

It works correctly using llvmpipe.

The "failed to map" message originates in the function "radeon_bo_fixed_map"
in "mesa/src/gallium/winsys/r600/drm/radeon_bo.c", when doing a call to mmap;
upon debugging, I found it fails with ENOMEM, despite having more than enough
free RAM available at the time (it only allocates half a megabyte, and I had
almost 1GB of free RAM at the moment of crashing)

Upon further inspection, I found that, at the moment of the crash, the game had
almost exactly 1 gigabyte of buffer objects mmap'd; could it have something to
do with my card having 1GB of video RAM? seems unlikely, since mmap maps to
system memory.

Graphics Card: ATI Technologies Inc Juniper [Radeon HD 5750 Series]
CPU: Intel Core Duo 1.8 Ghz, 2.5 GB RAM
Linux kernel 2.6.37, libdrm 2.4.24
Latest Mesa 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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
@ 2011-03-16 21:28 ` bugzilla-daemon
  2011-03-16 21:30 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-03-16 21:28 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from Jussi Saarinen <jussaar@mbnet.fi> 2011-03-16 14:28:23 PDT ---
(In reply to comment #0)
> 
> The game "Back to the Future: the game" crashes at many points with
> the message:
> 
> radeon_bo_fixed_map failed to map bo
> EE radeon_bo.c:120 radeon_bo - failed to map bo
> 

I also have run into this same bug when running 3DMark 2001 SE in wine.

Motherboard: Gigabyte MA790XT-UD4P
Chipset: North Bridge AMD 790X / South Bridge AMD SB750
Processor: AMD Phenom II X3 720
Display adapter: Club 3D HD 4770 512MB (RV740)
Display: HP Pavilion f1940 (1280x1024)

Distribution: ArchLinux x86-64 (rolling release, up to date)

Installed packages:
kernel: 2.6.37.4-1
xorg-server: 1.9.4.901-1
xf86-video-ati: 6.14.0-2
xf86-input-evdev: 2.6.0-2
libdrm: 2.4.23-2
mesa: 7.10.1-1
ati-dri: 7.10.1-1
libgl: 7.10.1-1

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
  2011-03-16 21:28 ` [Bug 35194] " bugzilla-daemon
@ 2011-03-16 21:30 ` bugzilla-daemon
  2011-04-05  5:48 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-03-16 21:30 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #2 from Jussi Saarinen <jussaar@mbnet.fi> 2011-03-16 14:30:17 PDT ---
(In reply to comment #1)
> (In reply to comment #0)
> > 
> > The game "Back to the Future: the game" crashes at many points with
> > the message:
> > 
> > radeon_bo_fixed_map failed to map bo
> > EE radeon_bo.c:120 radeon_bo - failed to map bo
> > 
> 
> I also have run into this same bug when running 3DMark 2001 SE in wine.
> 

Sorry, I forgot to add this:

OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV740
OpenGL version string: 2.1 Mesa 7.10.1
OpenGL shading language version string: 1.20

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
  2011-03-16 21:28 ` [Bug 35194] " bugzilla-daemon
  2011-03-16 21:30 ` bugzilla-daemon
@ 2011-04-05  5:48 ` bugzilla-daemon
  2011-04-05  5:50 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-04-05  5:48 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #3 from Rubén Fernández <rubenf3000@gmail.com> 2011-04-04 22:48:23 PDT ---
The problem seems to be related to the way wine manages memory; wine reserves
the top 2GB of the addressing space to itself on startup, leaving only 2GB for
everything else (including mesa and the userspace radeon driver); it seems we
aren't running out of memory, but out of addressing space.

For instance, patching wine to make it use only the top 1GB of address space
mitigates the problem (but doesn't make it go away) - the "failed to map bo"
crashes occur with much lower frequency.

This might even be a wine bug - altough it doesn't occur with LLVMPIPE
rendering, or with r300, or with a proprietary driver.

I'll attach the wine patch, just for reference.

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (2 preceding siblings ...)
  2011-04-05  5:48 ` bugzilla-daemon
@ 2011-04-05  5:50 ` bugzilla-daemon
  2011-04-05 13:00 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-04-05  5:50 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #4 from Rubén Fernández <rubenf3000@gmail.com> 2011-04-04 22:50:00 PDT ---
Created an attachment (id=45262)
 View: https://bugs.freedesktop.org/attachment.cgi?id=45262
 Review: https://bugs.freedesktop.org/review?bug=35194&attachment=45262

Patch for wine that leaves the r600 driver a little more address space

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (3 preceding siblings ...)
  2011-04-05  5:50 ` bugzilla-daemon
@ 2011-04-05 13:00 ` bugzilla-daemon
  2011-04-05 19:21 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-04-05 13:00 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #5 from Marek Olšák <maraeo@gmail.com> 2011-04-05 06:00:50 PDT ---
I think this should be fixed in r600g instead, e.g. tiled textures never need
to be mapped.

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (4 preceding siblings ...)
  2011-04-05 13:00 ` bugzilla-daemon
@ 2011-04-05 19:21 ` bugzilla-daemon
  2011-05-06 18:34 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-04-05 19:21 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #6 from Rubén Fernández <rubenf3000@gmail.com> 2011-04-05 12:21:16 PDT ---
(In reply to comment #5)
> I think this should be fixed in r600g instead, e.g. tiled textures never need
> to be mapped.

Using gallium with the latest git (commit
de579a16298e29358fec08bd7cfe3e505674705a, plus kernel 2.6.38.2) the bug still
happens. Using R600_TILING=1 makes the textures look all wrong, and yet the bug
doesn't go away.

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (5 preceding siblings ...)
  2011-04-05 19:21 ` bugzilla-daemon
@ 2011-05-06 18:34 ` bugzilla-daemon
  2011-05-06 18:53 ` bugzilla-daemon
  2011-05-13 23:28 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-05-06 18:34 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #7 from Rubén Fernández <rubenf3000@gmail.com> 2011-05-06 11:34:52 PDT ---
Setting R600_ENABLE_S3TC=1, the bug goes away completely.

I didn't try it before because the game rendered correctly without it, so I
thought it didn't use compressed textures.

Maybe it has a fallback that decompresses the textures if S3TC isn't supported,
at the cost of consuming lots more memory? Or maybe the fallback triggers the
bug, and not the normal code.

Jussi, I recommend you try enabling S3TC and see if you still get the bug. If
not, and since S3TC will become the default eventually, I'd call this bug
solved.

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (6 preceding siblings ...)
  2011-05-06 18:34 ` bugzilla-daemon
@ 2011-05-06 18:53 ` bugzilla-daemon
  2011-05-13 23:28 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-05-06 18:53 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #8 from Marek Olšák <maraeo@gmail.com> 2011-05-06 11:53:38 PDT ---
Some distributions can't enable S3TC.

The fact it looks fixed with S3TC might be that the compression ratio is 1:8 or
1:4, depending on the format, so it saves quite a lot of memory.

-- 
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] 10+ messages in thread

* [Bug 35194] [r600g] Evergreen - failed to map bo
  2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
                   ` (7 preceding siblings ...)
  2011-05-06 18:53 ` bugzilla-daemon
@ 2011-05-13 23:28 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2011-05-13 23:28 UTC (permalink / raw)
  To: dri-devel

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

Rubén Fernández <rubenf3000@gmail.com> changed:

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

--- Comment #9 from Rubén Fernández <rubenf3000@gmail.com> 2011-05-13 16:28:46 PDT ---
With the recent batch of commits from Dave Airlie (starting with
5e15497452cf3e4d2fc76fdc6ed8113d0891b467), the bug dissapears completely,
even without enabling S3TC.

It seems the problem was simply that the driver was mapping too many buffers
unnecessarily; now none of the Telltale games that had the bug crash, no matter
for how long I leave them running, with or without S3TC and with or without
tiling.

Don't know about Jussi, but as far as I can tell, this issue is fixed.

-- 
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] 10+ messages in thread

end of thread, other threads:[~2011-05-13 23:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-11  6:12 [Bug 35194] New: [r600g] Evergreen - failed to map bo bugzilla-daemon
2011-03-16 21:28 ` [Bug 35194] " bugzilla-daemon
2011-03-16 21:30 ` bugzilla-daemon
2011-04-05  5:48 ` bugzilla-daemon
2011-04-05  5:50 ` bugzilla-daemon
2011-04-05 13:00 ` bugzilla-daemon
2011-04-05 19:21 ` bugzilla-daemon
2011-05-06 18:34 ` bugzilla-daemon
2011-05-06 18:53 ` bugzilla-daemon
2011-05-13 23:28 ` 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.