mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Hedrick <andre@linuxdiskcert.org>
To: Francois Romieu <romieu@cogenit.fr>
Cc: Janne Liimatainen <jannel@iki.fi>, linux-kernel@vger.kernel.org
Subject: Re: HPT366 problems continued
Date: Sat, 27 Oct 2001 20:06:36 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.10.10110272003180.5826-100000@master.linux-ide.org> (raw)
In-Reply-To: <20011027234200.A2975@se1.cogenit.fr>

On Sat, 27 Oct 2001, Francois Romieu wrote:

> Janne Liimatainen <jannel@iki.fi> :
> [...]
> > Uniform Multi-Platform E-IDE driver Revision: 6.31
> > ide: Assuming 33MHz PCI bus speed for PIO modes; override with idebus=xx
> > HPT366: IDE controller on PCI bus 00 dev 70
> > HPT366: chipset revision 1
> > HPT366: not 100% native mode: will probe irqs later
> > HPT366: simplex device:  DMA disabled
> > ide0: HPT366 Bus-Master DMA disabled (BIOS)
> > HPT366: IDE controller on PCI bus 00 dev 71
> > HPT366: chipset revision 1
> > HPT366: not 100% native mode: will probe irqs later
> > HPT366: simplex device:  DMA disabled
> > ide1: HPT366 Bus-Master DMA disabled (BIOS)
> > hda: Maxtor 4D080H4, ATA DISK drive
> > hdc: Maxtor 4D080H4, ATA DISK drive
> 
> drivers/ide/ide-dma.c::ide_get_or_set_dma_base
> 741     if (hwif->mate && hwif->mate->dma_base) {
> 742             dma_base = hwif->mate->dma_base - (hwif->channel ? 0 : 8);
>         } else {
>                 dma_base = pci_resource_start(dev, 4);
>                 -> We take this branch first (or I've missed where
>                    mate->dma_base is set)
> [...]
> 	if ((inb(dma_base+2) & 0x80)) { /* simplex device? */
> 793	        if ((!hwif->drives[0].present && !hwif->drives[1].present) ||
>                 -> do_identify is called later, we pass this test
> 794		    (hwif->mate && hwif->mate->dma_base)) {
>                     -> + we can't succeed this one or it means we would have
>                     -> passed through the other branch (742). It would imply 
> 		    -> at least one mate accepts to enable DMA.
> 			printk("%s: simplex device:  DMA disabled\n", name);
> 			dma_base = 0;
> 
> I'd say either mate->dma_base is set too soon for both mate (and they're both
> guaranteed to generate dma_base = 0 as soon as they reach 794) or do_identify
> is called too late (and dma_base = 0 because of 793).
> I haven't found a lot of dma_base field setting and they seem to happen late.

Ueimor,

If the BIOS does not configure the PCI space or if it is not listed to be
setup in the ./arch/*/kernel/pci-quirks.... then the driver ignores the
HOST.  So in short you are wrong, and the driver is doing its job
correctly.  The real problem is happening long before I ever get to touch
the chipset.

Let me guess, you are using one of the soft-raid modes of that host.

Regards,

Andre Hedrick
Linux Disk Certification Project		Linux ATA Development


  reply	other threads:[~2001-10-28  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-26  6:31 Janne Liimatainen
2001-10-27 21:42 ` Francois Romieu
2001-10-28  3:06   ` Andre Hedrick [this message]
2001-10-28 18:35     ` Janne Liimatainen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.10110272003180.5826-100000@master.linux-ide.org \
    --to=andre@linuxdiskcert.org \
    --cc=jannel@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=romieu@cogenit.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®