From patchwork Sun Jun 21 13:33:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 28954 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4204AB71CC for ; Sun, 21 Jun 2009 23:35:39 +1000 (EST) Received: by ozlabs.org (Postfix) id 2CD63DDD1B; Sun, 21 Jun 2009 23:35:39 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id A6F2CDDD01 for ; Sun, 21 Jun 2009 23:35:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbZFUNfb (ORCPT ); Sun, 21 Jun 2009 09:35:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751266AbZFUNfb (ORCPT ); Sun, 21 Jun 2009 09:35:31 -0400 Received: from mail-bw0-f213.google.com ([209.85.218.213]:37564 "EHLO mail-bw0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbZFUNfa (ORCPT ); Sun, 21 Jun 2009 09:35:30 -0400 Received: by bwz9 with SMTP id 9so2606203bwz.37 for ; Sun, 21 Jun 2009 06:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version :content-disposition:message-id:content-type :content-transfer-encoding; bh=/NcXntYGpKWbmydDtFt4TMMK5Zm/7O2CRtyrJFbqJ1M=; b=oKqPzF5kGil6d23+LdVYUL78DO/9OBBkI5+cGKErhLOhP6YiLy3dcHa15b08e45onH 0Q0KbMiu0RpXESlfUeBG1qyOaygz6zOn7idUsJw33pj2WqcxLcNGLyxGBi6tsYtm+sv9 uK5IvkRebUZZ8KbIT8Anlow9FipP273KGxkM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-disposition:message-id:content-type :content-transfer-encoding; b=Ya2v8AtOBbIvQhXRrV3K7gBsoqur+0JbGsvZBAwOM/Q9/0jxlvVOZOkTbP/BOlPLl+ iORp1PAaKx/Z1V01hbhCkVrSPL8UOgn2iaWLPmfQYrsoyoeQEI9pqfYA70OznDKH8ghC zZpgN2dwj/npwF5da1afO8M+b2nX0+D5x+oMY= Received: by 10.223.106.148 with SMTP id x20mr4511724fao.68.1245590877263; Sun, 21 Jun 2009 06:27:57 -0700 (PDT) Received: from localhost.localdomain (chello089077051219.chello.pl [89.77.51.219]) by mx.google.com with ESMTPS id p9sm10217894fkb.37.2009.06.21.06.27.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Jun 2009 06:27:56 -0700 (PDT) From: Bartlomiej Zolnierkiewicz To: Frans Pop Subject: Re: cmd64x: irq 14: nobody cared - system is dreadfully slow Date: Sun, 21 Jun 2009 15:33:41 +0200 User-Agent: KMail/1.11.3 (Linux/2.6.30-next-20090619-10934-gace1e80-dirty; KDE/4.2.3; i686; ; ) Cc: David Miller , sparclinux@vger.kernel.org, linux-ide@vger.kernel.org References: <200906202352.33894.elendil@planet.nl> <20090620.171945.140676687.davem@davemloft.net> <200906211446.38598.elendil@planet.nl> In-Reply-To: <200906211446.38598.elendil@planet.nl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200906211533.41452.bzolnier@gmail.com> Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org On Sunday 21 June 2009 14:46:37 Frans Pop wrote: > On Sunday 21 June 2009, David Miller wrote: > > From: Frans Pop > > Date: Sat, 20 Jun 2009 23:52:33 +0200 > > > > > ide0 at 0x1fe02c00000-0x1fe02c00007,0x1fe02c0000a on irq 14 > > > (serialized) irq 14: nobody cared (try booting with the "irqpoll" > > > option) Call Trace: > [...] > > diff --git a/drivers/ide/cmd64x.c b/drivers/ide/cmd64x.c > > index 80b777e..f98ba24 100644 > > --- a/drivers/ide/cmd64x.c > > +++ b/drivers/ide/cmd64x.c > > @@ -425,8 +425,7 @@ static const struct ide_port_info cmd64x_chipsets[] > > __devinitdata = { .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, > > .port_ops = &cmd64x_port_ops, > > .dma_ops = &cmd648_dma_ops, > > - .host_flags = IDE_HFLAG_SERIALIZE | > > - IDE_HFLAG_ABUSE_PREFETCH, > > + .host_flags = IDE_HFLAG_ABUSE_PREFETCH, > > .pio_mask = ATA_PIO5, > > .mwdma_mask = ATA_MWDMA2, > > .udma_mask = ATA_UDMA2, > > This patch (tested on top of 2.6.30) gets rid of one of the two "nobody cared" > errors and also makes the system run at normal speed again. But I'm still > left with one error: > > cmd64x 0000:01:03.0: IDE controller (0x1095:0x0646 rev 0x03) > cmd64x 0000:01:03.0: 100% native mode on irq 14 > ide0: BM-DMA at 0x1fe02c00020-0x1fe02c00027 > ide1: BM-DMA at 0x1fe02c00028-0x1fe02c0002f > hda: ST34342A, ATA DISK drive > hda: MWDMA2 mode selected > hdc: Maxtor 6E040L0, ATA DISK drive > hdd: CD-ROM 56X/AKH, ATAPI CD/DVD-ROM drive > hdc: MWDMA2 mode selected > hdd: bad DMA info in identify block > ide0 at 0x1fe02c00000-0x1fe02c00007,0x1fe02c0000a on irq 14 > irq 14: nobody cared (try booting with the "irqpoll" option) > Call Trace: > [000000000048b594] note_interrupt+0x160/0x1e8 > [000000000048bcc4] handle_fasteoi_irq+0x9c/0xc8 > [0000000000429e60] handler_irq+0xb0/0xe8 > [00000000004208b4] tl0_irq5+0x14/0x20 > [0000000000455e80] __do_softirq+0x58/0x17c > [0000000000429d84] do_softirq+0x50/0x7c > [0000000000455bb0] irq_exit+0x38/0x88 > [000000000042e710] timer_interrupt+0x70/0x88 > [00000000004209d4] tl0_irq14+0x14/0x20 > [000000000048ae04] request_threaded_irq+0x64/0x12c > [00000000005ff3c4] ide_host_register+0x4e4/0x6a8 > [00000000006044bc] ide_pci_init_one+0xc8/0xf8 > [000000001001271c] cmd64x_init_one+0x88/0x9c [cmd64x] > [0000000000588cb4] local_pci_probe+0x10/0x24 > [0000000000588e38] pci_device_probe+0x4c/0x84 > [00000000005ee2c8] driver_probe_device+0xa0/0x164 > handlers: > [<00000000005fb72c>] (ide_intr+0x8/0x234) > Disabling IRQ #14 > ide1 at 0x1fe02c00010-0x1fe02c00017,0x1fe02c0001a on irq 14 I wonder if the weird hdd device could be a problem here (does it use DMA under pata_cmd64x, also please send 'hdparm --Istdout /dev/hdd' output).. Could you check if it helps if we skip ide1 for debug purposes: --- drivers/ide/ide-probe.c | 3 +++ 1 file changed, 3 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: b/drivers/ide/ide-probe.c =================================================================== --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -1359,6 +1359,9 @@ int ide_host_register(struct ide_host *h ide_hwif_t *hwif, *mate = NULL; int i, j = 0; + /* setup only port 0 */ + host->ports[1] = NULL; + ide_host_for_each_port(i, hwif, host) { if (hwif == NULL) { mate = NULL;