Bug 132022 - kscd causes scsi-bus resets when trying to access a SCSI-CDROM drive with linux-kernel >=2.6.14
Summary: kscd causes scsi-bus resets when trying to access a SCSI-CDROM drive with lin...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kscd
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-07 21:02 UTC by Lars Wendler (Polynomial-C)
Modified: 2024-09-23 18:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) 2006-08-07 21:02:51 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.6 
OS:                Linux

Hi,

since linux-2.6.14 (and later) I cannot use kscd anymore without getting my SCSI-bus resetted several times. This only occurs on startup of kscd. After the resets have finished I can normally playback audio-CDs. While the bus is resetting I get the following errormessages in syslog:

Aug  7 12:25:43 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:25:43 gamemaster kernel: scsi0: Issued Channel A Bus Reset. 1 SCBs aborted
Aug  7 12:25:55 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:25:55 gamemaster kernel: (scsi0:A:3:0): Protocol violation in Message-in phase.  Attempting to abort.
Aug  7 12:25:56 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:25:56 gamemaster kernel: scsi0: Issued Channel A Bus Reset. 1 SCBs aborted
Aug  7 12:26:16 gamemaster kernel: cdrom: dropping to single frame dma
Aug  7 12:26:31 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:26:31 gamemaster kernel: scsi0: Issued Channel A Bus Reset. 1 SCBs aborted
Aug  7 12:26:32 gamemaster kernel: sr0: CDROM not ready yet.
Aug  7 12:26:44 gamemaster last message repeated 6 times
Aug  7 12:26:46 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:26:46 gamemaster kernel: (scsi0:A:3:0): Protocol violation in Message-in phase. Attempting to abort.
Aug  7 12:26:46 gamemaster kernel: (scsi0:A:3:0): No or incomplete CDB sent to device.
Aug  7 12:26:46 gamemaster kernel: scsi0: Issued Channel A Bus Reset. 1 SCBs aborted
Aug  7 12:26:47 gamemaster kernel: sr0: CDROM not ready yet.
Aug  7 12:26:57 gamemaster last message repeated 5 times

(this is just a snippet. There are many more of these messages)

The same problem occured with k3b until it was fixed in version 0.12.16 (just refer to http://bugs.kde.org/show_bug.cgi?id=117693 the symptoms were the same).

Cheers
Poly-C
Comment 1 alauns 2006-12-22 21:44:38 UTC
I got a similar problem, but there was a complete freeze of the desktop, after inserting a audio-cd into a scsi-cdrom (Kubuntu 6.06). restart of x-server wasn't succsessful:

006-12-22 20:56:27	asta	kernel	[17181783.312000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.312000] sg_write: data in/out 56/56 bytes for SCSI command 0x12--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.316000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.316000] sg_write: data in/out 22/22 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.320000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.320000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.320000] sg_write: data in/out 12/12 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.320000] sg_write: data in/out 56/56 bytes for SCSI command 0x12--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.324000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.324000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.324000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.324000] sg_write: data in/out 22/22 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.328000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.328000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.328000] sg_write: data in/out 12/12 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.328000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.332000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.332000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:56:27	asta	kernel	[17181783.332000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:56:27	asta	kernel	[17181783.332000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.516000] printk: 22 messages suppressed.

2006-12-22 20:57:06	asta	kernel	[17181821.516000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.516000] sg_write: data in/out 56/56 bytes for SCSI command 0x12--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.520000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.520000] sg_write: data in/out 22/22 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.524000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.524000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.524000] sg_write: data in/out 12/12 bytes for SCSI command 0x1a--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.524000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.528000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.528000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.528000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.528000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;

2006-12-22 20:57:06	asta	kernel	[17181821.532000]    program kio_audiocd not setting count and/or reply_len properly

2006-12-22 20:57:06	asta	kernel	[17181821.532000] sg_write: data in/out 12/12 bytes for SCSI command 0x43--guessing data in;


the same problem occured with opensuse 10.2.
Comment 2 Theo Baumgartner 2007-06-07 22:34:07 UTC
I can confirm this too. kscd will hang for several seconds/minutes until a ton of bus resets where done. The SCSI Bus resets also affect the performance of other SCSI devices like discs on the same bus.

(scsi0:A:5:0): No or incomplete CDB sent to device.
(scsi0:A:5:0): Protocol violation in Message-in phase.  Attempting to abort.
(scsi0:A:5:0): No or incomplete CDB sent to device.
scsi0: Issued Channel A Bus Reset. 1 SCBs aborted
sr1: CDROM not ready yet.
last message repeated 5 times
(scsi0:A:5:0): No or incomplete CDB sent to device.
(scsi0:A:5:0): Protocol violation in Message-in phase.  Attempting to abort.
(scsi0:A:5:0): No or incomplete CDB sent to device.
scsi0: Issued Channel A Bus Reset. 2 SCBs aborted
sr1: CDROM not ready yet.
.... many many more

I've thought this problem is from cdparanoia as it also causes some problems because it uses very bad hacks for SCSI devices. So i've deinstalled cdparanoia completely to test what kscd would do. It was still hanging when i've tested it. So this is a serious problem affecting everyone using SCSI devices!
Comment 3 Andrew Crouthamel 2018-11-02 04:26:14 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-16 02:36:47 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 5 Lars Wendler (Polynomial-C) 2019-05-10 07:33:13 UTC
Hi Andrew,

I'm afraid I cannot help with this bug anymore as I do no longer possess any optical SCSI drives. So if you wanna close this bug, feel free to do so. I suppose SCSI devices do not really play a significant role in modern computers anyway.
Comment 6 Christoph Cullmann 2024-09-23 18:33:07 UTC
kscd is no longer maintained, please switch to an alternative application.