Subject: port-i386/15331: 1.5.3_ALPHA: panic: wdc_atapi_intr: bad state
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@smaug.fh-regensburg.de>
List: netbsd-bugs
Date: 01/22/2002 13:39:18
>Number:         15331
>Category:       port-i386
>Synopsis:       1.5.3_ALPHA: panic: wdc_atapi_intr: bad state
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 04:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        NetBSD 1.5.3_ALPHA
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Environment:
	
System: NetBSD 1.5.3_ALPHA/i386 on a Toshiba Portege 4000


>Description:
	When accessing the CD-ROM drive, the machine panics:

	pccide0:1:0: bus-master DMA error: missing interrupt, status=0x21
	cd0: transfer error, downgrading to Ultra-DMA mode 1
	cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
	pciide0:1:0: lost interrupt
		type: atapi tc_bcount: 32 tc_skip: 0
	pciide0:1:0: bus-master DMA error: missing interrupt, status=0x21
	pciide0:1:0: bad state 0 in wdc_atapi_intr
	panic: wdc_atapi_intr: bad state
	
	Stopped at     cpu_Debugger+0x4:       leave
	db> t
	cpu_Debugger()
	panic()
	wdc_atapi_intr()
	wdctimeout()
	softclock()
	hardclock()
	clockintr()
	Xintr0()
	--- interrupt ---
	idle()
	bpendtsleep()
	sched_sync()
	db>


	The error happens with cdplay and an audio CD, when trying to mount
	a data CD
	

	>How-To-Repeat:
		Get a Toshiba Portege 4000
		pop in a CD
		boot NetBSD
		try to access the CD (mount, cdplay)
		see it 'splode

	>Fix:
		yes please
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: