Bug 24836 - [radeon] RV370 bug with KMS dual head : Bad alloc
Summary: [radeon] RV370 bug with KMS dual head : Bad alloc
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 08:43 UTC by Yannick Dirou
Modified: 2010-10-20 05:20 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (45.39 KB, text/plain)
2009-11-01 08:43 UTC, Yannick Dirou
no flags Details
Xorg.0.log (101.06 KB, patch)
2009-11-01 08:44 UTC, Yannick Dirou
no flags Details | Splinter Review
If BO creation in VRAM fails, retry without specific domain (1.38 KB, patch)
2009-11-05 01:40 UTC, Michel Dänzer
no flags Details | Splinter Review

Description Yannick Dirou 2009-11-01 08:43:32 UTC
Created attachment 30885 [details]
dmesg

With some apps , firefox , thunderbird, mutter ...

i get a bad alloc :
The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 44571 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

my config :
- karmic koala
- kernel 2.6.32-rc5-81-g964fe08
- latest drm and ddx from git master
- dual head :
xrandr
Screen 0: minimum 320 x 200, current 2080 x 1024, maximum 4096 x 4096
VGA-0 connected 1280x1024+800+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0 +   75.0* 
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600        59.9*+
   640x480        59.9
Comment 1 Yannick Dirou 2009-11-01 08:44:42 UTC
Created attachment 30886 [details] [review]
Xorg.0.log
Comment 2 Yannick Dirou 2009-11-01 08:47:35 UTC
extract from dmesg
Comment 3 Yannick Dirou 2009-11-01 08:48:37 UTC
[  186.401916] [TTM] Failed moving buffer. Proposed placement 0x00060004
[  186.401923] [TTM] Out of aperture space or DRM memory quota.
[  186.401939] [drm:radeon_object_create] *ERROR* Failed to allocate TTM object (31961088, 0x00060004, 0)
[  186.401945] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (31961088, 4, 4096)
Comment 4 Michel Dänzer 2009-11-05 01:40:50 UTC
Created attachment 30975 [details] [review]
If BO creation in VRAM fails, retry without specific domain

Does this patch help?

Probably not an ideal solution though, e.g. the kernel messages will probably still appear.
Comment 5 Yannick Dirou 2009-11-05 04:38:43 UTC
(In reply to comment #4)
> Created an attachment (id=30975) [details]
> If BO creation in VRAM fails, retry without specific domain
> 
> Does this patch help?
> 
> Probably not an ideal solution though, e.g. the kernel messages will probably
> still appear.
> 

yes,

it helps :
- no more bad alloc (and crash) in firefox

but as you wrote dmesg flooded by many
[  627.033240] [TTM] Out of aperture space or DRM memory quota.
[  627.033255] [drm:radeon_object_create] *ERROR* Failed to allocate TTM object (31961088, 0x00060004, 0)
[  627.033261] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (31961088, 4, 4096)
[  628.044093] [TTM] Failed moving buffer. Proposed placement 0x00060004

Comment 6 Yannick Dirou 2009-11-07 02:42:03 UTC
> yes,
> 
> it helps :
> - no more bad alloc (and crash) in firefox

in fact, after surfing a while, i get some random corrupted or black images
Comment 7 Yannick Dirou 2009-11-25 04:55:30 UTC
i tried karmic xorg edgers PPA with
latest libdrm and ddx git master on linux 2.6.32-rc8-11-ga8a8a66

and same problem

Any update on this bug ?
Is this being discussed or low id in the resolving queue ?

i am willing to provide more info if needed,

Greetings

Comment 8 Yannick Dirou 2010-02-11 11:58:02 UTC
(In reply to comment #7)
> i tried karmic xorg edgers PPA with
> latest libdrm and ddx git master on linux 2.6.32-rc8-11-ga8a8a66
> 
> and same problem
> 
> Any update on this bug ?
> Is this being discussed or low id in the resolving queue ?
> 
> i am willing to provide more info if needed,
> 
> Greetings
> 

this seems to be resolved,
but ;-)
everything updated (xorg ppa / drm git / ddx git / mesa ppa)
new issues :

- a lot of 3d apps don't work in dualhead
nexuiz launch:
drmRadeonCmdBuffer: -12. Kernel failed to parse or rejected command stream. See dmesg for more info.
dmesg:
[ 8606.695866] [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
it works single headed ???

- reading some but not all news in thunderbird result in xorg crash (segfault)
[  551.932958] Xorg[1845]: segfault at 0 ip 00007f8e76df321c sp 00007fffb3538f68 error 4 in libc-2.11.1.so[7f8e76d6d000+175000]

should i fill new bugs ?

Comment 9 Yannick Dirou 2010-02-11 11:59:01 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > i tried karmic xorg edgers PPA with
> > latest libdrm and ddx git master on linux 2.6.32-rc8-11-ga8a8a66
> > 
> > and same problem
> > 
> > Any update on this bug ?
> > Is this being discussed or low id in the resolving queue ?
> > 
> > i am willing to provide more info if needed,
> > 
> > Greetings
> > 
> 
> this seems to be resolved,
> but ;-)
> everything updated (xorg ppa / drm git / ddx git / mesa ppa)
> new issues :
> 
> - a lot of 3d apps don't work in dualhead
> nexuiz launch:
> drmRadeonCmdBuffer: -12. Kernel failed to parse or rejected command stream. See
> dmesg for more info.
> dmesg:
> [ 8606.695866] [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
> it works single headed ???
> 
> - reading some but not all news in thunderbird result in xorg crash (segfault)
> [  551.932958] Xorg[1845]: segfault at 0 ip 00007f8e76df321c sp
> 00007fffb3538f68 error 4 in libc-2.11.1.so[7f8e76d6d000+175000]
> 
> should i fill new bugs ?
> 

oops forgot kernel 2.6.33-rc7-117-ge28cab4
Comment 10 Yannick Dirou 2010-02-11 12:03:59 UTC
> 
> oops forgot kernel 2.6.33-rc7-117-ge28cab4
> 

and last but not least
setting s-video output to pal (ntsc ok except colors)
result in white horizontal stripes every nth-lines ???
can play vid but not very comfortable.

Comment 11 Alex Deucher 2010-10-19 18:40:27 UTC
Is this still an issue with a newer kernel and driver?
Comment 12 Yannick Dirou 2010-10-20 00:58:50 UTC
(In reply to comment #11)
> Is this still an issue with a newer kernel and driver?

not present anymore, you can close
Comment 13 Julien Cristau 2010-10-20 05:20:51 UTC
Closing, thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.