From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262356AbTESG0t (ORCPT ); Mon, 19 May 2003 02:26:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262357AbTESG0t (ORCPT ); Mon, 19 May 2003 02:26:49 -0400 Received: from [193.98.9.7] ([193.98.9.7]:51675 "EHLO mail.provi.de") by vger.kernel.org with ESMTP id S262356AbTESG0s (ORCPT ); Mon, 19 May 2003 02:26:48 -0400 Subject: Re: 2.4.21-rc: lost interrupt wgen usinf atapi cdrom-drive From: Michael Reincke To: Andrey Borzenkov Cc: linux-kernel@vger.kernel.org In-Reply-To: <1052811475.1618.7.camel@pcew80.atlas.de> References: <1052810966.1602.4.camel@pcew80.atlas.de> <1052811475.1618.7.camel@pcew80.atlas.de> Content-Type: text/plain; charset=ISO-8859-15 Organization: STN ATLAS Elektronik GmbH Message-Id: <1053326382.8024.2.camel@pcew80.atlas.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 19 May 2003 08:39:43 +0200 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2003-05-13 at 09:37, Michael Reincke wrote: > On Tue, 2003-05-13 at 09:29, Michael Reincke wrote: > > On Tue, 2003-05-13 at 08:21, Andrey Borzenkov wrote: > > > > i upgraded the linux kernel of my computer from 2.4.21-pre4 to > > > > 2.4.21-rc2 and got the following messages in syslog when using my > > > > atapi-cdrom drive: > > > > May 12 09:42:52 pcew80 kernel: hdc: DMA interrupt recovery > > > > May 12 09:42:52 pcew80 kernel: hdc: lost interrupt > > > > May 12 09:42:52 pcew80 kernel: hdc: status timeout: status=0xd0 { Busy } > > > > May 12 09:42:52 pcew80 kernel: hdc: status timeout: error=0x00 > > > > May 12 09:42:52 pcew80 kernel: hdc: DMA disabled > > > > May 12 09:42:52 pcew80 kernel: hdc: drive not ready for command > > > > May 12 09:42:52 pcew80 kernel: hdc: ATAPI reset complete > > > > > > > > > It smells like ide_do_request forgets to enable interrupts when > > > request queue is empty. > > > > > > drivers/ide/ide-io.c: > > > > > > void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq) > > > hwgroup->busy = 0; > > > > > > Ironically it does not release ide_intr_lock in this case but we > > > are not on m68k so we do not care :) > > > > > > Could you please try to add local_irq_enable() before ide_release_lock() above and see if it helps? > > > It has been reported to have fixed fix problems for other people. OTOH > > > I did have sevral hard lockups with this so there may be more subtle > > > problems issues. > > The hangs and timeouts and total blocking of the cdrom drive seems to be > > away, but the lost interrupt messages are still there. > > But have in mind I've only a quick test so far. > > Bad news the hangs and timeout are still there! The problem is vanishing when disabling IO-APIC support on uniprocessors -- Michael Reincke, NUT Team 2 (Software Build Management) STN ATLAS Elektronik GmbH, Bremen (Germany) E-mail : reincke.m@stn-atlas.de | mail: Sebaldsbrücker Heerstr 235 phone : +49-421-457-2302 | 28305 Bremen fax : +49-421-457-3913 |