From: Matthieu CASTET <castet.matthieu@free.fr>
To: linux-kernel@vger.kernel.org
Subject: Re: libata PATA patch update
Date: Mon, 08 May 2006 23:57:54 +0200 [thread overview]
Message-ID: <pan.2006.05.08.21.57.53.522263@free.fr> (raw)
In-Reply-To: <1147104400.3172.7.camel@localhost.localdomain>
Hi Alan,
Le Mon, 08 May 2006 17:06:40 +0100, Alan Cox a écrit :
> I've posted a new patch versus 2.6.17-rc3 up at the usual location.
>
> http://zeniv.linux.org.uk/~alan/IDE
>
Aren't there a bug in via cable detect ?
The via ide driver do
pci_read_config_dword(dev, VIA_UDMA_TIMING, &u);
for (i = 24; i >= 0; i -= 8)
if (((u >> i) & 0x10) ||
(((u >> i) & 0x20) &&
(((u >> i) & 7) < 6))) {
/* BIOS 80-wire bit or
* UDMA w/ < 60ns/cycle
*/
vdev->via_80w |= (1 << (1 - (i >> 4)));
}
80w = (vdev->via_80w >> hwif->channel) & 1;
upper bit are for channel 0 and lower bit for channel 1.
the pata driver do
pci_read_config_dword(pdev, 0x50, &ata66);
80w = ata66 & (0x1010 << (16 * ap->hard_port_no))
upper bit are for channel 1 and lower bit for channel 0.
at boot VIA_UDMA_TIMING is 0xf1f1e6e6 for a 80w cable on channel 0 and 40w
cable on channel 1.
Pata driver set my UDMA100 disk at UDMA33.
Matthieu.
PS : any idea in order to allow to work my cdrw drive, that don't return
interrupt when setting xfermode ?
next prev parent reply other threads:[~2006-05-08 21:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 16:06 Alan Cox
2006-05-08 16:54 ` Meelis Roos
2006-05-08 17:29 ` Kevin Radloff
2006-05-09 12:24 ` Alan Cox
2006-05-09 16:52 ` Kevin Radloff
2006-05-08 21:57 ` Matthieu CASTET [this message]
[not found] ` <1147178241.3172.74.camel@localhost.localdomain>
[not found] ` <4460D7D7.3070807@free.fr>
2006-05-10 21:24 ` matthieu castet
2006-05-08 23:48 ` Rene Herman
2006-05-09 12:30 ` Alan Cox
2006-05-09 20:05 ` Rene Herman
2006-05-23 23:26 ` Rene Herman
2006-05-24 0:11 ` Rene Herman
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=pan.2006.05.08.21.57.53.522263@free.fr \
--to=castet.matthieu@free.fr \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome