Subject: kern/25145: ATAPI CD drives on SiS735/745 Chips are not unsable
To: None <gnats-bugs@gnats.NetBSD.org>
From: Simon Hitzemann <simon@hitzemann.org>
List: netbsd-bugs
Date: 04/12/2004 00:39:27
>Number:         25145
>Category:       kern
>Synopsis:       ATAPI CD drives on SiS735/745 Chips are not usable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 11 22:40:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Simon Hitzemann
>Release:        NetBSD 2.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD minas-morgul.hitzemann.org 2.0_BETA NetBSD 2.0_BETA (MINAS-MORGUL) #0: Mon Apr 12 00:24:31 CEST 2004 root@minas-morgul.hitzemann.org:/usr/src/sys/arch/i386/compile/MINAS-MORGUL i386
Architecture: i386
Machine: i386
>Description:
	
	While booting I get the following error messages:

	siside0:1:0: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-M1502, 3100006002, X002> cdrom removable
	siside0:1:0: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	siside0:1:0: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	cd0: 32-bit data port
	siside0:1:0: lost interrupt
		type: ata tc_bcount: 0 tc_skip: 0
	cd0: drive supports PIO mode 4siside0:1:0: lost interrupt
		type: ata tc_bcount: 0 tc_skip: 0
	, DMA mode 2siside0:1:0: lost interrupt
		type: ata tc_bcount: 0 tc_skip: 0
	, Ultra-DMA mode 2 (Ultra/33)
	siside0:1:1: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	cd1 at atapibus0 drive 1: <HL-DT-ST GCE-8320B, , 1.04> cdrom removable
	siside0:1:1: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	siside0:1:1: lost interrupt
		type: ata tc_bcount: 512 tc_skip: 0
	cd1: 32-bit data port
	siside0:1:1: lost interrupt
		type: ata tc_bcount: 0 tc_skip: 0
	cd1: drive supports PIO mode 4siside0:1:1: lost interrupt
		type: ata tc_bcount: 0 tc_skip: 0
	, DMA mode 2
	cd0(siside0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
	cd1(siside0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)

	These errormessages slow dow nthe bootprocess by several seconds. Any further
	access to the CD drives lets the corresponding process freeze in the D state.
	I also noticed this behaviour with the 2.0-current tree, it did not appear with 1.6ZK

>How-To-Repeat:
	
	Get a mainboard with Sis735/735 Chipset (No idea if the problem exists
	for other chipsets), compile a 2.0_BETA or -current kernel, connect ATAPI
	CD drives to it and boot.
>Fix:
	
	None so far, I took a look at siside.c, cd.c and wdc.c. I tried to use an
	old version of wdc.c and cd.c, but the errors still appeared.
>Release-Note:
>Audit-Trail:
>Unformatted: