From: Jeff Garzik <jgarzik@pobox.com>
To: Simon Oosthoek <s.oosthoek@home.nl>
Cc: linux-kernel@vger.kernel.org,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: SATA status report updated
Date: Fri, 19 Aug 2005 20:02:48 -0400 [thread overview]
Message-ID: <43067328.3020200@pobox.com> (raw)
In-Reply-To: <430664C8.1090000@home.nl>
Simon Oosthoek wrote:
> I know Mandriva is on the ball and a bug with some information and an
> updated patch is on the kernel bugme...
>
> http://qa.mandriva.com/show_bug.cgi?id=17654
> http://bugme.osdl.org/show_bug.cgi?id=4192
>
> I'd say it's important to get some proper fix in a distribution soon (so
> I can use my new PC ;-)
That's not an updated patch. That's the patch that duplicates kernel
infrastructure, implementing things in the driver that should instead be
implemented in libata core.
That's how Windows drivers are written: work around the OS, rather than
fix it.
Here is a list of problems with the patch. I'll paste this into the bug
as well:
1) duplicates SATA phy reset
2) abuses infrastructure to support PATA, rather than doing it properly.
doing it properly involves an approach similar to that found in the
'promise-sata-pata' branch of libata-dev.git. Same problem as Promise
SATA+PATA, with the same solution.
3) duplicates ATA bus reset, except, does it poorly
4) duplicates ata_busy_sleep()
5) appears to do strange things with PATA devices, when one uses the
->scr_write() and ->scr_read() hooks -- hooks used to talk to SATA PHYs
(never PATA devices).
6) [maybe] sets DMA/PIO timings even for SATA devices. This -may- be
needed, depending on PATA<->SATA bridge presence in the host controller
7) Pads DMA to 32-bit boundary. Should be done in libata core, this is
needed for all host controllers.
8) The DMA pad code is very buggy. It uses the dma_map_single() to map
a buffer, but never synchronizes nor flushes the buffer. This can and
will lead to data corruption, particularly on x86-64 platform.
Regards,
Jeff
next parent reply other threads:[~2005-08-20 0:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4AA7B-4jm-5@gated-at.bofh.it>
[not found] ` <4DagM-7c8-43@gated-at.bofh.it>
[not found] ` <871x4ql24a.fsf@ABG3595C.abg.fsc.net>
[not found] ` <43062623.607@pobox.com>
[not found] ` <430664C8.1090000@home.nl>
2005-08-20 0:02 ` Jeff Garzik [this message]
2006-05-15 15:20 SATA status report updated Jeff Garzik
2006-05-15 17:07 ` Sven-Haegar Koch
2006-05-15 18:17 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2005-08-12 5:09 Jeff Garzik
2005-08-12 5:40 ` Rob van Nieuwkerk
2005-08-12 5:45 ` Jeff Garzik
2005-08-12 18:07 ` David Greaves
2005-08-12 10:44 ` Matthew Garrett
2005-08-12 21:30 ` Jeff Garzik
2005-08-13 8:45 ` Erik Slagter
2005-08-12 14:18 ` Luben Tuikov
2005-08-12 14:18 ` Luben Tuikov
2005-08-12 14:46 ` Luben Tuikov
2005-08-12 19:17 ` Mogens Valentin
2005-08-12 19:17 ` Mogens Valentin
[not found] ` <42FCF5D3.1080409@danbbs.dk>
2005-08-12 21:33 ` Jeff Garzik
2005-08-21 17:11 ` Mogens Valentin
2005-08-21 18:05 ` Jeff Garzik
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=43067328.3020200@pobox.com \
--to=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.oosthoek@home.nl \
/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;
as well as URLs for NNTP newsgroup(s).