Bug 22606 - kwin 3d for kde 4.x stopped working
Summary: kwin 3d for kde 4.x stopped working
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-03 08:07 UTC by Paulo Dias
Modified: 2009-07-14 08:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Paulo Dias 2009-07-03 08:07:12 UTC
Kwin 3d for kde 4.x doesnt work anymore since commit a18e209edb5348eb167e9d7184597031bbbbe622 of mesa master.

By not working i mean it refuses to start and if i disable the capabilities check it will start blinking and garbling the screen until i disable it again.

using latest dri2/kms from linus tree as of commit 7c5371c403abb29f01bc6cff6c5096abdf2dc524
Author: Yinghai Lu <yinghai@kernel.org>
Date:   Wed Jul 1 12:32:18 2009 -0700

using latest drm from master as of commit 72a29340ea3225550db6b009f4e50c77c7b1f394
Author: Jerome Glisse <jglisse@redhat.com>
Date:   Fri Jul 3 15:03:03 2009 +0200

using latest mesa from master as of commit 060c7f2321f72503c14f9f3f7bb27d59d8a90224
Author: Michel Dänzer <daenzer@vmware.com>
Date:   Fri Jul 3 12:44:19 2009 +0200

using latest ddx from master as of commit 8d2f712eaf1e569fd92bbe2db5aceb43b7b367d1
Author: Dave Airlie <airlied@linux.ie>
Date:   Fri Jul 3 10:40:59 2009 +1000

compiz still works. kwin3d ALWAYS worked (several months) till this commit.

best regards.
Comment 1 Paulo Dias 2009-07-03 15:07:45 UTC
after digging a little more, i discovered that the drm is to blame, not mesa. something is very wrong with latest drm and rs485, now all mesa/prog/tests and demos work fine (even fbo), BUT im getting crashes and freezes that i didnt had before, most notably when browsing using firefox 3.5 (something wrong with gnome colors perhaps).

the card crashed several times with:

Jul  3 18:48:07 kerberos kernel: [ 1918.915906] ------------[ cut here ]------------
Jul  3 18:48:07 kerberos kernel: [ 1918.915918] WARNING: at mm/page_alloc.c:1743 __alloc_pages_nodemask+0x402/0x530()
Jul  3 18:48:07 kerberos kernel: [ 1918.915921] Hardware name: Aspire 5100                                           
Jul  3 18:48:07 kerberos kernel: [ 1918.915924] Modules linked in: usb_storage i2c_dev cbc aes_i586 aes_generic ramzswap xvmalloc lzo_decompress lzo_compress binfmt_misc ppdev vboxnetadp vboxnetflt vboxdrv lp parport snd_hda_codec_realtek snd_hda_intel arc4 snd_hda_codec ecb snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm                                                                                                              
pcmcia snd_seq_dummy snd_seq_oss snd_seq_midi ath5k snd_rawmidi mac80211 snd_seq_midi_event snd_seq acer_wmi joydev i2c_piix4 ath ati_agp yenta_socket rsrc_nonstatic pcmcia_core snd_timer snd_seq_device video shpchp sdhci_pci sdhci led_class psmouse serio_raw pcspkr k8temp snd soundcore snd_page_alloc cfg80211 output reiserfs usbhid sd_mod 8139too 8139cp sg mii fbcon tileblit font bitblit softcursor radeon i2c_algo_bit ttm drm agpgart
Jul  3 18:48:07 kerberos kernel: [ 1918.915985] Pid: 6338, comm: Xorg Not tainted 2.6.31-rc1-custom #2
Jul  3 18:48:07 kerberos kernel: [ 1918.915988] Call Trace:
Jul  3 18:48:07 kerberos kernel: [ 1918.915995]  [<c0557640>] ? printk+0x18/0x20
Jul  3 18:48:07 kerberos kernel: [ 1918.915999]  [<c01b8422>] ? __alloc_pages_nodemask+0x402/0x530
Jul  3 18:48:07 kerberos kernel: [ 1918.916028]  [<c014487c>] warn_slowpath_common+0x6c/0xc0
Jul  3 18:48:07 kerberos kernel: [ 1918.916034]  [<c01b8422>] ? __alloc_pages_nodemask+0x402/0x530
Jul  3 18:48:07 kerberos kernel: [ 1918.916040]  [<c01448e5>] warn_slowpath_null+0x15/0x20
Jul  3 18:48:07 kerberos kernel: [ 1918.916043]  [<c01b8422>] __alloc_pages_nodemask+0x402/0x530
Jul  3 18:48:07 kerberos kernel: [ 1918.916049]  [<c0126f08>] ? default_spin_lock_flags+0x8/0x10
Jul  3 18:48:07 kerberos kernel: [ 1918.916055]  [<c01b8597>] __get_free_pages+0x17/0x30
Jul  3 18:48:07 kerberos kernel: [ 1918.916060]  [<c01e0c34>] __kmalloc+0x124/0x1a0
Jul  3 18:48:07 kerberos kernel: [ 1918.916098]  [<f83e9374>] ? kcalloc+0x24/0x50 [radeon]
Jul  3 18:48:07 kerberos kernel: [ 1918.916105]  [<c0312a05>] ? copy_from_user+0x35/0x130
Jul  3 18:48:07 kerberos kernel: [ 1918.916133]  [<f83e94c2>] radeon_cs_parser_init+0x122/0x1a0 [radeon]
Jul  3 18:48:07 kerberos kernel: [ 1918.916159]  [<f83e9782>] radeon_cs_ioctl+0x52/0x190 [radeon]
Jul  3 18:48:07 kerberos kernel: [ 1918.916189]  [<f82c25fa>] drm_ioctl+0x18a/0x390 [drm]
Jul  3 18:48:07 kerberos kernel: [ 1918.916200]  [<c0206466>] ? splice_direct_to_actor+0xd6/0x1c0
Jul  3 18:48:07 kerberos kernel: [ 1918.916206]  [<c0206466>] ? splice_direct_to_actor+0xd6/0x1c0
Jul  3 18:48:07 kerberos kernel: [ 1918.916230]  [<f83e9730>] ? radeon_cs_ioctl+0x0/0x190 [radeon]
Jul  3 18:48:07 kerberos kernel: [ 1918.916236]  [<c012dc99>] ? kmap_atomic_prot+0xe9/0x110
Jul  3 18:48:07 kerberos kernel: [ 1918.916242]  [<c01bbb41>] ? lru_cache_add_lru+0x21/0x40
Jul  3 18:48:07 kerberos kernel: [ 1918.916247]  [<c012dad3>] ? kunmap_atomic+0x53/0x70
Jul  3 18:48:07 kerberos kernel: [ 1918.916253]  [<c01cc4c9>] ? handle_mm_fault+0x629/0xae0
Jul  3 18:48:07 kerberos kernel: [ 1918.916260]  [<c01ceb76>] ? remove_vma+0x46/0x60
Jul  3 18:48:07 kerberos kernel: [ 1918.916266]  [<c055a29d>] ? lock_kernel+0x2d/0x50
Jul  3 18:48:07 kerberos kernel: [ 1918.916278]  [<c01f5691>] vfs_ioctl+0x71/0x80
Jul  3 18:48:07 kerberos kernel: [ 1918.916283]  [<c0206466>] ? splice_direct_to_actor+0xd6/0x1c0
Jul  3 18:48:07 kerberos kernel: [ 1918.916288]  [<c01f57da>] do_vfs_ioctl+0x6a/0x5e0
Jul  3 18:48:07 kerberos kernel: [ 1918.916295]  [<c0148a9b>] ? do_setitimer+0x2cb/0x330
Jul  3 18:48:07 kerberos kernel: [ 1918.916301]  [<c0312a05>] ? copy_from_user+0x35/0x130
Jul  3 18:48:07 kerberos kernel: [ 1918.916307]  [<c0148b5c>] ? sys_setitimer+0x5c/0xa0
Jul  3 18:48:07 kerberos kernel: [ 1918.916312]  [<c01f5db3>] sys_ioctl+0x63/0x70
Jul  3 18:48:07 kerberos kernel: [ 1918.916318]  [<c0103c94>] sysenter_do_call+0x12/0x28
Jul  3 18:48:07 kerberos kernel: [ 1918.916323]  [<c0206466>] ? splice_direct_to_actor+0xd6/0x1c0
Jul  3 18:48:07 kerberos kernel: [ 1918.916328] ---[ end trace 37a04450f4352ffd ]---

and a lot of this in dmesg:

Jul  3 18:48:08 kerberos kernel: 080 in cs at 1                                                                                                
Jul  3 18:50:22 kerberos kernel: [ 2054.606041] Unpin not necessary for f68bdc00 !                                                             
Jul  3 18:50:37 kerberos kernel: [ 2069.331438] Unpin not necessary for e44e5500 !                                                             
Jul  3 18:52:20 kerberos python: hp-systray[13889]: warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting.              
Jul  3 18:54:23 kerberos kernel: [ 2295.007246] Unpin not necessary for f09f8f00 !                                                             
Jul  3 18:55:30 kerberos python: hp-systray[15446]: warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting.              
Jul  3 18:58:04 kerberos kernel: 1:0:2498) end after CS buffer (28) !                                                                          
Jul  3 18:58:04 kerberos kernel: nd after CS buffer (546) !                                                                                    
Jul  3 18:58:04 kerberos kernel: end                                                                                                           
Jul  3 18:58:04 kerberos kernel: nd after CS buffer (20  end after CS                                                                          
Jul  3 18:58:04 kerberos kernel:  end aftem) end af end afa8) end am) end aft8) end afm) end after CS buffer) end after CS b!end after CS buffe!end after CS bu0                                                                                                                              
Jul  3 18:58:04 kerberos kernel: 46) !                                                                                                         
Jul  3 18:58:04 kerberos kernel: 62) m6) !                                                                                                     
Jul  3 18:58:04 kerberos kernel: 2) !                                                                                                          
Jul  3 18:58:04 kerberos kernel: ) !                                                                                                           
Jul  3 18:58:04 kerberos kernel: ) !                                                                                                           
Jul  3 18:58:04 kerberos kernel:  stream !                                                                                                     
Jul  3 18:58:04 kerberos kernel: and stream !                                                                                                  
Jul  3 18:58:04 kerberos kernel: d ste streed stree stread streame streaed stree stread strea streaed stree stread strea streaed stree stread strea streaed stree strd strea streaed stree streaed stree stread strea streaed stree stread strea streaed stree stread strea streamd strea streaed stree streaed stree streaed stree stread strea streaed stree streed stree stread strea streaed stream !                                    
Jul  3 18:58:04 kerberos kernel: d stre streaed stree streaed stream !e sed str stream !                                                       
Jul  3 18:58:04 kerberos kernel: <d stream !                                                                                                   
Jul  3 18:58:04 kerberos kernel:  streamrstreamrd streae streaed streae stream !d stream  stream !                                             
Jul  3 18:58:04 kerberos kernel: stream !                                                                                                      
Jul  3 18:58:04 kerberos kernel:  stream !                                                                                                     
Jul  3 18:58:04 kerberos kernel: tream  stream !                                                                                               
Jul  3 18:58:04 kerberos kernel: tre  stream !                                                                                                 
Jul  3 18:58:04 kerberos kernel:  stream rd stream !                                                                                           
Jul  3 18:58:04 kerberos kernel: and stream !                                                                                                  
Jul  3 18:58:04 kerberos kernel: tream !
Jul  3 18:58:04 kerberos kernel: ream !
Jul  3 18:58:04 kerberos kernel: ream 4ream !ream !
Jul  3 18:58:04 kerberos kernel: re4ream !(ream !4ream !(ream !4ream !ream !
Jul  3 18:58:04 kerberos kernel: re4ream !(ream !ream !
Jul  3 18:58:04 kerberos kernel: r(ream !ream !
Jul  3 18:58:04 kerberos kernel: ream !(ream !
Jul  3 18:58:04 kerberos kernel: <ream !
Jul  3 18:58:04 kerberos kernel: r(ream !4ream !(ream !4ream !ream !
Jul  3 18:58:04 kerberos kernel: reaream !
Jul  3 18:58:04 kerberos kernel: ream 4ream !(ream !4ream !
Jul  3 18:58:04 kerberos kernel: ream(ream !4ream !(ream !ream !
Jul  3 18:58:04 kerberos kernel: ream ream !
Jul  3 18:58:04 kerberos kernel: t tream (tream  tream (tream  tream (tream  tream (trea tream (streamstream  streae streard strefd streend strfnd strfnd strfand stfand stand stream fanuand snd stream !
Jul  3 18:58:04 kerberos kernel: nd stream  stream nd streamd streand streafd strefnd stread stream fnd streafd stream !
Jul  3 18:58:04 kerberos kernel: nd stream !
Jul  3 18:58:04 kerberos kernel:  streand stream !
Jul  3 18:58:04 kerberos kernel:  stream nd stream !
Jul  3 18:58:04 kerberos kernel:  snd stream ! streand streafd streafnd stream !
Jul  3 18:58:04 kerberos kernel: ommand stream !
Jul  3 18:58:04 kerberos kernel: ommand stream !
Jul  3 18:58:04 kerberos kernel: mmand stream ! mmand stream umand stream !
Jul  3 18:58:04 kerberos kernel: mand and stream !uand stream fnd stfnd streand stream !
Jul  3 18:58:04 kerberos kernel: nd stream !
Jul  3 18:58:04 kerberos kernel: dd commad commard comm d commrd comm d commad command sd cd com d command stream !
Jul  3 18:58:04 kerberos kernel: d cC comman command  comman  command comman  commanC command  command  command stream !
Jul  3 18:58:04 kerberos kernel:  commanScommand stream !
Jul  3 18:58:04 kerberos kernel: commaommand stream !
Jul  3 18:58:04 kerberos kernel: ommandmmand streammand streamand smand stmand stmand stream !
Jul  3 18:58:05 kerberos kernel: (1:0:2498) end after CS buffer (466) !
Jul  3 18:58:05 kerberos kernel: *ERROR* Packet (1:0:2498) end after CS buffer (466) !
Jul  3 18:58:05 kerberos kernel: rmrm:rarm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Jul  3 18:58:06 kerberos kernel: rmEm:radeErm:radEm:radeErm:radEm:radeErm:radEm:radeErm:radEm:raderm:radeEm:radeon_Erm:radeon_cEm:Erm:ram:radeon_cs_ioctl] *EErm:radeon_cR:radeonRm:radeonR:radeonm:radeonR:radeonm:radeonR:radeon_cs_ioctl] *Rm:radeon_:radeon_cs_ioctl] *rm:radeon_cs_ioc:radeon_cs_ioctl] Rm:radeon_cs_ioradeon_cs_ioctl] *:radeon_cs_iocadeon_cs_ioOradeon_cs_deon_cadeonRdeon_cs_ioctl] radeon_csOadeon_cs_io:radeon_Rradeon_cs_ioctl] *ERROR* Invalid command stream !
Jul  3 19:00:11 kerberos kernel: [ 2642.883239] Unpin not necessary for ee578700 !

ive seen also a lot of this over and over again


[ 2640.393624] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2640.409458] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2640.409470] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2640.410820] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2640.410830] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2640.411317] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2640.411324] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2640.502707] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2640.502718] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2641.047381] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (218) !
[ 2641.047393] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2641.047499] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (202) !
[ 2641.047506] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2641.048940] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2641.048949] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2641.052808] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2641.052817] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2641.138744] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2495) end after CS buffer (34) !
[ 2641.138756] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.609365] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2612) end after CS buffer (298) !
[ 2642.609370] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.609615] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2612) end after CS buffer (28) !
[ 2642.609618] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.611578] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2629) end after CS buffer (586) !
[ 2642.611583] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.612186] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2629) end after CS buffer (136) !
[ 2642.612189] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.615612] [drm:r100_cs_packet_parse] *ERROR* Packet (0:0:2629) end after CS buffer (202) !
[ 2642.615617] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[ 2642.883239] Unpin not necessary for ee578700 !

please help!!!!

best regards and keep up the good work, its getting good ;)
Comment 2 Paulo Dias 2009-07-06 10:52:34 UTC
with latest drm/mesa and ddx code from today, i dont get the strange crashes anymore (fixed since this weekend me believes). BUT kwin3d is still broken! compiz still works.

Comment 3 Paulo Dias 2009-07-06 11:09:46 UTC
this is what i get from .xsession-error when i try to get kwin 3d to run:

X Error: RenderBadPicture (invalid Picture parameter) 158
  Extension:    148 (RENDER)
  Minor opcode: 26 (RenderFillRectangles)
  Resource id:  0x1a0013e
X Error: RenderBadPicture (invalid Picture parameter) 158
  Extension:    148 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x1a0013e
X Error: RenderBadPicture (invalid Picture parameter) 158
  Extension:    148 (RENDER)
  Minor opcode: 8 (RenderComposite)
  Resource id:  0x1a0013e

best regards
Comment 4 Michel Dänzer 2009-07-06 11:31:05 UTC
What versions of xserver and pixman are you using?
Comment 5 Paulo Dias 2009-07-06 11:34:42 UTC
ii  libpixman-1-0                             0.15.13+git20090620.d4dc8123-ubuntu0sarvatt                   pixel-manipulation library for X and cairo
ii  libpixman-1-dev                           0.15.13+git20090620.d4dc8123-ubuntu0sarvatt                   pixel-manipulation library for X and cairo (devel

ii  xserver-xorg-core                         2:1.6.99.1+git20090705.fd4eed69-0~padoka1                     Xorg X server - core server        
ii  xserver-xorg-dev                          2:1.6.99.1+git20090705.fd4eed69-0~padoka1                     Xorg X server - development files
ii  xserver-common                            2:1.6.99.1+git20090705.fd4eed69-0~padoka1                     common files used by various X servers
Comment 6 Paulo Dias 2009-07-06 11:35:55 UTC
kde 4.3 rc1, same behaviour with 4.2 final and 4.3 beta 2
Comment 7 Michel Dänzer 2009-07-06 11:46:03 UTC
Looks like pixman is a bit older than xserver - does a newer pixman snapshot help?
Comment 8 Paulo Dias 2009-07-06 11:59:46 UTC
(In reply to comment #7)
> Looks like pixman is a bit older than xserver - does a newer pixman snapshot
> help?
> 

not at all, i recompiled latest xorg today, but i was having this problem with xorg with same date as pixman. i believe this is a drm/mesa problem since if i downgrade drm to commit 2fa2db138ba989bfa1a8cd9ab66d83fb7369249e and mesa to commit a18e209edb5348eb167e9d7184597031bbbbe622, kwin3d starts working again.
Comment 9 Michel Dänzer 2009-07-08 06:49:29 UTC
(In reply to comment #8)
> i believe this is a drm/mesa problem since if i downgrade drm to commit
> 2fa2db138ba989bfa1a8cd9ab66d83fb7369249e and mesa to commit
> a18e209edb5348eb167e9d7184597031bbbbe622, kwin3d starts working again.

Didn't you say in the initial report that a18e209edb5348eb167e9d7184597031bbbbe622 caused the problem? Maybe I misunderstood.

Can you narrow down what exactly broke it, e.g. using git bisect?
Comment 10 Paulo Dias 2009-07-08 12:12:32 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > i believe this is a drm/mesa problem since if i downgrade drm to commit
> > 2fa2db138ba989bfa1a8cd9ab66d83fb7369249e and mesa to commit
> > a18e209edb5348eb167e9d7184597031bbbbe622, kwin3d starts working again.
> 
> Didn't you say in the initial report that
> a18e209edb5348eb167e9d7184597031bbbbe622 caused the problem? Maybe I
> misunderstood.
> 
> Can you narrow down what exactly broke it, e.g. using git bisect?
> 

No, im sorry, its the exact opposite, kwin3d worked UNTIL a18e209edb5348eb167e9d7184597031bbbbe622, AFTER this commit kwin3d stopped working.

And i already tried that but unfortunately i couldnt pinpoint the exact commit that breaks kwin3d (could be a three way problem, since both ddx, mesa and drm changed considerably after this commits.

couldnt you install kde4 and try it for yourself? it shouldnt work for you too with latest git.

best regards
Comment 11 Michel Dänzer 2009-07-09 00:09:17 UTC
(In reply to comment #10)
> And i already tried that but unfortunately i couldnt pinpoint the exact commit
> that breaks kwin3d (could be a three way problem, since both ddx, mesa and drm
> changed considerably after this commits.

What exactly was the problem? If you're not sure which component is the culprit, you can run git bisect in all of them in parallel.

> couldnt you install kde4 and try it for yourself? it shouldnt work for you too
> with latest git.

I only try KDE occasionally and am unfamiliar with diagnosing problems with it.

For now this seems most likely a Mesa issue. Can you attach the glxinfo -l output from a working and broken case?
Comment 12 Paulo Dias 2009-07-14 08:56:58 UTC
with latest batch of commits fixing a lot of radeon mesa bugs (fbo mostly), kwin3d started working again. great work :)

closing the bug :)

thanks for all the work.


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.