From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261572AbTDUQRr (ORCPT ); Mon, 21 Apr 2003 12:17:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261595AbTDUQRr (ORCPT ); Mon, 21 Apr 2003 12:17:47 -0400 Received: from mta06-svc.ntlworld.com ([62.253.162.46]:63656 "EHLO mta06-svc.ntlworld.com") by vger.kernel.org with ESMTP id S261572AbTDUQRk (ORCPT ); Mon, 21 Apr 2003 12:17:40 -0400 From: rankincj@yahoo.com Message-Id: <200304211629.h3LGTd88003746@twopit.underworld> Subject: IDE/DMA timeout with Linux-2.4.20-SMP To: linux-kernel@vger.kernel.org Date: Mon, 21 Apr 2003 17:29:39 +0100 (BST) Cc: axboe@suse.de X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have just tried burning a data CD using Linux 2.4.20-SMP (1 GB, devfs, dual 933 Coppermine PIII) plus the following patch: --- linux-2.4.20/drivers/block/ll_rw_blk.c.orig Mon Apr 14 22:03:14 2003 +++ linux-2.4.20/drivers/block/ll_rw_blk.c Mon Apr 14 22:06:54 2003 @@ -1376,11 +1376,12 @@ void end_that_request_last(struct request *req) { - if (req->waiting != NULL) - complete(req->waiting); - req_finished_io(req); + struct completion *waiting = req->waiting; + req_finished_io(req); blkdev_release_request(req); + if (waiting) + complete(waiting); } int __init blk_dev_init(void) I grabbed that patch off the list last week; it looked like a good idea for an SMP system. Anyway, a dummy write worked fine and so I tried burning for real: # time cdrecord dev=0,0,0 -data /tmp/backup.iso Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling scsidev: '0,0,0' scsibus: 0 target: 0 lun: 0 Linux sg driver version: 3.1.24 Using libscg version 'schily-0.7' Device type : Removable CD-ROM Version : 0 Response Format: 1 Vendor_info : 'SONY ' Identifikation : 'CD-RW CRX145E ' Revision : '1.0b' Device seems to be: Generic mmc CD-RW. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : MMC-2 SWABAUDIO Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R Starting to write CD/DVD at speed 4 in real TAO mode for single session. Last chance to quit, starting real write 0 seconds. Operation starts. Track 01: Total bytes read/written: 674201600/674201600 (329200 sectors). real 19m48.522s user 0m0.370s sys 0m9.270s Unfortunately, the process hung briefly after writing the "Track 01" message, and then wrote the following message into the log file: Apr 21 16:39:48 twopit kernel: scsi : aborting command due to timeout : pid 64715, scsi0, channel 0, id 0, lun 0 Request Sense 00 00 00 40 00 Apr 21 16:40:18 twopit kernel: scsi : aborting command due to timeout : pid 64715, scsi0, channel 0, id 0, lun 0 Request Sense 00 00 00 40 00 Apr 21 16:40:18 twopit kernel: SCSI host 0 abort (pid 64715) timed out - resetting Apr 21 16:40:18 twopit kernel: SCSI bus is being reset for host 0 channel 0. Apr 21 16:40:19 twopit kernel: hdd: irq timeout: status=0xd0 { Busy } Apr 21 16:40:19 twopit kernel: hdd: DMA disabled Apr 21 16:40:22 twopit kernel: scsi : aborting command due to timeout : pid 64715, scsi0, channel 0, id 0, lun 0 Request Sense 00 00 00 40 00 Apr 21 16:40:22 twopit kernel: SCSI host 0 abort (pid 64715) timed out - resetting Apr 21 16:40:22 twopit kernel: SCSI bus is being reset for host 0 channel 0. Apr 21 16:40:22 twopit kernel: hdd: ATAPI reset complete Apr 21 16:40:22 twopit kernel: hdd: irq timeout: status=0x80 { Busy } Apr 21 16:40:22 twopit kernel: hdd: ATAPI reset complete Apr 21 16:40:22 twopit kernel: hdd: irq timeout: status=0x80 { Busy } Apr 21 16:40:22 twopit kernel: hdd: status error: status=0x08 { DataRequest } Apr 21 16:40:22 twopit kernel: hdd: drive not ready for command Apr 21 16:40:22 twopit kernel: hdd: status timeout: status=0x80 { Busy } Apr 21 16:40:22 twopit kernel: hdd: drive not ready for command Apr 21 16:40:22 twopit kernel: hdd: ATAPI reset complete Apr 21 16:40:22 twopit kernel: sr0: CDROM (ioctl) error, command: Read TOC 00 00 00 00 00 00 00 0c 00 Apr 21 16:40:22 twopit kernel: Current sr00:00: sense key None Now the machine recovered and the data CD *seems* to have been written OK, but I am obviously concerned about the "hiccup" in the IDE subsystem. (I was using the ide-scsi module to do all this.) The machine was not doing anything besides burning my CD-RW at the time. This is a full description of the PCI bus: 00:00.0 Host bridge: Intel Corp. 82840 840 (Carmel) Chipset Host Bridge (Hub A) (rev 01) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Reset- FastB2B- 00:02.0 PCI bridge: Intel Corp. 82840 840 (Carmel) Chipset PCI Bridge (Hub B) (rev 01) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Reset- FastB2B- 00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Reset- FastB2B- 00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Bridge: PM- B3+ Capabilities: [90] #06 [0000] 01:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46) (prog-if 10 [OHCI]) Subsystem: VIA Technologies, Inc. IEEE 1394 Host Controller Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- 04:00.0 PIC: Intel Corp. 82806AA PCI64 Hub Advanced Programmable Interrupt Controller (rev 01) (prog-if 20 [IO(X)-APIC]) Subsystem: Intel Corp. 82806AA PCI64 Hub APIC Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR-