From: Marc Singer <elf@buici.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: VIA SATA not recognizing drives
Date: Tue, 11 May 2004 09:12:37 -0700 [thread overview]
Message-ID: <20040511161237.GB25243@buici.com> (raw)
In-Reply-To: <40A078A3.50102@pobox.com>
On Tue, May 11, 2004 at 02:54:27AM -0400, Jeff Garzik wrote:
> >I have another question, though. I've patched the ide driver to
> >permit an IDE interface to operate without an IRQ. It needs a little
> >bit of tweaking before it will be accepted by that IDE maintainer.
> >Are you planning to subsume all of the IDE functionality into libata
> >that is handled by the other IDE driver? If so, have you considered
> >adding polling mode?
>
>
> PIO code in libata operates exclusively in polling mode.
>
> I'm not too confident of polling DMA being a good idea.
In my case, there is no DMA. The hardware I have on hand is
admittedly degenerate. The only issue is that the existing IDE code
cannot work without interrupts. While I made patches to the ide
driver to make this work, I'd rather hitch my pony to something less
hack-ish.
In a cursory overview of libata, here's what stands out in my
special-needs case.
1) PIO stands for port-IO which I interpret as register-level IO
which, I assume, contrasts with task-file or mailbox type IO.
2) Libata does have an MMIO mode, nice. My platform is ARM. While
these calls will work, I have a further requirement that all
register IO must be followed by the hokey-pokey to work around
some oddities in the hardware. Yes, I've suggested that they fix
the problem in hardware. So, how can be make this configurable?
For me, it is OK that all IDE io would require the hack. In
other words, even if there were another IDE controller that
worked properly it would be OK for both to need the hack.
3) If a device has no DMA, how do you plan to handle the data
transfer? Is this what ata_pio_sector() is doing?
4) Is ata_piix.c the model?
It doesn't really look that tough. The only thing I'm unclear about
is how to handle read/write with the requisite hokey-pokey.
next prev parent reply other threads:[~2004-05-11 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-08 19:31 VIA SATA not recognizing drives Marc Singer
2004-05-08 21:29 ` Jeff Garzik
2004-05-09 7:39 ` Marc Singer
2004-05-11 6:54 ` Jeff Garzik
2004-05-11 16:12 ` Marc Singer [this message]
2004-05-20 2:14 ` Jeff Garzik
2004-05-20 2:21 ` Marc Singer
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=20040511161237.GB25243@buici.com \
--to=elf@buici.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.