All of lore.kernel.org
 help / color / mirror / Atom feed
* workqueue warnings in helper code
@ 2013-06-28  3:21 Dave Airlie
  2013-06-28  5:26 ` Dave Airlie
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Airlie @ 2013-06-28  3:21 UTC (permalink / raw)
  To: Daniel Vetter, dri-devel

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

Hi Daniel,

this showed up in drm-next on my radeon and udl drivers, I haven't
bisected it yet, it may not even be your fault :-)

 if (WARN_ON(!list_empty(&work->entry))) {

is the line in the workqueue code.

Dave.

[-- Attachment #2: mydmesg --]
[-- Type: application/octet-stream, Size: 22821 bytes --]

[    1.529990] [drm] Initialized drm 1.1.0 20060810
[    1.535484] ata_id (1042) used greatest stack depth: 5080 bytes left
[    1.537141] [drm] radeon kernel modesetting enabled.
[    1.538649] [drm] initializing kernel modesetting (RV770 0x1002:0x9442 0x1002:0x0502).
[    1.538730] [drm] register mmio base: 0xFDFE0000
[    1.538732] [drm] register mmio size: 65536
[    1.540741] ATOM BIOS: Wekiva
[    1.540887] radeon 0000:01:00.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
[    1.540889] radeon 0000:01:00.0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
[    1.540891] [drm] Detected VRAM RAM=512M, BAR=256M
[    1.540892] [drm] RAM width 256bits DDR
[    1.541319] [TTM] Zone  kernel: Available graphics memory: 4076996 kiB
[    1.541342] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[    1.541344] [TTM] Initializing pool allocator
[    1.541361] [TTM] Initializing DMA pool allocator
[    1.541755] [drm] radeon: 512M of VRAM memory ready
[    1.541757] [drm] radeon: 512M of GTT memory ready.
[    1.542069] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    1.542963] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
[    1.544119] [drm] Loading RV770 Microcode
[    1.545540] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.545960] ohci_hcd 0000:00:12.0: OHCI Host Controller
[    1.546782] ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 1
[    1.546911] ohci_hcd 0000:00:12.0: irq 18, io mem 0xfe02e000
[    1.548163] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.548166] Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after
[    1.548670] ehci-pci: EHCI PCI platform driver
[    1.562388] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[    1.562608] radeon 0000:01:00.0: WB enabled
[    1.562612] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0xffff880222af6c00
[    1.562614] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0xffff880222af6c0c
[    1.562619] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    1.562620] [drm] Driver supports precise vblank timestamp query.
[    1.562699] radeon 0000:01:00.0: irq 41 for MSI/MSI-X
[    1.562721] radeon 0000:01:00.0: radeon: using MSI.
[    1.562786] [drm] radeon: irq initialized.
[    1.604571] hub 1-0:1.0: USB hub found
[    1.604601] hub 1-0:1.0: 5 ports detected
[    1.605494] ohci_hcd 0000:00:13.0: OHCI Host Controller
[    1.605849] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2
[    1.605873] ohci_hcd 0000:00:13.0: irq 18, io mem 0xfe02c000
[    1.610031] [drm] ring test on 0 succeeded in 0 usecs
[    1.610092] [drm] ring test on 3 succeeded in 1 usecs
[    1.610573] firewire_ohci 0000:03:0e.0: added OHCI v1.10 device as card 0, 4 IR + 8 IT contexts, quirks 0x11
[    1.610925] [drm] ib test on ring 0 succeeded in 0 usecs
[    1.610944] [drm] ib test on ring 3 succeeded in 0 usecs
[    1.617258] [drm] Radeon Display Connectors
[    1.617261] [drm] Connector 0:
[    1.617262] [drm]   DVI-I-1
[    1.617263] [drm]   HPD1
[    1.617265] [drm]   DDC: 0x7e60 0x7e60 0x7e64 0x7e64 0x7e68 0x7e68 0x7e6c 0x7e6c
[    1.617266] [drm]   Encoders:
[    1.617267] [drm]     DFP1: INTERNAL_UNIPHY
[    1.617268] [drm]     CRT2: INTERNAL_KLDSCP_DAC2
[    1.617269] [drm] Connector 1:
[    1.617270] [drm]   DIN-1
[    1.617271] [drm]   Encoders:
[    1.617272] [drm]     TV1: INTERNAL_KLDSCP_DAC2
[    1.617273] [drm] Connector 2:
[    1.617274] [drm]   DVI-I-2
[    1.617275] [drm]   HPD2
[    1.617277] [drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 0x7e2c
[    1.617277] [drm]   Encoders:
[    1.617278] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    1.617279] [drm]     DFP2: INTERNAL_KLDSCP_LVTMA
[    1.617411] [drm] Internal thermal controller with fan control
[    1.617773] == power state 0 ==
[    1.617775] 	ui class: none
[    1.617776] 	internal class: boot 
[    1.617779] 	caps: video 
[    1.617781] 	uvd    vclk: 0 dclk: 0
[    1.617782] 		power level 0    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617784] 		power level 1    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617786] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617789] 	status: c r b 
[    1.617791] == power state 1 ==
[    1.617792] 	ui class: performance
[    1.617794] 	internal class: none
[    1.617795] 	caps: single_disp video 
[    1.617798] 	uvd    vclk: 0 dclk: 0
[    1.617799] 		power level 0    sclk: 50000 mclk: 75000 vddc: 1046
[    1.617800] 		power level 1    sclk: 50000 mclk: 75000 vddc: 1046
[    1.617802] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617802] 	status: 
[    1.617805] == power state 2 ==
[    1.617807] 	ui class: none
[    1.617809] 	internal class: uvd 
[    1.617810] 	caps: video 
[    1.617812] 	uvd    vclk: 53300 dclk: 40000
[    1.617814] 		power level 0    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617815] 		power level 1    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617816] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617817] 	status: 
[    1.617818] == power state 3 ==
[    1.617819] 	ui class: performance
[    1.617820] 	internal class: none
[    1.617823] 	caps: video 
[    1.617826] 	uvd    vclk: 0 dclk: 0
[    1.617827] 		power level 0    sclk: 50000 mclk: 99300 vddc: 1084
[    1.617828] 		power level 1    sclk: 50000 mclk: 99300 vddc: 1084
[    1.617830] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.617830] 	status: 
[    1.619696] switching from power state:
[    1.619697] 	ui class: none
[    1.619698] 	internal class: boot 
[    1.619700] 	caps: video 
[    1.619701] 	uvd    vclk: 0 dclk: 0
[    1.619703] 		power level 0    sclk: 62500 mclk: 99300 vddc: 1123
[    1.619704] 		power level 1    sclk: 62500 mclk: 99300 vddc: 1123
[    1.619705] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.619706] 	status: c b 
[    1.619708] switching to power state:
[    1.619709] 	ui class: performance
[    1.619710] 	internal class: none
[    1.619712] 	caps: single_disp video 
[    1.619714] 	uvd    vclk: 0 dclk: 0
[    1.619715] 		power level 0    sclk: 50000 mclk: 75000 vddc: 1046
[    1.619716] 		power level 1    sclk: 50000 mclk: 75000 vddc: 1046
[    1.619718] 		power level 2    sclk: 62500 mclk: 99300 vddc: 1123
[    1.619718] 	status: r 
[    1.622172] [drm] radeon: dpm initialized
[    1.653915] ------------[ cut here ]------------
[    1.653920] WARNING: at /home/airlied/kernel/linux-2.6/kernel/workqueue.c:1432 __queue_delayed_work+0x47/0x10d()
[    1.653921] Modules linked in: firewire_ohci firewire_core crc_itu_t ehci_pci(+) ehci_hcd ohci_hcd(+) radeon(+) i2c_algo_bit hwmon drm_kms_helper ttm drm i2c_core
[    1.653933] CPU: 0 PID: 805 Comm: systemd-udevd Not tainted 3.10.0-rc7+ #55
[    1.653934] Hardware name: Gigabyte Technology Co., Ltd. GA-A75M-UD2H/GA-A75M-UD2H, BIOS F4 09/16/2011
[    1.653936]  000000000000d278 ffff880222a638c0 ffffffff8144d417 ffff880222a638f8
[    1.653939]  ffffffff8102fce2 0000000000000000 ffff8802228a58e0 0000000000000008
[    1.653941]  ffff8802228a5920 ffff88022600aa00 ffff880222a63908 ffffffff8102fd99
[    1.653944] Call Trace:
[    1.653949]  [<ffffffff8144d417>] dump_stack+0x19/0x1b
[    1.653952]  [<ffffffff8102fce2>] warn_slowpath_common+0x60/0x78
[    1.653954]  [<ffffffff8102fd99>] warn_slowpath_null+0x15/0x17
[    1.653957]  [<ffffffff81048f2b>] __queue_delayed_work+0x47/0x10d
[    1.653959]  [<ffffffff81049038>] queue_delayed_work_on+0x47/0x68
[    1.653964]  [<ffffffffa0086bae>] drm_helper_probe_single_connector_modes+0x12c/0x334 [drm_kms_helper]
[    1.653968]  [<ffffffffa0084300>] drm_fb_helper_probe_connector_modes+0x41/0x54 [drm_kms_helper]
[    1.653972]  [<ffffffffa0085b54>] drm_fb_helper_initial_config+0x1ab/0x432 [drm_kms_helper]
[    1.654001]  [<ffffffffa00a601c>] ? atombios_crtc_disable+0x22/0x17c [radeon]
[    1.654032]  [<ffffffffa0100e78>] ? radeon_atom_encoder_disable+0xf3/0x130 [radeon]
[    1.654057]  [<ffffffffa00c0cdc>] radeon_fbdev_init+0xbd/0xcf [radeon]
[    1.654081]  [<ffffffffa00bcba0>] radeon_modeset_init+0x9b6/0x9d0 [radeon]
[    1.654103]  [<ffffffffa009ec8c>] radeon_driver_load_kms+0xc1/0x109 [radeon]
[    1.654117]  [<ffffffffa0016295>] drm_get_pci_dev+0x164/0x264 [drm]
[    1.654120]  [<ffffffff8107caef>] ? trace_hardirqs_on+0xd/0xf
[    1.654141]  [<ffffffffa009c0fd>] radeon_pci_probe+0xa8/0xaf [radeon]
[    1.654144]  [<ffffffff81258012>] local_pci_probe+0x39/0x61
[    1.654147]  [<ffffffff8125817e>] pci_device_probe+0xba/0xe0
[    1.654150]  [<ffffffff812e0eb6>] driver_probe_device+0x98/0x1b3
[    1.654153]  [<ffffffff812e1065>] __driver_attach+0x5c/0x7e
[    1.654155]  [<ffffffff812e1009>] ? __device_attach+0x38/0x38
[    1.654158]  [<ffffffff812df5b2>] bus_for_each_dev+0x78/0x82
[    1.654160]  [<ffffffff812e0a50>] driver_attach+0x19/0x1b
[    1.654163]  [<ffffffff812e068f>] bus_add_driver+0x100/0x208
[    1.654165]  [<ffffffff812e1516>] driver_register+0x87/0xf8
[    1.654167]  [<ffffffff81257ee4>] __pci_register_driver+0x5b/0x5e
[    1.654170]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654180]  [<ffffffffa001641b>] drm_pci_init+0x86/0xea [drm]
[    1.654182]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654203]  [<ffffffffa019e097>] radeon_init+0x97/0xb5 [radeon]
[    1.654207]  [<ffffffff81000263>] do_one_initcall+0x7b/0x110
[    1.654210]  [<ffffffff810882f7>] load_module+0x1636/0x1c92
[    1.654212]  [<ffffffff810847f8>] ? sys_getegid16+0x50/0x50
[    1.654215]  [<ffffffff81112720>] ? vfs_read+0xf6/0x142
[    1.654218]  [<ffffffff81085cf7>] ? copy_module_from_fd+0xcb/0xe3
[    1.654221]  [<ffffffff81088a54>] SyS_finit_module+0x52/0x68
[    1.654224]  [<ffffffff8145a352>] system_call_fastpath+0x16/0x1b
[    1.654225] ---[ end trace b0eaf59f8206fd92 ]---
[    1.654226] ------------[ cut here ]------------
[    1.654228] WARNING: at /home/airlied/kernel/linux-2.6/kernel/workqueue.c:1434 __queue_delayed_work+0x9a/0x10d()
[    1.654229] Modules linked in: firewire_ohci firewire_core crc_itu_t ehci_pci(+) ehci_hcd ohci_hcd(+) radeon(+) i2c_algo_bit hwmon drm_kms_helper ttm drm i2c_core
[    1.654239] CPU: 0 PID: 805 Comm: systemd-udevd Tainted: G        W    3.10.0-rc7+ #55
[    1.654240] Hardware name: Gigabyte Technology Co., Ltd. GA-A75M-UD2H/GA-A75M-UD2H, BIOS F4 09/16/2011
[    1.654241]  000000000000e028 ffff880222a638c0 ffffffff8144d417 ffff880222a638f8
[    1.654244]  ffffffff8102fce2 0000000000000000 ffff8802228a58e0 0000000000000008
[    1.654247]  ffff8802228a5920 ffff88022600aa00 ffff880222a63908 ffffffff8102fd99
[    1.654249] Call Trace:
[    1.654252]  [<ffffffff8144d417>] dump_stack+0x19/0x1b
[    1.654254]  [<ffffffff8102fce2>] warn_slowpath_common+0x60/0x78
[    1.654256]  [<ffffffff8102fd99>] warn_slowpath_null+0x15/0x17
[    1.654258]  [<ffffffff81048f7e>] __queue_delayed_work+0x9a/0x10d
[    1.654261]  [<ffffffff81049038>] queue_delayed_work_on+0x47/0x68
[    1.654265]  [<ffffffffa0086bae>] drm_helper_probe_single_connector_modes+0x12c/0x334 [drm_kms_helper]
[    1.654268]  [<ffffffffa0084300>] drm_fb_helper_probe_connector_modes+0x41/0x54 [drm_kms_helper]
[    1.654272]  [<ffffffffa0085b54>] drm_fb_helper_initial_config+0x1ab/0x432 [drm_kms_helper]
[    1.654294]  [<ffffffffa00a601c>] ? atombios_crtc_disable+0x22/0x17c [radeon]
[    1.654321]  [<ffffffffa0100e78>] ? radeon_atom_encoder_disable+0xf3/0x130 [radeon]
[    1.654346]  [<ffffffffa00c0cdc>] radeon_fbdev_init+0xbd/0xcf [radeon]
[    1.654370]  [<ffffffffa00bcba0>] radeon_modeset_init+0x9b6/0x9d0 [radeon]
[    1.654391]  [<ffffffffa009ec8c>] radeon_driver_load_kms+0xc1/0x109 [radeon]
[    1.654401]  [<ffffffffa0016295>] drm_get_pci_dev+0x164/0x264 [drm]
[    1.654403]  [<ffffffff8107caef>] ? trace_hardirqs_on+0xd/0xf
[    1.654424]  [<ffffffffa009c0fd>] radeon_pci_probe+0xa8/0xaf [radeon]
[    1.654427]  [<ffffffff81258012>] local_pci_probe+0x39/0x61
[    1.654429]  [<ffffffff8125817e>] pci_device_probe+0xba/0xe0
[    1.654432]  [<ffffffff812e0eb6>] driver_probe_device+0x98/0x1b3
[    1.654435]  [<ffffffff812e1065>] __driver_attach+0x5c/0x7e
[    1.654437]  [<ffffffff812e1009>] ? __device_attach+0x38/0x38
[    1.654439]  [<ffffffff812df5b2>] bus_for_each_dev+0x78/0x82
[    1.654442]  [<ffffffff812e0a50>] driver_attach+0x19/0x1b
[    1.654444]  [<ffffffff812e068f>] bus_add_driver+0x100/0x208
[    1.654447]  [<ffffffff812e1516>] driver_register+0x87/0xf8
[    1.654449]  [<ffffffff81257ee4>] __pci_register_driver+0x5b/0x5e
[    1.654451]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654461]  [<ffffffffa001641b>] drm_pci_init+0x86/0xea [drm]
[    1.654463]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654485]  [<ffffffffa019e097>] radeon_init+0x97/0xb5 [radeon]
[    1.654488]  [<ffffffff81000263>] do_one_initcall+0x7b/0x110
[    1.654490]  [<ffffffff810882f7>] load_module+0x1636/0x1c92
[    1.654493]  [<ffffffff810847f8>] ? sys_getegid16+0x50/0x50
[    1.654495]  [<ffffffff81112720>] ? vfs_read+0xf6/0x142
[    1.654498]  [<ffffffff81085cf7>] ? copy_module_from_fd+0xcb/0xe3
[    1.654501]  [<ffffffff81088a54>] SyS_finit_module+0x52/0x68
[    1.654503]  [<ffffffff8145a352>] system_call_fastpath+0x16/0x1b
[    1.654504] ---[ end trace b0eaf59f8206fd93 ]---
[    1.654517] ------------[ cut here ]------------
[    1.654519] WARNING: at /home/airlied/kernel/linux-2.6/kernel/workqueue.c:1365 __queue_work+0x1c7/0x2a4()
[    1.654520] Modules linked in: firewire_ohci firewire_core crc_itu_t ehci_pci(+) ehci_hcd ohci_hcd(+) radeon(+) i2c_algo_bit hwmon drm_kms_helper ttm drm i2c_core
[    1.654529] CPU: 0 PID: 805 Comm: systemd-udevd Tainted: G        W    3.10.0-rc7+ #55
[    1.654531] Hardware name: Gigabyte Technology Co., Ltd. GA-A75M-UD2H/GA-A75M-UD2H, BIOS F4 09/16/2011
[    1.654532]  000000000000edd4 ffff880222a63880 ffffffff8144d417 ffff880222a638b8
[    1.654534]  ffffffff8102fce2 0000000000000000 ffff88022600aa00 ffff8802228a58e0
[    1.654537]  ffff88022ec12600 000000000000ed28 ffff880222a638c8 ffffffff8102fd99
[    1.654540] Call Trace:
[    1.654542]  [<ffffffff8144d417>] dump_stack+0x19/0x1b
[    1.654545]  [<ffffffff8102fce2>] warn_slowpath_common+0x60/0x78
[    1.654547]  [<ffffffff8102fd99>] warn_slowpath_null+0x15/0x17
[    1.654549]  [<ffffffff81048814>] __queue_work+0x1c7/0x2a4
[    1.654551]  [<ffffffff81048f98>] __queue_delayed_work+0xb4/0x10d
[    1.654553]  [<ffffffff81049038>] queue_delayed_work_on+0x47/0x68
[    1.654557]  [<ffffffffa0086bae>] drm_helper_probe_single_connector_modes+0x12c/0x334 [drm_kms_helper]
[    1.654561]  [<ffffffffa0084300>] drm_fb_helper_probe_connector_modes+0x41/0x54 [drm_kms_helper]
[    1.654565]  [<ffffffffa0085b54>] drm_fb_helper_initial_config+0x1ab/0x432 [drm_kms_helper]
[    1.654587]  [<ffffffffa00a601c>] ? atombios_crtc_disable+0x22/0x17c [radeon]
[    1.654614]  [<ffffffffa0100e78>] ? radeon_atom_encoder_disable+0xf3/0x130 [radeon]
[    1.654638]  [<ffffffffa00c0cdc>] radeon_fbdev_init+0xbd/0xcf [radeon]
[    1.654662]  [<ffffffffa00bcba0>] radeon_modeset_init+0x9b6/0x9d0 [radeon]
[    1.654684]  [<ffffffffa009ec8c>] radeon_driver_load_kms+0xc1/0x109 [radeon]
[    1.654694]  [<ffffffffa0016295>] drm_get_pci_dev+0x164/0x264 [drm]
[    1.654696]  [<ffffffff8107caef>] ? trace_hardirqs_on+0xd/0xf
[    1.654717]  [<ffffffffa009c0fd>] radeon_pci_probe+0xa8/0xaf [radeon]
[    1.654719]  [<ffffffff81258012>] local_pci_probe+0x39/0x61
[    1.654722]  [<ffffffff8125817e>] pci_device_probe+0xba/0xe0
[    1.654725]  [<ffffffff812e0eb6>] driver_probe_device+0x98/0x1b3
[    1.654727]  [<ffffffff812e1065>] __driver_attach+0x5c/0x7e
[    1.654730]  [<ffffffff812e1009>] ? __device_attach+0x38/0x38
[    1.654732]  [<ffffffff812df5b2>] bus_for_each_dev+0x78/0x82
[    1.654734]  [<ffffffff812e0a50>] driver_attach+0x19/0x1b
[    1.654737]  [<ffffffff812e068f>] bus_add_driver+0x100/0x208
[    1.654739]  [<ffffffff812e1516>] driver_register+0x87/0xf8
[    1.654742]  [<ffffffff81257ee4>] __pci_register_driver+0x5b/0x5e
[    1.654744]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654754]  [<ffffffffa001641b>] drm_pci_init+0x86/0xea [drm]
[    1.654756]  [<ffffffffa019e000>] ? 0xffffffffa019dfff
[    1.654777]  [<ffffffffa019e097>] radeon_init+0x97/0xb5 [radeon]
[    1.654780]  [<ffffffff81000263>] do_one_initcall+0x7b/0x110
[    1.654783]  [<ffffffff810882f7>] load_module+0x1636/0x1c92
[    1.654785]  [<ffffffff810847f8>] ? sys_getegid16+0x50/0x50
[    1.654787]  [<ffffffff81112720>] ? vfs_read+0xf6/0x142
[    1.654790]  [<ffffffff81085cf7>] ? copy_module_from_fd+0xcb/0xe3
[    1.654793]  [<ffffffff81088a54>] SyS_finit_module+0x52/0x68
[    1.654795]  [<ffffffff8145a352>] system_call_fastpath+0x16/0x1b
[    1.654797] ---[ end trace b0eaf59f8206fd94 ]---
[    1.661229] hub 2-0:1.0: USB hub found
[    1.661240] hub 2-0:1.0: 5 ports detected
[    1.661873] ohci_hcd 0000:00:14.5: OHCI Host Controller
[    1.662329] ohci_hcd 0000:00:14.5: new USB bus registered, assigned bus number 3
[    1.662370] ohci_hcd 0000:00:14.5: irq 18, io mem 0xfe02a000
[    1.671039] [drm] fb mappable at 0xD0142000
[    1.671043] [drm] vram apper at 0xD0000000
[    1.671044] [drm] size 7299072
[    1.671045] [drm] fb depth is 24
[    1.671046] [drm]    pitch is 6912
[    1.671831] fbcon: radeondrmfb (fb0) is primary device
[    1.684857] Console: switching to colour frame buffer device 210x65
[    1.691334] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[    1.691335] radeon 0000:01:00.0: registered panic notifier
[    1.691357] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:00.0 on minor 0
[    1.717637] hub 3-0:1.0: USB hub found
[    1.717655] hub 3-0:1.0: 2 ports detected

[  463.539505] usb 5-5: new high-speed USB device number 2 using ehci-pci
[  463.648643] usb 5-5: device descriptor read/64, error -32
[  464.028420] [drm] vendor descriptor length:22 data:22 5f 01 00 20 05 00 01 03 00 04
[  464.029203] ------------[ cut here ]------------
[  464.029210] WARNING: at /home/airlied/kernel/linux-2.6/kernel/workqueue.c:1365 __queue_work+0x1c7/0x2a4()
[  464.029211] Modules linked in: udl(+) syscopyarea sysfillrect sysimgblt drm_usb iptable_mangle tun bridge stp llc bnep bluetooth ip6t_REJECT ipt_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter ip_tables ip6table_filter ip6_tables x_tables acpi_cpufreq mperf freq_table kvm_amd kvm snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm ppdev nfsd snd_page_alloc snd_timer snd microcode r8169 mii soundcore auth_rpcgss i2c_piix4 oid_registry nfs_acl lockd parport_pc parport button sunrpc ipv6 firewire_ohci firewire_core crc_itu_t ehci_pci ehci_hcd ohci_hcd radeon i2c_algo_bit hwmon drm_kms_helper ttm drm i2c_core
[  464.029256] CPU: 1 PID: 2851 Comm: systemd-udevd Tainted: G        W    3.10.0-rc7+ #55
[  464.029257] Hardware name: Gigabyte Technology Co., Ltd. GA-A75M-UD2H/GA-A75M-UD2H, BIOS F4 09/16/2011
[  464.029259]  0000000000013670 ffff880218ffb918 ffffffff8144d417 ffff880218ffb950
[  464.029262]  ffffffff8102fce2 0000000000000000 ffff88022600aa00 ffff880207dc38e0
[  464.029265]  ffff88022ec12600 000000000000ed28 ffff880218ffb960 ffffffff8102fd99
[  464.029268] Call Trace:
[  464.029272]  [<ffffffff8144d417>] dump_stack+0x19/0x1b
[  464.029275]  [<ffffffff8102fce2>] warn_slowpath_common+0x60/0x78
[  464.029277]  [<ffffffff8102fd99>] warn_slowpath_null+0x15/0x17
[  464.029280]  [<ffffffff81048814>] __queue_work+0x1c7/0x2a4
[  464.029282]  [<ffffffff81048f98>] __queue_delayed_work+0xb4/0x10d
[  464.029284]  [<ffffffff81049038>] queue_delayed_work_on+0x47/0x68
[  464.029291]  [<ffffffffa0086bae>] drm_helper_probe_single_connector_modes+0x12c/0x334 [drm_kms_helper]
[  464.029295]  [<ffffffffa0084300>] drm_fb_helper_probe_connector_modes+0x41/0x54 [drm_kms_helper]
[  464.029300]  [<ffffffffa0085b54>] drm_fb_helper_initial_config+0x1ab/0x432 [drm_kms_helper]
[  464.029303]  [<ffffffff81329eca>] ? usb_submit_urb+0x2ac/0x2c8
[  464.029309]  [<ffffffffa0451b53>] ? udl_submit_urb+0x31/0x6a [udl]
[  464.029313]  [<ffffffffa0451172>] ? udl_crtc_dpms+0x92/0xfe [udl]
[  464.029317]  [<ffffffffa04511ec>] ? udl_crtc_disable+0xe/0x10 [udl]
[  464.029323]  [<ffffffffa0452b1a>] udl_fbdev_init+0x8a/0x9c [udl]
[  464.029327]  [<ffffffffa0451f65>] udl_driver_load+0x3d9/0x426 [udl]
[  464.029330]  [<ffffffffa03a11b0>] drm_get_usb_dev+0x193/0x1d8 [drm_usb]
[  464.029333]  [<ffffffffa045104c>] udl_usb_probe+0x10/0x14 [udl]
[  464.029337]  [<ffffffff8132d665>] usb_probe_interface+0x138/0x1d6
[  464.029341]  [<ffffffff812e0eb6>] driver_probe_device+0x98/0x1b3
[  464.029343]  [<ffffffff812e1065>] __driver_attach+0x5c/0x7e
[  464.029346]  [<ffffffff812e1009>] ? __device_attach+0x38/0x38
[  464.029348]  [<ffffffff812df5b2>] bus_for_each_dev+0x78/0x82
[  464.029351]  [<ffffffff812e0a50>] driver_attach+0x19/0x1b
[  464.029353]  [<ffffffff812e068f>] bus_add_driver+0x100/0x208
[  464.029356]  [<ffffffff812e1516>] driver_register+0x87/0xf8
[  464.029358]  [<ffffffff8132c68e>] usb_register_driver+0xa2/0x14c
[  464.029360]  [<ffffffffa03a1260>] drm_usb_init+0x6b/0x70 [drm_usb]
[  464.029363]  [<ffffffffa0473000>] ? 0xffffffffa0472fff
[  464.029367]  [<ffffffffa0473017>] udl_init+0x17/0x19 [udl]
[  464.029372]  [<ffffffff81000263>] do_one_initcall+0x7b/0x110
[  464.029375]  [<ffffffff810882f7>] load_module+0x1636/0x1c92
[  464.029377]  [<ffffffff810847f8>] ? sys_getegid16+0x50/0x50
[  464.029380]  [<ffffffff81112720>] ? vfs_read+0xf6/0x142
[  464.029383]  [<ffffffff81085cf7>] ? copy_module_from_fd+0xcb/0xe3
[  464.029386]  [<ffffffff81088a54>] SyS_finit_module+0x52/0x68
[  464.029389]  [<ffffffff8145a352>] system_call_fastpath+0x16/0x1b
[  464.029390] ---[ end trace b0eaf59f8206fd95 ]---
[  464.236570] udl 5-5:1.0: fb1: udldrmfb frame buffer device
[  464.236576] [drm] Initialized udl 0.0.1 20120220 on minor 1
[  464.236881] usbcore: registered new interface driver udl
[  512.708689] usb 2-4: new low-speed USB device number 2 using ohci_hcd
[  512.868706] input: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM) as /devices/pci0000:00/0000:00:13.0/usb2/2-4/2-4:1.0/input/input12
[  512.870629] hid-generic 0003:045E:0047.0001: input: USB HID v1.10 Mouse [Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)] on usb-0000:00:13.0-4/input0
[  518.599101] fuse init (API version 7.22)
[  518.614352] SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts
[  518.720002] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[  558.828624] [drm] write mode info 153
[  564.401041] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts

[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: workqueue warnings in helper code
  2013-06-28  3:21 workqueue warnings in helper code Dave Airlie
@ 2013-06-28  5:26 ` Dave Airlie
  2013-06-28  9:15   ` Daniel Vetter
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Airlie @ 2013-06-28  5:26 UTC (permalink / raw)
  To: Daniel Vetter, dri-devel

>
> this showed up in drm-next on my radeon and udl drivers, I haven't
> bisected it yet, it may not even be your fault :-)
>
>  if (WARN_ON(!list_empty(&work->entry))) {
>
> is the line in the workqueue code.

As expected, reverting "drm: kms_helper: don't lose hotplug event"

stops the warnings here.

Dave.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: workqueue warnings in helper code
  2013-06-28  5:26 ` Dave Airlie
@ 2013-06-28  9:15   ` Daniel Vetter
  2013-06-28 10:41     ` Dave Airlie
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2013-06-28  9:15 UTC (permalink / raw)
  To: Dave Airlie; +Cc: dri-devel

On Fri, Jun 28, 2013 at 7:26 AM, Dave Airlie <airlied@gmail.com> wrote:
>>
>> this showed up in drm-next on my radeon and udl drivers, I haven't
>> bisected it yet, it may not even be your fault :-)
>>
>>  if (WARN_ON(!list_empty(&work->entry))) {
>>
>> is the line in the workqueue code.
>
> As expected, reverting "drm: kms_helper: don't lose hotplug event"
>
> stops the warnings here.

I've looked a bit into this and I think we need to have a separate
work struct for recovering these lost hotplug events since the
continuous self-rearming case is a real risk (e.g. if a connector
flip-flops all the time). At least I don't see a sane way to block out
re-arming with the current code in a simple way. So reverting the
offender seems like the right thing and I'll go back to the drawing
board for 3.12.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: workqueue warnings in helper code
  2013-06-28  9:15   ` Daniel Vetter
@ 2013-06-28 10:41     ` Dave Airlie
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Airlie @ 2013-06-28 10:41 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: dri-devel

On Fri, Jun 28, 2013 at 7:15 PM, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> On Fri, Jun 28, 2013 at 7:26 AM, Dave Airlie <airlied@gmail.com> wrote:
>>>
>>> this showed up in drm-next on my radeon and udl drivers, I haven't
>>> bisected it yet, it may not even be your fault :-)
>>>
>>>  if (WARN_ON(!list_empty(&work->entry))) {
>>>
>>> is the line in the workqueue code.
>>
>> As expected, reverting "drm: kms_helper: don't lose hotplug event"
>>
>> stops the warnings here.
>
> I've looked a bit into this and I think we need to have a separate
> work struct for recovering these lost hotplug events since the
> continuous self-rearming case is a real risk (e.g. if a connector
> flip-flops all the time). At least I don't see a sane way to block out
> re-arming with the current code in a simple way. So reverting the
> offender seems like the right thing and I'll go back to the drawing
> board for 3.12.

Okay done, thanks for investigating.

Dave.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-28 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28  3:21 workqueue warnings in helper code Dave Airlie
2013-06-28  5:26 ` Dave Airlie
2013-06-28  9:15   ` Daniel Vetter
2013-06-28 10:41     ` Dave Airlie

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.