[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-09-28 Thread JVD
RE: previous comment - my cables are connected and screwed in tightly.
I often switch the monitors off when leaving at night. 99% of the time
the machine is left running and has no problems. 

Sometimes, however, like again today, the X-Server HANGs !! 
:

$ gdb /usr/bin/Xorg 1855
GNU gdb (GDB) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/Xorg...(no debugging symbols found)...done.
Attaching to program: /usr/bin/Xorg, process 1855
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libselinux.so.1...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.11...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libpciaccess.so.0...(no 
debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...(no debugging 
symbols found)...done.
[New LWP 2399]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm.so.2...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXfont.so.1...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXau.so.6...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1...(no 
debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libaudit.so.1...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libcgmanager.so.0...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libnih.so.1...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libnih-dbus.so.1...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...(no debugging symbols 
found)...done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging symbols 
found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libfreetype.so.6...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libbz2.so.1.0...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libfontenc.so.1...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpng12.so.0...(no debugging 
symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/xorg/modules/extensions/libglx.so...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libglapi.so.0...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXext.so.6...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdamage.so.1...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libXfixes.so.3...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11.so.6...(no debugging 
symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0...(no debuggin

[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-03-18 Thread JVD
It just happened again , with 3.13.0-46-lowlatency #79 &
1:7.7+1ubuntu8.1 :

Radeon CP lockup stall dmesg :

[393791.346730] radeon :01:00.0: GPU lockup CP stall for more than 1msec
[393791.346741] radeon :01:00.0: GPU lockup (waiting for 0x0004 
last fence id 0x0002 on ring 5)
[393791.346748] [drm:uvd_v1_0_ib_test] *ERROR* radeon: fence wait failed (-35).
[393791.346755] [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on 
ring 5 (-35).
[393791.908949] radeon :01:00.0: GPU lockup CP stall for more than 10562msec
[393791.908961] radeon :01:00.0: GPU lockup (waiting for 0x0003 
last fence id 0x0002 on ring 5)


Xorg server frozen:

(gdb) where
#0  0x7fb3b8e5a337 in ioctl () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7fb3ba1413a4 in drmIoctl () from /usr/lib/x86_64-linux-gnu/libdrm.so.2
#2  0x7fb3ba1436bf in drmCommandWriteRead () from 
/usr/lib/x86_64-linux-gnu/libdrm.so.2
#3  0x7fb3b4ca6357 in ?? () from 
/usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
#4  0x7fb3b4ef5738 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#5  0x7fb3b4ef5ba8 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#6  0x7fb3bb2a8054 in _CallCallbacks ()
#7  0x7fb3bb3f9dd6 in WriteToClient ()
#8  0x7fb3bb2addf2 in WriteEventsToClient ()
#9  0x7fb3bb37a66a in ?? ()
#10 0x7fb3bb38013d in DamageReportDamage ()
#11 0x7fb3bb38082a in ?? ()
#12 0x7fb3bb383b43 in ?? ()
#13 0x7fb3bb29f3d1 in ?? ()
#14 0x7fb3bb2a2f0e in ?? ()
#15 0x7fb3bb2a6d9a in ?? ()
#16 0x7fb3b8d8aec5 in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
#17 0x7fb3bb2921ee in _start ()
(gdb) info regs
Undefined info command: "regs".  Try "help info".
(gdb) info reg
rax0xfe00   -512
rbx0x   4294967295
rcx0x   -1
rdx0x7fb3bb8135c8   140409921680840
rsi0xc0206466   3223348326
rdi0xc  12
rbp0x7fb3bb8135c8   0x7fb3bb8135c8
rsp0x7fff7cb6a060   0x7fff7cb6a060
r8 0x4030de 4206814
r9 0x5b 91
r100xc163094
r110x246582
r120xc0206466   3223348326
r130xc  12
r140x7fb3be74ac20   140409971190816
r150x7fff7cb6a250   140735285731920
rip0x7fb3ba1413a4   0x7fb3ba1413a4 
eflags 0x246[ PF ZF IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0  0
es 0x0  0
fs 0x0  0
gs 0x0  0

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1409393

Title:
  radeon GPU lockup CP stall

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 14.04.1 LTS

  I was working on a project and had the following applications open

  MySQL Workbench
  Google Chrome
  gnome-screenshot

  All of a sudden everything freezes, the indicator-multiload stopped moving.
  I was able to switch to tty1 using CTRL+ALT+F1 (see foto of the screen in the 
attachments)

  The error reads:
  radeon :01:00.0: GPU lockup CP stall for more than 84744msec
  drm:radeon_cs_ib_fill *ERROR* Failed to get ip !
  drm:r600_dma_ring_test *ERROR* radeon: ring 3 test failed (0xCAFEDEAD)
  drm:r600_resume *ERROR* r600 startup failed on resume

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-43-generic 3.13.0-43.72
  ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
  Uname: Linux 3.13.0-43-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC1:  kat3551 F pulseaudio
   /dev/snd/controlC0:  kat3551 F pulseaudio
  Date: Sun Jan 11 05:33:50 2015
  InstallationDate: Installed on 2014-03-28 (288 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140322)
  MachineType: Sony Corporation VGN-FW31ZJ
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=nl_NL.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.13.0-43-generic 
root=UUID=6bc3bac2-11d6-4d1a-8d93-7c9b6894ea5e ro rootflags=subvol=@ quiet 
splash radeon.dpm=1 vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-43-generic N/A
   linux-backports-modules-3.13.0-43-generic  N/A
   linux-firmware 1.127.11
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/27/2009
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: R2060Y0
  dmi.board.asset.tag: N/A
  dmi.board.name: VAIO
  dmi.board.vendor: Sony Corporation
  dmi.board.version: N/A
  dmi.chassis.asset.tag: N/A
  dmi.cha

[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-03-12 Thread JVD
That last comment was from last week - I still had it in my firefox
"Restore Session" and had not pressed "Post Comment" yet.

But it just happened again today  - it looks like the frequency of this bug is 
increasing with newer kernel, xorg-server, and 
xorg-drivers-radeon releases .

Here is the info from today's lockup :

(gdb) where
#0  0x7f8c7e248337 in ioctl () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f8c7f52f3a4 in drmIoctl () from /usr/lib/x86_64-linux-gnu/libdrm.so.2
#2  0x7f8c7f5316bf in drmCommandWriteRead () from 
/usr/lib/x86_64-linux-gnu/libdrm.so.2
#3  0x7f8c7a093c83 in ?? () from 
/usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
#4  0x7f8c7a2d52d9 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#5  0x7f8c79c46856 in ?? () from /usr/lib/xorg/modules/libexa.so
#6  0x7f8c79c46c9b in ?? () from /usr/lib/xorg/modules/libexa.so
#7  0x7f8c807c4c2d in miCopyRegion ()
#8  0x7f8c807c51b6 in miDoCopy ()
#9  0x7f8c79c45326 in ?? () from /usr/lib/xorg/modules/libexa.so
#10 0x7f8c80771b38 in ?? ()
#11 0x7f8c8068d3d1 in ?? ()
#12 0x7f8c80690f0e in ?? ()
#13 0x7f8c80694d9a in ?? ()
#14 0x7f8c7e178ec5 in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
#15 0x7f8c806801ee in _start ()
(gdb) info regs
Undefined info command: "regs".  Try "help info".
(gdb) info reg
rax0xfe00   -512
rbx0x   4294967295
rcx0x   -1
rdx0x7fffa4188270   140735946457712
rsi0xc020645d   3223348317
rdi0xc  12
rbp0x7fffa4188270   0x7fffa4188270
rsp0x7fffa4188218   0x7fffa4188218
r8 0x7f8c85add9c0   140241514912192
r9 0x0  0
r100x7fffa4188330   140735946457904
r110x246582
r120xc020645d   3223348317
r130xc  12
r140x753000 768
r150x4  4
rip0x7f8c7e248337   0x7f8c7e248337 
eflags 0x246[ PF ZF IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0  0
es 0x0  0
fs 0x0  0
gs 0x0  0


This time I did not see the 'GPU lockup CP stall' messages in the dmesg output -
it looks like the newer Xorg server & radeon_drv are capable of locking up
all on their own without a GPU lockup .

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1409393

Title:
  radeon GPU lockup CP stall

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 14.04.1 LTS

  I was working on a project and had the following applications open

  MySQL Workbench
  Google Chrome
  gnome-screenshot

  All of a sudden everything freezes, the indicator-multiload stopped moving.
  I was able to switch to tty1 using CTRL+ALT+F1 (see foto of the screen in the 
attachments)

  The error reads:
  radeon :01:00.0: GPU lockup CP stall for more than 84744msec
  drm:radeon_cs_ib_fill *ERROR* Failed to get ip !
  drm:r600_dma_ring_test *ERROR* radeon: ring 3 test failed (0xCAFEDEAD)
  drm:r600_resume *ERROR* r600 startup failed on resume

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-43-generic 3.13.0-43.72
  ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
  Uname: Linux 3.13.0-43-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC1:  kat3551 F pulseaudio
   /dev/snd/controlC0:  kat3551 F pulseaudio
  Date: Sun Jan 11 05:33:50 2015
  InstallationDate: Installed on 2014-03-28 (288 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140322)
  MachineType: Sony Corporation VGN-FW31ZJ
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=nl_NL.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.13.0-43-generic 
root=UUID=6bc3bac2-11d6-4d1a-8d93-7c9b6894ea5e ro rootflags=subvol=@ quiet 
splash radeon.dpm=1 vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-43-generic N/A
   linux-backports-modules-3.13.0-43-generic  N/A
   linux-firmware 1.127.11
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/27/2009
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: R2060Y0
  dmi.board.asset.tag: N/A
  dmi.board.name: VAIO
  dmi.board.vendor: Sony Corporation
  dmi.board.version: N/A
  dmi.chassis.asset.tag: N/A
  dmi.chassis.type: 10
  dmi.chassis.vendor: Sony Corporation
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrR2060Y0:bd08/27/2009:svnSonyCorporation:pnVGN-FW31ZJ:pvrC6015XL3:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorpo

[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-03-12 Thread JVD
It just happened again, this time with latest  3.13.0-46-lowlatency kernel and 
1:7.7+1ubuntu8.1 .
The messages are slightly different :



[78988.537888] radeon :01:00.0: GPU lockup CP stall for more than 1msec
[78988.537900] radeon :01:00.0: GPU lockup (waiting for 0x07e3579e 
last fence id 0x07e3579d on ring 0)
[78988.551392] [drm] Disabling audio 0 support
[78988.558663] radeon :01:00.0: Saved 6100 dwords of commands on ring 0.
[78988.558689] radeon :01:00.0: GPU softreset: 0x0009
[78988.558692] radeon :01:00.0:   GRBM_STATUS   = 0xA2733828
[78988.558697] radeon :01:00.0:   GRBM_STATUS_SE0   = 0x1C07
[78988.558703] radeon :01:00.0:   GRBM_STATUS_SE1   = 0x0007
[78988.558706] radeon :01:00.0:   SRBM_STATUS   = 0x2AC0
[78988.558708] radeon :01:00.0:   SRBM_STATUS2  = 0x
[78988.558711] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[78988.558714] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00010800
[78988.558717] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x00028006
[78988.558723] radeon :01:00.0:   R_008680_CP_STAT  = 0x80038647
[78988.558726] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[78988.572609] radeon :01:00.0: GRBM_SOFT_RESET=0x7F6B
[78988.572663] radeon :01:00.0: SRBM_SOFT_RESET=0x0100
[78988.573833] radeon :01:00.0:   GRBM_STATUS   = 0x3828
[78988.573835] radeon :01:00.0:   GRBM_STATUS_SE0   = 0x0007
[78988.573837] radeon :01:00.0:   GRBM_STATUS_SE1   = 0x0007
[78988.573839] radeon :01:00.0:   SRBM_STATUS   = 0x20C0
[78988.573841] radeon :01:00.0:   SRBM_STATUS2  = 0x
[78988.573842] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[78988.573844] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x
[78988.573846] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x
[78988.573848] radeon :01:00.0:   R_008680_CP_STAT  = 0x
[78988.573850] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[78988.573860] radeon :01:00.0: GPU reset succeeded, trying to resume
[78988.593310] [drm] PCIE GART of 1024M enabled (table at 0x0025D000).
[78988.593389] radeon :01:00.0: WB enabled
[78988.593390] radeon :01:00.0: fence driver on ring 0 use gpu addr 
0x2c00 and cpu addr 0x880401f83c00
[78988.593391] radeon :01:00.0: fence driver on ring 3 use gpu addr 
0x2c0c and cpu addr 0x880401f83c0c
[78988.594158] radeon :01:00.0: fence driver on ring 5 use gpu addr 
0x0005c418 and cpu addr 0xc90005d1c418
[78988.610532] [drm] ring test on 0 succeeded in 1 usecs
[78988.610537] [drm] ring test on 3 succeeded in 2 usecs
[78988.808404] [drm] ring test on 5 succeeded in 1 usecs
[78988.808408] [drm] UVD initialized successfully.
[78988.808409] [drm] Enabling audio 0 support
[78988.808506] HDMI ATI/AMD: no speaker allocation for ELD
[78988.819165] [drm] ib test on ring 0 succeeded in 0 usecs
[78988.819188] [drm] ib test on ring 3 succeeded in 0 usecs
[78988.980723] [drm:uvd_v1_0_ib_test] *ERROR* radeon: failed to get create msg 
(-22).
[78988.980787] [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on 
ring 5 (-22).
[78989.109091] HDMI ATI/AMD: no speaker allocation for ELD
[78989.410240] HDMI ATI/AMD: no speaker allocation for ELD


Once again, the Xorg server is frozen displaying the last frame, and 
cannot be killed - one must SSH in to the machine from the network,
and do a 'poweroff' and press the power-on button to regain control
of the terminal - the VT-switch keystrokes (ALT+F[1-8]) do not work.
The gdb stack trace did not show as much info this time:
$ gdb -s /usr/lib/debug/usr/bin/Xorg -s 
/usr/lib/debug/.build-id/1a/a297280642f27cefdb283458289819239ae8b3.debug -s 
/usr/lib/debug/.build-id/4c/54eae2ae24e9a90fb22bdc4dcd9e07ee6a802c.debug 
/usr/bin/X -p 1810
GNU gdb (GDB) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/X...(no debugging symbols found)...done.
Attaching to program: /usr/bin/X, process 1810
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols 

[Kernel-packages] [Bug 1428260] Re: __USE_GNU not being set by -std=gnu11 ( struct f_owner_ex not declared )

2015-03-05 Thread JVD
re: > please run:
  > apport-collect 1428260
  > and then change the status of the bug to 'Confirmed'.
No. This is a host  on my company's private LAN, and 
we are not allowed to grant access to any internal host
to any external host .
It should be obvious from the bug description what the
problem is, how to reproduce it, and what all the 
relevant packages on my system are ( the host
is fully up-to-date wrt 14.04.2 LTS as of 2015-03-04.
If there is any further information you require, 
please let me know by posting a comment to
this bug report.


** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1428260

Title:
  __USE_GNU not being set by -std=gnu11 ( struct f_owner_ex not declared
  )

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Not sure if this is a bug in libc6-dev (owner of /usr/include/fcntl.h)
  or in linux-libc-dev (owner of /usr/include/linux/header that declares struct 
f_owner_ex) but
  it definitely appears to be a bug.
  I am trying to compile code that uses the new fcntl interfaces :
 F_SETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
 F_GETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
  but I cannot get the 'struct f_owner_ex' structure to be declared
  using the standard system headers - I must declare it manually in my code.
  This is on a Ubuntu 14.04.2 LTS x86_64 system, fully up-to-date as
  of 2015-03-04 , with:
gcc :4:4.8.2-1ubuntu6
libc6-dev:2.19-0ubuntu6.6 
linux-libc-dev:  3.13.0-46.76

  Attempts to compile for instance this program always fail :
  $ cat /tmp/t_fcntl.c 
  #include 
  #include 
  void f(void) { struct f_owner_ex foe={0}; }
  $ gcc -c /tmp/t_fcntl.c 
  /tmp/t_fcntl.c: In function ‘f’:
  /tmp/t_fcntl.c:3:23: error: variable ‘foe’ has initializer but incomplete type
   void f(void) { struct f_owner_ex foe={0}; }
 ^
  /tmp/t_fcntl.c:3:23: warning: excess elements in struct initializer [enabled 
by default]
  /tmp/t_fcntl.c:3:23: warning: (near initialization for ‘foe’) [enabled by 
default]
  /tmp/t_fcntl.c:3:34: error: storage size of ‘foe’ isn’t known
   void f(void) { struct f_owner_ex foe={0}; }

  I can see this structure is declared in two places:
  1: /usr/include/bits/fcntl.h @ line 239:
  #ifdef __USE_GNU
  /* Owner types.  */
  enum __pid_type
{
  F_OWNER_TID = 0,  /* Kernel thread.  */
  F_OWNER_PID,  /* Process.  */
  F_OWNER_PGRP, /* Process group.  */
  F_OWNER_GID = F_OWNER_PGRP/* Alternative, obsolete name.  */
};

  /* Structure to use with F_GETOWN_EX and F_SETOWN_EX.  */
  struct f_owner_ex
{
  enum __pid_type type; /* Owner type of ID.  */
  __pid_t pid;  /* ID of owner.  */
};
  #endif

  2: /usr/include/asm-generic/fcntl.h
  struct f_owner_ex {
int type;
__kernel_pid_t  pid;
  };
  ( I am assuming I should not be using the kernel's pid type ).

  My understanding of __USE_GNU is that it is defined when 
  -std=gnu* is specified on the compile command line, or when
  _GNU_SOURCE=1 is set.  

  Only when _GNU_SOURCE=1 is explicitly set is __USE_GNU being defined 
  and the example compiles OK :
  $ gcc -std=gnu11 -D_GNU_SOURCE=1 -c /tmp/t_fcntl.c 
  OK, that worked!

  $ gcc -std=gnu11  -c /tmp/t_fcntl.c 
  /tmp/t_fcntl.c: In function ‘f’:
  /tmp/t_fcntl.c:3:23: error: variable ‘foe’ has initializer but incomplete type
   void f(void) { struct f_owner_ex foe={0}; }
 ^
  /tmp/t_fcntl.c:3:23: warning: excess elements in struct initializer [enabled 
by default]
  /tmp/t_fcntl.c:3:23: warning: (near initialization for ‘foe’) [enabled by 
default]
  /tmp/t_fcntl.c:3:34: error: storage size of ‘foe’ isn’t known
   void f(void) { struct f_owner_ex foe={0}; }
^
  Why isn't _GNU_SOURCE being set when I've asked gcc to enable GNU extensions 
with --std=gnu11 ? 

  From the "Standards" gcc info node :
   You may also select an extended version of the C language explicitly 
with ... '-std=gnu11' (for C11 with GNU extensions)

  It would appear that libc6-dev / linux-libc-dev has broken GCC's
  '-std=gnuXX' support.

  Also the fcntl.2 manual page makes no mention of _GNU_SOURCE needing to be 
defined 
  in order to use F_SETOWN_EX .

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1428260/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1428260] [NEW] __USE_GNU not being set by -std=gnu11 ( struct f_owner_ex not declared )

2015-03-04 Thread JVD
Public bug reported:

Not sure if this is a bug in libc6-dev (owner of /usr/include/fcntl.h)
or in linux-libc-dev (owner of /usr/include/linux/header that declares struct 
f_owner_ex) but
it definitely appears to be a bug.
I am trying to compile code that uses the new fcntl interfaces :
   F_SETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
   F_GETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
but I cannot get the 'struct f_owner_ex' structure to be declared
using the standard system headers - I must declare it manually in my code.
This is on a Ubuntu 14.04.2 LTS x86_64 system, fully up-to-date as
of 2015-03-04 , with:
  gcc :4:4.8.2-1ubuntu6
  libc6-dev:2.19-0ubuntu6.6 
  linux-libc-dev:  3.13.0-46.76

Attempts to compile for instance this program always fail :
$ cat /tmp/t_fcntl.c 
#include 
#include 
void f(void) { struct f_owner_ex foe={0}; }
$ gcc -c /tmp/t_fcntl.c 
/tmp/t_fcntl.c: In function ‘f’:
/tmp/t_fcntl.c:3:23: error: variable ‘foe’ has initializer but incomplete type
 void f(void) { struct f_owner_ex foe={0}; }
   ^
/tmp/t_fcntl.c:3:23: warning: excess elements in struct initializer [enabled by 
default]
/tmp/t_fcntl.c:3:23: warning: (near initialization for ‘foe’) [enabled by 
default]
/tmp/t_fcntl.c:3:34: error: storage size of ‘foe’ isn’t known
 void f(void) { struct f_owner_ex foe={0}; }

I can see this structure is declared in two places:
1: /usr/include/bits/fcntl.h @ line 239:
#ifdef __USE_GNU
/* Owner types.  */
enum __pid_type
  {
F_OWNER_TID = 0,/* Kernel thread.  */
F_OWNER_PID,/* Process.  */
F_OWNER_PGRP,   /* Process group.  */
F_OWNER_GID = F_OWNER_PGRP  /* Alternative, obsolete name.  */
  };

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX.  */
struct f_owner_ex
  {
enum __pid_type type;   /* Owner type of ID.  */
__pid_t pid;/* ID of owner.  */
  };
#endif

2: /usr/include/asm-generic/fcntl.h
struct f_owner_ex {
int type;
__kernel_pid_t  pid;
};
( I am assuming I should not be using the kernel's pid type ).

My understanding of __USE_GNU is that it is defined when 
-std=gnu* is specified on the compile command line, or when
_GNU_SOURCE=1 is set.  

Only when _GNU_SOURCE=1 is explicitly set is __USE_GNU being defined 
and the example compiles OK :
$ gcc -std=gnu11 -D_GNU_SOURCE=1 -c /tmp/t_fcntl.c 
OK, that worked!

$ gcc -std=gnu11  -c /tmp/t_fcntl.c 
/tmp/t_fcntl.c: In function ‘f’:
/tmp/t_fcntl.c:3:23: error: variable ‘foe’ has initializer but incomplete type
 void f(void) { struct f_owner_ex foe={0}; }
   ^
/tmp/t_fcntl.c:3:23: warning: excess elements in struct initializer [enabled by 
default]
/tmp/t_fcntl.c:3:23: warning: (near initialization for ‘foe’) [enabled by 
default]
/tmp/t_fcntl.c:3:34: error: storage size of ‘foe’ isn’t known
 void f(void) { struct f_owner_ex foe={0}; }
  ^
Why isn't _GNU_SOURCE being set when I've asked gcc to enable GNU extensions 
with --std=gnu11 ? 

>From the "Standards" gcc info node :
 You may also select an extended version of the C language explicitly with 
... '-std=gnu11' (for C11 with GNU extensions)

It would appear that libc6-dev / linux-libc-dev has broken GCC's
'-std=gnuXX' support.

Also the fcntl.2 manual page makes no mention of _GNU_SOURCE needing to be 
defined 
in order to use F_SETOWN_EX .

** Affects: linux (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1428260

Title:
  __USE_GNU not being set by -std=gnu11 ( struct f_owner_ex not declared
  )

Status in linux package in Ubuntu:
  New

Bug description:
  Not sure if this is a bug in libc6-dev (owner of /usr/include/fcntl.h)
  or in linux-libc-dev (owner of /usr/include/linux/header that declares struct 
f_owner_ex) but
  it definitely appears to be a bug.
  I am trying to compile code that uses the new fcntl interfaces :
 F_SETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
 F_GETOWN_EX (struct f_owner_ex *) (since Linux 2.6.32)
  but I cannot get the 'struct f_owner_ex' structure to be declared
  using the standard system headers - I must declare it manually in my code.
  This is on a Ubuntu 14.04.2 LTS x86_64 system, fully up-to-date as
  of 2015-03-04 , with:
gcc :4:4.8.2-1ubuntu6
libc6-dev:2.19-0ubuntu6.6 
linux-libc-dev:  3.13.0-46.76

  Attempts to compile for instance this program always fail :
  $ cat /tmp/t_fcntl.c 
  #include 
  #include 
  void f(void) { struct f_owner_ex foe={0}; }
  $ gcc -c /tmp/t_fcntl.c 
  /tmp/t_fcntl.c: In function ‘f’:
  /tmp/t_fcntl.c:3:23: error: variable ‘foe’ has initializer but incomplete type
   void f(void) { struct f_owner_ex foe={0}; }
 ^
  /tmp/t_fcntl.c:3:23: warning: excess el

[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-03-01 Thread JVD
It just happened again, this time with latest  3.13.0-46-lowlatency kernel and 
1:7.7+1ubuntu8.1 .
The messages are slightly different :



[78988.537888] radeon :01:00.0: GPU lockup CP stall for more than 1msec
[78988.537900] radeon :01:00.0: GPU lockup (waiting for 0x07e3579e 
last fence id 0x07e3579d on ring 0)
[78988.551392] [drm] Disabling audio 0 support
[78988.558663] radeon :01:00.0: Saved 6100 dwords of commands on ring 0.
[78988.558689] radeon :01:00.0: GPU softreset: 0x0009
[78988.558692] radeon :01:00.0:   GRBM_STATUS   = 0xA2733828
[78988.558697] radeon :01:00.0:   GRBM_STATUS_SE0   = 0x1C07
[78988.558703] radeon :01:00.0:   GRBM_STATUS_SE1   = 0x0007
[78988.558706] radeon :01:00.0:   SRBM_STATUS   = 0x2AC0
[78988.558708] radeon :01:00.0:   SRBM_STATUS2  = 0x
[78988.558711] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[78988.558714] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00010800
[78988.558717] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x00028006
[78988.558723] radeon :01:00.0:   R_008680_CP_STAT  = 0x80038647
[78988.558726] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[78988.572609] radeon :01:00.0: GRBM_SOFT_RESET=0x7F6B
[78988.572663] radeon :01:00.0: SRBM_SOFT_RESET=0x0100
[78988.573833] radeon :01:00.0:   GRBM_STATUS   = 0x3828
[78988.573835] radeon :01:00.0:   GRBM_STATUS_SE0   = 0x0007
[78988.573837] radeon :01:00.0:   GRBM_STATUS_SE1   = 0x0007
[78988.573839] radeon :01:00.0:   SRBM_STATUS   = 0x20C0
[78988.573841] radeon :01:00.0:   SRBM_STATUS2  = 0x
[78988.573842] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[78988.573844] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x
[78988.573846] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x
[78988.573848] radeon :01:00.0:   R_008680_CP_STAT  = 0x
[78988.573850] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[78988.573860] radeon :01:00.0: GPU reset succeeded, trying to resume
[78988.593310] [drm] PCIE GART of 1024M enabled (table at 0x0025D000).
[78988.593389] radeon :01:00.0: WB enabled
[78988.593390] radeon :01:00.0: fence driver on ring 0 use gpu addr 
0x2c00 and cpu addr 0x880401f83c00
[78988.593391] radeon :01:00.0: fence driver on ring 3 use gpu addr 
0x2c0c and cpu addr 0x880401f83c0c
[78988.594158] radeon :01:00.0: fence driver on ring 5 use gpu addr 
0x0005c418 and cpu addr 0xc90005d1c418
[78988.610532] [drm] ring test on 0 succeeded in 1 usecs
[78988.610537] [drm] ring test on 3 succeeded in 2 usecs
[78988.808404] [drm] ring test on 5 succeeded in 1 usecs
[78988.808408] [drm] UVD initialized successfully.
[78988.808409] [drm] Enabling audio 0 support
[78988.808506] HDMI ATI/AMD: no speaker allocation for ELD
[78988.819165] [drm] ib test on ring 0 succeeded in 0 usecs
[78988.819188] [drm] ib test on ring 3 succeeded in 0 usecs
[78988.980723] [drm:uvd_v1_0_ib_test] *ERROR* radeon: failed to get create msg 
(-22).
[78988.980787] [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on 
ring 5 (-22).
[78989.109091] HDMI ATI/AMD: no speaker allocation for ELD
[78989.410240] HDMI ATI/AMD: no speaker allocation for ELD


Once again, the Xorg server is frozen displaying the last frame, and 
cannot be killed - one must SSH in to the machine from the network,
and do a 'poweroff' and press the power-on button to regain control
of the terminal - the VT-switch keystrokes (ALT+F[1-8]) do not work.
The gdb stack trace did not show as much info this time:
$ gdb -s /usr/lib/debug/usr/bin/Xorg -s 
/usr/lib/debug/.build-id/1a/a297280642f27cefdb283458289819239ae8b3.debug -s 
/usr/lib/debug/.build-id/4c/54eae2ae24e9a90fb22bdc4dcd9e07ee6a802c.debug 
/usr/bin/X -p 1810
GNU gdb (GDB) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/X...(no debugging symbols found)...done.
Attaching to program: /usr/bin/X, process 1810
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols 

[Kernel-packages] [Bug 1409393] Re: radeon GPU lockup CP stall

2015-02-04 Thread JVD
I've been seeing this problem also, abeit rather infrequently ( about once 
every 1-2 months), 
with all Ubuntu 14.04.1 kernels issued via updates since July 2014 .

This is on my machine at work which is left on all the time and only
reboots when a new kernel is installed .

Machine:
8 core Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz

RAM: 16G

Current kernel :  3.13.0-45-lowlatency
Video Card:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar 
GL [FirePro 2270]

I removed "radeon" from the module blacklist so it gets installed instead of 
the broken fglrx drivers whose
user-space support programs and libraries seem suited to little other than 
generating core-dumps.

I have a dual monitor setup with xorg.conf settings:

Section "Monitor"
Identifier  "Monitor0"
Option  "DPMS" "true"
Option  "Primary" "true"
Option  "LeftOf"   "DVI-1"
Modeline"1920x1080@60.0"148.50  1920 2008 2052 2200 
1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Monitor"
Identifier  "Monitor1"
Option  "DPMS" "true"
Option  "RightOf"   "DVI-0"
ModeLine"1600x1200@60.0"162.00  1600 1664 1856 2160 
1200 1201 1204 1250 +hsync +vsync
EndSection


When the problem happens, the video card is left frozen displaying the last 
frames the X server emitted
(usually from the xscreensaver program).

I am able to SSH in to the host (networking still works, so the kernel is not 
totally locked up),  but 
attempts to kill the Xorg X-server fail,  and the console does not respond to 
++
"VT Switch" keystrokes.  The only thing I can do in this situation is SSH in to 
the machine and poweroff .

Before powering off, I did :
 $ dmesg -c > video_lockup.log
And I see these messages in the dmesg log :
[56089.032100] radeon :01:00.0: GPU lockup CP stall for more than 1msec
[56089.032112] radeon :01:00.0: GPU lockup (waiting for 0x0004 
last fence id 0x0002 on ring 5)
[56089.032119] [drm:uvd_v1_0_ib_test] *ERROR* radeon: fence wait failed (-35).

I was unable to kill the Xorg server with 'kill -TERM' .
I generated gcore file from the Xorg server (from xserver-xorg-1:7.7+1ubuntu8):
Core was generated by `/usr/bin/X'.
#0  0x7f4c06ed2414 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
(gdb) t a a bt

Thread 2 (Thread 0x7f4c07d879c0 (LWP 1793)):
#0  0x7f4c059d5ec7 in ioctl () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f4c06cbd3a4 in drmIoctl () from /usr/lib/x86_64-linux-gnu/libdrm.so.2
#2  0x7f4c06cbf6bf in drmCommandWriteRead () from 
/usr/lib/x86_64-linux-gnu/libdrm.so.2
#3  0x7f4c01820c83 in ?? () from 
/usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
#4  0x7f4c01a77e88 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#5  0x7f4c01a4a0f7 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#6  0x7f4c013d1835 in ?? () from /usr/lib/xorg/modules/libexa.so
#7  0x7f4c013d1a78 in ?? () from /usr/lib/xorg/modules/libexa.so
#8  0x7f4c013d3323 in ?? () from /usr/lib/xorg/modules/libexa.so
#9  0x7f4c013d3c9b in ?? () from /usr/lib/xorg/modules/libexa.so
#10 0x7f4c07f52b7d in miCopyRegion ()
#11 0x7f4c07f53106 in miDoCopy ()
#12 0x7f4c013d2326 in ?? () from /usr/lib/xorg/modules/libexa.so
#13 0x7f4c07eff838 in ?? ()
#14 0x7f4c07eac0f8 in ?? ()
#15 0x7f4c07eacf25 in ?? ()
#16 0x7f4c07eab85d in ?? ()
#17 0x7f4c07e47926 in ?? ()
#18 0x7f4c07e4a715 in MapWindow ()
#19 0x7f4c07e4db34 in ReparentWindow ()
#20 0x7f4c07e4dbd1 in HandleSaveSet ()
#21 0x7f4c07e4216b in FreeClientResources ()
#22 0x7f4c07e1e0df in CloseDownClient ()
#23 0x7f4c07e1eb44 in ?? ()
#24 0x7f4c07e22a9a in ?? ()
#25 0x7f4c05905ec5 in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
#26 0x7f4c07e0defe in _start ()

Thread 1 (Thread 0x7f4bfe0cf700 (LWP 1977)):
#0  0x7f4c06ed2414 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f4c00e634c3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#2  0x7f4c00e62e07 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#3  0x7f4c06ece182 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#4  0x7f4c059df00d in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) 
[Switching to thread 2 (Thread 0x7f4c07d879c0 (LWP 1793))]
#0  0x7f4c059d5ec7 in ioctl () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0  0x7f4c059d5ec7 in ioctl () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f4c06cbd3a4 in drmIoctl () from /usr/lib/x86_64-linux-gnu/libdrm.so.2
#2  0x7f4c06cbf6bf in drmCommandWriteRead () from 
/usr/lib/x86_64-linux-gnu/libdrm.so.2
#3  0x7f4c01820c83 in ?? () from 
/usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
#4  0x7f4c01a77e88 in ?? () from /usr/lib/xorg/modules/drivers/radeon_drv.so
#5  0x7f4c01a4a0