** Description changed:

  I have fglrx drivers in my hybrid fglrx/intel system and I am using the 
integrated GPU, setup by:
  amdconfig --px-igpu
  
- The problem is that every second boot the X server crashes, which means:
+ The problem is that in every reboot after I have successfully used the iGPU 
causes the X server to crash, which means:
  - One time the X server loads normally **
  - One time the X server crashes, giving the error in the attached log and the 
only thing I can do is reboot the system
  This periodic behaviour is totally reproducible: once it crashes, after the 
reboot it works fine, on the next reboot crashes again, and so on...
  
  ** I had to use the patched fglrx/intel drivers from:
  https://launchpad.net/~andrikos/+archive/ppa
  in order to avoid Bug #1068404
  
- 
  WORKAROUND: An obvious workaround (not a solution) is to use the discrete ATI 
GPU by giving:
  amdconfig --px-dgpu
+ 
+ 
+ I post two logs, both of them crashes when I reboot after I have successfully 
used the iGPU.
+ Their difference is that the first one refers to the configuration where the 
iGPU is used (again), while the second uses the dGPU (running amdconfig 
--px-dgpu before the reboot).
+ 
+ 
+ Log when iGPU is used:
  
  
  [   34.540409] BUG: unable to handle kernel paging request at ffffc90015b48700
  [   34.540447] IP: [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.540547] PGD 12b020067 PUD 12b021067 PMD 10ceed067 PTE 0
  [   34.540574] Oops: 0000 [#1] SMP
  [   34.540591] CPU 0
  [   34.540599] Modules linked in: pci_stub vboxpci(O) vboxnetadp(O) 
vboxnetflt(O) vboxdrv(O) parport_pc rfcomm ppdev bnep binfmt_misc 
snd_hda_codec_hdmi snd_hda_codec_realtek coretemp kvm_intel kvm ghash_clmulni
  _intel cryptd btusb bluetooth uvcvideo videobuf2_core videodev 
videobuf2_vmalloc videobuf2_memops joydev microcode snd_hda_intel snd_hda_codec 
snd_hwdep snd_pcm snd_seq_midi arc4 snd_rawmidi snd_seq_midi_event s
  nd_seq snd_timer snd_seq_device psmouse serio_raw mac_hid
  sony_laptop snd ath9k mei i915 drm_kms_helper fglrx(PO) drm soundcore 
snd_page_alloc i2c_algo_bit video mac80211 ath9k_common lpc_ich ath9k_hw ath 
cfg80211 amd_iommu_v2 lp parport hid_generic usbhid hid mmc_bloc
  k atl1c sdhci_pci sdhci
  [   34.540911]
  [   34.540915] Pid: 1204, comm: Xorg Tainted: P           O 3.5.0-20-generic 
#31-Ubuntu Sony Corporation VPCCB2S1E/VAIO
  [   34.540956] RIP: 0010:[<ffffffffa01964d7>]  [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.541045] RSP: 0018:ffff8801079c9cf0  EFLAGS: 00010246
  [   34.541065] RAX: 0000000000000001 RBX: ffffffffa02a8830 RCX: 
0000000000000007
  [   34.541090] RDX: ffffc90015b40000 RSI: 0000000000000000 RDI: 
ffffc9001674b020
  [   34.541115] RBP: ffffc90016b6f140 R08: 0000000000000004 R09: 
ffffc9001674b020
  [   34.541141] R10: 0000000000000000 R11: ffff88010c880500 R12: 
ffffc9001674b198
  [   34.541166] R13: ffff88010db80000 R14: ffff88010db80000 R15: 
0000000000000000
  [   34.541193] FS:  00007f19d9cbd880(0000) GS:ffff88012fa00000(0000) 
knlGS:0000000000000000
  [   34.541222] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [   34.541243] CR2: ffffc90015b48700 CR3: 00000001079c4000 CR4: 
00000000000407f0
  [   34.541268] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
  [   34.541295] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
  [   34.541320] Process Xorg (pid: 1204, threadinfo ffff8801079c8000, task 
ffff880108039700)
  [   34.541349] Stack:
  [   34.541357]  ffffffffa0179535 ffff8801079c9d48 ffffc9001674b020 
0000000000000000
  [   34.542796]  ffffffffa0197ba9 ffff88010db80000 0000000000000000 
ffff880107a6d120
  [   34.544219]  ffffffffa014aff4 ffff880107a6d120 ffffffffa0103dfa 
ffff8801079c9d58
  [   34.545661] Call Trace:
  [   34.547115]  [<ffffffffa0179535>] ? 
_ZN15ExecutableUnits17assertPrimaryRingEb+0x1e5/0x220 [fglrx]
  [   34.548603]  [<ffffffffa0197ba9>] ? _ZN8AsicR6009assertPM4Eb+0x39/0x80 
[fglrx]
  [   34.550077]  [<ffffffffa014aff4>] ? CMMQS_DisableQS+0x24/0x30 [fglrx]
  [   34.551541]  [<ffffffffa0103dfa>] ? firegl_cmmqs_Disable_QS+0x3a/0xe0 
[fglrx]
  [   34.553004]  [<ffffffffa00cea9e>] ? KCL_PCI_ReadConfigWord+0x1e/0x20 
[fglrx]
  [   34.554458]  [<ffffffffa00d8c64>] ? firegl_takedown+0x854/0x8f0 [fglrx]
  [   34.555927]  [<ffffffffa0106c08>] ? firegl_acpi_eval_method+0x348/0x500 
[fglrx]
  [   34.557371]  [<ffffffff812b31d8>] ? security_capable+0x18/0x20
  [   34.558838]  [<ffffffffa01068c0>] ? 
firegl_acpi_eval_method_helper+0x100/0x100 [fglrx]
  [   34.560308]  [<ffffffffa00d7b6d>] ? firegl_ioctl+0x1ed/0x250 [fglrx]
  [   34.561769]  [<ffffffffa00c7ace>] ? ip_firegl_unlocked_ioctl+0xe/0x20 
[fglrx]
  [   34.563214]  [<ffffffff81193bd9>] ? do_vfs_ioctl+0x99/0x590
  [   34.564652]  [<ffffffff811a0544>] ? mntput+0x24/0x40
  [   34.566088]  [<ffffffff81183422>] ? fput+0x1a2/0x260
  [   34.567513]  [<ffffffff81194169>] ? sys_ioctl+0x99/0xa0
  [   34.568980]  [<ffffffff8168b969>] ? system_call_fastpath+0x16/0x1b
  [   34.570402] Code: 8b 4c 24 10 41 89 4a 08 41 8b 38 49 8b 33 89 7e 0c 41 8b 
50 04 49 8b 1b 89 53 10 49 83 03 14 eb 8a 90 66 90 48 8b 97 00 01 00 00 <8b> 82 
00 87 00 00 c3 66 90 53 48 89 fb e8 97 6a fc ff 48 8b
   bb
  [   34.571991] RIP  [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.573588]  RSP <ffff8801079c9cf0>
  [   34.575105] CR2: ffffc90015b48700
  [   34.596474] ---[ end trace aeeb911c328d3cdb ]---
  [   34.597160] [fglrx:firegl_release] *ERROR* device busy: 1 0
  [   34.597162] [fglrx] release failed with code -EBUSY
  [   34.687351] init: lightdm main process (1193) terminated with status 1
+ 
+ 
+ Log when dGPU is used:
+ 
+ 
+ [   23.678686] ------------[ cut here ]------------
+ [   23.678712] kernel BUG at 
/build/buildd/linux-3.5.0/security/apparmor/include/context.h:112!
+ [   23.678743] invalid opcode: 0000 [#1] SMP 
+ [   23.678762] CPU 0 
+ [   23.678771] Modules linked in: pci_stub vboxpci(O) vboxnetadp(O) 
vboxnetflt(O) vboxdrv(O) parport_pc ppdev rfcomm bnep binfmt_misc 
snd_hda_codec_hdmi snd_hda_codec_realtek coretemp kvm_intel kvm 
ghash_clmulni_intel cryptd joydev uvcvideo videobuf2_core videodev 
videobuf2_vmalloc videobuf2_memops btusb bluetooth snd_hda_intel snd_hda_codec 
snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event arc4 snd_seq 
microcode sony_laptop lp parport mac_hid snd_timer snd_seq_device ath9k i915 
mac80211 ath9k_common ath9k_hw ath psmouse serio_raw fglrx(PO) drm_kms_helper 
drm i2c_algo_bit video cfg80211 snd lpc_ich amd_iommu_v2 soundcore mei 
snd_page_alloc hid_generic usbhid hid mmc_block sdhci_pci atl1c sdhci
+ [   23.679099] 
+ [   23.679104] Pid: 1201, comm: Xorg Tainted: P           O 3.5.0-20-generic 
#31-Ubuntu Sony Corporation VPCCB2S1E/VAIO
+ [   23.679147] RIP: 0010:[<ffffffff8167c4ae>]  [<ffffffff8167c4ae>] 
aa_cred_profile.isra.3.part.4+0x4/0x6
+ [   23.679196] RSP: 0018:ffff8801162338b8  EFLAGS: 00010246
+ [   23.679215] RAX: 0000000000000000 RBX: ffff880115572100 RCX: 
ffff88011811f950
+ [   23.679241] RDX: 0000000000000006 RSI: ffff880115572100 RDI: 
0000000000000012
+ [   23.679266] RBP: ffff8801162338b8 R08: 0000000000000006 R09: 
0000000000000005
+ [   23.679292] R10: 0000000000000000 R11: 0000000000004000 R12: 
0000000000000003
+ [   23.679317] R13: 0000000000000001 R14: 0000000000000005 R15: 
ffff880119ff3800
+ [   23.679344] FS:  00007f12a3b8b880(0000) GS:ffff88012fa00000(0000) 
knlGS:0000000000000000
+ [   23.679372] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+ [   23.679393] CR2: 00007f12a6557e9b CR3: 0000000127e8b000 CR4: 
00000000000407f0
+ [   23.679419] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
+ [   23.679444] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
+ [   23.679470] Process Xorg (pid: 1201, threadinfo ffff880116232000, task 
ffff88011547ae00)
+ [   23.679498] Stack:
+ [   23.679507]  ffff8801162338c8 ffffffff812ed866 ffff8801162338d8 
ffffffff812ed8e8
+ [   23.679539]  ffff8801162338e8 ffffffff812ed946 ffff8801162338f8 
ffffffff812b289f
+ [   23.679570]  ffff880116233958 ffffffff8113eb60 ffff88011c726060 
ffff88011c726000
+ [   23.679602] Call Trace:
+ [   23.679615]  [<ffffffff812ed866>] common_file_perm+0xe6/0xf0
+ [   23.679637]  [<ffffffff812ed8e8>] common_mmap+0x48/0x60
+ [   23.679656]  [<ffffffff812ed946>] apparmor_mmap_file+0x16/0x20
+ [   23.679681]  [<ffffffff812b289f>] security_mmap_file+0x2f/0x80
+ [   23.679704]  [<ffffffff8113eb60>] vm_mmap_pgoff+0x50/0xb0
+ [   23.679726]  [<ffffffff8113ebed>] vm_mmap+0x2d/0x40
+ [   23.679780]  [<ffffffffa00f0a8e>] 
KCL_MEM_AllocLinearAddrInterval+0x1e/0x30 [fglrx]
+ [   23.679835]  [<ffffffffa01165f9>] __create_mapping+0x349/0x4c0 [fglrx]
+ [   23.679860]  [<ffffffff812222ec>] ? ext4_dirty_inode+0x3c/0x60
+ [   23.679908]  [<ffffffffa01124d2>] ? gal_map_virtual_space+0x62/0xc0 [fglrx]
+ [   23.679961]  [<ffffffffa011c81e>] ? 
__mc_heap_map_virtual_space+0x12e/0x210 [fglrx]
+ [   23.680015]  [<ffffffffa011792e>] ? mc_heap_map_virtual_space+0x6e/0x170 
[fglrx]
+ [   23.680067]  [<ffffffffa010c408>] ? 
MCIL_GetVirtualAddressInDescriptor+0xd8/0x1d0 [fglrx]
+ [   23.681447]  [<ffffffffa019cae9>] ? 
_ZN14NODElist_alloc7addNodeEP7CMMNode+0x19/0x40 [fglrx]
+ [   23.682828]  [<ffffffffa017f53e>] ? 
_ZN2OS17getVirtualAddressEP4AsicPvmm9_CMM_HEAPb+0xae/0xe0 [fglrx]
+ [   23.684207]  [<ffffffffa00f5d4e>] ? KCL_STR_Memset+0xe/0x10 [fglrx]
+ [   23.685599]  [<ffffffffa01805dc>] ? _ZN8MemPages8mapPagesEb+0x7c/0xa0 
[fglrx]
+ [   23.687012]  [<ffffffffa0191e65>] ? _ZN15CMMProcess_COREC2Ev+0x15/0x20 
[fglrx]
+ [   23.688430]  [<ffffffffa017a75a>] ? _ZN3MSF13createProcessEj+0x5a/0xc0 
[fglrx]
+ [   23.689865]  [<ffffffffa01a3269>] ? 
_ZN16CMMClientManager12createClientE11_CMM_CLIENTR13_CLIENT_FLAGSj+0x159/0x170 
[fglrx]
+ [   23.691328]  [<ffffffffa01a2d71>] ? 
_ZN9QS_CLIENT10initializeEP17_QS_REG_CLIENT_IN+0x101/0x260 [fglrx]
+ [   23.692779]  [<ffffffffa017d1f0>] ? 
_ZN10QS_PRIVATE14registerClientEP17_QS_REG_CLIENT_INP18_QS_REG_CLIENT_OUT+0x140/0x180
 [fglrx]
+ [   23.694249]  [<ffffffffa018a794>] ? _Z8uCWDDEQCmjjPvjS_+0x514/0x1200 
[fglrx]
+ [   23.695707]  [<ffffffff8107c36e>] ? down+0x2e/0x50
+ [   23.697160]  [<ffffffffa012b14f>] ? firegl_cmmqs_CWDDE_32+0x36f/0x480 
[fglrx]
+ [   23.698632]  [<ffffffffa012998e>] ? firegl_cmmqs_CWDDE32+0x8e/0x140 [fglrx]
+ [   23.700055]  [<ffffffff8105ed87>] ? capable+0x17/0x20
+ [   23.701501]  [<ffffffffa0129900>] ? firegl_cmmqs_disabledriver+0x120/0x120 
[fglrx]
+ [   23.702949]  [<ffffffffa00feb6d>] ? firegl_ioctl+0x1ed/0x250 [fglrx]
+ [   23.704381]  [<ffffffff8168734c>] ? do_page_fault+0x1cc/0x4e0
+ [   23.705835]  [<ffffffffa00eeace>] ? ip_firegl_unlocked_ioctl+0xe/0x20 
[fglrx]
+ [   23.707272]  [<ffffffff81193bd9>] ? do_vfs_ioctl+0x99/0x590
+ [   23.708707]  [<ffffffff81194169>] ? sys_ioctl+0x99/0xa0
+ [   23.710144]  [<ffffffff8168b969>] ? system_call_fastpath+0x16/0x1b
+ [   23.711573] Code: 8b 43 08 48 29 c8 48 83 f8 01 76 14 4d 85 e4 74 08 66 8b 
01 66 41 89 04 24 48 83 43 10 02 b2 01 5b 41 5c 88 d0 5d c3 55 48 89 e5 <0f> 0b 
55 48 89 e5 0f 0b 55 48 89 e5 41 55 41 54 53 50 66 66 66 
+ [   23.713223] RIP  [<ffffffff8167c4ae>] aa_cred_profile.isra.3.part.4+0x4/0x6
+ [   23.714787]  RSP <ffff8801162338b8>
+ [   23.733719] ---[ end trace 45072a237b17ad35 ]---
+ [   23.735474] [fglrx:firegl_release] *ERROR* device busy: 1 0
+ [   23.735476] [fglrx] release failed with code -EBUSY

** Description changed:

  I have fglrx drivers in my hybrid fglrx/intel system and I am using the 
integrated GPU, setup by:
  amdconfig --px-igpu
  
- The problem is that in every reboot after I have successfully used the iGPU 
causes the X server to crash, which means:
+ The problem is that in every reboot after I have successfully used the iGPU, 
the X server to crashes, which means:
  - One time the X server loads normally **
  - One time the X server crashes, giving the error in the attached log and the 
only thing I can do is reboot the system
  This periodic behaviour is totally reproducible: once it crashes, after the 
reboot it works fine, on the next reboot crashes again, and so on...
  
  ** I had to use the patched fglrx/intel drivers from:
  https://launchpad.net/~andrikos/+archive/ppa
  in order to avoid Bug #1068404
  
  WORKAROUND: An obvious workaround (not a solution) is to use the discrete ATI 
GPU by giving:
  amdconfig --px-dgpu
  
+ I post two logs, both of them crashes when I reboot after I have
+ successfully used the iGPU.
  
- I post two logs, both of them crashes when I reboot after I have successfully 
used the iGPU.
- Their difference is that the first one refers to the configuration where the 
iGPU is used (again), while the second uses the dGPU (running amdconfig 
--px-dgpu before the reboot).
+ Their difference is that the first one refers to the configuration where the 
iGPU is used again and it is the procedure described above.
+ The second one shows what happens if I select the dGPU before I reboot 
(running amdconfig --px-dgpu, while using the iGPU).
  
- 
- Log when iGPU is used:
- 
+ Log when iGPU is selected:
  
  [   34.540409] BUG: unable to handle kernel paging request at ffffc90015b48700
  [   34.540447] IP: [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.540547] PGD 12b020067 PUD 12b021067 PMD 10ceed067 PTE 0
  [   34.540574] Oops: 0000 [#1] SMP
  [   34.540591] CPU 0
  [   34.540599] Modules linked in: pci_stub vboxpci(O) vboxnetadp(O) 
vboxnetflt(O) vboxdrv(O) parport_pc rfcomm ppdev bnep binfmt_misc 
snd_hda_codec_hdmi snd_hda_codec_realtek coretemp kvm_intel kvm ghash_clmulni
  _intel cryptd btusb bluetooth uvcvideo videobuf2_core videodev 
videobuf2_vmalloc videobuf2_memops joydev microcode snd_hda_intel snd_hda_codec 
snd_hwdep snd_pcm snd_seq_midi arc4 snd_rawmidi snd_seq_midi_event s
  nd_seq snd_timer snd_seq_device psmouse serio_raw mac_hid
  sony_laptop snd ath9k mei i915 drm_kms_helper fglrx(PO) drm soundcore 
snd_page_alloc i2c_algo_bit video mac80211 ath9k_common lpc_ich ath9k_hw ath 
cfg80211 amd_iommu_v2 lp parport hid_generic usbhid hid mmc_bloc
  k atl1c sdhci_pci sdhci
  [   34.540911]
  [   34.540915] Pid: 1204, comm: Xorg Tainted: P           O 3.5.0-20-generic 
#31-Ubuntu Sony Corporation VPCCB2S1E/VAIO
  [   34.540956] RIP: 0010:[<ffffffffa01964d7>]  [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.541045] RSP: 0018:ffff8801079c9cf0  EFLAGS: 00010246
  [   34.541065] RAX: 0000000000000001 RBX: ffffffffa02a8830 RCX: 
0000000000000007
  [   34.541090] RDX: ffffc90015b40000 RSI: 0000000000000000 RDI: 
ffffc9001674b020
  [   34.541115] RBP: ffffc90016b6f140 R08: 0000000000000004 R09: 
ffffc9001674b020
  [   34.541141] R10: 0000000000000000 R11: ffff88010c880500 R12: 
ffffc9001674b198
  [   34.541166] R13: ffff88010db80000 R14: ffff88010db80000 R15: 
0000000000000000
  [   34.541193] FS:  00007f19d9cbd880(0000) GS:ffff88012fa00000(0000) 
knlGS:0000000000000000
  [   34.541222] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [   34.541243] CR2: ffffc90015b48700 CR3: 00000001079c4000 CR4: 
00000000000407f0
  [   34.541268] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
  [   34.541295] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
  [   34.541320] Process Xorg (pid: 1204, threadinfo ffff8801079c8000, task 
ffff880108039700)
  [   34.541349] Stack:
  [   34.541357]  ffffffffa0179535 ffff8801079c9d48 ffffc9001674b020 
0000000000000000
  [   34.542796]  ffffffffa0197ba9 ffff88010db80000 0000000000000000 
ffff880107a6d120
  [   34.544219]  ffffffffa014aff4 ffff880107a6d120 ffffffffa0103dfa 
ffff8801079c9d58
  [   34.545661] Call Trace:
  [   34.547115]  [<ffffffffa0179535>] ? 
_ZN15ExecutableUnits17assertPrimaryRingEb+0x1e5/0x220 [fglrx]
  [   34.548603]  [<ffffffffa0197ba9>] ? _ZN8AsicR6009assertPM4Eb+0x39/0x80 
[fglrx]
  [   34.550077]  [<ffffffffa014aff4>] ? CMMQS_DisableQS+0x24/0x30 [fglrx]
  [   34.551541]  [<ffffffffa0103dfa>] ? firegl_cmmqs_Disable_QS+0x3a/0xe0 
[fglrx]
  [   34.553004]  [<ffffffffa00cea9e>] ? KCL_PCI_ReadConfigWord+0x1e/0x20 
[fglrx]
  [   34.554458]  [<ffffffffa00d8c64>] ? firegl_takedown+0x854/0x8f0 [fglrx]
  [   34.555927]  [<ffffffffa0106c08>] ? firegl_acpi_eval_method+0x348/0x500 
[fglrx]
  [   34.557371]  [<ffffffff812b31d8>] ? security_capable+0x18/0x20
  [   34.558838]  [<ffffffffa01068c0>] ? 
firegl_acpi_eval_method_helper+0x100/0x100 [fglrx]
  [   34.560308]  [<ffffffffa00d7b6d>] ? firegl_ioctl+0x1ed/0x250 [fglrx]
  [   34.561769]  [<ffffffffa00c7ace>] ? ip_firegl_unlocked_ioctl+0xe/0x20 
[fglrx]
  [   34.563214]  [<ffffffff81193bd9>] ? do_vfs_ioctl+0x99/0x590
  [   34.564652]  [<ffffffff811a0544>] ? mntput+0x24/0x40
  [   34.566088]  [<ffffffff81183422>] ? fput+0x1a2/0x260
  [   34.567513]  [<ffffffff81194169>] ? sys_ioctl+0x99/0xa0
  [   34.568980]  [<ffffffff8168b969>] ? system_call_fastpath+0x16/0x1b
  [   34.570402] Code: 8b 4c 24 10 41 89 4a 08 41 8b 38 49 8b 33 89 7e 0c 41 8b 
50 04 49 8b 1b 89 53 10 49 83 03 14 eb 8a 90 66 90 48 8b 97 00 01 00 00 <8b> 82 
00 87 00 00 c3 66 90 53 48 89 fb e8 97 6a fc ff 48 8b
   bb
  [   34.571991] RIP  [<ffffffffa01964d7>] 
_ZN8AsicR6007getRptrE12_QS_CP_RING_+0x7/0x10 [fglrx]
  [   34.573588]  RSP <ffff8801079c9cf0>
  [   34.575105] CR2: ffffc90015b48700
  [   34.596474] ---[ end trace aeeb911c328d3cdb ]---
  [   34.597160] [fglrx:firegl_release] *ERROR* device busy: 1 0
  [   34.597162] [fglrx] release failed with code -EBUSY
  [   34.687351] init: lightdm main process (1193) terminated with status 1
  
  
- Log when dGPU is used:
- 
+ Log when dGPU is selected:
  
  [   23.678686] ------------[ cut here ]------------
  [   23.678712] kernel BUG at 
/build/buildd/linux-3.5.0/security/apparmor/include/context.h:112!
- [   23.678743] invalid opcode: 0000 [#1] SMP 
- [   23.678762] CPU 0 
+ [   23.678743] invalid opcode: 0000 [#1] SMP
+ [   23.678762] CPU 0
  [   23.678771] Modules linked in: pci_stub vboxpci(O) vboxnetadp(O) 
vboxnetflt(O) vboxdrv(O) parport_pc ppdev rfcomm bnep binfmt_misc 
snd_hda_codec_hdmi snd_hda_codec_realtek coretemp kvm_intel kvm 
ghash_clmulni_intel cryptd joydev uvcvideo videobuf2_core videodev 
videobuf2_vmalloc videobuf2_memops btusb bluetooth snd_hda_intel snd_hda_codec 
snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event arc4 snd_seq 
microcode sony_laptop lp parport mac_hid snd_timer snd_seq_device ath9k i915 
mac80211 ath9k_common ath9k_hw ath psmouse serio_raw fglrx(PO) drm_kms_helper 
drm i2c_algo_bit video cfg80211 snd lpc_ich amd_iommu_v2 soundcore mei 
snd_page_alloc hid_generic usbhid hid mmc_block sdhci_pci atl1c sdhci
- [   23.679099] 
+ [   23.679099]
  [   23.679104] Pid: 1201, comm: Xorg Tainted: P           O 3.5.0-20-generic 
#31-Ubuntu Sony Corporation VPCCB2S1E/VAIO
  [   23.679147] RIP: 0010:[<ffffffff8167c4ae>]  [<ffffffff8167c4ae>] 
aa_cred_profile.isra.3.part.4+0x4/0x6
  [   23.679196] RSP: 0018:ffff8801162338b8  EFLAGS: 00010246
  [   23.679215] RAX: 0000000000000000 RBX: ffff880115572100 RCX: 
ffff88011811f950
  [   23.679241] RDX: 0000000000000006 RSI: ffff880115572100 RDI: 
0000000000000012
  [   23.679266] RBP: ffff8801162338b8 R08: 0000000000000006 R09: 
0000000000000005
  [   23.679292] R10: 0000000000000000 R11: 0000000000004000 R12: 
0000000000000003
  [   23.679317] R13: 0000000000000001 R14: 0000000000000005 R15: 
ffff880119ff3800
  [   23.679344] FS:  00007f12a3b8b880(0000) GS:ffff88012fa00000(0000) 
knlGS:0000000000000000
  [   23.679372] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [   23.679393] CR2: 00007f12a6557e9b CR3: 0000000127e8b000 CR4: 
00000000000407f0
  [   23.679419] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
  [   23.679444] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
  [   23.679470] Process Xorg (pid: 1201, threadinfo ffff880116232000, task 
ffff88011547ae00)
  [   23.679498] Stack:
  [   23.679507]  ffff8801162338c8 ffffffff812ed866 ffff8801162338d8 
ffffffff812ed8e8
  [   23.679539]  ffff8801162338e8 ffffffff812ed946 ffff8801162338f8 
ffffffff812b289f
  [   23.679570]  ffff880116233958 ffffffff8113eb60 ffff88011c726060 
ffff88011c726000
  [   23.679602] Call Trace:
  [   23.679615]  [<ffffffff812ed866>] common_file_perm+0xe6/0xf0
  [   23.679637]  [<ffffffff812ed8e8>] common_mmap+0x48/0x60
  [   23.679656]  [<ffffffff812ed946>] apparmor_mmap_file+0x16/0x20
  [   23.679681]  [<ffffffff812b289f>] security_mmap_file+0x2f/0x80
  [   23.679704]  [<ffffffff8113eb60>] vm_mmap_pgoff+0x50/0xb0
  [   23.679726]  [<ffffffff8113ebed>] vm_mmap+0x2d/0x40
  [   23.679780]  [<ffffffffa00f0a8e>] 
KCL_MEM_AllocLinearAddrInterval+0x1e/0x30 [fglrx]
  [   23.679835]  [<ffffffffa01165f9>] __create_mapping+0x349/0x4c0 [fglrx]
  [   23.679860]  [<ffffffff812222ec>] ? ext4_dirty_inode+0x3c/0x60
  [   23.679908]  [<ffffffffa01124d2>] ? gal_map_virtual_space+0x62/0xc0 [fglrx]
  [   23.679961]  [<ffffffffa011c81e>] ? 
__mc_heap_map_virtual_space+0x12e/0x210 [fglrx]
  [   23.680015]  [<ffffffffa011792e>] ? mc_heap_map_virtual_space+0x6e/0x170 
[fglrx]
  [   23.680067]  [<ffffffffa010c408>] ? 
MCIL_GetVirtualAddressInDescriptor+0xd8/0x1d0 [fglrx]
  [   23.681447]  [<ffffffffa019cae9>] ? 
_ZN14NODElist_alloc7addNodeEP7CMMNode+0x19/0x40 [fglrx]
  [   23.682828]  [<ffffffffa017f53e>] ? 
_ZN2OS17getVirtualAddressEP4AsicPvmm9_CMM_HEAPb+0xae/0xe0 [fglrx]
  [   23.684207]  [<ffffffffa00f5d4e>] ? KCL_STR_Memset+0xe/0x10 [fglrx]
  [   23.685599]  [<ffffffffa01805dc>] ? _ZN8MemPages8mapPagesEb+0x7c/0xa0 
[fglrx]
  [   23.687012]  [<ffffffffa0191e65>] ? _ZN15CMMProcess_COREC2Ev+0x15/0x20 
[fglrx]
  [   23.688430]  [<ffffffffa017a75a>] ? _ZN3MSF13createProcessEj+0x5a/0xc0 
[fglrx]
  [   23.689865]  [<ffffffffa01a3269>] ? 
_ZN16CMMClientManager12createClientE11_CMM_CLIENTR13_CLIENT_FLAGSj+0x159/0x170 
[fglrx]
  [   23.691328]  [<ffffffffa01a2d71>] ? 
_ZN9QS_CLIENT10initializeEP17_QS_REG_CLIENT_IN+0x101/0x260 [fglrx]
  [   23.692779]  [<ffffffffa017d1f0>] ? 
_ZN10QS_PRIVATE14registerClientEP17_QS_REG_CLIENT_INP18_QS_REG_CLIENT_OUT+0x140/0x180
 [fglrx]
  [   23.694249]  [<ffffffffa018a794>] ? _Z8uCWDDEQCmjjPvjS_+0x514/0x1200 
[fglrx]
  [   23.695707]  [<ffffffff8107c36e>] ? down+0x2e/0x50
  [   23.697160]  [<ffffffffa012b14f>] ? firegl_cmmqs_CWDDE_32+0x36f/0x480 
[fglrx]
  [   23.698632]  [<ffffffffa012998e>] ? firegl_cmmqs_CWDDE32+0x8e/0x140 [fglrx]
  [   23.700055]  [<ffffffff8105ed87>] ? capable+0x17/0x20
  [   23.701501]  [<ffffffffa0129900>] ? firegl_cmmqs_disabledriver+0x120/0x120 
[fglrx]
  [   23.702949]  [<ffffffffa00feb6d>] ? firegl_ioctl+0x1ed/0x250 [fglrx]
  [   23.704381]  [<ffffffff8168734c>] ? do_page_fault+0x1cc/0x4e0
  [   23.705835]  [<ffffffffa00eeace>] ? ip_firegl_unlocked_ioctl+0xe/0x20 
[fglrx]
  [   23.707272]  [<ffffffff81193bd9>] ? do_vfs_ioctl+0x99/0x590
  [   23.708707]  [<ffffffff81194169>] ? sys_ioctl+0x99/0xa0
  [   23.710144]  [<ffffffff8168b969>] ? system_call_fastpath+0x16/0x1b
- [   23.711573] Code: 8b 43 08 48 29 c8 48 83 f8 01 76 14 4d 85 e4 74 08 66 8b 
01 66 41 89 04 24 48 83 43 10 02 b2 01 5b 41 5c 88 d0 5d c3 55 48 89 e5 <0f> 0b 
55 48 89 e5 0f 0b 55 48 89 e5 41 55 41 54 53 50 66 66 66 
+ [   23.711573] Code: 8b 43 08 48 29 c8 48 83 f8 01 76 14 4d 85 e4 74 08 66 8b 
01 66 41 89 04 24 48 83 43 10 02 b2 01 5b 41 5c 88 d0 5d c3 55 48 89 e5 <0f> 0b 
55 48 89 e5 0f 0b 55 48 89 e5 41 55 41 54 53 50 66 66 66
  [   23.713223] RIP  [<ffffffff8167c4ae>] aa_cred_profile.isra.3.part.4+0x4/0x6
  [   23.714787]  RSP <ffff8801162338b8>
  [   23.733719] ---[ end trace 45072a237b17ad35 ]---
  [   23.735474] [fglrx:firegl_release] *ERROR* device busy: 1 0
  [   23.735476] [fglrx] release failed with code -EBUSY

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1088220

Title:
  Periodic Xserver crash when using integrated GPU in flgrx/Intel
  systems

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1088220/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to