Skip to contentSkip to conversation

BUG: workqueue lockup

DISCUSSION Andreas Schwab 3 participants 4 messages Mar 20, 2016 – Mar 21, 2016

lore
Share & tools
lore
#0 lore raw

I'm getting this hangup with 4.5 in aranym:

[    2.060000] scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 0x0, irq 15, can_queue 8, cmd_per_lun 1, sg_tablesize 0, this_id 7, flags { }, options { REAL_DMA SUPPORT_TAGS } 
[    2.110000] blk_queue_max_segments: set to minimum 1
[   55.130000] random: nonblocking pool is initialized
[   60.240000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 58s!
[   60.270000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=-20 stuck for 52s!
[   60.300000] Showing busy workqueues and worker pools:
[   60.310000] workqueue events: flags=0x0
[   60.340000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.340000]     pending: cache_reap, do_cache_clean
[   60.380000] workqueue events_power_efficient: flags=0x80
[   60.410000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.410000]     pending: fb_flashcursor, neigh_periodic_work
[   60.450000] workqueue kblockd: flags=0x18
[   60.470000]   pwq 1: cpus=0 node=0 flags=0x0 nice=-20 active=1/256
[   60.470000]     pending: blk_mq_timeout_work
[   60.500000] workqueue ncr5380_0: flags=0xa
[   60.530000]   pwq 2: cpus=0 node=0 flags=0x4 nice=0 active=1/1
[   60.530000]     in-flight: 6:NCR5380_main
[   60.560000] pool 2: cpus=0 node=0 flags=0x4 nice=0 hung=58s workers=2 idle: 57

I assume that this has something to do with the ncr5380 updates.

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#1 lore raw

Hi Andreas,

that's correct - the driver loops forever, retrying unsuccessful selection attempts.

Finn had submitted a patch to ARAnyM to rectify that. I have prepared another patch to the kernel (using presence of the natfeatures driver to detect we're running on ARAnyM, then skipping all platform device setup) but haven't submitted that yet.

Cheers,

Michael

Quoted 34 lines · Andreas Schwab

I'm getting this hangup with 4.5 in aranym:

[    2.060000] scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 0x0, irq 15, can_queue 8, cmd_per_lun 1, sg_tablesize 0, this_id 7, flags { }, options { REAL_DMA SUPPORT_TAGS }
[    2.110000] blk_queue_max_segments: set to minimum 1
[   55.130000] random: nonblocking pool is initialized
[   60.240000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 58s!
[   60.270000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=-20 stuck for 52s!
[   60.300000] Showing busy workqueues and worker pools:
[   60.310000] workqueue events: flags=0x0
[   60.340000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.340000]     pending: cache_reap, do_cache_clean
[   60.380000] workqueue events_power_efficient: flags=0x80
[   60.410000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.410000]     pending: fb_flashcursor, neigh_periodic_work
[   60.450000] workqueue kblockd: flags=0x18
[   60.470000]   pwq 1: cpus=0 node=0 flags=0x0 nice=-20 active=1/256
[   60.470000]     pending: blk_mq_timeout_work
[   60.500000] workqueue ncr5380_0: flags=0xa
[   60.530000]   pwq 2: cpus=0 node=0 flags=0x4 nice=0 active=1/1
[   60.530000]     in-flight: 6:NCR5380_main
[   60.560000] pool 2: cpus=0 node=0 flags=0x4 nice=0 hung=58s workers=2 idle: 57

I assume that this has something to do with the ncr5380 updates.

Andreas.

--
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Andreas Schwab
Quoted 1 line · Andreas Schwab

I'm getting this hangup with 4.5 in aranym:

Are you using this aranym patch?

https://sourceforge.net/p/aranym/bugs/40/

Quoted 21 lines
[    2.060000] scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 0x0, irq 15, can_queue 8, cmd_per_lun 1, sg_tablesize 0, this_id 7, flags { }, options { REAL_DMA SUPPORT_TAGS } 
[    2.110000] blk_queue_max_segments: set to minimum 1
[   55.130000] random: nonblocking pool is initialized
[   60.240000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 58s!
[   60.270000] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=-20 stuck for 52s!
[   60.300000] Showing busy workqueues and worker pools:
[   60.310000] workqueue events: flags=0x0
[   60.340000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.340000]     pending: cache_reap, do_cache_clean
[   60.380000] workqueue events_power_efficient: flags=0x80
[   60.410000]   pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256
[   60.410000]     pending: fb_flashcursor, neigh_periodic_work
[   60.450000] workqueue kblockd: flags=0x18
[   60.470000]   pwq 1: cpus=0 node=0 flags=0x0 nice=-20 active=1/256
[   60.470000]     pending: blk_mq_timeout_work
[   60.500000] workqueue ncr5380_0: flags=0xa
[   60.530000]   pwq 2: cpus=0 node=0 flags=0x4 nice=0 active=1/1
[   60.530000]     in-flight: 6:NCR5380_main
[   60.560000] pool 2: cpus=0 node=0 flags=0x4 nice=0 hung=58s workers=2 idle: 57
Quoted 1 line

I assume that this has something to do with the ncr5380 updates.

It also has to do with the assumption that aranym is the same as an atari.

Aranym doesn't actually implement a 5380 device. Instead it attempts to fool the operating system that runs on it. Presumably this is done to avoid having to modify existing operating systems.

Does Geert's "initcall_blacklist=atari_scsi_driver_init" workaround help?

Quoted 4 lines

Andreas.

#3 lore raw
Quoted 7 lines · Finn Thain
Quoted 1 line · Andreas Schwab

I'm getting this hangup with 4.5 in aranym:

Are you using this aranym patch?

https://sourceforge.net/p/aranym/bugs/40/

Thanks, I have committed it now. In future, please send patches to the aranym mailinglist.

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."